//Menu implementation	   
jQuery(document).ready(function($){
	
	$("#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 () {}
	});

	$(".Level1").append("<li><img src='/Portals/_default/Skins/littlerockdentalcare/images/bottom.png' align='bottom' class='subbottom' /></li>");

		/* remove box from links */
	$("a").focus(function(){	this.blur(); });   
		
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/meetteam_on.jpg";	 
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/ouroffice_on.jpg";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/patientedu_on.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/services_on.jpg";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/home_on.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/contactus_on.jpg";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/login_on.jpg";
	
	$(".LinkIcon").rollover();
	
	// flash features
	if ($("#featureoral").length) {
		var so = new SWFObject("/features/loader.swf", "features", "500", "325", "9", "#FF6600");	
		so.addVariable("config", "/features/config.xml");
		so.addVariable("feature", "hygiene-dental");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featureoral");
	}
	
	$('.acc h4').click(function() {
		$(this).toggleClass('active').next().toggle("fast");
		return false;
	}); 
	
});

//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:#c4ad6e;font-size:28px;}'  ]
	});
}
