/*
	Tooltip function by Simon Schmincke - Copy it if you want - but please let me know, I want so see your creativity!
	
*/

this.tooltip = function(){	
	
	$("a.tc_top_link_reg").hover(function(e){											  
		$("#acound_tc_lastfor")
			.css("background-color","gray")
			.css("color","white")
			.css("font-weight","bold")
			.css("padding-right","2px")
			.css("padding-left","2px");
			
		$("#tc_lastfor").replaceWith("<A href='#' id='tc_lastfor'>"+ this.title +"</a>");	
		$("#tc_lastfor").css("color","white");
		
		
		
    },
    
	function(){
		
		$("#acound_tc_lastfor")
			.css("background-color","white")
			.css("border-bottom","none")
			.css("font-weight","normal")
			.css("padding-left","0px");
		
		$("#tc_lastfor").replaceWith("<A href='#' id='tc_lastfor'>LAST 4 MONTHS:</a>");
		
   });
    	
};





this.tooltip_link = function(){	
	
	$("a.tc_top_link_post").hover(function(e){											  
		$("#acound_tc_lastfor")
			.css("background-color","#a40000")
			.css("color","white")
			.css("font-weight","bold")
			.css("padding-right","2px")
			.css("padding-left","2px");
			
		$("#tc_lastfor").replaceWith("<A href='#' id='tc_lastfor'>"+ this.title +"</a>");	
		$("#tc_lastfor").css("color","white");
		
		
		
    },
    
	function(){
		
		$("#acound_tc_lastfor")
			.css("background-color","white")
			.css("border-bottom","none")
			.css("font-weight","normal")
			.css("padding-left","0px");
		
		$("#tc_lastfor").replaceWith("<A href='#' id='tc_lastfor'>LAST 4 MONTHS:</a>");
		
   });
    	
};

this.tooltip_today = function(){	
	
	$("a.tc_top_link_today").hover(function(e){											  
		$("#acound_tc_lastfor")
			.css("background-color","#black")
			.css("color","white")
			.css("font-weight","bold")
			.css("padding-right","2px")
			.css("padding-left","2px");
			
		$("#tc_lastfor").replaceWith("<A href='#' id='tc_lastfor'>"+ this.title +"</a>");	
		$("#tc_lastfor").css("color","white");
		
		
		
    },
    
	function(){
		
		$("#acound_tc_lastfor")
			.css("background-color","white")
			.css("border-bottom","none")
			.css("font-weight","normal")
			.css("padding-left","0px");
		
		$("#tc_lastfor").replaceWith("<A href='#' id='tc_lastfor'>LAST 4 MONTHS:</a>");
		
   });
    	
};

// starting the script on page load
$(document).ready(function(){
	tooltip();
	tooltip_link();
	tooltip_today();
});

