// JavaScript Document


function thumbOver(mc, mc2, moveX, moveY){	
	var trigger = $(mc);
	//var bubble = $('#'+mc + ' #titleOver');
	
	
	var time1 =1500;
	var time2 =200;
	//console.log("wat?"+trigger);
	trigger.mouseover(function(e){
		//var startTop = $(this).prev().css('top').replace("px", "");
		//var startLeft = $(this).prev().css('left').replace("px", "");
		//console.log("wtf: " + startLeft + "Mouse Left" + e.pageX +" and Y: " +  startTop + "Mouse Top" + e.pageY);
	$(mc2).not(this).stop(true, true).hide("slow");
	

 
	$(this).next().stop(true, true).show(400).css('left', moveX).css('bottom', moveY);			
		//$(this).prev().css('backgroundImage','url(' + this.href +')').css({"display":"block", "z-index":9999}); 
		});
	//$(this).stop().attr();
	

	$("#container").click(function(){
			$(mc2).stop(true, true).hide(400);
		
	});
	$("nav").mouseover(function(){
			$(mc2).stop(true, true).hide(400);
		
	});
	$("#logo").mouseover(function(){
			$(mc2).stop(true, true).hide(400);
		
	});


}

jQuery(document).ready(function(){ 
								
		thumbOver('.side-thumbs', '.team-side-meta',50,40);
		//thumbOver('.team-thumbs', '.team-side-meta',50,40);

})
