//sIFR implementation
function pageScripts(){
var KozukaGothicPr6N  = {  src: DNN_skinPath + 'KozukaGothicPr6N.swf' };
sIFR.activate(KozukaGothicPr6N);
sIFR.replace(KozukaGothicPr6N, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'KozukaGothicPr6N.swf', 
  css: [ '.sIFR-root {color:#3c5b41;font-size:30px;}'  ] 
});
}

//Menu implementation	   
jQuery(document).ready(function(){
	jQuery("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse", 
		delay:2000,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("li", this).bgIframe({opacity:true});
	}).find("a").focus(function () {
		jQuery("ul", jQuery("#Navigation > ul >li:has(ul)")).bgIframe({opacity:true});
	});	
/* remove box from links */
jQuery("a").focus(function(){
	this.blur();
});
	
	jQuery(".LinkIcon").rollover();	
	jQuery(".Level1").append("<li><img src='/Portals/_default/Skins/joecrowdentistry.com/images/subappend.png' align='bottom' class='subbottom' /></li>");

	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_on.jpg";	 
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/abt_on.jpg";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/di_on.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/pg_on.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/pl_on.jpg";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/ti_on.jpg";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/subbg.png";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/subappend.png";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/subover.png";
	menuImage11 = new Image(); 
	menuImage11.src = DNN_skinPath + "images/services_on.jpg";
	menuImage12 = new Image(); 
	menuImage12.src = DNN_skinPath + "images/pforms_on.jpg";
	menuImage13 = new Image(); 
	menuImage13.src = DNN_skinPath + "images/map_on.jpg";
	
	if (jQuery("#dentaldevelopment").length){
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/dentaldevelopment.swf", "slideshow", "450", "400", "6", "#000000"); 
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("dentaldevelopment");
	}
	if (jQuery("#jawsfe").length){
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/jaws.swf ", "slideshow", "190", "206", "6", "#72653a");
        sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
        sshow.addParam("wmode", "transparent"); 
        sshow.write("jawsfe");
	}
	
	if (jQuery("#RootCanal").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/rootcanal.swf", "slideshow2", "300", "200", "6", "#000000"); 
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("RootCanal");
	}
	if (jQuery("#Crowns").length){
		var so = new SWFObject("http://tools.televoxsites.com/features/crown.swf", "features", "287", "300", "9", "#FF6600");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("Crowns"); 
	}
	if (jQuery("#wisdom").length){
  		var so = new SWFObject("http://tools.televoxsites.com/features/wisdom.swf", "feature", "190", "205", "6", "ffffff"); 
		so.addParam("wmode", "transparent"); 
		so.write("wisdom");
	}
});
