//sIFR implementation
function pageScripts() {
var gillsans = {  src: DNN_skinPath + 'GilSansLight.swf' };
sIFR.activate(gillsans);
sIFR.replace(gillsans, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'GilSansLight.swf', 
  css: [ '.sIFR-root {color:#EAC55A;}'  ]
  ,filters: {
        DropShadow: {
           distance: 1
          ,color: '#000000'
          ,strength: 2
          ,alpha: .7
        }
      }
   ,wmode: 'transparent'
});


}

jQuery(document).ready(function(){
	
//Top Menu implementation		
jQuery("#dnn_ctr535_FormMaster_pnlForm > table").attr("cellspacing","0");
jQuery("a.active").click(function(){return(false);});
jQuery("#top_navigation div.sub").hide();
jQuery("#top_navigation a.active").mouseover(function(){
jQuery("#top_navigation div.active:not(div.active:eq("+ jQuery("#top_navigation a.active").index(this) + "))").stop().slideUp("fast");
jQuery("#top_navigation div.active:eq("+ jQuery("#top_navigation a.active").index(this) + ")").stop().css("height", "auto").slideDown("slow");
});
jQuery("#dnn_ContentPane,a.empty").mouseover(function(){
jQuery("#top_navigation div.active").stop().slideUp("fast");
});



//Accordion Menu implementation	
jQuery('#Navigation').accordion({
active: false,
header: '.menuTitle',
event: 'click',
autoheight:false,
navigation:true,
showSpeed: 1200,
hideSpeed: 1400
});


/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
});
	
	
if (jQuery("#flash-video").length){
flowplayer("flash-video", "/Portals/0/vendor/flash/flowplayer-3.1.5.swf", {
plugins: { controls: { url: 'flowplayer.controls-tube-3.1.5.swf' } },
clip: { autoPlay: false, autoBuffering: true }
});

}
/*scroll to linked content on same page where links have class scroll*/
jQuery(".scroll").click(function(event){		
event.preventDefault();
jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 500);

});


/*preload the accordion menu items*/
//jQuery(".LinkIcon").rollover();


/*flash features and Office Tour Video*/
if (jQuery("#Slideshow").length){
var so = new SWFObject("/Portals/0/dentaltouchTour.swf", "mymovie", "320", "240", "8", "#336699"); so.addParam("quality", "high"); so.addParam("wmode", "transparent"); so.write("Slideshow");
}


if (jQuery("#featureoralhygiene").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("featureoralhygiene"); 
}


if (jQuery("#featuredentaldev").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/dentaldevelopment.swf", "slideshow", "450", "440", "6", "#ffffff");
sshow.addParam("wmode", "transparent");
sshow.write("featuredentaldev");
}


if (jQuery("#featurewisdom").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/wisdom.swf", "slideshow", "250", "275", "6", "#ffffff");
sshow.addParam("wmode", "transparent");
sshow.write("featurewisdom");
}


if (jQuery("#featurerootcanal").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/rootcanal.swf", "slideshow", "350", "260", "6", "#ffffff");
sshow.addParam("wmode", "transparent");
sshow.write("featurerootcanal");
}


if (jQuery("#featureimplant").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/implant.swf", "slideshow", "200", "195", "6", "#ffffff");
sshow.addParam("wmode", "transparent");
sshow.write("featureimplant");
}


if (jQuery("#featuretmj").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/jaws.swf", "slideshow", "260", "250", "6", "#ffffff");
sshow.addParam("wmode", "transparent");
sshow.write("featuretmj");
}


});
