jQuery(document).ready(function(){
	jQuery("#leftmenu div.sub").hide();

	/* Adding to keep the submenu open when a users browses to a specific page - MD 1/11/11*/
	jQuery("#leftmenu div.sub a.activepage").parent().parent().slideDown(1800); 

	/* Following code activates submenu */
	jQuery("#leftmenu a.active").click(function(){menuShow(this); return(false);});

	/* Removing code to close menu when a user hovers over the content area. - MD 1/11/11*/
	/*jQuery("#dnn_ContentPane").mouseover(function(){
					jQuery("#leftmenu div.active").stop().slideUp("fast").parent().removeClass("topsub");						
 	});*/
	
	// flash features
 	if (jQuery("#featurecrowns").length){	
		var sshow = new SWFObject("http://tools.televoxsites.com/features/crown.swf", "slideshow", "287", "300", "6", "#000000");
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
		sshow.addParam("wmode", "transparent");
		sshow.write("featurecrowns");
	}


	if (jQuery("#featureroot").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/rootcanal.swf", "slideshow", "350", "260", "6", "#000000");
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
		sshow.addParam("wmode", "transparent");
		sshow.write("featureroot");;
	}


	if (jQuery("#featurewisdom").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/wisdom.swf", "slideshow", "190", "205", "6", "#000000");
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
		sshow.addParam("wmode", "transparent");
		sshow.write("featurewisdom");
	}

	if (jQuery("#featuredev").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/dentaldevelopment.swf", "slideshow", "450", "400", "6", "#000000");
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
		sshow.addParam("wmode", "transparent");
		sshow.write("featuredev");
	}

	if (jQuery("#featureimplants").length){
		var so = new SWFObject("http://tools.televoxsites.com/features/implant.swf", "featureimplants", "200", "195", "6", "ffffff");
		so.addParam("wmode", "transparent");
		so.write("featureimplants");
	}
	
});

function menuShow(menuitem){
	jQuery("#leftmenu div.active:not(div.active:eq("+ jQuery("#leftmenu a.active").index(menuitem) + "))").stop().slideUp(900).parent().removeClass("topsub");
	jQuery("#leftmenu div.active:eq("+ jQuery("#leftmenu a.active").index(menuitem) + ")").stop().css("height", "auto").slideDown(900).parent().addClass("topsub");
}

 
 
/*
function runSiteScripts(path) {


//here's the sIfr
//code for the h1 tags
var copperPlateGothicLight = {  src: path + 'copperPlateGothicLight.swf' };
sIFR.activate(copperPlateGothicLight);
sIFR.replace(copperPlateGothicLight, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  path +  'copperPlateGothicLight.swf', 
  css: [ '.sIFR-root {color:#b5887b; }'  ]
});

var zapfino = {  src: path + 'zapfino.swf' };
sIFR.activate(zapfino);
sIFR.replace(zapfino, {
  selector: '.contestTitle', 
  wmode: 'transparent', 
  src:  path +  'zapfino.swf', 
  css: [ '.sIFR-root {color:#083a81; }'  ]

});


// 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();};
}
}


}
*/
