// JavaScript Document


//-->
timeout =5; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds


function Start(URL, WIDTH, HEIGHT, newText) {
windowprops = "left=10,top=10,width=" + (WIDTH+10) + ",height=" + (HEIGHT+10);
text = "<html><head><title>Lakeview Baseball Club (Rooftop) - Shop</title></head><BODY BGCOLOR='#F0F0F7' LEFTMARGIN='0' TOPMARGIN='0' MARGINHEIGHT='0' MARGINWIDTH='0' MARGINHEIGHT='0' MARGINWIDTH='0'";

if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";

text += "><div align='center'><br><img src='" + URL + "' border='1'>";

if (timeout != 0) text +="<br><font face='Arial, Helvetica, Verdana, sans-serif' size='4'>" + newText + "</font>";
text += "<br><font face='Arial, Helvetica, Verdana, sans-serif' size='-1'>Window <a href='' onClick='self.close()'>closes</a> after " + timeout + " seconds.</font>";
text += "</div></body></html>";

preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}
