//sIFR implementation
function pageScripts(){
var VladimirScript = {  src: DNN_skinPath + 'VladimirScript.swf'};
sIFR.activate(VladimirScript);
sIFR.replace(VladimirScript, {
  selector: 'h1.home', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'VladimirScript.swf',  
  css: [ '.sIFR-root {color:#3f3e3e;font-size:55pt;}'] 
});

var TrajanPro = {  src: DNN_skinPath + 'TrajanPro.swf'};
sIFR.activate(TrajanPro);
sIFR.replace(TrajanPro, {
  selector: 'h1.title', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'TrajanPro.swf',  
  css: [ '.sIFR-root {color:#24304c;font-size:30px;}'] 
});


} 

/*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 () {}
	});
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
	jQuery("#sub77 a").append("<br/>");
	
	/*Preload the menu backgrounds*/
	menuImage = new Image(); 
	menuImage.src = DNN_skinPath + "images/home_on.png";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/officeinfo_on.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/patientinfo_on.png";	
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/treatmentinfo_on.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/fun_on.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/plogin_on.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/login_hover.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/newpatient_hover.png";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/ouroffice_hover.png";
	
	
	if (jQuery("#tmj").length){
		var so = new SWFObject("http://tools.televoxsites.com/features/jaws.swf", "features", "250", "260", "9", "#FF6600");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("tmj");
	}
	
	if (jQuery("#Implants").length){
  		var so = new SWFObject("http://tools.televoxsites.com/features/implant.swf", "features", "200", "195", "9", "#FF6600");
  		so.addParam("wmode", "transparent");
  		so.addParam("quality", "high");
  		so.write("Implants");
	}

   if (jQuery("#root").length){	
		var so = new SWFObject("http://tools.televoxsites.com/features/rootcanal.swf", "features", "350", "260", "9", "#FF6600");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("root"); 
	}
   if (jQuery("#WisdomTeeth").length){
		var so = new SWFObject("http://tools.televoxsites.com/features/wisdom.swf", "features", "190", "205", "9", "#FF6600");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("WisdomTeeth");
	}
	
});
