document.write('<style type="text/css"> #girlsBar{ position:absolute; border: 0px; visibility: hidden; z-index: 100; width: 210px; } #girlsBar a { font-size: 14px; font-weight: bold;}  </style>');
var persistcloseGirl=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var startXGirl = 0 //set x offset of bar in pixels
var startYGirl = 40 //set y offset of bar in pixels
var verticalposGirl="frombottom" //enter "fromtop" or "frombottom"

document.write('<div id="girlsBar">'
	+'<div style="padding: 0px 0px; width: 250px; height: 355px; background-color: #303030;">'
	+'<div style="border: 1px solid #303030; border-top: none; background-color: #303030;">'
	+'<div style="background: url(/img/bg1.jpg) top left repeat-x; width: 250px; text-align: right;">'
	+'<a href="#" onclick="closebarGirl(); return false;"><img src="/img/close1.jpg"></a>'
	+'</div>'
	+'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="250" height="355">'
	+'<param name="movie" value="/positiv.swf">'
	+'<param name="menu" value="false">'
	+'<param name="quality" value="high">'
	+'<embed src="/positiv.swf" menu="false" quality="high" width="250" height="355" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">'
	+'</object>'
	+'</div>'
	+'</div>'
	+'</div>');


function iecompattestGirl(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function getCookieGirl(Name) {
	var search = Name + "="
	var returnvalue = "";
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		if (offset != -1) {
			offset += search.length
			end = document.cookie.indexOf(";", offset);
			if (end == -1) end = document.cookie.length;
			returnvalue=unescape(document.cookie.substring(offset, end))
		}
	}
	return returnvalue;
}

function closebarGirl(){
	if (persistcloseGirl)
		document.cookie="remainclosedGirl=1"
	document.getElementById("girlsBar").style.visibility="hidden"
}

function staticbarGirl(){
	if(!document.getElementById("girlsBar")) return;
	barheight=document.getElementById("girlsBar").offsetHeight
	barwidth=document.getElementById("girlsBar").offsetWidth
	var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
	var d = document;
	function ml(id){
		var el=d.getElementById(id);
		if (!persistcloseGirl || persistcloseGirl && getCookieGirl("remainclosedGirl")=="")
			el.style.visibility="visible"
		if(d.layers) el.style=el;
		el.sP=function(x,y){
			this.style.left=x+"px";
			this.style.top=y+"px";
		};
		el.x =  startXGirl;
//		el.x = ns ? pageXOffset + innerWidth - barwidth -20 : iecompattestGirl().scrollLeft + iecompattestGirl().clientWidth-barwidth-5;
		el.x = ns ? pageXOffset/2 + innerWidth/2 - barwidth/2 -20 : iecompattestGirl().scrollLeft/2 + iecompattestGirl().clientWidth/2-barwidth/2-5;
//		el.x = 0;
		
		if (verticalposGirl=="fromtop") {
			el.y = startYGirl;
		}
		else{
//			el.y = ns ? pageYOffset + innerHeight : iecompattestGirl().scrollTop + iecompattestGirl().clientHeight;
			el.y = ns ? pageYOffset/2 + innerHeight/2 : iecompattestGirl().scrollTop/2 + iecompattestGirl().clientHeight/2;
			el.y -= startYGirl;
		}
		return el;
	}
	window.stayTopLeft=function(){
		if (verticalposGirl=="fromtop"){
			var pY = ns ? pageYOffset : iecompattestGirl().scrollTop;
			ftlObj.y += (pY + startYGirl - ftlObj.y)/8;
		}
		else{
			var pY = ns ? pageYOffset + innerHeight - barheight: iecompattestGirl().scrollTop + iecompattestGirl().clientHeight - barheight;
			ftlObj.y += (pY - startYGirl - ftlObj.y)/8;
		}
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	ftlObj = ml("girlsBar");
	stayTopLeft();
}
if (window.addEventListener) {
	window.addEventListener("load", staticbarGirl, false)
	window.addEventListener("onresize", staticbarGirl, false)
}
else if (window.attachEvent) {
	window.attachEvent("onload", staticbarGirl)
	window.attachEvent("onresize", staticbarGirl)
}
else if (document.getElementById) {
	window.onload=staticbarGirl
	window.onresize=staticbarGirl
}

