		
		var closeDisabled=false;
		var popup_width=422;
		var popup_bordercolor='#000000';
		var popup_bgTitle='#71B8FF';
		//var popup_htmlfile='popup.html';
		var popup_overlayurl='/images/lightbox/black-70.png';
		var popup_timeout=0;
		var popup_disable_scrollbar=false;
		var myWidth=0;
		var myHeight=0;
		var seen_once=false;
		var opened=false;
		var is_in=false;
		var egwind=null;
		var popup_overlay=null;
		var popup_x=100;
		var popup_y=100;
		var nrp=-1;
		var nrp_show=1;
		var autoclose=null;
		var popup_size_array=null;
		var popup_location_array=null;
		var proof_swf_path='Main.swf';
		
		
		function createIFrame2(target2) 
		{
			var tgt2 = 'the_iframe';
			var fnameLB="", lnameLB="", zipLB="";
			var emailAdd=document.getElementById("emailLB").value;
			if(lb_v==2 || lb_v==3 || lb_v==4 || lb_v==5 || lb_v==6 || lb_v==7)
			{
				fnameLB=document.getElementById("fnameLB").value;
				lnameLB=document.getElementById("lnameLB").value;
				zipLB=document.getElementById("zipLB").value;
			}
			var d2 = document.createElement("div");
			d2.innerHTML = '<iframe id="' + tgt2 + '" name="' + tgt2 + '" src="'+form_url+'?lb_v='+lb_v+'&e='+encodeURIComponent(emailAdd)+'&f='+encodeURIComponent(fnameLB)+'&l='+encodeURIComponent(lnameLB)+'&z='+encodeURIComponent(zipLB)+'" width=0 height=0 style="border: none"></iframe>';
			target2.appendChild(d2);
			var ifr2 = d2.firstChild;
			//ifr2.onload = function(){submissionCompleteFLSB(); return;};
			ifr2.onreadystatechange = ifr2.onload = function(){
			submissionCompleteFLSB();
			};
			return tgt2;
		}
		function submitFormFLSB()
		{
			var error_msg="";
			var filter = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
			if(document.getElementById("emailLB").value=="" || !filter.test(document.getElementById("emailLB").value))
			{
				error_msg=error_msg+"A valid email address is required\n";
			}
			try{
				if(document.getElementById("zipLB").value=="Zip Code")
				{
					error_msg=error_msg+"Zip code is required\n";
					
				}
			}
			catch(err){}
			if(error_msg=="") 
			{ 
				var formSubmission;
				document.getElementById("processing").innerHTML="<img src='/images/lightbox/indicator_small.gif' width=16 height=16>";
				formSubmission=createIFrame2(document.getElementById("egwind"));
			}
			else
			{
				alert(error_msg);
			}

			
			
		}
		
		function submissionCompleteFLSB()
		{
			document.getElementById("processing").innerHTML="<img src='/images/lightbox/correct.png' width=16 height=16>";
			document.getElementById("lb_text").innerHTML=ty_text;
			if(lb_v==2 || lb_v==3 || lb_v==4 || lb_v==5 || lb_v==6 || lb_v==7)
			{
				document.getElementById("lb_header").innerHTML='<h1 style="font-size:17px;color:#7e3e0c;font-weight:bold; margin-bottom: 0px">'+ty_header+'</h1>';
			}
			else
			{
				document.getElementById("lb_signup_input").innerHTML='';
			}
		}
		
		function initFSLB()
		{
			if(typeof(window.innerWidth)=='number')
			{
				myWidth=window.innerWidth;
				myHeight=window.innerHeight;
			}
			else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight))
			{
				myWidth=document.documentElement.clientWidth;
				myHeight=document.documentElement.clientHeight;
			}
			else if(document.body && (document.body.clientWidth || document.body.clientHeight))
			{
				myWidth=document.body.clientWidth;
				myHeight=document.body.clientHeight;
			}
			popup_x=myWidth/2-popup_width/2;
			popup_y=myHeight/2-popup_height/2+document.body.scrollTop;
			
			if(popup_x<0) popup_x=0;
			if(popup_y<0) popup_y=0;
			
			var y=document.createElement('div');
			y.setAttribute('id','popup_overlay');
			document.body.appendChild(y);
			var x=document.createElement('div');
			x.setAttribute('id','egwind');
			y.appendChild(x);
			x.style.position='absolute';
			x.style.top='-1000px';
			x.style.left='-1000px';
			x.style.background='#fdf9f3 url(/images/lightbox/bg_middle.jpg) repeat-y';
			//x.style.border='1px solid '+popup_bordercolor;
			x.style.width=popup_width+'px';
			//x.style.height=popup_height+'px';
			x.style.display='block';
			var xtext="";//"<div style='text-align:right !important; background: url(/Shared/Images/close_bar.jpg) no-repeat !important; height: 20px !important;'><a href='#' class='close_button' onClick='closeFSLB(); return false;'></a></div>";
			xtext+=popup_code;
			x.innerHTML=xtext;
			egwind=x;
			popup_overlay=document.getElementById('popup_overlay');
			launchFSLB();
		}
		
		
	
		function launchFSLB()
		{
			/*  disable cookies for testing */
			//if((getFSLBCookie("PledgeSeen")=="yes")  && (getFSLBCookie("LightboxSeen")=="yes"))
			if(getFSLBCookie("PledgeSeen")=="yes")
			{
				return false;
			}
			setFSLBCookie("PledgeSeen","yes",365, "/", "defenders.org", 0);
		
			if(popup_disable_scrollbar && document.all)
			{
				document.documentElement.style.overflow='hidden';
			}
			else if(popup_disable_scrollbar)
			{
				document.body.style.overflow='hidden';
			}
			//popup_location_array=getUpperLeftCorner();
			opened=true;
			seen_once=true;
			scroll(0,0);
			var x=egwind;
			x.style.top=popup_y+'px';
			x.style.left=popup_x+'px';
			x.style.display='block';
			var y=popup_overlay;
			y.style.position='absolute';
			y.style.top='0px';
			y.style.left='0px';
			
			popup_size_array=getPopupPageSize();
			y.style.width='100%';//document.body.scrollWidth+'px';//popup_size_array[0]+'px';
			y.style.height=popup_size_array[1]+'px';
			y.style.zIndex='999';
			y.style.display='block';
			y.style.background="url('"+popup_overlayurl+"')";
			if(popup_timeout>0){autoclose=setTimeout("closeFSLB()",popup_timeout)}return false
		};

		function closeFSLB()
		{
			if(closeDisabled==true) return;
			opened=false;
			egwind.style.display='none';
			popup_overlay.style.display='none';
			if(popup_disable_scrollbar && document.all)
			{
				document.documentElement.style.overflow='auto';
			}
			else if(popup_disable_scrollbar)
			{
				document.body.style.overflow='auto';
			}
			if(autoclose)clearTimeout(autoclose);
			return false;
		};
