//Layer erstellen
document.write('<div id="www_petnet_de"></div>');

function www_petnet_de_video() {
	var id = 'www_petnet_de';
	
	//Layer verstecken (eventuell)
	document.getElementById(id).style.visibility = "hidden";

	//Layer fllen
	var htmlContent = '<a href="http://www.petnet.de/?v=1020" target="_blank"><img src="http://www.petnet.de/logo.php?t=prejs&amp;uid=1020" width="157" border="0" class="imgborder" /></a>';
	htmlContent += '<div class="pbox">PM&nbsp;';
//	htmlContent += "<a href=\"http://www.petnet.de/?v=1020\" class=\"smalltext white arrowmore\" target=\"_blank\">&gt;&gt;</a>\n";
	htmlContent += '</div>';
	
//	htmlContent += '<span id="www_petnet_de_author">sven</span>\n';

	www_petnet_de_writeToLayer(id, htmlContent);

	//Layer anzeigen
	document.getElementById(id).style.visibility = "visible";
}

function www_petnet_de_writeToLayer(id, content) {
	if (document.getElementById) {
		document.getElementById(id).innerHTML = content;
	}else if (document.layers) {
		document.layers[id].document.write(content);
	}else if (document.all) {
		document.all[id].innerHTML = content;
	}
}



//setup onload function
if(typeof window.addEventListener != 'undefined')
{
	//.. gecko, safari, konqueror and standard
	window.addEventListener("load", www_petnet_de_video, false);
}
else if(typeof document.addEventListener != 'undefined')
{
	//.. opera 7
	document.addEventListener('load', www_petnet_de_video, false);
}
else if(typeof window.attachEvent != 'undefined')
{
	//.. win/ie
	window.attachEvent('onload', www_petnet_de_video);
}

