//sIFR implementation
function pageScripts(){
var AvenirRoman  = {  src: DNN_skinPath + 'AvenirRoman.swf' };
sIFR.activate(AvenirRoman);
sIFR.replace(AvenirRoman, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'AvenirRoman.swf', 
  css: [ '.sIFR-root {color:#1e2663;font-size:30px;}'  ] 
});
}

//Menu implementation	   
jQuery(document).ready(function(){
	jQuery("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse", 
		delay:2000,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("li", this).bgIframe({opacity:true});
	}).find("a").focus(function () {
		jQuery("ul", jQuery("#Navigation > ul >li:has(ul)")).bgIframe({opacity:true});
	});	
	
	jQuery('#Navigation a[href="#"]').click(function() { return false; });
	
	jQuery('#Navigation1').accordion({
		active: false,
		header: '.menuTitle', 
		event: 'click',
		autoheight:false,
		navigation:true,
		showSpeed: 1200,
		hideSpeed: 1400
	});
	jQuery("#Navigation97 .Level1").append("<li><img src='/Portals/_default/Skins/gotbraces.com/images/subappend.png' align='bottom' class='subbottom' /></li>");
	
/* remove box from links */
jQuery("a").focus(function(){
	this.blur();
});	
	jQuery(".LinkIcon").rollover();	

	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/beforeandafter_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/ourdoctors_on.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/ouroffice_on.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/ourstaff_on.png";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/patientforms_on.jpg";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/patientlogin_on.jpg";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/testimonials_on.jpg";
	menuImage11 = new Image(); 
	menuImage11.src = DNN_skinPath + "images/treatment_on.jpg";	
	menuImage12 = new Image(); 
	menuImage12.src = DNN_skinPath + "images/subbg.png";
	menuImage13 = new Image(); 
	menuImage13.src = DNN_skinPath + "images/subover.png";
	menuImage14 = new Image(); 
	menuImage14.src = DNN_skinPath + "images/sub1.jpg";
	menuImage15 = new Image(); 
	menuImage15.src = DNN_skinPath + "images/subappend.png";
	menuImage16 = new Image(); 
	menuImage16.src = DNN_skinPath + "images/sub1over.jpg";
	
	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");
	}

});
