function setSubmenu(url) {
	this.parent.submenu.location.replace(url);
}


function openWindow(title, contents, name, width, height, type, text)
{
	leftpos = screen.width - screen.width/2	- width/2;
	toppos = screen.height - screen.height/2 - height/2;
	var options = "toolbar=no,location=no,scrollbars=no,hscroll=no,resizable=no,width=" + width + ",height=" + height +",left=" + leftpos + ",top=" + toppos;
				
	if (type == 'html')
	{
		myNewWindow = window.open(contents,name,options);
	}
	else if (type == 'clothes')
	{
	  myNewWindow = window.open('',name,options);
		myNewWindow.document.write("<html><head><title>" + title + "</title><link rel=stylesheet type='text/css' href=../css/shop.css></link></head><body leftmargin=0 marginwidth=0 topmargin=0 marginheight=0 background=" + contents);
		myNewWindow.document.write("><p><br>&nbsp;&nbsp;" + text + "</p></body></html>");
		myNewWindow.document.close();
	}
	else
	{
		myNewWindow = window.open('',name,options);
		myNewWindow.document.write("<html><head><title>" + title + "</title></head><body leftmargin=0 marginwidth=0 topmargin=0 marginheight=0");
		switch (type)
		{
			case 'pic':	myNewWindow.document.write(" onblur='window.close()'><img src=" + contents + " width=" + width + " height=" + height + "></img>"); break;
			case 'werbung':	myNewWindow.document.write("><img src=" + contents + " width=" + width + " height=" + height + "></img>"); break;
			case 'flash':	myNewWindow.document.write("><embed src=" + contents + " width=" + width + " height=" + height + " type=application/x-shockwave-flash loop=false quality=best play=true></embed>"); break;
			case 'movie':	myNewWindow.document.write("><embed src=" + contents + " width=" + width + " height=" + height + " autoplay=true controller=true loop=false pluginspage=http://www.apple.com/quicktime></embed>"); break;
		}
		myNewWindow.document.write("</body></html>");
		myNewWindow.document.close();
	}
	myNewWindow.focus();
}
