function optin(turl) {
if ( Get_Cookie('Optin') ) { return true; } else {
document.write("<div id=\"dropin\" style=\"position:absolute;visibility:hidden;left:100px;top:0px;width:431px;height:151;border=0px; background-color:#FFFFFF; \">");
document.write("<table width=\"431\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">");
 document.write(" <tr>");
 document.write("   <td width=\"3\" background=\"http://www.forexprofitcode.com/images/topleft6.gif\"><img src=\"http://www.forexprofitcode.com/images/topleft6.gif\" width=\"3\" height=\"20\" /></td>");
  document.write("  <td width=\"405\" background=\"http://www.forexprofitcode.com/images/topbar.gif\"><img src=\"http://www.forexprofitcode.com/images/topbar.gif\" width=\"1\" height=\"20\" /></td>");
  document.write("  <td width=\"22\"><div align=\"left\"><a href=\"#\" onClick=\"dismissbox();return false\"><img src=\"http://www.forexprofitcode.com/images/close1.gif\" width=\"22\" height=\"20\" border=\"0\" /></a></div></td>");
  document.write("</tr>");
  document.write("<tr>");
  document.write("  <td width=\"3\" background=\"http://www.forexprofitcode.com/images/border_left5.gif\"><img src=\"http://www.forexprofitcode.com/images/border_left5.gif\" width=\"3\" height=\"12\" /></td>");
  document.write("  <td  align=\"left\"><table width=\"401\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
  document.write("    <tr>");
  document.write("     <td width=\"401\"><table width=\"98%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">");
   document.write("         <tr>");
  document.write("         <td colspan=\"2\"><div align=\"center\"><font face=\"Tahoma\" color=\"#FF0000\" size=\"4\"><span style=\"background-color: #FFFF00;\"><b><u>FREE</u> \"Guide To Instant Online Income\" </b></span></font></div></td>");

  document.write("         </tr>");
     document.write("         <tr>");           
    document.write("          <td colspan=\"2\"><div align=\"center\"><strong><font face=\"Tahoma\" color=\"#FF0000\" size=\"4\">Thousands Now Earn ");
                
      document.write("          Online Income Who Never");
     document.write("           Thought They Could... <br />");
     document.write("           </font></strong></div></td>");
     document.write("       </tr>");
     document.write("   </table></td>");
    document.write("  </tr>");
    document.write("  <tr>");
   document.write("     <td><table cellspacing=\"0\" cellpadding=\"0\" width=\"378\" align=\"center\" border=\"0\" bgcolor=\"#FFFFFF\">");
  document.write("          <tr>");
   document.write("           <td valign=\"top\" width=\"13%\" height=\"1\"><font size=\"2\" face=\"Arial, Helvetica, sans-serif\"> <img src=\"http://www.forexprofitcode.com/images/arrow_blue1.jpg\" width=\"74\" height=\"87\" /></font></td>");
         document.write("     <td valign=\"top\"  height=\"1\"><div align=\"left\">");
       document.write("      <form action=\"http://www.getresponse.com/cgi-bin/add.cgi\" method=\"post\" id=\"GRSubscribeForm\" accept-charset=\"UTF-8\" target=\"_new\">");


 document.write("                   <table width=\"317\" bgcolor=\"#FFFFFF\">");
  document.write("                    <tr>");
  document.write("                      <td colspan=\"2\"><center>");
  document.write("                          <div><font size=\"3\" face=\"Verdana, Arial, Helvetica, sans-serif\">Simply enter your primary email address below to start your Free mini-eCourse Today...</font><font face=\"Verdana, Arial, Helvetica, sans-serif\"> &nbsp;</font></div>");
   document.write("                     </center></td>");
   document.write("                   </tr>");
   document.write(" <tr><td class=label><font face=\"Verdana, Arial, Helvetica, sans-serif\">Your Name</font></td>");
   document.write(" 	<td><input type=\"text\" name=\"category2\" maxlength=\"70\" class=input></td>");
   document.write(" </tr>");

   document.write(" <tr>");

   document.write(" <td class=label><font face=\"Verdana, Arial, Helvetica, sans-serif\">E-Mail</font></td>");

   document.write(" <td><input type=\"text\" name=\"category3\" maxlength=\"70\" class=input></td>");

   document.write(" </tr>");





   document.write(" <tr>");

   document.write(" <th colspan=\"2\">");

   document.write(" <input type=\"Submit\" name=\"cmdSubmit\" value=\">> Send My Free Report <<\" class=\"button\">");

document.write("<input type=\"hidden\" name=\"category1\" value=\"forexprofitcode\" /> ");
document.write("<input type=\"hidden\" name=\"confirmation\" value=\"http://www.ForexProfitCode.com\"/> ");
document.write("<input type=\"hidden\" name=\"ref\" value=\"000\" />");
document.write("<input type=\"hidden\" name=\"getpostdata\" value=\"get\" />");

   document.write(" </th>");

   document.write(" </tr>");
      document.write(" <tr>");

   document.write(" <th colspan=\"2\">");
      document.write("You will join our mailing list to receive weekly updates and promotions.");
   document.write(" </tr>");
   document.write(" </table>");
   document.write("               </form>");
    document.write("          </div></td>");
    document.write("        </tr>");
    document.write("        <tr>");
     document.write("         <td colspan=\"2\" valign=\"bottom\"><img src=\"http://www.forexprofitcode.com/images/dollars.jpg\" width=\"374\" border=\"0\" /></td>");
      document.write("      </tr>");
     document.write("   </table></td>");
    document.write("  </tr>");
   document.write(" </table></td>");
  document.write("  <td width=\"22\" background=\"http://www.forexprofitcode.com/images/border_left1.gif\"><img src=\"http://www.forexprofitcode.com/images/border_left1.gif\" width=\"22\" height=\"26\" /></td>");
document.write("  </tr>");
document.write(" <tr>");
 document.write("   <td valign=\"bottom\" width=\"3\"><img src=\"http://www.forexprofitcode.com/images/border4_left.gif\" width=\"3\" height=\"12\" /></td>");
  document.write("  <td  background=\"http://www.forexprofitcode.com/images/border4_main.gif\"></td>");
  document.write("  <td valign=\"bottom\" background=\"http://www.forexprofitcode.com/images/border4_main.gif\"><img src=\"http://www.forexprofitcode.com/images/border5right.gif\" width=\"22\" height=\"12\" /></td>");
   document.write(" </tr>");
document.write("</table>");
document.write("</div>");
setTimeout("initbox()", 5000);
Set_Cookie( 'Optin', 'it works', '15', '/', '', '' );

} 
}

// 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

}

function Set_Cookie( name, value, expires, path, domain, secure ) 
{
// set time, it's in milliseconds
var today = new Date();
today.setTime( today.getTime() );

/*
if the expires variable is set, make the correct 
expires time, the current script below will set 
it for x number of days, to make it for hours, 
delete * 24, for minutes, delete * 60 * 24
*/
if ( expires )
{
expires = expires * 1000 * 60;
}
var expires_date = new Date( today.getTime() + (expires) );

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + 
( ( path ) ? ";path=" + path : "" ) + 
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}

// this fixes an issue with the old method, ambiguous values 
// with this test document.cookie.indexOf( name + "=" );
function Get_Cookie( check_name ) {
	// first we'll split this cookie up into name/value pairs
	// note: document.cookie only returns name=value, not the other components
	var a_all_cookies = document.cookie.split( ';' );
	var a_temp_cookie = '';
	var cookie_name = '';
	var cookie_value = '';
	var b_cookie_found = false; // set boolean t/f default f
	
	for ( i = 0; i < a_all_cookies.length; i++ )
	{
		// now we'll split apart each name=value pair
		a_temp_cookie = a_all_cookies[i].split( '=' );
		
		
		// and trim left/right whitespace while we're at it
		cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');
	
		// if the extracted name matches passed check_name
		if ( cookie_name == check_name )
		{
			b_cookie_found = true;
			// we need to handle case where cookie has no value but exists (no = sign, that is):
			if ( a_temp_cookie.length > 1 )
			{
				cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') );
			}
			// note that in cases where cookie is initialized but no value, null is returned
			return cookie_value;
			break;
		}
		a_temp_cookie = null;
		cookie_name = '';
	}
	if ( !b_cookie_found )
	{
		return null;
	}
}				
					



