function pageScripts(){
var BlackJack = {  src: DNN_skinPath + 'BlackJack.swf' };
sIFR.activate(BlackJack);
sIFR.replace(BlackJack, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'BlackJack.swf', 
  css: [ '.sIFR-root {color:#1d2c49; font-size:42px;}'  ]
});
}

///Menu implementation	   
jQuery(document).ready(function($){
								
jQuery('.acc  li h4').click(function() {
		jQuery(this).toggleClass('active').next().toggle("fast");
		return false;
	}).next().hide();	

jQuery("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:800,
		animation:{height:"show"},
		speed:"normal"
	});

 jQuery(".Lvl1").append("<li><img src='/Portals/_default/Skins/trortho/images/subbtm.png' class='subbtm'></li>");

		/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});	
	
	/*Preload the menu backgrounds*/
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_on.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/office_on.png";	
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/patient_on.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/ouroffice_on.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/treatement_on.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/fun_on.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/plogin_on.png";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/ib_on.jpg";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/oinfo_on.jpg";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/online_on.jpg";
	menuImage11 = new Image(); 
	menuImage11.src = DNN_skinPath + "images/req_on.jpg";
	menuImage12 = new Image(); 
	menuImage12.src = DNN_skinPath + "images/submenubg.png";


	if (jQuery("#featureorthognathic").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/orthognathic.swf", "slideshow", "190", "205", "6", "#000000"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("featureorthognathic");
	}
			
	if($("#oral1").length) {
		
			flowplayer("oral1", "/portals/0/flash/flowplayer-3.2.7.swf", {
				plugins: { controls: { url: '/portals/0/flash/flowplayer.controls-tube-3.2.5.swf' } },
				clip : { autoPlay: false, autoBuffering: true, url: '/Portals/0/flash/brushing.flv' }
			});
		
	}
	
	if($("#oral2").length) {
		
			flowplayer("oral2", "/portals/0/flash/flowplayer-3.2.7.swf", {
				plugins: { controls: { url: '/portals/0/flash/flowplayer.controls-tube-3.2.5.swf' } },
				clip : { autoPlay: false, autoBuffering: true, url: '/Portals/0/flash/flossing.flv' }
			});
		
	}
	
	if($("#oral3").length) {
		
			flowplayer("oral3", "/portals/0/flash/flowplayer-3.2.7.swf", {
				plugins: { controls: { url: '/portals/0/flash/flowplayer.controls-tube-3.2.5.swf' } },
				clip : { autoPlay: false, autoBuffering: true, url: '/Portals/0/flash/brushing2.flv' }
			});
		
	}
	
	if($("#intro").length) {
		
			flowplayer("intro", { src: "/portals/0/flash/flowplayer-3.2.7.swf", wmode: 'opaque'}, {
				plugins: { controls: { url: '/portals/0/flash/flowplayer.controls-tube-3.2.5.swf' } },
				clip : { autoPlay : true}
			});
		
	}
	
	if($("#glossary").length) {
		
			flowplayer("glossary", { src: "/portals/0/flash/flowplayer-3.2.7.swf", wmode: 'opaque'}, {
				plugins: { controls: { url: '/portals/0/flash/flowplayer.controls-tube-3.2.5.swf' } },
				clip : { autoPlay : true}
			});
		
	}
	
	if($("#ortho1").length) {
		
			flowplayer("ortho1", { src: "/portals/0/flash/flowplayer-3.2.7.swf", wmode: 'opaque'}, {
				plugins: { controls: { url: '/portals/0/flash/flowplayer.controls-tube-3.2.5.swf' } },
				clip : { autoPlay : true}
			});
		
	}
	
	if($("#ortho2").length) {
		
			flowplayer("ortho2", { src: "/portals/0/flash/flowplayer-3.2.7.swf", wmode: 'opaque'}, {
				plugins: { controls: { url: '/portals/0/flash/flowplayer.controls-tube-3.2.5.swf' } },
				clip : { autoPlay : false}
			});
		
	}
	
	if ($('#ff-emergencies').length) {
		var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("xmlfile", "/features/emergencies.xml");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("ff-emergencies");	
	}
});
