// Code to display window every time broser opens this page language="JavaScript1.2"

var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var ns6=document.getElementById&&!document.all
var calunits=document.layers? "" : "px"

var bouncelimit=0 //(must be divisible by 8)
var direction="up"
var lpos

//new vars added by scott
//this var controls number of pixels it shifts by
var num_pixels_each_shift=5;
//this var controls how often it moves
var time_between_moves=30;
//this var controls how far above top the box starts
var num_pixels_to_start_above=650;

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-num_pixels_to_start_above+calunits
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",time_between_moves)
}

function dropin(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<lpos)
crossobj.top=parseInt(crossobj.top)+num_pixels_each_shift+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!="BackCompat")? document.documentElement : document.body
}
function delay(x)
{
	var d=new Date()
	d=d.getSeconds()+x
	if (d>=60) d=d-60
	while (true)
	{
		var d1=new Date()
		if(d==d1.getSeconds())
			break;
	}	
}
function SetCooKie(name,value)
{
	var argv=SetCooKie.arguments;
	var argc=SetCooKie.arguments.length
	var expires=(argc>2) ? argv[2] : null
	var path=(argc>3) ? argv[3] : null
	var domain=(argc>4) ? argv[4] : null
	var secure=(argc>5) ? argv[5] : false
	document.cookie=name + "=" +escape(value) + 
	((expires==null) ? "" :( ";expires=" + expires.toGMTString())) +
	((path==null) ? "" :( ";path=" + path)) +
	((domain==null) ? "" :( ";domain=" + domain)) +
	((secure==true) ? "; secure " : "")
}
function GetCookie(name)
{	
	var arg=name + "=" 
	var alen=arg.length
	var clen=document.cookie.length
	var i=0
	while(i<clen)
	{
		var j=i+alen
		if (document.cookie.substring(i,j)==arg)
		{
			//getCookieVal(j)
			return true;
		}
		i=document.cookie.indexOf(" ", i) + i;
		if ( i==0) break;
	}
	return false;
}
function getCookieVal(offset)
{
	var endstr=document.cookie.indexOf(";",offset)
	if(endstr==-1)
	{
		endstr=document.cookie.length;
	}
	return unescape(document.cookie.substring(offset,endstr));

}
function Delaynew()
{
	if (!ns4)
	{	
		document.getElementById("dropin").style.visibility="visible";
			
	}	
	else
		document.dropin.visibility="show";
	
	return;
}


function DropIn(main_bgcolor,main_texttype,main_textsize,main_textcolor,textbar,height,width,top,left,bordercolor,borderstyle,borderwidth,sec,showeverytime)
{
	lpos = top
	ans="no"
	//delay(sec)
	var chkshow=false;
	if (!showeverytime)
	{
		chkshow=GetCookie('popDropin');
		if (chkshow)
		{
			SetCooKie('popDropin','added')
		}
	}
	
	if(!chkshow)
	{ 
		if (ns4)
		{
			templayer=document.layers[0]				
			templayer.left=left				
			templayer.top=top
			templayer.width=width
			templayer.height=height
		}
		else if (ns6)
		{
			document.getElementById("tbl").style.border = bordercolor+' '+borderwidth+'px '+borderstyle
			document.getElementById("dragtext").innerHTML=textbar
				
			document.getElementById("dropin").style.height=height +'px'
			document.getElementById("dropin").style.width =width +'px'
			document.getElementById("dropin").style.left =left +'px'
			document.getElementById("dropin").style.top =top +'px'
			document.getElementById("dragtext").style.backgroundColor=main_bgcolor
			document.getElementById("dragtext").style.color = main_textcolor
			document.getElementById("dragtext").style.fontFamily = main_texttype
			document.getElementById("dragtext").style.fontSize = main_textsize+'px'
		}
		else 
		{
			document.getElementById("tbl").style.border = bordercolor+' '+borderwidth+'px '+borderstyle
			document.getElementById("dragtext").innerHTML=textbar
				
			document.getElementById("dropin").style.height=height +'px'
			document.getElementById("dropin").style.width =width +'px'
			document.getElementById("dropin").style.left =left +'px'
			document.getElementById("dropin").style.top =top +'px'
			document.getElementById("dragtext").style.backgroundColor=main_bgcolor
			document.getElementById("dragtext").style.color = main_textcolor
			document.getElementById("dragtext").style.fontFamily = main_texttype
			document.getElementById("dragtext").style.fontSize = main_textsize+'px'
		}
		setTimeout("initbox()",(sec*1000));	
	}
}
function valForm(formName){
	var thisName  = document.getElementById(formName).name.value;
	var thisEmail = document.getElementById(formName).email.value;
	var error = 0;
	if(thisName == '' || thisName == 'Your Name ...'){
		alert('Please Include Your Name');
		error = 1;
	}
	if(thisEmail == '' || thisEmail == 'Your EMail Address'){
		alert('Please Include a Valid Email Address');
		error = 1;
	}
	if(error == 0){
		document.getElementById(formName).submit();
	}
}

//function for intellicontact validation
function verifyRequiredDropin()
{
	if (document.icpsignup_dropin.fields_fname.value == "")
	{
		alert("The Your Name field is required.");
		return false;
	}
	if (document.icpsignup_dropin.fields_email.value == "")
	{
		alert("The Email field is required.");
		return false;
	}
	return true;
}
//document.write("<div id=\"dropin\" style=\"position:absolute; left:300px; top:100px; width:500px; height:100%; visibility: hidden;  z-index:2; background-color:#FFFFFF\"><table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"tbl\" style=\"border:thick ridge #CCCCCC\"><tr><td><table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"12\" valign=\"top\" bgcolor=\"#FFFFFF\" style=\"cursor:hand\"><div align=\"right\"><a href=\"#\" onClick=\"dismissbox();return false\" style=\"font-family:verdana; font-size: 10px;\">[<u>Close</u>]</a></div></td></tr><tr><td width=\"100%\" colspan=\"2\" valign=\"top\" bgcolor=\"#FFFFFF\" id=\"dragtext\" style=\"padding:4px\"></td></tr></table></td></tr></table></div><script language=\"Javascript\">DropIn('#FFFFFF','Microsoft Sans Serif',14,'#000000','<table border=0 width=\"100%\" height=\"100%\" cellpadding=10 style=\"background-color:#ffffff\" ><tr><td height=\"100%\" valign=top align=center><h2><font style=\"background-color: #FFFF00;\">FREE</font> 17 Minute Marketing Secrets Audio ($47 Value)</h2><IMG SRC=\"/rs/17/sites/358/user_uploads/Image/ebook_27_medium.gif\" ALT=\"\" BORDER=\"0\"><form action=\"http://app.icontact.com/icp/signup.php\" method=\"post\" onsubmit=\"return verifyRequiredDropin();\" accept-charset=\"UTF-8\" name=\"icpsignup_dropin\"><input type=\"hidden\" name=\"redirect\" value=\"http://site11358.usefulwebsitemarketingtools.com/Thank-You-for-Marketing-Secrets-Audio-pg3465.html\" /> <input type=\"hidden\" name=\"errorredirect\" value=\"http://www.icontact.com/www/signup/error.html\" /><div id=\"SignUp\" style=\"TEXT-ALIGN: center\">Your Name:<br /><input size=\"16\" name=\"fields_fname\" type=\"text\" /><br />Your Email:<br /><input size=\"16\" name=\"fields_email\" type=\"text\" /><br /><input type=\"hidden\" name=\"listid\" value=\"32729\" /> <input type=\"hidden\" name=\"specialid:32729\" value=\"XAHY\" /> <input type=\"hidden\" name=\"clientid\" value=\"124281\" /> <input type=\"hidden\" name=\"formid\" value=\"1649\" /> <input type=\"hidden\" name=\"reallistid\" value=\"1\" /> <input type=\"hidden\" name=\"doubleopt\" value=\"0\" /> <input type=\"submit\" name=\"Submit\" value=\"Get it NOW!\" /> </div></form><br /><br /><b>You Will Discover</b><div align=\"left\"><small><ul style=\"margin-left: 20px; padding-left: 0px; margin-top: 15px;\"><li>Action-packed tips to market your website successfully</li><br /><li>Free gold membership value $197 giving you access to over 3 hours of free audio on:</li><ul style=\"margin-left: 20px; padding-left: 0px; margin-top: 5px;\"><li>Affiliate Marketing</li><li>Marketing Mindset</li><li>Product Creation</li></ul><br /><li>Special member and discount offers</li><br /><li>And much more ...</li></ul></small></div><b>Why not get your friends and colleagues to benefit too!</b><font style=\"font-size: 10px;\">We will never rent or sell your e mail address and you may unsubscribe from the newsletter anytime. You will from time to time receive specials, discount benefits as well as bring to your attention items that we are impressed with which you might find of value.</font></td></tr></table>','335','390','40','305','#CD0000','solid',2,5,true)</script>")


document.write("<div id=\"dropin\" style=\"position:absolute; left:190px; top:100px; width:565px; height:100%; visibility: hidden;  z-index:2; background-color:#FDF2F2\"><table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" id=\"tbl\" style=\"border:thick ridge #CCCCCC\"><tr><td><table width=\"100%\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"12\" valign=\"top\" bgcolor=\"#FDF2F2\" style=\"cursor:hand\"><div align=\"right\"><a href=\"#\" onClick=\"dismissbox();return false\" style=\"font-family:verdana; font-size: 10px;\">[<u>Close</u>]</a></div></td></tr><tr><td width=\"100%\" colspan=\"2\" valign=\"top\" bgcolor=\"#FDF2F2\" id=\"dragtext\" style=\"padding:4px\"></td></tr></table></td></tr></table></div><script language=\"Javascript\">DropIn('#FDF2F2','Microsoft Sans Serif',14,'#000000','<table border=0 width=\"100%\" height=\"100%\" cellpadding=10 style=\"background-color:#FDF2F2\" ><tr><td height=\"100%\" valign=top align=center><table width=\"100%\"><tr><td valign=\"top\" width=\"240\" align=\"center\"><IMG SRC=\"/rs/17/sites/358/user_uploads/Image/ebook_27_medium_transparent.gif\" ALT=\"\" BORDER=\"0\"><br /><br /><form action=\"http://app.icontact.com/icp/signup.php\" method=\"post\" onsubmit=\"return verifyRequiredDropin();\" accept-charset=\"UTF-8\" name=\"icpsignup_dropin\"><input type=\"hidden\" name=\"redirect\" value=\"http://site11358.usefulwebsitemarketingtools.com/Thank-You-for-Marketing-Secrets-Audio-pg3465.html\" /> <input type=\"hidden\" name=\"errorredirect\" value=\"http://www.icontact.com/www/signup/error.html\" /><div id=\"SignUp\" style=\"TEXT-ALIGN: center\">Your Name:<br /><input size=\"16\" name=\"fields_fname\" type=\"text\" /><br />Your Email:<br /><input size=\"16\" name=\"fields_email\" type=\"text\" /><br /><input type=\"hidden\" name=\"listid\" value=\"32729\" /> <input type=\"hidden\" name=\"specialid:32729\" value=\"XAHY\" /> <input type=\"hidden\" name=\"clientid\" value=\"124281\" /> <input type=\"hidden\" name=\"formid\" value=\"1649\" /> <input type=\"hidden\" name=\"reallistid\" value=\"1\" /> <input type=\"hidden\" name=\"doubleopt\" value=\"0\" /> <input type=\"submit\" name=\"Submit\" value=\"Get it NOW!\" /> </div></form><br /><br /><font style=\"font-size: 10px;\"><strong><u>PRIVACY POLICY</u></strong>: We promise to NEVER sell, rent, share, or give away your email address.  And you can unsubscribe at any time you like. WE PROMISE!</font></td><td valign=\"top\" align=\"center\"><div style=\"border: 2px solid #CD0000;margin-left: 10px;background-color: #FFFFCC;padding: 8px;\"><span style=\"COLOR:#800000;font-weight: bold;font-size: 15px;\">\"Discover 27 Controversial<br />Online Marketing Secrets &<br />Create A Flood Of New<br />Qualified Leads & Sales\"</span><br /><br /><div style=\"line-height: 140%;font-size: 12px;\">In This <span style=\"font-size: 14px;\"><strong>Free eBook</strong></span> you will learn<br />the secrets to creating a<br /><strong><u>Growth Explosion</u></strong><br />for your business, from your website<br />including inside tips on ..............<br /><br /><div style=\"text-align: left;\">1) How to <strong>get found</strong> on Google.<br />2) Top level <strong>techniques</strong> used by experts<br />3) What your <strong>web developer</strong> should know<br />4) Generating new qualified visitors<br />5) How to <strong>save time & money</strong><br />6) Profiting from <strong>2 billion searches</strong> a day <br />7) Your Proven <strong>New Customer</strong> strategies</div><br /><br />If you are not receiving constant new<br />customer enquiries from your website,<br />you need to download this book.<br /><br />In <strong>less than 30 seconds</strong> you could<br />be reading this incredible guide &<br />begin to improve how many potential<br /><strong>new customers</strong> are seeing your website!</div></div></td></tr></table></td></tr></table>','335','565','40','190','#CD0000','solid',2,10,true)</script>");