
	
	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 activitiesbanner()
	{
		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 (".linked/images/thumb/anlege-o.jpg",
									".linked/images/thumb/gateway.jpg",
									".linked/images/thumb/luft-oa.jpg",
									".linked/images/thumb/tp-uart_interface-thumb.jpg",
									".linked/pics/products/inner_small.jpg",
									".linked/images/thumb/eib-driver-thumb.jpg",
									".linked/images/thumb/tauch-oa.jpg",
									".linked/images/thumb/1p001.jpg",
									".linked/images/thumb/einsteckfuehler_thumb.jpg");

			var allimgalts = new Array ("EIB-Pt 100 Anlegesensor 500mm",
									"DISCH Gateway IP&trade;",
									"EIB-Pt 100 Luftkanalsensor 200mm",
									"TP-UART Interface",
									"EIB-Pt 100 Innenansicht (Abbildung &auml;hnlich)",
									"EIB Driver for Linux",
									"EIB-Pt 100 Tauchsensor 100mm",
									"TP-UART Prototype Interface (Abbildung &auml;hnlich)",
									"Pt100-2L Einsteckf&uuml;hler 10 m, mit Bajonettverschluss");

			var allimgwidths = new Array ("80",
									"80",
									"80",
									"80",
									"80",
									"80",
									"80",
									"80",
									"80");

			var allimglinks = new Array ("http://disch-systems.de/EPT100/1A500.html",
									"http://disch-systems.de/DGWIP0/1G001.html",
									"http://disch-systems.de/EPT100/1L200.html",
									"http://disch-systems.de/TPUART/1P002.html",
									"http://disch-systems.de/portal/eib-pt100.html",
									"http://disch-systems.de/EDRV00/1L001.html",
									"http://disch-systems.de/EPT100/1T100.html",
									"http://disch-systems.de/TPUART/2P001.html",
									"http://disch-systems.de/PT0100/1E10K.html");

			while (totalwidth < leftwidth)
			{
				totalwidth += Math.round(allimgwidths[i]);
				document.write("<a href='" + allimglinks[i] + "' target='_blank'><img src='" + allimgnames[i] + "' border='0' height='80' alt='" + allimgalts[i] + "' title='" + allimgalts[i] + "'><img src='.linked/pics/popup.png' style='margin-left:-13px' width='13px' height='11px'></a>&nbsp;");
				i++;
				if (i == 9) i = 0;
			}

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

