// Drop-in content box- By Dynamic Drive
// For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
// This credit MUST stay intact for use

var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var calunits=document.layers? "" : "px"

var bouncelimit=32 //(must be divisible by 8)
var direction="up"

function initbox(){
if (!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
crossobj.top=scroll_top-250+calunits
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",50)
}

function dropin(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<100+scroll_top)
crossobj.top=parseInt(crossobj.top)+40+calunits
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",50)
}
}

function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}

function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}

function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}


window.onload=initbox


<!--
function writeJS(){
var str='';
str+='<div id="dropin" style="position:absolute;visibility:hidden;left:200px;top:100px;width:400px;height:150px">';
str+='<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="1" bordercolor="black" bgcolor="black">';
str+='<tr>';
str+='	<td>';
str+='<table width="100%" height="100%" cellspacing="10" cellpadding="5" border="0" bgcolor="#ffffff" bordercolor="black">';
str+='<tr>';
str+='<td>';
str+='<img src="http:\/\/www.theweightlossgrail.com\/images\/smallscale.jpg" alt="" width="117" height="300" border="0"><\/td>';
str+='	<td>';
str+='<div align="center"><img src="http:\/\/www.theweightlossgrail.com\/images\/2freeb.jpg" alt="" border="0"><\/div>';
str+='<font face="verdana" size="1" color="#000000">And no, it has absolutely nothing to do with any dangerous weight loss pills. It\'s a completely natural way to satisfy your body from the desire for food. Enter your details below to learn more...<\/strong><\/font><br><br>';
str+='<table align="center" cellspacing="0" width="240" cellpadding="0" bgcolor="#ffffff" border="0">';
str+='<tr>';
str+='	<td>';
str+='<center><form method="post" action="http:\/\/www.aweber.com\/scripts\/addlead.pl" target="_blank">';
str+='<input type="hidden" name="meta_web_form_id" value="1986583446">';
str+='<input type="hidden" name="meta_split_id" value="">';
str+='<input type="hidden" name="unit" value="weightlossgrail">';
str+='<input type="hidden" name="redirect" value="http:\/\/xxxxxx.wlgrail.hop.clickbank.net" id="redirect_969b6ae8fd7f504a49501152e7b6eefa">';
str+='<input type="hidden" name="meta_redirect_onlist" value="">';
str+='<input type="hidden" name="meta_adtracking" value="">';
str+='<input type="hidden" name="meta_message" value="1">';
str+='<input type="hidden" name="meta_required" value="from">';
str+='<input type="hidden" name="meta_forward_vars" value="0">';
str+='<table>';
str+='<tr><td colspan=2><center><\/center><\/td><\/tr>';
str+='<tr><td>Email:<\/td><td><input type="text" name="from" value="" size="20"><\/td><\/tr>';
str+='<tr><td>Name:&nbsp;<\/td><td><input type="text" name="name" value="" size="20"><\/td><\/tr>';
str+='<tr><td align="center" colspan="2"><input type="submit" name="submit" value="Tell Me More!"><\/td><\/tr>';
str+='<\/table>';
str+='<\/form><\/center>';
str+='<div align="right"><a href="#" onClick="dismissbox();return false">[Close Box] <\/a><\/div>';
str+='<\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<\/td><\/tr>';
str+='<\/table>';
str+='<\/div>';
document.write(str);
}
writeJS();
//-->