if (document.images) {
     home_0 = new Image(72,21);
     home_0.src = "menus/home_0.gif";
     home_1 = new Image(72,21);
     home_1.src = "menus/home_1.gif";
     about_0 = new Image(100,23);
     about_0.src = "menus/about_0.gif";
     about_1 = new Image(100,23);
     about_1.src = "menus/about_1.gif";
     exhibitions_0 = new Image(100,21);
     exhibitions_0.src = "menus/exhibitions_0.gif";
     exhibitions_1 = new Image(100,21);
     exhibitions_1.src = "menus/exhibitions_1.gif";
     contact_0 = new Image(75,19);
     contact_0.src = "menus/contact_0.gif";
     contact_1 = new Image(75,19);
     contact_1.src = "menus/contact_1.gif";
     gallery_0 = new Image(72,23);
     gallery_0.src = "menus/gallery_0.gif";
     gallery_1 = new Image(72,23);
     gallery_1.src = "menus/gallery_1.gif";
     orders_0 = new Image(59,23);
     orders_0.src = "menus/orders_0.gif";
     orders_1 = new Image(59,23);
     orders_1.src = "menus/orders_1.gif";
     }
function nav(imgName,num) {
                 if (document.images)
                 {
                 document[imgName].src = eval(imgName + "_" + num + ".src");
                 }
         }
function setMsg(msg) {   
               window.status = msg
               return true
          }
function swap(image) {
         if (document.images) {
                 document.images[image].src =
                 'menus/' + image + '_1.gif';
                 }
         }
function restore(image) {
         if (document.images) {
                 document.images[image].src =
                 'menus/' + image + '_0.gif';
                 }
         }

function loadPopup(URL,w,h,name) {
  var width= w;
  var height=h;
  if (navigator.appName == "Microsoft Internet Explorer")
        {
                if (navigator.userAgent.indexOf("Mozilla\/4") != -1)
                {
                height = height +2
                }
        }
  else if (navigator.appName == "Netscape")
        {
                height = height +4
        }
  var newWin = open(URL,name,'width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
  if (navigator.userAgent.indexOf("Mozilla/2") != -1) {
    if ((navigator.userAgent.indexOf("Mac") != -1) || (navigator.userAgent.indexOf("X11") != -1)) {
      newWin = window.open(URL, name)
    }
  }
}

function loadPainting(URL,w,h,name) {
  var width= w;
  var height=h;
  if (navigator.appName == "Microsoft Internet Explorer")
        {
                if (navigator.userAgent.indexOf("Mozilla\/4") != -1)
                {
                height = height +2
                }
        }
  else if (navigator.appName == "Netscape")
        {
                height = height +4
        }
  var newWin = open(URL,name,'width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
  if (navigator.userAgent.indexOf("Mozilla/2") != -1) {
    if ((navigator.userAgent.indexOf("Mac") != -1) || (navigator.userAgent.indexOf("X11") != -1)) {
      newWin = window.open(URL, name);
    }
  }
//  newWin.creator=self;
}
