/* Einmittung für alle Screengroeßen, Frameversion */


var frameURLs = new Array(1) 
frameURLs[0] = "http://www.girlpix.org/werbung/blinddate.htm";


var frameTitles = new Array(1)
frameTitles[0] = "";


var posLeft = -110; // von Mitte aus (Gesamt 217)
var posTop = 150;   // absolut
var bgColor = "black";    // Hintergrundfarbe
var fontColor = "white";  // Schriftfarbe
var fontSize = "8pt";
var Delay = 900;         // Verzögerung in Millisekunden
var closeDelay = 2;       // Close-Anzeige nach Sekunden
var closeSymbol = "[x]";

var frameID = 0;

var ie = document.all&&!window.opera?1:0;
var dom = document.getElementById?1:0;
var ns4 = document.layers?1:0;


function BoxTimer(sec)
{
	sec++;

	if (sec >= closeDelay) {
	  if (ie) document.all.adboxclose.innerHTML = closeSymbol;
	  else if (dom) document.getElementById("adboxclose").innerHTML = closeSymbol;
	  else if (ns4) document.adboxclose.innerHTML = closeSymbol;
	  setTimeout("BoxTimer("+sec+")", 1000);
	}
	else setTimeout("BoxTimer("+sec+")", 1000);
}

function BoxInit()
{
	if (ie)
	{
		document.all.adbox.style.visibility='visible';
		document.all.adbox.style.left = document.body.clientWidth / 2 + posLeft;
		if (document.documentElement && document.documentElement.clientHeight)
			document.all.adbox.style.top = posTop;
		else
			document.all.adbox.style.top = posTop;
	}
	else if (dom)
	{
		document.getElementById("adbox").style.visibility='visible';
		document.getElementById("adbox").style.left = document.body.clientWidth / 2 + posLeft +'px';
		document.getElementById("adbox").style.top = posTop +'px';
	}
	else if (ns4)
	{
		document.adbox.visibility='visible';
		document.adbox.left = window.innerWidth / 2 + posLeft;
		document.adbox.top = posTop;
	}
	BoxTimer(0);
}

function BoxClose()
{
	if (ie)
		document.all.adbox.style.visibility='hidden';
	else if (dom)
		document.getElementById("adbox").style.visibility='hidden';
	else if (ns4)
		document.adbox.visibility='hidden';

}


document.writeln('<div id="adbox" style="position:absolute; visibility:hidden; z-index:1000;">');
document.writeln('<table cellpadding="0" cellspacing="1" bgcolor="'+bgColor+'" width=217 class="werbung">');
document.writeln('<tr>');
document.writeln('<td><font style="font-family: tahoma, arial; font-size:'+fontSize+';color:'+fontColor+'"><b>&nbsp;'+frameTitles[frameID]+'</b></td>');
document.writeln('<td align="right"><a href="javascript:;" onclick="javascript:BoxClose()" title="Schließen" style="font-family: tahoma, arial; font-size:'+fontSize+';color:'+fontColor+';text-decoration:none"><b><span id="adboxclose"></span></b></a></td>');
document.writeln('</tr>');
document.writeln('<tr>');
document.writeln('<td colspan="2"><iframe src="'+frameURLs[frameID]+'" width=215 height=313  frameborder="No"></iframe></td>');
document.writeln('</tr>');
document.writeln('</table>');
document.writeln('</div>');

setTimeout("BoxInit();", Delay);
