




//This is required within the slideshow in orer to work..and this updates the li class for numbers click/


NavBox = new Class({
				   
	choose : function(pID){
		
		var a=0;
		$('numbers').getElements('li').each(function(el) {
			
			
			if(pID==a){
				$E('a',el).removeClass('active');
				$E('a',el).toggleClass('active');
			}else{
				$E('a',el).removeClass('active');
			}
		
			a++;
		});
	}

});


function finishEmail(){
    $('emailBox').setHTML('Your email was submitted');   
}

function submitEmail(){
    //get email value
    passEmail = $('email').value;

    if(passEmail!=""){
        postURL = 'emailSubmit.php';
         $('emailBox').setHTML('Submitting...');  
          var hitEmail = new Ajax(postURL,{method:'get',data:{email:passEmail},update:$('emailBox'),onComplete:function(){
      
         }}).request();
    }

}
