	$(function() {
		$('.faq-header').toggle(function(){
			$('.faq-info').slideUp();
			$(this).addClass("faq-header-active");
			$(this).next().slideToggle();
		},function(){
			$(this).next().slideToggle();
			 $(this).removeClass("faq-header-active");
		});
	  	$("#get-started-frm input").toggleVal();
	  	
		$(".person-msg").click(function(){
			$("#comments").show();
				
		return false;
		});
		
		$(".person-msg").toggle(function() {
			$("#comments").show();
		}, function() {
			$("#comments").hide();
		});
		
  	    $('.cycle-fact').cycle({
			fx: 'fade',
			speed: 2000,
			timeout:2000,
			pause: 1
		});

		$('a[rel="external"]').click( function() {
	        window.open( $(this).attr('href') );
	        return false;
	    });
	    
		$(".lightbox-biz").fancybox({onStart:function(){$("#business-owner").show();},onCleanup:function(){$("#business-owner").hide()},'overlayOpacity': '.6','overlayColor':'#000000','titleShow': false});
		$(".lightbox-dev").fancybox({onStart:function(){$("#developer-owner").show();},onCleanup:function(){$("#developer-owner").hide()},'overlayOpacity': '.6','overlayColor':'#000000','titleShow': false});
		$(".lightbox-merch").fancybox({onStart:function(){$("#merchandizer").show();},onCleanup:function(){$("#merchandizer").hide()},'overlayOpacity': '.6','overlayColor':'#000000','titleShow': false});
		$(".lightbox-instant").fancybox({onStart:function(){$("#instant-grat").show();},onCleanup:function(){$("#instant-grat").hide()},'overlayOpacity': '.6','overlayColor':'#000000','titleShow': false});
		$(".lightbox-con").fancybox({onStart:function(){$("#convenience").show();},onCleanup:function(){$("#convenience").hide()},'overlayOpacity': '.6','overlayColor':'#000000','titleShow': false});
		
		$(".lightbox-cust").fancybox({onStart:function(){$("#cust-dashboard").show();},onCleanup:function(){$("#cust-dashboard").hide()},'overlayOpacity': '.6','overlayColor':'#000000','titleShow': false});
		
		$(".lightbox-easy").fancybox({onStart:function(){$("#we-make-it-easy").show();},onCleanup:function(){$("#we-make-it-easy").hide()},'overlayOpacity': '.6','overlayColor':'#000000','titleShow': false});
		$(".lightbox-benefits").fancybox({onStart:function(){$("#benefits").show();},onCleanup:function(){$("#benefits").hide()},'overlayOpacity': '.6','overlayColor':'#000000','titleShow': false});
		$('.point-action img').hover(function(){ $(this).attr("src","images/buttons/learn-more-on.png");},function(){ $(this).attr("src","images/buttons/learn-more.png");});
		$(".point-action img").mousedown(function(){$(this).attr("src","images/buttons/learn-more-click.png");}).mouseup(function(){$(this).attr("src","images/buttons/learn-more.png");});		
		
		$(".point-action img").mousedown(function(){$(this).attr("src","images/buttons/learn-more-click.png");}).mouseup(function(){$(this).attr("src","images/buttons/learn-more.png");});
		
		$("#get-started-frm").validate({
				/*submitHandler: function(form) {
					var options1 = { 
						success: function(){
							pageTracker._trackPageview("/vgc-inquiry/contact-form-sent.html");
							$("#get-started-frm").hide();
							$(".after-form").html("<h2>Your message has been sent to us!</h2><h3>Thanks for inquiring about the Virtual Gift Card system. We will be in touch with you within 24 hours.</h3>");
						}				
		    		}; 
					$(form).ajaxSubmit(options1);
				},*/
				success: function(label){
					label.addClass("valid");
				},
				rules: {
					first_name: "required",
					last_name: "required",
					name: "required",
					email: {
						required: true,
						email: true
					},
					company: {
						required: true			
					},
					company_url: {
						required: true			
					}
				}
			});

		$("#sign-up").validate({
				submitHandler: function(form) {
					var options = { 
						success: function(){
							pageTracker._trackPageview("/vgc-inquiry/get-started-form-sent.html");
							form.hide();
							$(".after-form").html("<h2>Thank you for signing up for our Virtual Gift Card System</h2><h3>A representative will be in touch with you shortly.</h3>");
						}				
		    		}; 
					$(form).ajaxSubmit(options);
				},
				success: function(label){
					label.addClass("valid");
				},
				rules: {	
					f_name: "required",
					l_name: "required",
					email: {
						required: true,
						email: true
					},
					username: "required",
					password: {equalTo:"#password_again"},
					company: {
						required: true			
					},
					company_url: {
						required: true,
						url: true			
					}
				},
				messages: {
						f_name: "First name is required",
						l_name: "Last name is required",
						email: {
							required: "Please enter a valid email address"
						},
						company: {
							required: "The company that will be using the system"
						},
						company_url: {
							required: "Company URL"
						}
			   }
				
			});

	});
