//sIFR implementation
function pageScripts() {
var AdobeGaramonpro = {  src: DNN_skinPath + 'AdobeGaramonpro.swf' };
sIFR.activate(AdobeGaramonpro);
sIFR.replace(AdobeGaramonpro, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'AdobeGaramonpro.swf', 
  css: [ '.sIFR-root {color:#c1c7a2;font-size:36px;}'  ]
});
}

/*Menu implementation*/

jQuery(document).ready(function(){
 jQuery.noConflict();
 jQuery('.acc h4').click(function() {
 jQuery(this).toggleClass('active').next().toggle("fast");
 return false;
 }).next().hide(); 


	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 () {}
	});
	/* remove box from links */
	
	/* Submenu Pipe line */
	jQuery("#sub58, #sub59, #sub60, #sub61, #sub64, #sub69, #sub70, #sub71, #sub72, #sub73, #sub74, #sub75, #sub76, #sub81, #sub82, #sub84, #sub85, #sub94, #sub96").append("|");
	jQuery("a").focus(function(){
		this.blur();
	});
	/*Preload the menu backgrounds*/
	menuImage = new Image(); 
	menuImage.src = DNN_skinPath + "images/fun_img_hover.jpg";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_img_hover.jpg";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/office_img_hover.jpg";	
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/patient_img_hover.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/patientlogin_img_hover.jpg";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/treatment_img_hover.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/sub.png";
	

// flash features
if (jQuery("#featurepartsof").length){
var so = new SWFObject("/features/loader.swf", "features", "490", "320", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("xmlfile", "/features/parts.xml"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featurepartsof"); 
}

if (jQuery("#featuretypes").length){
var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("xmlfile", "/features/types.xml"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featuretypes");
}


});
