// JavaScript Document



	try{Typekit.load();}catch(e){}



	$(document).ready(function(){

							   

		$('#featureswrapper').addClass('withjs');					   

		$('#companieswrapper').addClass('withjs');					   

		$('#explorewrapper').addClass('withjs');



		$('#featureswrapper').jshowoff({ controls: false, links : false, hoverPause : false });



		$('ul#companieswrapper li').each(function(index) {



			var id = $(this).attr("id");

			var t = $(this).html().split(/<span>/gi);

			var c = t[1].replace(/<\/span>/i,"");

			var c = c.replace(/- /gi,"");



			var e = "javascript:;";

			var g = "_self";

			if(t[2]) {

				var h = t[2].replace(/<\/span>/i,"");

				var h = h.match(/href=\"(.+)\"/i);

				if(h[0]){



					var hh = h[0].replace(/href=\"/i,"");

					e = hh.replace(/\"/i,"");

					g = "_blank";



				}

			}





			var a = $("<a />").attr({"href":e,"target":g}).text(t[0]).mouseover(function(){

				fadeAll(id);

				aboutCompany(c);

			}).mouseout(restoreAll);



			$(this).empty();

			$(this).append(a);



		});



	});



	function aboutCompany (t) {



		var p = $("<p />").text(t);

		$("div#explanationwrapper").empty().append(p).fadeIn("fast");



	}



	function fadeAll(i){



		$('ul#companieswrapper li').each(function(index) {

			if($(this).attr("id") != i)

				$(this).fadeTo(100,.4);

		});



	}



	function restoreAll(){



		$("div#explanationwrapper").empty();

		$('ul#companieswrapper li').each(function(index) {

			$(this).fadeTo(0,1);

		});



	}


	function copyRight()
	{
		var y = new Date();
		document.write(y.getFullYear());
	}

