$(document).ready(function() {
//
//
//		The hover effect of the boxes and captions.
//
//
	// $('.homebox img').css({opacity:'0.4'});

	$('.homebox').hover(function(){
		$(".homeboxcap", this).stop().animate({top:'-1px'},{queue:false,duration:160});
	}, function() {
		$(".homeboxcap", this).stop().animate({top:'98px'},{queue:false,duration:160});
	});
	
	$('.foliobox').hover(function(){
		$(".folioboxcap", this).stop().animate({top:'43px'},{queue:false,duration:160});
	}, function() {
		$(".folioboxcap", this).stop().animate({top:'130px'},{queue:false,duration:160});
	});
	
	$(".showreel-link").hover(function(){
		$(this).stop().animate({opacity:'0.5'},{queue:false,duration:160});
	}, function() {
		$(this).stop().animate({opacity:'1'},{queue:false,duration:160});
	});

	$(".pretty-green-quote").hover(function(){
		$(this).stop().animate({opacity:'0.75'},{queue:false,duration:160});
	}, function() {
		$(this).stop().animate({opacity:'1'},{queue:false,duration:160});
	});
	
	$(".pretty-green-back-to-services").hover(function(){
		$(this).stop().animate({opacity:'0.75'},{queue:false,duration:160});
	}, function() {
		$(this).stop().animate({opacity:'1'},{queue:false,duration:160});
	});
	
	$(".pretty-green-back-to-portfolio").hover(function(){
		$(this).stop().animate({opacity:'0.75'},{queue:false,duration:160});
	}, function() {
		$(this).stop().animate({opacity:'1'},{queue:false,duration:160});
	});
	
	$(".pretty-green-clients").hover(function(){
		$(this).stop().animate({opacity:'0.75'},{queue:false,duration:160});
	}, function() {
		$(this).stop().animate({opacity:'1'},{queue:false,duration:160});
	});

	$(".quote-linky").hover(function(){
		$(this).stop().animate({opacity:'0.75'},{queue:false,duration:160});
	}, function() {
		$(this).stop().animate({opacity:'1'},{queue:false,duration:160});
	});
		
	$('.archivesli').hover(function(){
		$(this).animate({left: '10px'},{queue:false,duration:100});
	}, function() {
		$(this).animate({left: '0px'},{queue:false,duration:100});
	});

	$("span#webdesignlink").click(function(){
		$(".services-item").fadeOut('fast').hide();
    	$("#web-design-info").fadeIn("Slow");
    	return false;
	});
    
	$("span#brandinglink").click(function(){
    	$(".services-item").fadeOut('fast').hide();
    	$("#branding-info").fadeIn("Slow");
    	return false;
	});
    
	$("span#hostinglink").click(function(){
    	$(".services-item").fadeOut('fast').hide();
    	$("#hosting-info").fadeIn("Slow");
    	return false;
	});
    
	$("span#ecommlink").click(function(){
    	$(".services-item").fadeOut('fast').hide();
    	$("#ecomm-info").fadeIn("Slow");
    	return false;
	});
    
	$("span#cmslink").click(function(){
    	$(".services-item").fadeOut('fast').hide();
    	$("#cms-info").fadeIn("Slow");
    	return false;
	});	
});