// JavaScript Document

closetime = 0; 

function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=0,top=0,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}

function doPopup() {
url = "NightTrainPlayer/Player.html";
width = 220;  // width of window in pixels
height = 65; // height of window in pixels
delay = 5;    // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*100);
}