$(document).ready(function() {

 	$('a.buttonLink').hover(function() { //mouse in
		$(this).animate({ paddingLeft: '40px' },600);
	}, function() { //mouse out
		$(this).animate({ paddingLeft: '12px' }, 600);
	});
	
 	$('a.homeMainLink').hover(function() { //mouse in
		$(this).animate({ paddingBottom: '30px' },600);
	}, function() { //mouse out
		$(this).animate({ paddingBottom: '15px' }, 600);
	});
	
 	$('a.homeMainLinkLightBlue').hover(function() { //mouse in
		$(this).animate({ paddingBottom: '30px' },600);
	}, function() { //mouse out
		$(this).animate({ paddingBottom: '15px' }, 600);
	});

 	$('a.homeMainLinkOrange').hover(function() { //mouse in
		$(this).animate({ paddingBottom: '30px' },600);
	}, function() { //mouse out
		$(this).animate({ paddingBottom: '15px' }, 600);
	});
	


$('.wobble').hover(function(e){
    //mouse over
    $(this).stop().animate({top: '-10px'}, 120, function(){
        wobble(e, 10);
    });
}, function(){
    //mouse out
    $(this).stop().animate({top: '0'}, 120);
});
 
function wobble(e, amount){
    $(e.target).animate({top: amount + 'px'}, function(){
        wobble(e, -amount);
    });
}


	
	
	
	
 	$('a.sideQuote').hover(function() { //mouse in
		$(this).animate({ borderColor: "#f8931f", borderWidthLeft: "10px" }, 600);
	}, function() { //mouse out
		$(this).animate({ borderColor: "#f8931f", borderWidthLeft: "0px" }, 600);
	});	



	$('.websiteSlides').show();
	$('.websiteSlides').cycle({
		fx:    'fade',
		speed:  2000,
		timeout: 5000,
		cleartypeNoBg: true
 	});

	$('.slideShow').show();
	$('.slideShow').cycle({
		fx:    'fade',
		speed:  2000,
		timeout: 5000,
		cleartypeNoBg: true
 	});


	$('a.external').click(function(){
        window.open(this.href);
        return false;
	});

	$("#domainnamesubmit").click(function(){
		$("#DomainNameForm").submit();
		return false;
	});

	$("#contactformbutton").click(function(){
		$("#contactform").submit();
		return false;
	});

	$(".validateform").validate();
	






});
