function nothing ()
{}

activateMenu = function(nav) {
	if(document.all && document.getElementById(nav).currentStyle){
		// only MSIE supports document.all
		var navroot = document.getElementById(nav);

		/* Get all the list items within the menu */
		var lis=navroot.getElementsByTagName("LI");
		for(i=0;i<lis.length;i++){
			/* If the LI has another menu level */
			if(lis[i].lastChild.tagName=="UL"){
				/* assign the function to the LI */
				lis[i].onmouseover=function(){
					/* display the inner menu */
					this.lastChild.style.display="block";
				}
				lis[i].onmouseout=function(){
					this.lastChild.style.display="none";
				}
			}
		}
	}
}
window.onload=function(){
	// pass the function the id of the top level UL
	// remove one, when only using one menu
	activateMenu('dmenu');
}

timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL, WIDTH, HEIGHT, PRODUCT) {
windowprops = "left=0,top=0,width=" + (WIDTH+30) + ",height=" + (HEIGHT+30);

text = "<html><head><title>"+ PRODUCT +"</title></head><body onBlur='self.focus()' bgcolor='white'";

if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";

text += "><center><font size=\"2\" face=\"Arial\"><a href=\"javascript:window.close();\">close</a></font><br><br><img src='" + URL + "'>";

if (timeout != 0) text +="";

text += "<br></center></body></html>";

preview = window.open("", "preview", windowprops);
preview.document.open();
preview.document.write(text);
preview.document.close();
}