jQuery(document).ready(function(){	
								
	//hide menu on load
	jQuery("p.active").hide();
	
	//add class 'last' to last topper element
	jQuery("#innermenu > .abscontainer").last().addClass('last');
	
	//jQuery("div.sub").fadeTo("0", 0.9);
	jQuery("a.active").mouseover(function(){menuShow(this); return(false);});
													
	jQuery(".content").mouseover(function(){
		jQuery(".topsub > p.active").stop().hide().removeClass("topsub");
 	});
	
	//no boxy outline on clicks
	jQuery("a").focus(function() {
		jQuery(this).blur();
	});
	
	//accordion for INVISALIGN FAQ page
	jQuery('.accordion h3').click(function() {
		jQuery(this).toggleClass('active').next().toggle('blind', 'normal');
		return false;
	}).next().hide();
	
	
	//remove border on blank images
	if(jQuery(".sidepic > img").width() < 185) {
		jQuery(".sidepic > img").css({'border-color': "#EDEDE5", "height": "0"});
	}
	
	jQuery('.topper.active').click(function(){
		return false;
	});
	
});

//make menu work
function menuShow(menuitem){
	jQuery(".topsub > p.active").stop().hide().removeClass("topsub");
	jQuery(menuitem).next().css("height", "auto").stop().show().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:#ffffff;}']
	});
}




