//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/spring.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1, h3', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/spring.swf', 
  css: [ '.sIFR-root {color:#0d4679; font-weight: normal; }'  ]
});
}
/*//sIFR implementation
function pageScriptsin(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/myriadpro.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/myriadpro.swf', 
  css: [ '.sIFR-root {color:#003462; font-size:24px;}'  ]
});
}*/



//Menu implementation	   
jQuery(document).ready(function(){
			
	jQuery("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:800,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("ul", this).bgIframe({opacity:true});
		}).find("a").focus(function () {
		jQuery("ul", jQuery("#Navigation > ul >li:has(ul)")).bgIframe({opacity:true});
	
	});
	



//Home

var PathHomeo = DNN_skinPath + "images/home.jpg";

jQuery("#Navigation36").append("<a href='#' title=''></a>");


jQuery(
"#Navigation36").find("img").mouseover(function () {

var PathHomeON = DNN_skinPath + "images/home_hover.jpg";


jQuery(
this).attr({ src:PathHomeON });

});

jQuery(
"#Navigation36").find("img").mouseout(function () {

var PathHomeON = DNN_skinPath + "images/home.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

//End

//officeinfo

var PathHomeo = DNN_skinPath + "images/officeinfo.jpg";

jQuery(
"#Navigation57").append("<a href='#' title=''></a>");

jQuery(
"#Navigation57").find("img").mouseover(function () {
jQuery("<img src='menubg_tp.png'></img>").insertBefore(jQuery("img[src*='menubg_bt.png']"));
var PathHomeON = DNN_skinPath + "images/officeinfo_hover.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

jQuery(
"#Navigation57").find("img").mouseout(function () {

var PathHomeON = DNN_skinPath + "images/officeinfo.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

//End
//patientinfo
	var PathHome = DNN_skinPath + "images/patientinfo.jpg";
	jQuery("#Navigation58").append("<a href='#' title=''></a>");

	jQuery("#Navigation58").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation58").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End

	//treatment
	var PathHome = DNN_skinPath + "images/treatment.jpg";
	jQuery("#Navigation59").append("<a href='#' title=''></a>");

	jQuery("#Navigation59").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/treatment_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation59").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/treatment.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End


	//contests
	var PathHome = DNN_skinPath + "images/contests.jpg";
	jQuery("#Navigation84").append("<a href='#' title=''></a>");

	jQuery("#Navigation84").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/contests_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation84").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/contests.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End

	



});



jQuery(document).ready(function(){
	jQuery('.accordion h2').click(function() {
	jQuery(this).toggleClass('active').next().slideToggle('slow');
		return false;
	}).next().hide();
			
	jQuery('.retainer').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	jQuery("#baPhotos").galleryView({
			panel_width: 500,
			panel_height: 435,
			frame_width: 100,
			frame_height: 116
		});		
	
});

function PreloadImg()
{
//Navigation61 = new Image(); 
//Navigation61.src = DNN_skinPath + "images/menubg_tp.png";

menuImage2 = new Image(); 
menuImage2.src = DNN_skinPath + "images/menubg_tp.png";

}
