//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:#495e34; font-size:30px; }'  ]
});
}

/*Menu implementation*/

jQuery(document).ready(function(){

	jQuery('.acc h4').click(function() {
		jQuery(this).toggleClass('active').next().toggle("fast");
		return false;
	});
	
	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 () {}
	});
	
	/* remove box from links */	
	jQuery("a").focus(function(){	this.blur(); });		
	
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_on.jpg";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/oinfo_on.jpg";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/pinfo_on.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/treatment_on.jpg";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/fun_on.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/plogin_on.jpg";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/pform_hover.jpg";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/contactis_hover.jpg";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/ar_hover.jpg";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/mtd_hover.jpg";
	
	jQuery(".LinkIcon").rollover();
	
	jQuery('.home-video').flashembed({ src: "/Portals/0/video/flowplayer-3.2.4.swf",	wmode: "transparent" }, {
		config: {
			plugins: {
				controls: {
					url: 'flowplayer.controls-tube-3.2.2.swf'
				}
			},
			clip: {
				url: '/Portals/0/video/homepage-video.flv',
				autoPlay: false,
				autoBuffering: true
			}
		}
	});
	
});

 
