/**preloads (down state)**/
var PLd1 = new Image();
PLd1.src = "images/menu_elements/menu_down_01.gif";
var PLd2 = new Image();
PLd2.src = "images/menu_elements/menu_down_02.gif";
var PLd3 = new Image();
PLd3.src = "images/menu_elements/menu_down_03.gif";
var PLd4 = new Image();
PLd4.src = "images/menu_elements/menu_down_04.gif";
var PLd5 = new Image();
PLd5.src = "images/menu_elements/menu_down_05.gif";
var PLd6 = new Image();
PLd6.src = "images/menu_elements/menu_down_06.gif";


/**preloads (over state)**/
var PLm1 = new Image();
PLm1.src = "images/menu_elements/menu_over_01.gif";
var PLm2 = new Image();
PLm2.src = "images/menu_elements/menu_over_02.gif";
var PLm3 = new Image();
PLm3.src = "images/menu_elements/menu_over_03.gif";
var PLm4 = new Image();
PLm4.src = "images/menu_elements/menu_over_04.gif";
var PLm5 = new Image();
PLm5.src = "images/menu_elements/menu_over_05.gif";
var PLm6 = new Image();
PLm6.src = "images/menu_elements/menu_over_06.gif";




//here's the sIfr
//code for the h1 tags
var southern = {  src: 'southern.swf' };
sIFR.activate(southern);
sIFR.replace(southern, {
  selector: 'h1', 
  wmode: 'transparent', 
  src: 'southern.swf', 
  css: [ '.sIFR-root {color:#553813;}'  ]
});
var southern_plain = {  src: 'southern_plain.swf' };
sIFR.activate(southern_plain);
sIFR.replace(southern_plain, {
  selector: 'h2', 
  wmode: 'transparent', 
  src: 'southern_plain.swf', 
  css: [ '.sIFR-root {color:#553813; }'  ]
});




/*onclick version
function showmenu(menuNo){
	$('.sub').stop();
	$('.active').animate({height: "0"}, 400).removeClass("active");
	//expand to the product of the number of menu items and the approximate pixel height of each
	$('.sub').eq(menuNo).animate({height: ($('.sub').eq(menuNo).children().length * 20 )}, 1000).addClass("active");
}
 $(document).ready(function(){
		$('.sub').stop().css({height: "0"});									
 });
*/
/*

mouseover version*/

function showmenu(menuNo){
	$('.submenu').stop();
	$('.submenu').not($('.submenu').eq(menuNo)).fadeTo("fast", 0).hide(0);	
	//expand to the product of the number of menu items and the approximate pixel height of each
	$('.submenu').eq(menuNo).show(0).fadeTo("slow", 0.75);

}
 $(document).ready(function(){
		$('.submenu').stop().fadeTo("fast", 0).hide(0);	
		$('.alive').each(function(){;}).click(function(){
								 showmenu($('.alive').index(this));
								 return(false);
								 });

 });


/**/



function runSiteScripts() {



// 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();};
}
}


}