<!--
var moveable=false;
var hover='#ff0033',normal='#0086C6';//color;#009EEA
var index=10000;//z-index;

function create_bg(){
	var bg=document.createElement("DIV");
	document.body.style.overflow="hidden";
    document.documentElement.style.overflow = "hidden";
	with(bg.style){
		position="absolute";
		top="0px";
		left="0px";
		width=document.documentElement.scrollWidth;
		height=document.documentElement.scrollHeight;
		}
	bg.className="showbg_bg";
	bg.id="showbg_bg";
	document.body.appendChild(bg);
	document.getElementById('hideme1').style.display = 'none';
	document.getElementById('hideme2').style.display = 'none';
	document.getElementById('hideme3').style.display = 'none';
	document.getElementById('hideme4').style.display = 'none';
}
function close_showbg(){
	var showbg_bg=document.getElementById("showbg_bg");
	showbg_bg.parentNode.removeChild(showbg_bg);
	document.body.style.overflow="auto";
	document.documentElement.style.overflow = "auto";
	document.getElementById('hideme1').style.display = 'block';
	document.getElementById('hideme2').style.display = 'block';
	document.getElementById('hideme3').style.display = 'block';
	document.getElementById('hideme4').style.display = 'block';
}

//Get Focus;
function getFocus(obj)
{
	if(obj.style.zIndex!=index)
	{
		index = index + 2;
		var idx = index;
		obj.style.zIndex=idx;
		//obj.nextSibling.style.zIndex=idx-1;
	}
}
//Minimize;
function min(obj)
{
	var win = obj.parentNode.parentNode;
	var tit = obj.parentNode;
	var msg = tit.nextSibling;
	var flg = msg.style.display=="none";
	if(flg)
	{
		win.style.height  = parseInt(msg.style.height) + parseInt(tit.style.height) + 2*3;
		msg.style.display = "block";
	}else{
		win.style.height  = parseInt(tit.style.height) + 2*2;
		msg.style.display = "none";
	}
}
//Close;
function cls(obj)
{
	//document.bgColor=0x009EEA;

	//return close_messagebox();
	popup='false';
	close_showbg();
	var win = obj.parentNode.parentNode.parentNode;
	win.style.visibility = "hidden";
}

function close_messagebox()
{
		var win = document.getElementById('xMsg1').style;
		win.style.display = "none";
}

//Initialization;
function build()
{
var topnum	=	document.documentElement.scrollTop + 50;
var str = ""
+ "<div id=xMsg" + this.id + " "
+ "style='z-index:10000;"
+ "width:" + this.width + ";"
+ "height:" + this.height + ";"
+ "left: 5px;"
+ "top:" + topnum + "px;"
+ "background-color:" + normal + ";"
+ "color:" + normal + ";"
+ "font-size:10px;"
+ "font-family:Verdana;"
+ "position:absolute;"
+ "margin:10px 0px 0px 0px;"
+ "cursor:default;"
+ "border:2px solid " + normal + ";"
+ "' "
+ "onmousedown='getFocus(this)'>"
+ "<div "
+ "style='"
+ "background-color:" + normal + ";"
+ "width:" + (this.width-2*2) + ";"
+ "height:20;"
+ "color:white;text-align:left;"
+ "' "
+ "ondblclick='min(this.childNodes[1])'"
+ ">"
+ "<span style='float:left;'>" + this.title + "</span>"
+ "<span style='float:right;'><font style='width:12;cursor:pointer;border-width:0px;color:white;' onclick='cls(this);'><img src='images/close.gif'/></font></span>"


+ "</div>"
+ "<div style='"
+ "width:" + (this.width-5) + ";"
+ "height:" + (this.height-20-5) + ";"
+ "background-color:#fff;"
+ "line-height:14px;"
+ "word-break:break-all;"
+ "padding:3px; border: 1px solid #08c;"
+ "'>" + this.message + "</div>"
+ "</div>";
document.body.innerHTML += str;

}

//Create Object;
function xWin(id,w,h,tit,msg)
{
	index = index+2;
	this.id      = id;
	this.width   = w;
	this.height  = h;

	//this.top     = parseInt((document.body.clientHeight-h)/2+(document.body.clientHeight)*0.4);
    this.left	   = '50%';
	this.top       = '50%';


	this.zIndex  = index;
	this.title   = tit;
	this.message = msg;
	this.obj     = null;
	this.build   = build;
	this.build();
}

popup="true";
window.onbeforeunload = bunload;
function bunload(){
	if(popup=="true"){
		initialize();
		return "\n\n**********************************************\n\nClick Cancel if you are interested in our *E-commerce Website Geometric Growth* PDF report...\n\nYou can download the PDF file instantly...\n\n**********************************************\n\n";
	} else {
		popup="true";
	}
}

function setpopup(){
	popup='false';
	return true;
}

function initialize()
{
create_bg();

var a = new xWin("1",400,260,"<span class='STYLE9'>Wait...</span>","<table width=400 style='border:0px #cccccc solid'><tr><td  align='left' valign='top' style='font-size:12' color='#0000ff'><span class='STYLE1'>Want to learn my secrets of increasing an E-commece website's sales by at least 300%, in less than 30 days? Enter your email and download the PDF file immediately.</span><br><br></td></tr><tr><td><center><form onsubmit='return setpopup()' method='post' action='http://www.aweber.com/scripts/addlead.pl'><input type='hidden' name='meta_web_form_id' value='1683980483'><input type='hidden' name='meta_split_id' value=''><input type='hidden' name='unit' value='ecommerce-pdf'><input type='hidden' name='redirect' value='http://www.aweber.com/form/thankyou.html' id='redirect_eeab357a298fa8e014af5cf0a7a35d1a'><input type='hidden' name='meta_redirect_onlist' value=''><input type='hidden' name='meta_adtracking' value=''><input type='hidden' name='meta_message' value='1'><input type='hidden' name='meta_required' value='from'><input type='hidden' name='meta_forward_vars' value='0'><table><tr><td colspan=2></td></tr><tr><td>Full Name:</td><td><input type='text' name='name' size='20'></td></tr><tr><td>Email:</td><td><input type='text' name='from' size='20'></td></tr><tr><td colspan=2><center><div align='center'>Your email is safe with us. We hate spam as much as you do. </div></center></td></tr><tr><td align='center' colspan='2'><br><input type='submit' name='submit' value='Submit'><img src='http://forms.aweber.com/form/displays.htm?id=jGwczJwcDCwczA==' border='0' /></td></tr></table></form></center></td></tr></table>");

}