$(document).ready(function(){
	
	/* PNGFIX start *******************************************************************/
		$(document).pngFix();
	/* PNGFIX end *********************************************************************/
	
	/* EXTERNAL LINKS start ***********************************************************/
	$('a[@rel$="external"]').click(function(){
		this.target = "_blank";
	});	
	/* EXTERNAL LINKS end *************************************************************/

	/* NAVIGATION start ***************************************************************/
	$('#nav ul ul').hide();
	//hover show 2nd level

	$('#nav-about-us').hover(function(){ navHover('A data rich knowledge company fueled by profiled physician research.');},function(){ navHoverOff();});
		$('#nav-contact-us').hover(function(){ navHover('Contact HealthAcuity');},function(){ navHoverOff();});
		$('#nav-privacy-ethics').hover(function(){ navHover('Our Privacy and Ethics statement');},function(){ navHoverOff();});
		$('#nav-join-the-panel').hover(function(){ navHover('Join HealthAcuity');},function(){ navHoverOff();});
		$('#nav-schedule-an-interview').hover(function(){ navHover('Schedule an Interview with us');},function(){ navHoverOff();});
		$('#nav-learn-more').hover(function(){ navHover('Learn More about HealthAcuity');},function(){ navHoverOff();});
	
	/* NAVIGATION end ****************************************************************/

}); //close document.ready

function navHover(text){
	$('#nav').css({ height: "68px",backgroundColor: "#FFFFFF"}).css('background-image','url(/includes/images/bg-nav-alt.png)'); 
	$('#dynamic-text').show().html(text);
}
function navHoverOff(){	
	$('#nav').css({ height: "33px",backgroundColor: "#52A146"}).css('background-image','url(/includes/images/bg-nav-top.png)'); 
	$('#dynamic-text').hide();
}