  function newWindow(url,windowname,parms) {
    window.open(url,windowname,parms)
  }

  function closeWindow(windowname) {
    window.close(windowname)
    return false
  }

function newPhotoWindow(url) {
  //center this window and feed correct dimensions to window opener
  //check if window is open and if so, bring to front
   newWindow(url, 'photopopupWindow','top=0,left=0,width=480,height=365')
}

function openRemoteWindow() {
   newWindow("h_remote.html", "remote", 'toolbar=0,top=40,left=40,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=390,height=195')
}

function closeRemote() {
  timer = setTimeout('window.close();', 10);
}

function forceIntoFrame(url) {
    if (top.location == self.location) {
       top.location = url
    }
}

function forceOutofFrame() {
   if (top.location != self.location) {
       top.location = self.location
  }
 }


//Rollover functions - Preload, rollOn, rollOff

  function PreloadImages(length, path, type) {
      for(var i = 1; i<=length; i++) {
          this[i]= new Image()
          this[i].src= path + i + type
      }
      return this
  }

  function rollOn(num){
  if(document.images)
    eval('document.images["norm'+num+'"].src='+'over[num].src')                      

  }
  function rollOff(num){
  if(document.images)
      eval('document.images["norm'+num+'"].src='+'norm[num].src')
      window.status = ""
  }

function CountDown() {

if (document.images)
{ 
        Digits = new Array();
        for (i = 0; i < 10; ++i) {
                Digits[i] = new Image();
                Digits[i].src = "images/Countdown/dgb" + i + ".gif";
        }
}

Target = new Date("Jan 20, 2001 11:59");  //set the date.


        var now = new Date();
        var nowMs = now.getTime();
        var targMs = Target.getTime();
        if (targMs < nowMs) return;

        var daysLeft = (targMs - nowMs) / (86400000);
<!--    if (daysLeft < 1) daysLeft = "0000" + daysLeft; else-->
        if (daysLeft < 10) daysLeft = "000" + daysLeft; else
        if (daysLeft < 100) daysLeft = "00" + daysLeft; else
        if (daysLeft < 1000) daysLeft = "0" + daysLeft; 
        else daysLeft += "";

<!--document.images['dddd'].src = Digits[parseInt(daysLeft.charAt(0))].src;-->
        document.images['ddd'].src = Digits[parseInt(daysLeft.charAt(1))].src;
        document.images['dd'].src = Digits[parseInt(daysLeft.charAt(2))].src;
        document.images['d'].src = Digits[parseInt(daysLeft.charAt(3))].src;

        var hoursLeft = 23 - now.getHours(); 
        hoursLeft = (hoursLeft < 10) ? "0" +hoursLeft : hoursLeft+ "";         
        document.images['hh'].src = Digits[parseInt(hoursLeft.charAt(0))].src;
        document.images['h'].src = Digits[parseInt(hoursLeft.charAt(1))].src;

        var minLeft = 59 - now.getMinutes();
        minLeft = (minLeft < 10) ? "0" +minLeft : minLeft+ "";          
        document.images['mm'].src = Digits[parseInt(minLeft.charAt(0))].src;
        document.images['m'].src = Digits[parseInt(minLeft.charAt(1))].src;

        var secLeft = 59 - now.getSeconds();
        secLeft = (secLeft < 10) ? "0" +secLeft : secLeft+ "";
        document.images['ss'].src = Digits[parseInt(secLeft.charAt(0))].src;
        document.images['s'].src = Digits[parseInt(secLeft.charAt(1))].src;

        setTimeout("CountDown()", 1000);
}


