function showNote(){
	$('<div id="ccontent"><div class="cclose"><a href="javascript:closeNote();">close <img src="images/ccontact-close.gif" width="19" height="19" border="0" align="absmiddle"/></a></div><h1>NAVELEXPO<br />Inner Circle Registration</h1><p>Meet some of the most remarkable healers, bestselling authors and celebrity activists by joining our <em><strong style="color:#fe0103">FREE</strong></em> Newsletter.</p><p>Receive a detailed introduction about the special guest on our weekly radio program, discover wellness resources, information, exclusive seminars and deals available only to those on our<br />Inner Circle list.</p><div class="cform"><form id="ccoptin" name="ccoptin" action="http://visitor.constantcontact.com/d.jsp" target="_blank" method="post" onsubmit="test();return false;"><input type="text" id="emc" name="ea" size="20" class="footer-input" value="Enter Your Email Address" onFocus="javascript:defaultStatus(this.id);"><input type="image" src="images/ccontact-btn.gif"><input type="hidden" name="m" value="1101224904230"><input type="hidden" name="p" value="oi"></form></div><div style="clear:both"></div></div>').appendTo("#newsletter").slideDown('slow',function(){});	
}


function closeNote(){
	$("#ccontent").slideUp('fast',function(){	
		$("#ccontent").remove();
	});	
}

$(window).load(function() {
  
       showNote();

});
function test(){
	
	 if (formvoteValid()){
	   $("#ccoptin").submit();
	   closeNote();
	 }
	  	
}
function formvoteValid()

{

   var err = false;
    
    if(!isValidEmailAddress($('#ccontent #emc').val()) ){
		$('#ccontent #emc').css('color','#fe0103');
		$('#ccontent #emc').val('Missing Email');
		err |= true;		
	} 
		
	
	

     if (err);

   return !err;
  

}



function defaultStatus(id)

{
  	$("#"+id).css('color','#000');
	$('#ccontent #emc').val('');


}
function isValidEmailAddress(emailAddress) {var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);return pattern.test(emailAddress);}