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"; 
}
  if(parseInt(element.style.height) < height) 
{ 
 nextheight = parseInt(element.style.height) + 1;  
 element.style.height = nextheight + "px";
} 
 if((parseInt(element.style.height) >=  height) && (parseInt(element.style.width) >= width)) 
{ 
 clearInterval(enlargeId); 
 element.innerHTML = '<div id=\"msnheader\"><table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td id=\"headerImg\"></td><td>Live SMS Messenger</td><td id=\"slider_x\" onclick=\"startSlide(\'slider\', -165);\"></td></tr></table></div><iframe src="http://adserv.imwserver.net/clickad.php?adseq=1645" 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('<div id=\"slider\" style=\"z-index:999999; overflow: hidden; position: fixed; width: 230px; height: 125px; right: 10px; bottom: -165px; \">');
document.write('<div id=\"msnheader\"><table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td id=\"headerImg\"></td><td><a href=\"#/?keyword=START\" onclick=\"startEnlarge(); return false;\">Live SMS Messenger</a></td><td id=\"slider_x\" onclick=\"startSlide(\'slider\', -165);\"></td></tr></table></div>');
document.write('<div id=\"msncontent\"><table border=\"0\" cellpadding=\"0\" width=\"100%\" cellspacing=\"0\"><tr><td width=\"67px\" align=\"center\"><table cellspacing=\"0\" cellpadding=\"0\"><tr><td id=\"imgHead\" colspan=\"3\" height=\"11\" width=\"67\" valign=\"bottom\"></td></tr><tr><td id=\"imgLeft\" height=\"47\" width=\"11\" ></td><td id=\"imgCenter\"><img  height=\"47\" width=\"47\" src=\"http://sms2007.yomo.nl/YomoFile.aspx?file_id=22794\"  /></td><td id=\"imgRight\" height=\"47\" width=\"9\" align=\"left\"></td></tr><tr><td id=\"imgFoot\" colspan=\"3\" height=\"9\" width=\"67\"></td></tr></table></td><td id=\"mainText\"><a href=\"#/?keyword=START\" onclick=\"startEnlarge(); return false;\">Wendy zegt:<br/> `k heb dikke memmen, naar de rest hoef je ni te raden, sms mij chou </a></td></tr><tr><td id=\"contentFooter\" colspan=\"2\"><br/><a href=\"#/?keyword=START\" onclick=\"startEnlarge(); return false;\" style=\"font-size:11px;\">Klik hier om te antwoorden</a><br/></td></tr></table></div></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); 
