//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/century-gothic.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/century-gothic.swf', 
  css: [ '.sIFR-root {color:#5f91b9; font-size:24px; text-transform:uppercase;}'  ]
});
}

//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});
	});

	//jQuery(".LinkIcon").rollover();
	/*
	 menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/Home.jpg";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/Home_hover.jpg";
		
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/officeInfo.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/officeInfo_hover.jpg";

	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/patientInfo.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/patientInfo_hover.jpg";
	*/
//Home
	var PathHome = DNN_skinPath + "images/home.jpg";
	jQuery("#navigation40").append("<a href='/LinkClick.aspx?link=40' title=''></a>");
	
	jQuery("#navigation40").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/home_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#navigation40").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/home.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End

	//Office Info
	var PathHome = DNN_skinPath + "images/patientlogin.jpg";
	jQuery("#navigation64").append("<a href='#' title=''></a>");

	jQuery("#navigation64").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientlogin_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation64").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientlogin.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End

	//Office Info
	var PathHome = DNN_skinPath + "images/officeinfo.jpg";
	jQuery("#navigation65").append("<a href='#' title=''></a>");

	jQuery("#navigation65").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/officeinfo_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation65").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/officeinfo.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//patientinfo Info
	var PathHome = DNN_skinPath + "images/ourpatients.jpg";
	jQuery("#navigation66").append("<a href='#' title=''></a>");

	jQuery("#navigation66").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/ourpatients_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation66").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/ourpatients.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//Treatment
	var PathHome = DNN_skinPath + "images/ourpractice.jpg";
	jQuery("#navigation67").append("<a href='#' title=''></a>");

	jQuery("#navigation67").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/ourpractice_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation67").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/ourpractice.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	
//Fun Stuff
	var PathHome = DNN_skinPath + "images/faq.jpg";
	jQuery("#navigation68").append("<a href='#' title=''></a>");

	jQuery("#navigation68").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/faq_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation68").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/faq.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});

//Patient Login
	var PathHome = DNN_skinPath + "images/contactus.jpg";
	jQuery("#navigation69").append("<a href='#' title=''></a>");

	jQuery("#navigation69").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/contactus_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation69").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/contactus.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});



	
});


jQuery(document).ready(function(){

// flash features
	

 if (jQuery("#featureoral").length){	
var so = new SWFObject("/features/loader.swf", "features", "500", "325", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("feature", "hygiene-dental"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featureoral");
}


 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("#featurerootcanal").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/rootcanal.swf", "slideshow", "350", "260", "6", "#000000");
	sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
	sshow.addParam("wmode", "transparent");
	sshow.write("featurerootcanal");
}


 if (jQuery("#featurewisdom").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/wisdom.swf", "slideshow", "190", "205", "6", "#000000");
	sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
	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.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
	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("#featuregum").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/gums.swf", "slideshow", "320", "200", "6", "#000000");
	sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
	sshow.addParam("wmode", "transparent");
	sshow.write("featuregum");
}

});


function popup(url)
{
var width = 350;
var height = 350;
var left = (screen.width - width)/2;
var top = (screen.height - height)/2;
var params = 'width='+width+', height='+height;
params += ', top='+top+', left='+left;
params += ', directories=no';
params += ', location=no';
params += ', menubar=no';
params += ', resizable=no';
params += ', scrollbars=no';
params += ', status=no';
params += ', toolbar=no';
newwin=window.open(url,'windowname5', params);
if (window.focus) {newwin.focus()}
return false;
}


