if(typeof(track)=="undefined"){
track = 'main';
}

var maintext="<strong>Sabinchen sagt:</strong><br>Hey suesser, willst du Videos und Bilder von Girls sehen ?";
var toptext="Du hast (1) nachricht:";

function rand ( n ){
return ( Math.floor ( Math.random ( ) * n + 1 ) );
}

linkout = new Array();
linkout[1] = 'http://www.geilefreundin.com/index.php?ref='+ref+'&pro='+track+'';
linkout[2] = 'http://www.geilefreundin.com/t2/index.php?ref='+ref+'&pro='+track+'';
var enlace = linkout[1];

listbg = new Array();
listbg[1] = 'http://www.pay4member.com/mtool/images/msn1.gif';
listbg[2] = 'http://www.pay4member.com/mtool/images/skype.gif';
listbg[3] = 'http://www.pay4member.com/mtool/images/facebook.gif';
listbg[4] = 'http://www.pay4member.com/mtool/images/icq1.gif';
var background = listbg[bg];

listgirls = new Array();
listgirls[0] = 'http://www.pay4member.com/mtool/girls/0.jpg';
listgirls[1] = 'http://www.pay4member.com/mtool/girls/1.jpg';
listgirls[2] = 'http://www.pay4member.com/mtool/girls/2.jpg';
listgirls[3] = 'http://www.pay4member.com/mtool/girls/3.jpg';
listgirls[4] = 'http://www.pay4member.com/mtool/girls/4.jpg';
listgirls[5] = 'http://www.pay4member.com/mtool/girls/5.jpg';
listgirls[6] = 'http://www.pay4member.com/mtool/girls/6.jpg';
listgirls[7] = 'http://www.pay4member.com/mtool/girls/7.jpg';
listgirls[8] = 'http://www.pay4member.com/mtool/girls/8.jpg';
listgirls[9] = 'http://www.pay4member.com/mtool/girls/9.jpg';
listgirls[10] = 'http://www.pay4member.com/mtool/girls/10.jpg';
listgirls[11] = 'http://www.pay4member.com/mtool/girls/11.jpg';
listgirls[12] = 'http://www.pay4member.com/mtool/girls/12.jpg';
listgirls[13] = 'http://www.pay4member.com/mtool/girls/13.jpg';
listgirls[14] = 'http://www.pay4member.com/mtool/girls/14.jpg';
listgirls[15] = 'http://www.pay4member.com/mtool/girls/15.jpg';
var imgad = listgirls[rand(16)-1];


function txtTitle()
{
	document.write(toptext);
}

function txtMain()
{
	document.write('<a href="'+enlace+'" target="_blank">'+maintext+'</a>');
}

function txtImg()
{
	document.write('<a href="'+enlace+'" target="_blank"><img src="'+imgad+'" border="0"></a>');
}

function closethis(id)
{
	var divPath = document.getElementById(id);
	divPath.style.display='none';
}

function moveIt(id,x)
{
	var supported = (document.getElementById);
	if(!supported) return;
	var divPath = document.getElementById(id);
	var currPos = parseInt(divPath.style.bottom);
	divPath.style.display='block';
	if(currPos < x)
	{
		currPos += 5;
		divPath.style.bottom = currPos + "px";
		setTimeout("moveIt('" + id + "'," + x + ")",15);
	}
}
document.write('<style type="text/css">');
document.write('#floatyContent{z-index:15000; right:2px; font-family:arial; font-size:12px; bottom:-2px; position:fixed; padding:0px; width:201px; height:116px; background-color:#fefbf0; background-image:url("'+ background +'");}');
document.write('#floatyContent a{color:black;text-decoration:none;}');
document.write('</style> ');
document.write('<!--[if lt IE 7]>');
document.write('<style>');
document.write('#floatyContent {position: absolute; top: expression(eval(document.compatMode && document.compatMode==\'CSS1Compat\') ? documentElement.scrollTop+(documentElement.clientHeight-this.clientHeight) : document.body.scrollTop+(document.body.clientHeight-this.clientHeight));}');
document.write('body {background-image:url(blank.gif); background-attachment: fixed;}');
document.write('</style>');
document.write('<![endif]-->');
document.write('<!--[if gte IE 7]>');
document.write('<style>');
document.write('#floatyContent {');
document.write('position: expression(eval(document.compatMode && document.compatMode==\'CSS1Compat\') ? \'fixed\' : \'absolute\');');
document.write('top: expression(eval(document.compatMode && document.compatMode==\'CSS1Compat\') ? null : document.body.scrollTop+(document.body.clientHeight-this.clientHeight));');
document.write('}');
document.write('</style>');
document.write('<![endif]-->');
document.write('<div id="floatyContent" style="bottom: 0px; display: block;">');
document.write('<div style="position: absolute; top: 3px; right: 5px;"><a target="_blank" href="javascript:linkout;" onclick="closethis(\'floatyContent\'); return false;" style="color: gray; text-decoration: none;"><b>x</b></a></div>');
document.write('<div style="padding: 6px 6px 6px 25px; text-align: left; font-family: verdana; font-size: 10px;"><b style="color:#000;"><script>txtTitle();</script></b></div>');
document.write('<div style="float: left; position: absolute; left: 9px; top: 33px; width: 47px; height: 47px;"><script>txtImg();</script></div>');
document.write('<div style="padding: 5px 13px; float: right; text-align: left; width: 120px; font-family: verdana; font-size: 11px;"><script>txtMain();</script></div>');
document.write('<div style="clear: both;"></div>');
document.write('</div>');
moveIt('floatyContent',-4);