
$( function(){

	InitializeCentersNav();

});

function InitializeCentersNav() {
	
	//open the centers sub nav on all center pages
	//$("body[class^=section][class$=center] .centers_nav").show();
	
	$(".top_nav .nav_centers a").attr("href","#").click( function(event){
	
		event.preventDefault();
	
		$(".top_nav .nav_centers a").addClass("selected");
		$(".centers_nav").slideDown(300);
		
		});
	
		if ( $(".page_home").length ) {
			$(".nav_breast_center").hover(
				function(){ $('#DetailSlides').cycle(1) },
				function(){}
				);
			$(".nav_plastic_surgery_center").hover(
				function(){ $('#DetailSlides').cycle(2) },
				function(){}
				);
			$(".nav_advanced_facial_surgery_center").hover(
				function(){ $('#DetailSlides').cycle(3) },
				function(){}
				);
			$(".nav_wound_care_center").hover(
				function(){ $('#DetailSlides').cycle(4) },
				function(){}
				);
			$(".nav_hand_center").hover(
				function(){ $('#DetailSlides').cycle(5) },
				function(){}
				);
		}
	}

//====================================================
//	HandleAgree
//====================================================
function HandleAgree( ) {
	try {
		document.location.href = document.location + (document.location.href.indexOf("?") > -1 ? "&Agree=1" : "?Agree=1" );
		}
	catch (error) {
		}
	}
 
