jQuery(document).ready(function(){	
	//stayOpen();
	jQuery("#menu a.topper:not(a.topper:first)").before("<span class='divider'></span>");

	jQuery("#menu div.sub").hide();
	jQuery("#menu a.active").click(function(){menuShow(this); return(false);});
	
	jQuery("a").focus(function() {
		jQuery(this).blur();
	});
});

function menuShow(menuitem){
	jQuery("#menu div.active:not(div.active:eq("+ jQuery("#menu a.active").index(menuitem) + "))").stop().slideUp(700);
	jQuery("#menu div.active:eq("+ jQuery("#menu a.active").index(menuitem) + ")").stop().css("height", "auto").slideDown(700);
}

function stayOpen() {
	jQuery("div:has('a.activepage')").menuShow(this);
}


function runSiteScripts(path) {
	//here's the sIfr
	//code for the h1 tags
	var HelveticaNeue2_shadow = {  src: path + 'HelveticaNeue2_shadow.swf' };
	sIFR.activate(HelveticaNeue2_shadow);
	sIFR.replace(HelveticaNeue2_shadow, {
	  selector: 'h2', 
	  wmode: 'transparent', 
	  src:  path +  'HelveticaNeue2_shadow.swf', 
	  css: [ '.sIFR-root {color:#ffffff; }'  ]
	});
}
