
	
$(document).ready(function(){

	// Hide All Divs
	$(function() {
  	$('.boxy').boxy({title: "<h2>Contact </h2>", 
	modal: true});
	});

    
    $('#buy_form').livequery('submit', function(event){
    
	// 
	alert("Sorry, But All Slots Are Filled At The Moment. If you want to purchase Linkfuu, please contact us using the contact form.");
	return false;	
    })
	
	
	
	 
	$('#faq').hide();
	$('#contact').hide();
	$('#features').hide();
	//$('#buy').hide();
	$('#examples').hide();
	
	



	$('a[id*=show]').livequery('click', function(event) { 
	
	
	if($(this).attr('class') != 'toptab active'){
		
	    $target_div = $(this).attr('show');
				
		
		  $('a[id*=show]').each(function (i) {			
	       		
				
				if ($(this).is(':visible')) {
					
					//Assign Var to X					
					//$current_eq = i;
					
					if ($(this).attr('show') !='buy') {
					$('#' + $(this).attr('show')).fadeOut('slow');
					$(this).attr('class', 'toptab');
					}
				}
	     
	      });

		$('#' + $target_div).fadeIn('slow');		
		$(this).attr('class','toptab active');		
		
	} // end if 		
		return false; 
		
	}); 

		

	$('form#contact_form').livequery(function(){
	    
	        var options = {
	            target: '#contact_response', // target element(s) to be updated with server response 
	            beforeSubmit: verify_contact_form // pre-submit callback 
	            
	        };
	        
	        $('form#contact_form').ajaxForm(options);
	    });
		

	
});