//sIFR implementation

function pageScripts(){
var Rockwell = {  src: DNN_skinPath + 'Rockwell.swf' };
sIFR.activate(Rockwell);
sIFR.replace(Rockwell, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'Rockwell.swf', 
  css: [ '.sIFR-root {color:#5e71a8; font-size:24px; font-weight:bold;}'  ]
});
}

/*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 () {}
	});
	
	jQuery("#sitemapnavigation90 a").append("<br/>");	 
	jQuery("#sitemapnavigation81 a").append("<br/>");
	jQuery("#sitemapnavigation79 a").append("<br/>");
	jQuery("#sitemapnavigation63 a").append("<br/>");
 
		
	// home cycled photos
	if(jQuery("#header-cycle").length) {
		jQuery('#header-cycle').cycle({
				fx:'fade',
				speed:2000,
				timeout:6000	
		});
	}
	
	/* remove box from links */
		jQuery('.acc h4').click(function() {
	 jQuery(this).toggleClass('active').next().toggle("fast");
	 return false;
	 }).next().hide(); 
	
	/* remove box from links */
		jQuery("a").focus(function(){
		this.blur();		
		});	
	
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_hover.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/officeinfo_hover.png";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/patientinfo_hover.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/treatment_hover.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/fun_hover.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/contactus_hover.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/braces_hover.png";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/whatmakesunique_hover.png";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/your_hover.png";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/location_hover.png";
	
	if (jQuery("#featureoraldental").length){
	var so = new SWFObject("/features/loader.swf", "features", "450", "315", "9", "#FF6600");
	so.addVariable("config", "/features/config.xml");
	so.addVariable("feature", "hygiene-dental");
	so.addParam("wmode", "transparent");
	so.addParam("quality", "high");
	so.write("featureoraldental"); 
	}
	
	if (jQuery("#featuretypes").length){
		var so = new SWFObject("/features/loader.swf", "features", "450", "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");
	}
});
  
