
var Papryus = {  src: DNN_skinPath + 'Papryus.swf' };
sIFR.activate(Papryus);
sIFR.replace(Papryus, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'Papryus.swf', 
  css: [ '.sIFR-root {color:#B40830;}'  ]
});





jQuery(document).ready(function(){

	//jQuery("div.sub").fadeTo("0", 0.9);
	jQuery("p.sub").hide();
		jQuery("a.active").mouseover(function(){menuShow(this); return(false);});
													
	jQuery("#dnn_ContentPane").mouseover(function(){
		jQuery("p.active").stop().slideUp("fast").parent().removeClass("topsub");						
 	});

	/*menu shimmer*/
	jQuery("a.topper, p.callouts a").mouseover( function(){jQuery(this).stop().fadeTo("300", 0.5, function(){
		jQuery(this).fadeTo("200", 1);
	});
 });
	jQuery(".topper.active").click(function() {
		return false;
	});
	
	jQuery("div.sub a[href *= 'fileticket']").attr("target", "_blank");
	

	
});

function menuShow(menuitem){
	jQuery("p.active:not(div.active:eq("+ jQuery("a.active").index(menuitem) + "))").stop().slideUp(900).parent().removeClass("topsub");
	jQuery("p.active:eq("+ jQuery("a.active").index(menuitem) + ")").stop().css("height", "auto").slideDown(500).parent().addClass("topsub");
}



// gets rid of focus box on click
if(document.getElementsByTagName) {
var a = document.getElementsByTagName("a");
//collect all anchors A
for(var i = 0; i < a.length; i++){
// mouse onfocus, blur anchors
a[i].onfocus = function(){this.blur();};
}
}



//logo link
function logoLink() {
	var counter = 0
	if (document.getElementById('topshell') != null){
		if (counter < 10) {
			var shellHTML = document.getElementById('topshell').innerHTML;
			shellHTML = "<a href='http://www.thesuperdentists.com/' id='logoLink'><img src='/portals/0/images/spacer.gif'></a>" + shellHTML;
			document.getElementById('topshell').innerHTML = shellHTML;
		}
	} else {
		counter = counter + 1
		setTimeout("logoLink();",1000);
	}

}

logoLink();