//sIFR implementation

function pageScripts() {
var Nuptual = {  src: DNN_skinPath + 'Nuptual_BT_Reg.swf' };
sIFR.activate(Nuptual);
sIFR.replace(Nuptual, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'Nuptual_BT_Reg.swf', 
  css: [ '.sIFR-root {color:#074f8f; font-size:52px; text-align:center;}']
});

var NuptualHome = {  src: DNN_skinPath + 'Nuptual_BT_Reg.swf' };
sIFR.activate(NuptualHome);
sIFR.replace(NuptualHome, {
  selector: 'h1.homeheader', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'Nuptual_BT_Reg.swf', 
  css: [ '.sIFR-root {color:#074f8f; font-size:52px; text-align:left; }']
});

}

//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 */
jQuery("a").focus(function(){
	this.blur();
});
	
// home cycled photos
if(jQuery("#header-cycle").length) {
jQuery('#header-cycle').cycle({
		fx:'fade',
		speed:3000,
		timeout:8000	
});
}

	jQuery(".LinkIcon").rollover();	
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_on.jpg";	 
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/plogin_on.jpg";
    menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/patientlogin_on.jpg"; 
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/pay_on.jpg"; 
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/oloc_on.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/ba_on.jpg";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/news_on.jpg";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/abt_on.png";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/oinfo_on.png";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/npati_on.png";
	menuImage11 = new Image(); 
	menuImage11.src = DNN_skinPath + "images/pinfo_on.png";
	menuImage12 = new Image(); 
	menuImage12.src = DNN_skinPath + "images/treat_on.png";
	menuImage13 = new Image(); 
	menuImage13.src = DNN_skinPath + "images/cts_on.png";
	
	if (jQuery("#featurecommon").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "325", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("feature", "problems");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featurecommon"); 
	}
	if (jQuery("#featureoral").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "325", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("xmlfile", "/features/hygiene.xml");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featureoral"); 
	}
	if (jQuery("#featureemer").length){
  		var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600");
  		so.addVariable("config", "/features/config.xml");
  		so.addVariable("feature", "emergencies");
  		so.addParam("wmode", "transparent");
  		so.addParam("quality", "high");
  		so.write("featureemer");
	}
	
	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");
	}
	
	if (jQuery("#featurebandcolor").length){
	var so = new SWFObject("/features/loader.swf", "features", "500", "375", "9", "#FF6600");
	so.addVariable("config", "/features/config.xml");
	so.addVariable("xmlfile", "/features/planner.xml");
	so.addParam("wmode", "transparent");
	so.addParam("quality", "high");
	so.write("featurebandcolor");
	}
	
	if (jQuery("#featurebefore").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "295", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("feature", "beforeafter");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featurebefore"); 
	}	

});
