jQuery(document).ready(function(){	
								
	jQuery("#menu a.topper:not(a.topper:first)").before("<span class='divider'></span>");

	//hide menu on load
	jQuery("p.sub").hide();
	
	//show menu
	jQuery("a.active").mouseover(function(){menuShow(this); return(false);});
								
	//hide menu							
	jQuery("#dnn_ContentPane").mouseover(function(){
		jQuery("p.active").stop().slideUp("fast").parent().removeClass("topsub");						
 	});
	
	//no boxy outline on clicks
	jQuery("a").focus(function() {
		jQuery(this).blur();
	});
	
	//hide the last divider thing in menu
	jQuery(".divvy:last").hide();
	
	//swap image for FF
	jQuery(".clickplay").click(clickPlay);
});

//make menu work
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");
}


//sifr script
function pageScripts(){
var kozuka = {  src: DNN_skinPath + 'kozuka.swf' };
sIFR.activate(kozuka);
sIFR.replace(kozuka, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'kozuka.swf', 
  css: [ '.sIFR-root {color:#5e143b; font-size:24px;}'  ]
	});
}


function clickPlay() {
	var sshow = new SWFObject("http://tools.televoxsites.com/features/typesofbraces.swf", "slideshow", "510", "306", "6", "#000000");  
	sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
	sshow.addParam("wmode", "transparent");
	sshow.write("featuretypes");
}
