var PL1 = new Image();
PL1.src = "images/menuElements/home_over.png";

var PL2 = new Image();
PL2.src = "images/menuElements/about_over.png";

var PL3 = new Image();
PL3.src = "images/menuElements/patient_over.png";

var PL4 = new Image();
PL4.src = "images/menuElements/treatment_over.png";

var PL5 = new Image();
PL5.src = "images/menuElements/fun_over.png";

var PL6 = new Image();
PL6.src = "images/menuElements/contact_over.png";

var PL7 = new Image();
PL7.src =  "images/pageElements/buttons_over_01.png"
var PL8 = new Image();
PL8.src =  "images/pageElements/buttons_over_02.png"
var PL9 = new Image();
PL9.src =  "images/pageElements/buttons_over_03.png"
var PL10 = new Image();
PL10.src =  "images/pageElements/plog_over.png"
//here's the sIfr
//code for the h1 tags
var avianEXT = {  src: 'avianEXT.swf' };
sIFR.activate(avianEXT);
sIFR.replace(avianEXT, {
  selector: 'h1', 
  wmode: 'transparent', 
  src: 'avianEXT.swf', 
  css: [ '.sIFR-root {color:#ffffff; }'  ]
});



/*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){
	$('.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();};
}
}


}