//show hide the div according to the menu selected
function showCont(ref){
	for(i = 1; i <= 9; i++){
		document.getElementById('cont'+i).style.display = 'none';
		document.getElementById('tab'+i).className = '';
	}
	
	document.getElementById('cont'+ref).style.display = 'block'; // show the content
	document.getElementById('tab'+ref).className = 'active'; // set the active class     
	}
	
	
var hide_follow;
var hide_updates;

$(function() {

	$("#follow-handle").hover(function() {
		$(this).find("img").attr("src","/common/images/follow_on.jpg");
		$(".follow_link").show();
	}, function() {
		hide_follow = window.setTimeout('$("#follow-handle img").attr("src","/common/images/follow_off.jpg"); $(".follow_link").fadeOut(200);',300);
	});
	
	$(".follow_link").hover(function() {
		window.clearTimeout(hide_follow);
	}, function() {
		hide_follow = window.setTimeout('$("#follow-handle img").attr("src","/common/images/follow_off.jpg"); $(".follow_link").fadeOut(200);',300);
	});
	
	$("#updates-handle").hover(function() {
		$(this).find("img").attr("src","/common/images/updates_on.jpg");
		$(".join_our").show();
	}, function() {
		hide_updates = window.setTimeout('$("#updates-handle img").attr("src","/common/images/updates_off.jpg"); $(".join_our").fadeOut(200);',300);
	});
	
	$(".join_our").hover(function() {
		window.clearTimeout(hide_updates);
	}, function() {
		hide_updates = window.setTimeout('$("#updates-handle img").attr("src","/common/images/updates_off.jpg"); $(".join_our").fadeOut(200);',300);
	});
	
});