
function show_hide(id) {
  if ($(id).style.visibility=='hidden'){
    $(id).style.visibility='visible';
    $(id).style.display='block';
    location.hash=id;
  }
 else{
    $(id).style.visibility='hidden';
    $(id).style.display='none';
 }
}


function makemouseovers(){
var elementList = document.getElementsByClassName("makemouseover");
for(i = 0; i < elementList.length; i++) {
    elementList[i].onmouseover=function(){this.childNodes[0].src=this.childNodes[0].src.replace(".png","_over.png");};
    elementList[i].onmouseout=function(){this.childNodes[0].src=this.childNodes[0].src.replace("_over.png",".png");};
    var preload=new Image();
    preload.src=elementList[i].childNodes[0].src.replace(".png","_over.png");
}


}



function stretch(){

var container=$("main");
if (! browser.isIE5x){
if (document.body.offsetWidth <=800){
   container.style.width=("700px");
}

else {

if (document.body.offsetWidth >=1024){
   container.style.width=("896px");

}
else {
   container.style.width=(0.875 * document.body.offsetWidth)+"px";

}

}





}
else{
container.style.width=("700px");
}
}
