var popupLinkConfig = new Array;
// Delete/copy/modify the following lines to configure your popup windows.
popupLinkConfig["popup"] = new Array ( "", "width=800,height=610,scrollbar=no,menubar=no");
popupLinkConfig["popupVert"] = new Array ( "", "width=500,height=720,scrollbars=no,menubar=no");
popupLinkConfig["popupAward"] = new Array ( "", "width=800,height=720,scrollbars=no,menubar=no");
popupLinkConfig["popupNews"] = new Array ( "", "width=800,height=1000,scrollbars=no,menubar=no");

window.onload = initPage;  
// Make sure that no other javscripts assign a fuction to window.onload
// There can be only one window.onload at a time

function initPage() {
  initPopupLinks();
  // place here any other code you wish to run when the page loads.
}

function initPopupLinks()
{
  if (!document.getElementsByTagName) return true;
  var pageLinks = document.getElementsByTagName("a");
  for (var i = 0; i < pageLinks.length; i++) 
  {
    if (((pageLinks[i].className != null) && 
         (pageLinks[i].className != "")) ||
        ((pageLinks[i].parentNode.className != null) && 
         (pageLinks[i].parentNode.className != "")))
    {
      var linkClass = " " + pageLinks[i].className + " ";
      if ((linkClass == "  ") && (pageLinks[i].parentNode.className != ""))
      {
        linkClass = " " + pageLinks[i].parentNode.className + " ";
      }
      for (var theKey in popupLinkConfig) 
      {
        if (linkClass.indexOf(" " + theKey + " ") > -1)
        {
          if ((pageLinks[i].target == "") || (pageLinks[i].target == null))
          {
            pageLinks[i].target = (popupLinkConfig[theKey][0] != "") ? popupLinkConfig[theKey][0] : theKey;
          }
          pageLinks[i].settings = popupLinkConfig[theKey][1];
          pageLinks[i].onclick = popUp;
        }
      }
    }
  }
  return true;
}

function popUp(url, width, height)
{

  newWin = window.open(url, "mywindow", "width=" + width + ",height=" + height + ",status=no,toolbar=no,location=no,scrollbars=1,menubar=no");
  newWin.focus();
  return false;
}



            function autofit() {

                if (window.innerWidth){
                    iWidth = window.innerWidth;
                    iHeight = window.innerHeight;
                }else{
                    iWidth = document.body.clientWidth;
                    iHeight =document.body.clientHeight;
                }
                iWidth = document.images[0].width  + 50;
                iHeight = document.images[0].height  + 125;



				if (document.images[3]) {
					
	              	  iWidth = document.images[0].width + document.images[1].width + 100;
					  iHeight = document.images[0].height + 175;

				}

var ie7 = (document.all && !window.opera && window.XMLHttpRequest)
if (ie7)
	iHeight += 25;
	
if (iWidth < 600)
	iWidth = 600;

                window.resizeTo(iWidth, iHeight);
            };




startList = function() {
for (i=0; i<document.links.length; i++){
	document.links[i].onfocus=function (){if(this.blur){this.blur()}}
	if (document.links[i].id) {document.links[i].title="click image to enlarge"}
	
	var str= document.links[i].id;
	if (str.indexOf("tour") > 0)
		document.links[i].title = "click image to view tour";
}
}