function pageScripts(){
var ScriptinaPro = {  src: DNN_skinPath + 'ScriptinaPro.swf' };
sIFR.activate(ScriptinaPro);
sIFR.replace(ScriptinaPro, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'ScriptinaPro.swf', 
  css: [ '.sIFR-root {font-size:36px;color:#5b8c5b;text-indent:21px;}'  ]
});
}

///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 () {}
	}).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});
	});

    /*Append Submenu Btm Image*/ 
    jQuery(".LvlOth").append("<li><img src='/Portals/_default/Skins/jwjordan/images/subbg_btm.png' class='subbtm'></li>");
    jQuery(".LvlEnd").append("<li><img src='/Portals/_default/Skins/jwjordan/images/subbg_btm2.png' class='subbtm'></li>"); 	

    /*Footer SiteMap Menu*/ 
	jQuery("#sitemapnavigation ul li").append("<span class='sep'>|</span>");
	jQuery("#sitemapnavigation77 .sep").text(jQuery("#sitemapnavigation77 .sep").text().replace('|',''));
	jQuery("#sitemapnavigation77").append("<br>");
	jQuery("#sitemapnavigation107 .sep").text(jQuery("#sitemapnavigation107 .sep").text().replace('|',''));	
	
	
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});	

	/* flash image */
	jQuery("#rotate").cycle();
								
	/*Preload the menu backgrounds*/
	menuImage1 = new Image(); 
	menuImage1src = DNN_skinPath + "images/aboutbraces_on.jpg";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/contactus_on.jpg";	
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/home_on.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/newpatients_on.jpg";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/ouroffice_on.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/ourpatient_on.jpg";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/treatment_on.jpg";	
	
	
	// flash features
	if (jQuery("#orthosurgy").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/orthognathic.swf", "slideshow", "190", "205", "6", "#000000");
	    sshow.addParam("wmode", "transparent");
	    sshow.addParam("quality", "high");
		sshow.write("orthosurgy");
	}

	jQuery('#rpeClick').click(function() {
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/rpa2.swf", "slideshow", "450", "350", "6", "#000000");
	    sshow.addParam("wmode", "transparent");
	    sshow.addParam("quality", "high");
		sshow.write("RPEflash");		
	});
	
	
	
});
