// JavaScript Document
var mCoord;
var theA;
 $(document).ready(function(){
   // Your code here
   //$("#info").fadeOut(10);
   
   $("#colSet a").hover(
		function(event){
			theA = $(this);
			
			$("#info").fadeOut(250,nowSwitch);
			
			//if($("#info").css("opacity") < 1) nowSwitch(theA);
			 //$("#info").
			 //$(this).stop();
			
											
		 },
		 function(event){
			 //$("#info").fadeOut(250);
		 }
			 
		 );
   $("#info").click(
					function(event){
						window.location = $("#infLink").attr("href");
					});
      $("#info").hover(
			function(event){
				//$(this).show();
			}
			,
			function(event){
				$(this).fadeOut(250);
			}
	);
   
 });
 
 function nowSwitch(){
	var theDt = theA.parent("dt");
	var txt = theDt.next().text();
	var lnk = theA.attr("href");
	var title = theA.children("img").attr("alt");
	$("#infTitle").text(title);
	$("#infP").text(txt);
	$("#infLink").attr("href",lnk);
	var theX=theDt.position().left+4;
	var theY=theDt.position().top+4;
	
	$("#info").css({left:theX, top:theY}).fadeIn(500);
 }
