//sIFR implementation
function pageScripts(){
var kozGopr6N = {  src: DNN_skinPath + 'kozGopr6N.swf' };
sIFR.activate(kozGopr6N);
sIFR.replace(kozGopr6N, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'kozGopr6N.swf', 
  css: [ '.sIFR-root {color:#a79c90;font-size:30px;font-weight:bold;}'  ]
});
}

//Menu implementation	   
jQuery(document).ready(function(){
	
	jQuery("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:800,
		animation:{height:"show"},
		speed:"normal"
	});
		/* remove box from links */
	jQuery("a").focus(function(){	this.blur(); });
	
			
	jQuery(".LinkIcon").rollover();	
		
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/ouroffice_on.png";	 
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/ouroffice_on.png";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/treatmentoption_on.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/patientinfo_on.png";
	menuImage5 = new Image();	
	menuImage5.src = DNN_skinPath + "images/inthecommunity_on.png";
	menuImage6 = new Image();	
	menuImage6.src = DNN_skinPath + "images/tlink_hover.png";
	
	if (jQuery("#featureorthognathic").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/orthognathic.swf", "slideshows", "190", "205", "6", "#000000"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("featureorthognathic");
	}
	
	if (jQuery("#officetour").length){
		var so = new SWFObject(DNN_skinPath+"slideshow.swf", "movie", "402", "330", "9", "#000000");
		so.addParam("wmode", "transparent", "high");
		so.addParam("allowfullscreen", "true");
		so.addVariable("xmlFilePath", "/Portals/0/slideshow/images.xml?v=1");
		so.addVariable("xmlFileType", "Default");
		so.write('officetour');
	}	
	
	jQuery('#rpeClick').click(function() {
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/rpa2.swf", "slideshows", "450", "350", "6", "#000000");
	    sshow.addParam("wmode", "transparent");
	    sshow.addParam("quality", "high");
		sshow.write("RPEflash");		
	});
	
	if (jQuery('#slideshow').length) {
		jQuery("#slideshow").cycle();
	}
	
	if (jQuery('.lightbox').length) {
		jQuery(".lightbox").lightbox();
	}
});
