jQuery(document).ready(function(){

	jQuery("#menu div.abscontainer:last").addClass("last");	
	jQuery("p.active").hide();
			
	jQuery("a.active").mouseover(function(){
		jQuery("p.active:not(p.active:eq("+ jQuery("a.active").index(this) + "))").hide();
		jQuery("p.active:eq("+ jQuery("a.active").index(this) + ")").show();
 	});
	
	
	jQuery("#dnn_ContentPane,a.empty").mouseover(function(){
		jQuery("p.active").hide();
 	});
	
		jQuery("#mymovie,a.empty").mouseover(function(){
		jQuery("p.active").hide();
 	});
	
	jQuery(".subpage").mouseover(function(){
		jQuery(this).prepend("<span class='prep'>[</span>");
		jQuery(this).append("<span class='app'>]</span>");
	});
	jQuery(".subpage").mouseout(function() {
		jQuery(".prep").remove();
		jQuery(".app").remove();
	});
	
	jQuery(".topper.active").click(function(){
		return false;
	});
	
	jQuery("#sitemap322>a, #sitemap332>a,#sitemap343>a,#sitemap354>a").bind('click', function() {
		return false;
	});
});


 
function runSiteScripts(path) {
	//here's the sIfr
	//code for the h1 tags
	var Eurostile_extended2 = {  src: path + 'Eurostile_extended2.swf' };
	sIFR.activate(Eurostile_extended2);
	sIFR.replace(Eurostile_extended2, {
	  selector: 'h1', 
	  wmode: 'transparent', 
	  src:  path +  'Eurostile_extended2.swf', 
	  css: [ '.sIFR-root {color:#fff799; }'  ]
});
}

/*/logo link
function logoLink() {
	var counter = 0
	if (document.getElementById('shell') != null){
		if (counter < 10) {
			var shellHTML = document.getElementById('shell').innerHTML;
			shellHTML = "<a href='http://www.thesuperdentists.com/' id='logoLink'><img src='/portals/0/images/spacer.gif'></a>" + shellHTML;
			document.getElementById('shell').innerHTML = shellHTML;
		}
	} else {
		counter = counter + 1
		setTimeout("logoLink();",1000);
	}

}

logoLink();
*/