/* (1) functions.js */
browser="ko";
n=navigator.appName;
v=parseInt(navigator.appVersion);
if ((n=="Netscape")&&(v>=3) || (n=="Microsoft Internet Explorer")&&(v>=4)) {
	browser="ok";
}
function wechsel(BILD,CMD) {
	if (browser=="ok") {
		self.document.images[BILD].src="http://bilder.webpool.de/_img/small/"+BILD+"_"+CMD+".gif";
	}
}
function an(BILD) {
	if (browser=="ok") {
		self.document.images[BILD].src="http://bilder.webpool.de/_img/we_menu_knopf_over.gif";
	}
}
function aus(BILD) {
	if (browser=="ok") {
		self.document.images[BILD].src="http://bilder.webpool.de/_img/we_menu_knopf_out.gif";
	}
}
function wechselz(BILD,CMD) {
	if (browser=="ok") {
		if(CMD!="")
			CMD="_"+CMD;
		self.document.images[BILD].src="http://bilder.webpool.de/model/bilder/styling/"+BILD+CMD+".jpg";
	}
}
function wechselt(BILD,CMD) {
	if (browser=="ok") {
		if(CMD!="")
			CMD="_"+CMD;
		self.document.images[BILD].src="http://bilder.webpool.de/model/bilder/Vera-booking/"+BILD+CMD+".jpg";
	}
}
function OpenWindow(URL,wdwName,w,h,x,y) {
	if (!wdwName) {wdwName = "msgWindow";}
	if (!x) {x = 10;}
	if (!y) {y = 10;}
	if (!w) {w = 475;}
	if (!h) {h = 440;}
	var param = "screenX=" +x+ ",screenY=" +y+ ",width=" +w+ ",height=" +h+ ",resizable=yes,scrollbars=yes";
	var myWindow = window.open(URL,wdwName,param);
	if (!myWindow.opener) myWindow.opener = self;		
	if (myWindow.focus != null) myWindow.focus();
}
function owallpaper(bgcolor)
{
	if(bgcolor != "")
	{
		document.getElementById("wtable").style.backgroundColor = bgcolor;
		document.getElementById("tb").style.backgroundColor = bgcolor;
	}
}

function check_owallpaper(bgcolor,adtype)
{
	if(adtype == "wallpaper")
	{
		owallpaper(bgcolor);
		document.getElementById("adsky01").style.padding = '0px';
	}else
	{
		document.getElementById("adbs").style.padding = '1px 0px 1px 0px';
		document.getElementById("adsky").style.padding = '1px';
	}
	start();
}

