﻿var slideIntervalId = null;
function startSlide(id, left)
	{
	clearInterval(slideIntervalId);
	slideIntervalId = setInterval("slide('" + id + "', " + left + ");", 1);
	}

function slide(id, left)
	{
	var element = document.getElementById(id);
	var nextSize;
	if(parseInt(element.style.bottom) == left)
		{
		clearInterval(slideIntervalId);
		return;
		}
	else if(parseInt(element.style.bottom) > left)
		{
		nextSize = parseInt(element.style.bottom) - 3;
		}
	else
		{
		nextSize = parseInt(element.style.bottom) + 3;
		}
	element.style.bottom = nextSize + "px";
	}


var enlargeId = null;
function startEnlarge()
	{
	clearInterval(enlargeId);
	enlargeId = setInterval("enlargeit(\"slider\",500,156);", 1);
	}

	
function enlargeit(id, width, height)
	{
	var element = document.getElementById(id);
	var nextwidth;
	var nextheight;
	
	if(parseInt(element.style.width) < width)
		{
		nextwidth = parseInt(element.style.width) + 15;
		element.style.width = nextwidth + "px";
		//parseInt(element.style.left) - 15;
		}

	if(parseInt(element.style.height) < height)
		{
		nextheight = parseInt(element.style.height) + 1;
		//parseInt(element.style.bottom) - 1;
		element.style.height = nextheight + "px";
		}

	
	
	if((parseInt(element.style.height) >=  height) && (parseInt(element.style.width) >= width))
		{
		clearInterval(enlargeId);
		element.innerHTML = '<div style="float:right; width:16px; height:19px; top:13px; cursor: pointer;" onclick="startSlide(\'slider\', -165);">x</div><div style="margin-bottom:3px; margin-top:3px; font-weight:bold; text-align:left; color:black;" id="msnheader"><span style="color:black; font-weight:bold;"><strong>Stuur Lammetje een GRATIS smsje!</strong></span><span style="color:red; font-weight:bold;">&nbsp;&nbsp;&nbsp;&nbsp;<a style="color: red; font-weight: bold;" href="http://www.postcodedate.nl/?keyword=ifstart">klik hier voor meer meiden!</a></div><iframe src="http://flirtingsms.wise-guys.nl/SMS/GeoIPWW_HOR/type.php?active=0&affiliatecode=&keyword=ifstart&info=&cat=3&width=468&height=150&tdbgcolor=FFFFFF&bgcolor=FFFFFF&bgimg=&bordercolor=000000&txtcolor=000000&linkcolor=FF0000&fontsize=12&linksize=14&border=0&cp=0&cs=0&defaultcc=nl&nude=0&tawidth=341&taheight=50&cc=NL&to_number=6010&costs=%3Cfont+size%3D%222%22%3E1%2C5E+per+ontvangen+bericht%2C+max+2.+Stoppen%3A+stuur+STOP%2C+mobdesk.com%3C%2Ffont%3E+%3Csmall%3Efictief+profiel+geen+date+mogelijk%3C%2Fsmall%3E&prefix=06&profile[0][id]=2567&profile[0][naam]=Lammetje&profile[0][plaats]=Maasland&profile[0][postcode]=&profile[0][leeftijd]=24&profile[0][country]=nl&profile[0][nude]=1&profile[0][omschrijving]=Ben+jij+die+wolf+in+schaapskleren+en+vreet+je+me+op%3F+Kom+en+leef+je+uit...&profile[0][latitude]=51.933300&profile[0][longitude]=4.266700&profile[0][gender]=v&profile[0][img]=2567.jpg&profile[0][userplaats]=Den+Haag&profile[0][userpostcode]=" allowTransparency="true" width="490" height="134" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe><br />';
		element.style.width = width + "px";
		element.style.height = height + "px";
		}
	}


document.write('<style type=\"text/css\" media=\"screen\"> #slider { font-family: Arial, Helvetica, sans-serif; font-size:12px; } #slider a:link 	{ text-decoration:none; color: black; } </style>');
document.write('<div id=\"slider\" style=\"z-index:999999; padding: 2px; margin:2px; border:1px #d20f01 solid; border-spacing:2px; overflow: hidden; position: fixed; right: 10px; bottom: -165px; width: 210px; height: 150px; background-image: url(/images/top_popup.jpg); text-align: justify;\">');
document.write('<div style=\"float:right; width:16px; height:19px; top:10px; cursor: pointer; " onclick=\"startSlide(\'slider\', -165);\">x</div>');
document.write('<iframe src="/popup.aspx" allowTransparency="true" width="490" height="134" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe><br />');
document.write('</div>');
document.write('<!--[if lt IE 7]><style type=\"text/css\" media=\"screen\">#slider { display:none; visability:hidden; }</style><![endif]-->');
//setTimeout("startSlide('slider', 6)", 2000);
setTimeout("startSlide('slider', -165);", 10000);
                                           