
	
	var actualwidth;
	var actualheight;

	function windowwidth()
	{
		if (window.innerWidth)
			return window.innerWidth;
		else if (document.body && document.body.offsetWidth)
			return document.body.offsetWidth;
		else
			return 0;
	}

	function windowheight()
	{
		if (window.innerHeight)
			return window.innerHeight;
		else if (document.body && document.body.offsetHeight)
			return document.body.offsetHeight;
		else
			return 0;
	}

	function windowreload()
	{
		if (actualwidth != windowwidth() || actualheight != windowheight())
			location.href = location.href;
	}

	function calculate_banner()
	{
		if(!window.actualwitdth && window.innerWidth)
		{
			window.onresize = windowreload;
			actualwidth = windowwidth();
			actualheight = windowheight();
		}
		else if(!window.actualwidth && document.body && document.body.offsetWidth)
		{
			window.onresize = windowreload;
			actualwidth = windowwidth();
			actualheight = windowheight();
		}
	}

	function cshipbanner()
	{
		if ((navigator.appName == "Netscape") && (navigator.appVersion < "5"))
		{
			;
		}
		else
		{
			if (navigator.appName != "Microsoft Internet Explorer")
			{
				var leftwidth = window.innerWidth;
				leftwidth = leftwidth * 0.57 - 14;
			}
			else
			{
				leftwidth = document.body.offsetWidth;
				leftwidth = leftwidth * 0.57 - 16;
			}

			leftwidth = Math.round(leftwidth);
			document.open();
			document.write("<table cellpadding='0' cellspacing='0'><tr><td nowrap><br><br>");
			document.write("<div style='position:relative; width:" + leftwidth + "px; height:80px; overflow:hidden;'>");

			var totalwidth = 0;
			var i = 0

			var allimgnames = new Array ("images/banner/hk-comic-1.jpg",
									"images/banner/hk-comic-2.jpg",
									"images/banner/hk-comic-3.jpg",
									".linked/pics/popup.png");

			var allimgalts = new Array ("Oh Mann, immer dieser dicke Bauch. Schwangerschaften sind nicht auszuhalten.",
									"Ich platze fast. D&uuml;rfen wir f&uuml;r dich beten...",
									"...damit du vom S&uuml;ssen lassen kannst? Nein, bitte lasst mir diesen Spass!",
									"&Ouml;ffnet ein neues Fenster");

			var allimgwidths = new Array ("85",
									"84",
									"85",
									"13");

			var allimglinks = new Array ("http://uwe-disch.de/images/hk-comic.jpg",
									"http://uwe-disch.de/images/hk-comic.jpg",
									"http://uwe-disch.de/images/hk-comic.jpg",
									"http://uwe-disch.de/images/hk-comic.jpg");

			while (totalwidth < leftwidth)
			{
				totalwidth += Math.round(allimgwidths[i]);
				if (i == 0) {
					document.write("<a href='" + allimglinks[i] + "' target='_blank'><img src='" + allimgnames[i] + "' border='0' alt='" + allimgalts[i] + "' title='" + allimgalts[i] + "'><font style='font-size:9px'>&nbsp;</font></a>");
				} else {
					if (i == 3)
						document.write("<img src='" + allimgnames[i] + "' border='0' alt='" + allimgalts[i] + "' title='" + allimgalts[i] + "'>&nbsp;&nbsp;&nbsp;");
					else
						document.write("<a href='" + allimglinks[i] + "' target='_blank'><img src='" + allimgnames[i] + "' border='0' alt='" + allimgalts[i] + "' title='" + allimgalts[i] + "'>&nbsp;</a>");
				}
				i++;
				if (i == 4) i = 0;
			}

			document.write("<\/div><\/td><\/tr><\/table>");
			document.close();
		}
	}

