var preloadFlag = false;

// Load backgrounf images for menu
function preloadImgs() {
  if (document.images) {
    imgList = new Array(2);
    imgList[0] = new Image();
    imgList[0].src = "images/nav_bg.gif";
    imgList[1] = new Image();
    imgList[1].src = "images/nav_bg_act.gif";
    preloadFlag = true;
  }
}

// Change background image of the element
function changeImg(elm, imgNum) {
  if (preloadFlag && elm != "undefined") {
    if (imgList[imgNum] != "undefined") {
      elm.style.backgroundImage = "url('"+imgList[imgNum].src+"')";
}
}}
function MM_openBrWindow(theURL,winName,features) { //v2.0
var w;
 w=window.open(theURL,winName,features);
 w.focus();
}

function MM_openBrWindow(theURL,winName,windowWidth,windowHeight) { //v2.0
var w;
 openURL = "pic.htm?theURL=" + theURL;
 w=window.open(openURL, winName, "width=" + windowWidth + 15 + ",height=" + windowHeight + 5);
 w.resizeTo(windowWidth,windowHeight);
 w.focus();
// self.event.returnValue=false;
}

