

var pl1 = new Image();
pl1.src = "images/menuElements/nav_on.png";
 $(document).ready(function(){
		$("#menu").accordion({ 
			header: 'div.commander', 
    active: false, 
    alwaysOpen: false, 
    autoHeight: false 
		});
 });

//here's the sIfr
//code for the h1 tags
var arno = {  src: 'arno.swf' };
sIFR.activate(arno);
sIFR.replace(arno, {
  selector: 'h1', 
  wmode: 'transparent', 
  src: 'arno.swf', 
  css: [ '.sIFR-root {color:#E9B03F; font-style:italic;}'  ]
});
var harrington = {  src: 'harrington.swf' };
sIFR.activate(harrington);
sIFR.replace(harrington, {
  selector: 'h6', 
  wmode: 'transparent', 
  src: 'harrington.swf', 
  css: [ '.sIFR-root {color:#E9B03F; font-weight:bold;}'  ]
});


function runSiteScripts() {

var x = 0;
while( x < document.getElementById('menu').getElementsByTagName('div').length ){
var linky = document.getElementById('menu').getElementsByTagName('div')[x].getElementsByTagName('a')[0];
linky.onmouseover = function(){this.parentNode.getElementsByTagName('img')[0].src='images/menuElements/nav_on.png';}
linky.onmouseout = function(){this.parentNode.getElementsByTagName('img')[0].src='images/menuElements/nav.png';}

x++;
}

// 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();};
}
}


}