
jQuery(document).ready(function() {
/* ////////////////////////////////////////////////////////// HOME */
	//jQuery('div.sectionpets').hide();
	jQuery('a#open_home').mouseenter(function() {
		jQuery("li#li_home a").attr('id',"home_selected");
		jQuery('div.sectionhome').show(300);
		return false;
	});

	jQuery('li#li_home').mouseleave(function() {
		jQuery("li#li_home a").attr('id',"");
		jQuery('div.sectionhome').hide(300);
		return false;
	});

/* ////////////////////////////////////////////////////////// ABOUT US */
	//jQuery('div.sectionpets').hide();
	jQuery('a#open_about').mouseenter(function() {
		jQuery("li#li_about a").attr('id',"about_selected");
		jQuery('div.sectionabout').show(300);
		return false;
	});

	jQuery('li#li_about').mouseleave(function() {
		jQuery("li#li_about a").attr('id',"");
		jQuery('div.sectionabout').hide(300);
		return false;
	});

/* ////////////////////////////////////////////////////////// SERVICES */
	//jQuery('div.sectionpets').hide();
	jQuery('a#open_services').mouseenter(function() {
		jQuery("li#li_services a").attr('id',"services_selected");
		jQuery('div.sectionservices').show(300);
		return false;
	});

	jQuery('li#li_services').mouseleave(function() {
		jQuery("li#li_services a").attr('id',"");
		jQuery('div.sectionservices').hide(300);
		return false;
	});

/* ////////////////////////////////////////////////////////// CONTACT US */
	//jQuery('div.sectionpets').hide();
	jQuery('a#open_contactus').mouseenter(function() {
		jQuery("li#li_contactus a").attr('id',"contactus_selected");
		jQuery('div.sectioncontactus').show(300);
		return false;
	});

	jQuery('li#li_contactus').mouseleave(function() {
		jQuery("li#li_contactus a").attr('id',"");
		jQuery('div.sectioncontactus').hide(300);
		return false;
	});

/* ////////////////////////////////////////////////////////// DIRECTIONS */
	//jQuery('div.sectionpets').hide();
	jQuery('a#open_directions').mouseenter(function() {
		jQuery("li#li_directions a").attr('id',"directions_selected");
		jQuery('div.sectiondirections').show(300);
		return false;
	});

	jQuery('li#li_directions').mouseleave(function() {
		jQuery("li#li_directions a").attr('id',"");
		jQuery('div.sectiondirections').hide(300);
		return false;
	});
	
	
		
/* ////////////////////////////////////////////////////////// PATIENT CENTER */		
	//jQuery('div.sectionvets').hide();
	jQuery('a#open_patientcenter').mouseenter(function() {
	jQuery("li#li_patientcenter a").attr('id',"patientcenter_selected");
		jQuery('div.sectionpatientcenter').show(300);
		return false;
	});
	
	jQuery('li#li_patientcenter').mouseleave(function() {
	jQuery("li#li_patientcenter a").attr('id',"");
		jQuery('div.sectionpatientcenter').hide(300);
		return false;
	});

/* ////////////////////////////////////////////////////////// PATIENT FORMS */
	//jQuery('div.sectionpets').hide();
	jQuery('a#open_paperwork').mouseenter(function() {
		jQuery("li#li_paperwork a").attr('id',"paperwork_selected");
		jQuery('div.sectionpaperwork').show(300);
		return false;
	});

	jQuery('li#li_paperwork').mouseleave(function() {
		jQuery("li#li_paperwork a").attr('id',"");
		jQuery('div.sectionpaperwork').hide(300);
		return false;
	});

/* ////////////////////////////////////////////////////////// communityActivities */
	//jQuery('div.sectionpets').hide();
	jQuery('a#open_community').mouseenter(function() {
		jQuery("li#li_community a").attr('id',"community_selected");
		jQuery('div.sectioncommunity').show(300);
		return false;
	});

	jQuery('li#li_community').mouseleave(function() {
		jQuery("li#li_community a").attr('id',"");
		jQuery('div.sectioncommunity').hide(300);
		return false;
	});
	
	//ligthbox professional careers
//	jQuery('a#launch-vets').colorbox({width:"650",height:"260",inline:true,href:'#vet-careers'});
//	jQuery('a#launch-paraprofessionals').colorbox({width:"650",height:"260",inline:true,href:'#paraprofessionals-careers'});
//	jQuery('a#launch-central-team').colorbox({width:"650",height:"260",inline:true,href:'#central-team-careers'});
//	jQuery('a#launch-vet-students').colorbox({width:"650",height:"260",inline:true,href:'#vet-students-careers'});
	
});




sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("li");
for (var i=0; i<sfEls.length; i++) {
sfEls[i].onmouseover=function() {
this.className+=" sfhover";
}
sfEls[i].onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
