	 var lyname = 'Tattoo Vorlagen';
	 var lydest = 'http://www.partner-tipp.de/ads/tattoo/';
	 
	 var spElement = new Array();

	 function spGetTopElement()
 	  {
 		thebody = document.getElementsByTagName('div')
 		if(thebody.length > 0) return document;
 		else return document.parentElement;
 		}

	 function spFetchElement(id)
	  {
		mainWindow = spGetTopElement()
		if(spElement[id]) return spElement[id]
		if(document.getElementById) spElement[id] = mainWindow.getElementById(id)
		else if (document.all) spElement[id] = mainWindow.all[id]
		else if (document.layers) spElement[id] = mainWindow.layers[id]
		return spElement[id]
		}

	 function spBookmark(lyname,lydest)
	  {
		var ua = navigator.userAgent.toLowerCase();
		if((ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1)) window.external.AddFavorite(lydest,lyname);
		else if(ua.indexOf("opera") != -1) alert(unescape('Opera unterst%FCtzt diese Funktion leider nicht. Klicken Sie auf \r\n\r\n"Seite im neuen Fenster %F6ffnen" \r\n\r\nBenutzen Sie danach Strg + T, um die Seite in Ihren Favoriten aufzunehmen.'));
		else if(ua.indexOf("gecko") != -1) alert(unescape('Mozilla/Firefox unterst%FCtzt diese Funktion leider nicht. Klicken Sie auf \r\n\r\n\"Seite im neuen Fenster %F6ffnen\" \r\n\r\nBenutzen Sie danach Strg + D, um die Seite in Ihren Lesezeichen aufzunehmen.'));
		else alert(unescape('Wir konnten Ihren Browser nicht genau bestimmen. Klicken Sie auf \r\n\r\n\"Seite im neuen Fenster %F6ffnen\"\r\n\r\n und speichern Sie die Seite nach der Anleitung Ihres Browserherstellers.'));
		return false;
		}

	 function spSetHome(lydest)
	  {
		var ua = navigator.userAgent.toLowerCase();
		if((ua.indexOf("msie") != -1) && (ua.indexOf("opera") == -1) && (ua.indexOf("webtv") == -1))
		 {
		 document.body.style.behavior = "url(#default#homepage)";
		 document.body.setHomePage(lydest);
		 }
		else if(ua.indexOf("opera") != -1) alert(unescape('Opera unterst%FCtzt diese Funktion leider nicht. Bitte legen Sie die Seite manuell als Startseite fest.'));
		else if(ua.indexOf("gecko") != -1) alert(unescape('Mozilla/Firefox unterst%FCtzt diese Funktion leider nicht. Bitte legen Sie die Seite manuell als Startseite fest.'));
		else alert(unescape('Wir konnten Ihren Browser nicht genau bestimmen. unterst%FCtzt diese Funktion leider nicht. Bitte legen Sie die Seite manuell als Startseite fest.'));
		return false;
		}

	 function spLayerMove()
	  {
		layer_rand.style.display = 'block';
		layer_rand.style.left = spGetLeft(layer_rand) + 200;
		if((spGetLeft(layer_rand) + 200) < '11') setTimeout("spLayerMove()", 50);
		}

	function spGetLeft(spl)
	 {
	 if (spl.offsetParent) return (spl.offsetLeft + spGetLeft(spl.offsetParent));
	 else return (spl.offsetLeft);
	 }

	function spGetTop(spl)
	 {
	 if (spl.offsetParent) return (spl.offsetTop + spGetTop(spl.offsetParent));
	 else return (spl.offsetTop);
	 }

	function spLayerHide(session,lydest)
	 {
	 spHideAnimation('10');
	 if(session != 'fresh') return false;
	 else iframe.location.href = lydest;
	 return false;
	 }

	function spLayerHideMax(session,lydest)
	 {
	 spHideAnimation('10');
	 if(session != 'fresh') return false;
	 else
	  {
		open(lydest, "fresh", "resizable=yes, scrollbars=yes, menubar=yes, toolbar=yes, status=yes, location=yes");
		iframe.location.href = lydest;
		return false;
		}
	 }

	function spOverImg(img)
	 {
	 var id = spFetchElement(img);
	 id.src = 'http://www.partner-tipp.de/ads/layer/'+img+'_o.gif';
	 }

	function spOutImg(img)
	 {
	 var id = spFetchElement(img);
	 id.src = 'http://www.partner-tipp.de/ads/layer/'+img+'.gif';
	 }

	function spHideAnimation(left)
	 {
	 if(left > -800)
	  {
		left -= 200;
		layer_rand.style.left = left;
		setTimeout("spHideAnimation(" + left + ")", 50);
		}
	 else
	  {
		layer_rand.style.display = 'none';
		layer_rand.style.left = '-2000';
		layer_rand.style.top = '-2000';
		}
	 }

	function spSetOpacity(obj, opacity)
	 {
	 opacity = (opacity == 100)?99.999:opacity;
	 obj.style.filter = "alpha(opacity:"+opacity+")";
	 obj.style.khtmlopacity = opacity/100;
	 obj.style.mozopacity = opacity/100;
	 obj.style.opacity = opacity/100;
	 obj.style.operacity = opacity/100;
	 }

	function spStartAd()
	 {
	 spUpdate();
	 layer_rand.style.left = '-990';
	 setTimeout('spLayerMove()', 40000);
	 }

	function spUpdate()
	 {
	 if(document.all)
	  {
		if (document.documentElement && document.documentElement.scrollTop) spPos = document.documentElement.scrollTop
		else if (document.body) spPos = document.body.scrollTop
		layer_rand.style.top = spPos + 10 + 'px';
		setTimeout("spUpdate()", 1);
		}
	 else layer_rand.style.position = 'fixed';
	 }
	 
	if(screen.availWidth > 950) width = '950';
	else width = '910';

	document.open();
	document.write('<div id="fresh" style="position: absolute; display: none; width: ' + width + 'px; top: 10px; left: 10px; border: 1px solid black; text-align: center; background-color: white; z-index: 1000;"><div id="bar_up" style="background: url(\'http://www.partner-tipp.de/ads/layer/bar.gif\'); width: 100%; height: 21px; padding: 0px; border-bottom: 1px solid black; z-index: 1001; overflow: hidden;"><span style="float: left; margin-top: 3px; margin-left: 3px;"><img src="http://www.partner-tipp.de/ads/layer/barb.gif" id="barb" alt="" style="margin-right: 3px; border: 0; z-index: 1002;" /></span><span style="float: left; margin-top: 2px; margin-left: 3px;"><a href="#" onclick="return spLayerHideMax(\'fresh\',lydest)" style="position: static; font: 10pt verdana, arial, helvetica, sans-serif; color: #000; text-decoration: none;" onmouseover="spOverImg(\'barb\')" onmouseout="spOutImg(\'barb\')">' + lyname + '</a></span><span style="float: right; margin-top: 3px; margin-right: 3px;"><a href="#" onclick="spSetHome(lydest); return false;" style="position: static; font: 10pt verdana, arial, helvetica, sans-serif; color: #000; text-decoration: none;"><img src="http://www.partner-tipp.de/ads/layer/bar_home.gif" id="bar_home" alt="Seite beim nächsten Start aufrufen" title="Seite beim nächsten Start aufrufen" onmouseover="spOverImg(this.id)" onmouseout="spOutImg(this.id)" style="margin-right: 3px; border: 0; z-index: 1002;" /></a><a href="#" onclick="spBookmark(lyname,lydest); return false;" style="position: static; font: 10pt verdana, arial, helvetica, sans-serif; color: #000; text-decoration: none;"><img src="http://www.partner-tipp.de/ads/layer/bar_book.gif" id="bar_book" alt="Seite für später merken" title="Seite für später merken" onmouseover="spOverImg(this.id)" onmouseout="spOutImg(this.id)" style="margin-right: 3px; border: 0; z-index: 1002;" /></a><a href="#" onclick="return spLayerHideMax(\'fresh\',lydest)" style="position: static;"><img src="http://www.partner-tipp.de/ads/layer/barm.gif" id="barm" alt="maximieren" title="maximieren" onmouseover="spOverImg(this.id)" onmouseout="spOutImg(this.id)" style="margin-right: 3px; border: 0; z-index: 1002;" /></a><a href="#" onclick="spLayerHide(\'fresh\',lydest); return false;" style="position: static;"><img src="http://www.partner-tipp.de/ads/layer/barx.gif" id="barx" alt="schließen" title="schließen" onmouseover="spOverImg(this.id)" onmouseout="spOutImg(this.id)" style="border: 0; z-index: 1003;" /></a></span></div><div id="bar_main" style="width: 100%; height: 445px; padding: 0px; border: 0; z-index: 1000;"><iframe name="iframe" id="iframe" src="' + lydest + '" frameborder="0" style="width: 100%; border: 0; height: 100%; z-index: 1004;"></iframe></div><div id="bar_down" style="background: url(\'http://www.partner-tipp.de/ads/layer/bar.gif\'); width: 100%; height: 21px; padding: 0px; border-top: 1px solid black; z-index: 1001; overflow: hidden;"></div></div>');
	 document.close();
	 var layer_rand = spFetchElement('fresh');
	 spStartAd()