//sIFR implementation
function pageScripts(){
var LegacySans  = {  src: DNN_skinPath + 'LegacySans.swf' };
sIFR.activate(LegacySans);
sIFR.replace(LegacySans, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'LegacySans.swf', 
  css: [ '.sIFR-root {color:#ffffff;font-size:40px;}'  ] 
});
}

//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});
	});	
/* remove box from links */
jQuery("a").focus(function(){
	this.blur();
});

	jQuery('#sitemenu a[href="#"]').click(function() { return false; });
	
	jQuery("#dnn_ctr441_FormMaster_ctl__20090911T122109").attr('multiple', 'multiple');
	jQuery("#dnn_ctr442_FormMaster_ctl__20090911T122109").attr('multiple', 'multiple');
	jQuery("#dnn_ctr442_FormMaster_lbl_ctl__20110920T022609").text("Your First Name*:");
	jQuery("#dnn_ctr441_FormMaster_lbl_ctl__20110920T022609").text("Your First Name*:");
	jQuery("#dnn_ctr442_FormMaster_lbl_ctl__20110920T023718").text("E-mail*:");
	jQuery("#dnn_ctr441_FormMaster_lbl_ctl__20110920T023718").text("E-mail*:");
	
	jQuery(".LinkIcon").rollover();	
	jQuery("#Navigation .Level1").append("<li style='padding-bottom: 0px;'><img src='/Portals/_default/Skins/rogersdmd.com/images/subbottom.png' align='bottom' class='subbottom' /></li>");
	jQuery("#Navigation65 .Level1").append("<li style='padding-bottom: 0px;'><img src='/Portals/_default/Skins/rogersdmd.com/images/subbottom2.jpg'  align='bottom' class='subbottom'></li>");
	jQuery("#Navigation99 .Level1").append("<li style='padding-bottom: 0px;'><img src='/Portals/_default/Skins/rogersdmd.com/images/subbottom1.png'  align='bottom' class='subbottom'></li>");
	jQuery("#Navigation94 .Level1").append("<li style='padding-bottom: 0px;'><img src='/Portals/_default/Skins/rogersdmd.com/images/subbottom3.jpg'  align='bottom' class='subbottom'></li>");

	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/aboutus_on.jpg";	 
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/contact_on.jpg";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/cosmetic_on.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/general_on.jpg";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/home_on.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/patientinfo_on.jpg";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/patientlogin_on.jpg";
	menuImage8 = new Image();	
	menuImage8.src = DNN_skinPath + "images/subbg.png";
	menuImage9 = new Image();	
	menuImage9.src = DNN_skinPath + "images/subbottom.png";
	menuImage10 = new Image();	
	menuImage10.src = DNN_skinPath + "images/subbottom1.png";
	menuImage11 = new Image();	
	menuImage11.src = DNN_skinPath + "images/subbottom2.jpg";
	menuImage12 = new Image();	
	menuImage12.src = DNN_skinPath + "images/subbottom3.jpg";
	menuImage13 = new Image();	
	menuImage13.src = DNN_skinPath + "images/subover.png";
	
	if (jQuery("#gums").length){
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/gums.swf", "slideshow2", "350", "260", "6", "#000000"); 
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("gums");
	}
});
