var PL1 = new Image();
PL1.src = "../images/button_over.jpg";

var PL2 = new Image();
PL2.src = "../images/button_over.jpg";

var PL3 = new Image();
PL3.src = "../images/button_over.jpg";

var PL4 = new Image();
PL4.src = "../images/button_over.jpg";

var PL5 = new Image();
PL5.src = "../images/button_over.jpg";

var PL6 = new Image();
PL6.src = "../images/button_over.jpg";

var PL7 = new Image();
PL7.src =  "../images/button_over.jpg"
var PL8 = new Image();
PL8.src =  "../images/button_over.jpg"
var PL9 = new Image();
PL9.src =  "../images/button_over.jpg"
var PL10 = new Image();
PL10.src =  "../images/button_over.jpg"



/*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 * 18 )}, 1000).addClass("active");
}
 $(document).ready(function(){
		$('.sub').stop().css({height: "0"});									
 });

/**/

/*mouseover version

function showmenu(menuNo){
	$('.sub').stop();
	$('.sub').not($('.sub').eq(menuNo)).animate({height: "0"}, 400)
	//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);

}
 $(document).ready(function(){
		$('.sub').stop().css({height: "0"});									
 });


*/



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();};
}
}


}