$(document).ready(function(){
	$('.printPage').bind('click', function(){window.print();});
	$('.emailPage').bind('click', emailPage);
	$('.topLevel').hover(
		function(e){
			$(e.currentTarget).children('.dropdowns').css('display', 'block');	
		},
		function(e){
			$(e.currentTarget).children('.dropdowns').css('display', 'none');	
		}
	 );					   
});

function emailPage(){
	var mail = "mailto:?body=I would like you to visit this page at the Health Policy Associates website: "+location.href;
	location.href = mail;
}

function initSiteCredit(){
	$("#initLink").fadeOut("normal");
	$("#CreditsLink").animate( { right:"0" }, { duration:1000 } );
	setTimeout("revertSiteCredit()",7000);
}

function revertSiteCredit(){
	$("#CreditsLink").animate( { right:"-375" }, 1000, "linear", function(){$("#initLink").fadeIn("normal");} );
}








