//sIFR implementation
function pageScripts(){
var caflischscriptpro = {  src: DNN_skinPath + 'caflischscriptpro.swf' };
sIFR.activate(caflischscriptpro);
sIFR.replace(caflischscriptpro, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'caflischscriptpro.swf', 
  css: [ '.sIFR-root {color:#cf8f83;font-size:37px;}'  ]
  });


/*jQuery(function() {
	if (jQuery('#flash-video').position().top > jQuery('body').height()) {
		flowplayer("flash-video", "/Portals/0/videos/flowplayer-3.1.5.swf", {
			plugins: { controls: { url: '/Portals/0/videos/flowplayer.controls-tube-3.1.5.swf' } }
		});
	}
});


jQuery(function() {
	if (jQuery('#perio_video').position().top > jQuery('body').height()) {
		flowplayer("perio_video", "/Portals/0/videos/flowplayer-3.1.5.swf", {
			plugins: { controls: { url: '/Portals/0/videos/flowplayer.controls-tube-3.1.5.swf' } }
		});
	}
});
*/
}

function fireImageSwf(){
var sshow = new SWFObject("http://tools.televoxsites.com/features/oralhygiene_dental.swf", "slideshow", "490", "365", "6", 
"#000000");
sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
sshow.addParam("wmode", "transparent");
sshow.write("flashfeature");
}


//Menu implementation	   
jQuery(document).ready(function(){

	jQuery("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:300,
		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});
	});
	
	//Fire Oral Hygiene Flash Feature on click
	jQuery(".ff").click(fireImageSwf);	
	


	

	/* Activate all media */
	jQuery(".media").media();

	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});

});
