function cache_images(img_name_array){

  for(x=0;x<img_name_array.length;x++) {
    eval(img_name_array[x]+"_off=new Image();");
    eval(img_name_array[x]+"_off.src=\"images/"+img_name_array[x]+"_off.gif\";");
    eval(img_name_array[x]+"_on=new Image();");
    eval(img_name_array[x]+"_on.src=\"images/"+img_name_array[x]+"_on.gif\";");
  }

}

function button_on ( imgName ) {
	butOn = eval ( imgName + "_on.src" );
	document [imgName].src = butOn;
}

function button_off ( imgName ) {
	butOff = eval ( imgName + "_off.src" );
	document [imgName].src = butOff;
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function MM_preloadImages() { //v3.0

  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}

var myWindow;
function openCenteredWindow(url,width,height) {
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + 
        ",resizable,left=" + left + ",top=" + top + 
        "screenX=" + left + ",screenY=" + top;
    myWindow = window.open(url, "subWind", windowFeatures);
}

//    var windowFeatures = "width=" + width + ",height=" + height + 
//        ",status,resizable,menubar,location,scrollbars,toolbar,left=" + left + ",top=" + top + 
//        "screenX=" + left + ",screenY=" + top;
