//sIFR implementation
function pageScripts() {
var TrajanPro = {  src: DNN_skinPath + 'TrajanPro.swf' };
sIFR.activate(TrajanPro);
sIFR.replace(TrajanPro, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'TrajanPro.swf', 
  css: [ '.sIFR-root {color:#003928;font-size:24px;}'  ]
});
}
/*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 () {}
	});
	
	/*video calls*/
	if ($("#invis-vid").length) { // if div exists...
   		flowplayer("invis-vid", "/Portals/0/vendor/flash/flowplayer-3.2.4.swf", {
		wmode: "transparent",
		plugins: { controls: { url: 'flowplayer.controls-tube-3.2.2.swf' } },
		clip: { autoPlay: false, autoBuffering: true, url: 'http://tools.televoxsites.com/vendor/flash/invisalign.flv' }
		});
 	}
	
	if ($("#damon-vid").length) { // if div exists...
   		flowplayer("damon-vid", "/Portals/0/vendor/flash/flowplayer-3.2.4.swf", {
		wmode: "transparent",
		plugins: { controls: { url: 'flowplayer.controls-tube-3.2.2.swf' } },
		clip: { autoPlay: false, autoBuffering: true, url: 'http://tools.televoxsites.com/vendor/flash/damon-video.flv' }
		});
 	}
	
	if ($("#damon-clear").length) { // if div exists...
   		flowplayer("damon-clear", "/Portals/0/vendor/flash/flowplayer-3.2.4.swf", {
		wmode: "transparent",
		plugins: { controls: { url: 'flowplayer.controls-tube-3.2.2.swf' } },
		clip: { autoPlay: false, autoBuffering: true, url: '/Portals/0/vendor/damon_clear_overview.flv' }
		});
 	}	
		
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();		
		});
		
	jQuery(".Level1").append("<li><img src='/Portals/_default/Skins/yimorthodontics.com/images/Submenu_bottom.png' align='bottom' class='subbottom' /></li>");	
	
	jQuery.noConflict();	
	jQuery('.acc h4').click(function() {
	jQuery(this).toggleClass('active').next().toggle("fast");
	return false;
	}).next().hide();
	
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/cus_on.jpg";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/fun_on.jpg";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/home_on.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/oinfo_on.jpg";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/pinfo_on.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/plogin_on.jpg";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/tret_on.jpg"; 
	menuImage8= new Image(); 
	menuImage8.src = DNN_skinPath + "images/SUbmenu-icon.jpg";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/Submenu_bottom.png";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/submenu.png";	
});
