var myEffects;
			var visible = false;
			
			function closeForm() {
				myEffects.start({
						'opacity': [1,0],
						'bottom': [10, -100]
					})
			}
			
			window.addEvent('domready' , function(e){
				//var validator = new fValidator("contactForm"); 
				
				myEffects = new Fx.Styles('formContainer', {duration: 500, transition: Fx.Transitions.linear});
				
				$('formContainer').setStyle('opacity', 0);
				$('email').addEvent('click', function(e){
					new Event(e).stop();
					
					if(!visible)
					myEffects.start({
						'opacity': [0, 1],
						'top': [200, 100]
					})
					
					else 
					myEffects.start({
						'opacity': [1,0],
						'top': [100, 200]
					})
					visible = !visible;
				});
				
				$('email').addEvent('mouseover', function(e){
					e.target.setStyle('textDecoration', 'underline');
				});
				
				$('email').addEvent('mouseout', function(e){
					e.target.setStyle('textDecoration', 'none');
				});
				
				$('closeBtn').addEvent('click', function(e){
					myEffects.start({
						'opacity': [1,0],
						'top': [100, 200]
					})
					visible = false;
				})
				
				$('contactForm').addEvent('submit', function(e){
					new Event(e).stop();
						/**
						 * This empties the log and shows the spinning indicator
						 */
						//var log = $('log_res').empty().addClass('ajax-loading');
					 	var formContainer = $('contactForm');
						/**
						 * send takes care of encoding and returns the Ajax instance.
						 * onComplete removes the spinner from the log.
						 */
						this.send({
							update: formContainer,
							onComplete: function() {
							
							}
						});
					
				})
				
				})