// code fixed inhouse
//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/futurabook.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/futurabook.swf', 
  css: [ '.sIFR-root {color:#5d9cb1; font-size:24px;}'  ]
});
}

//Menu implementation	   
jQuery(document).ready(function(){

	jQuery("#Navigation > ul").superfish({
		delay:800,
		animation:{height:"show"}
	});
	
	jQuery('a').focus(function() { this.blur(); });
	
	var img1 = new Image();
	img1.src = DNN_skinPath + "images/home_hover.jpg";
	var img2 = new Image();
	img2.src = DNN_skinPath + "images/officeinfo_hover.jpg";
	var img3 = new Image();
	img3.src = DNN_skinPath + "images/patientinfo_hover.jpg";
	var img4 = new Image();
	img4.src = DNN_skinPath + "images/treatment_hover.jpg";
	var img5 = new Image();
	img5.src = DNN_skinPath + "images/cerec_hover.jpg";
	var img6 = new Image();
	img6.src = DNN_skinPath + "images/6monthsmiles_hover.jpg";
	
	jQuery('.LinkIcon').rollover('_hover');
	
	jQuery('.header-photos').cycle({
		speed:1000,
		timeout:5000
	});

	jQuery('.accordion h2').click(function() {
		jQuery(this).toggleClass('active').next().slideToggle('slow');
		return false;
	}).next().hide();
	
	if (jQuery("#featuretmj").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/jaws.swf", "slideshow", "200", "208", "6", "#000000");
       sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
       sshow.addParam("wmode", "transparent");
       sshow.write("featuretmj");
	}

	if (jQuery("#featureemergency").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("featureemergency");
	}
	
	if (jQuery("#featureoral").length){	
		var sshow = new SWFObject("http://tools.televoxsites.com/features/oralhygiene_dental.swf", "slideshow", "510", "380", "6", "#000000");
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
		sshow.addParam("wmode", "transparent");
		sshow.write("featureoral");
	}

	if (jQuery("#featureroot").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/rootcanal.swf", "slideshow", "350", "260", "6", "#000000");
		sshow.addParam("wmode", "transparent");
		sshow.write("featureroot");
	}

	if (jQuery("#featurewisdom").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/wisdom.swf", "slideshow", "190", "205", "6", "#000000");
		sshow.addParam("wmode", "transparent");
		sshow.write("featurewisdom");
	}

	if (jQuery("#featurecrown").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/crown.swf", "slideshow", "287", "300", "6", "#000000");
		sshow.addParam("wmode", "transparent");
		sshow.write("featurecrown");
	}

	if (jQuery("#featureimplants").length){
		var so = new SWFObject("http://tools.televoxsites.com/features/implant.swf", "feature", "200", "193", "6", "ffffff");
		so.addParam("wmode", "transparent");
		so.write("featureimplants");
	}

	if (jQuery("#featuregums").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/gums.swf", "slideshow", "320", "200", "6", "#000000");
		sshow.addParam("wmode", "transparent");
		sshow.write("featuregums");
	}

});

