var loaded = 0;

function preLoad()
{

if (document.images != null)
{

clickme1 = new Image();
clickme1.src = "http://www.vancouverillustrated.com/images/interface/menu.gif";
clickme2 = new Image();
clickme2.src = "http://www.vancouverillustrated.com/images/interface/menu-mouseover.gif";

}
	loaded = 1;
}

function hiLite(imgDocID,imgObjName) {
if (document.images !=null)
 {
  if (loaded)
   document.images[imgDocID].src = eval(imgObjName + ".src")
  }
}

function popup(winName,URL,height,width) {

var baseURL = ""; // base url, with trailing slash

 if(URL.substring(0,7) != "http://")
 {
  var URL = baseURL + URL;
 }

 if(!window.NewWindow || NewWindow.closed || NewWindow == null) 
 {
  var popup = window.open(URL,winName,"height=" + height + ",width=" + width + ",left=28,top=25,status=0,scrollbars=0,toolbar=0,directories=0,menubar=0,location=0");

NewWindow = popup;

 }else{

 if (NewWindow.name != winName) 
 {

  NewWindow.close();
  var popup = window.open(URL,winName,"height=" + height + ",width=" + width + ",left=28,top=25,status=0,scrollbars=0,toolbar=0,directories=0,menubar=0,location=0");
  NewWindow = popup;

 }else{
  NewWindow.location.href = URL;
  NewWindow.focus();
 }

}
}

   function mouseOver(src,colorOver)	{
   if (!src.contains(event.fromElement))	{
   	src.style.cursor = 'hand'; src.bgColor = colorOver;
   	}
   }
   function mouseOut(src,colorIn)	{
   if (!src.contains(event.toElement))	{
   	src.style.cursor = 'default';
   	src.bgColor = colorIn;
   	}
   }
   function mouseClk(src)	{
   if(event.srcElement.tagName=='TD')	{
   	src.children.tags('A')[0].click();
   	}
   }