//----------------------------- TOP MENU

$(document).ready(function(){
   $("ul.top li a").hover(function() {
        $(this).stop().fadeTo('slow', 0.5);
        
    },function(){
        $(this).stop().fadeTo('slow', 1.0);
       
    });
});

//------------------------------ COL 1

$(document).ready(function(){

 
    $(".col1").hover(function() {
     $(".eight").stop().animate({ marginTop: "90px" }, 500);
	 $(".nine").stop().animate({ marginTop: "-140px" }, 500);
	 $(".cust").fadeOut("slow");
	  $(".custhover").stop().animate({ marginLeft: "55px" }, 1000);
        
    },function(){
	 $(".eight").stop().animate({ marginTop: "0px" }, 500);
	 $(".nine").stop().animate({ marginTop: "-240px" }, 500);
	
	  $(".custhover").stop().animate({ marginLeft: "-200px" }, 1000);
	  $(".cust").fadeIn("slow");
       
    });
});

//------------------------------ COL2
$(document).ready(function(){

 
    $(".col2").hover(function() {
     $(".beaut").fadeOut("slow");
	 $(".beauthover").fadeIn("slow");
        
    },function(){
	 $(".beaut").fadeIn("slow");
	 $(".beauthover").fadeOut("slow");
	   
       
    });
});

//------------------------------ COL3
$(document).ready(function(){

 
    $(".col3").hover(function() {
     $(".work").stop().animate({ marginLeft: "300px" }, 500);
	 $(".workhover").stop().animate({ marginTop: "-140px" }, 500);
	 
        
    },function(){
	 $(".work").stop().animate({ marginLeft: "50px" }, 500);
	 $(".workhover").stop().animate({ marginTop: "140px" }, 500);
	   
       
    });
});

//------------------------------ COL4
$(document).ready(function(){

 
    $(".col4").hover(function() {
     $(".where").stop().animate({ marginTop: "300px" }, 500);
	 $(".wherehover").stop().animate({ marginTop: "0px" }, 500);
	 
        
    },function(){
	 $(".where").stop().animate({ marginTop: "10px" }, 500);
	 $(".wherehover").stop().animate({ marginTop: "-150px" }, 500);
	   
       
    });
});

//------------------------------ COL5
$(document).ready(function(){

 
    $(".col5").hover(function() {
     $(".tweethover").stop().animate({ marginTop: "-34px" }, 500);
	
	 
        
    },function(){
	$(".tweethover").stop().animate({ marginTop: "0px" }, 500);
	   
       
    });
});




//------------------------------ COL7
$(document).ready(function(){

 
    $(".col7").hover(function() {
     $(".who").stop().fadeOut("slow");
	 $(".whohover").stop().fadeIn("fast");
        
    },function(){
	 $(".who").stop().fadeIn("fast");
	 $(".whohover").stop().fadeOut("slow");
	   
       
    });
});



	
$(document).ready(function(){
  $(".contact").click(function(){
	
    $(".inner").stop().animate({width:650},"slow");
	$(".inner").stop().animate({height:210},"slow");
    
  
	
  });
    });
	
$(document).ready(function(){
  $(".close").click(function(){
	
    $(".inner").stop().fadeOut("slow");
	 
    
  
	
  });
    });



  

	
$(document).ready(function(){ 
  
	$(".webcontent").stop().animate({ marginRight: "340px" }, 1000);
	$(".aboutcontent").stop().animate({ marginRight: "350px" }, 1000);
	$(".brandcontent").stop().animate({ marginRight: "350px" }, 1000);
	$(".appcontent").stop().animate({ marginRight: "350px" }, 1000);
	$(".workonecontent").stop().animate({ marginRight: "500px" }, 1000);
	$(".worktwocontent").stop().animate({ marginRight: "10px" }, 1000);
	
    
});

//-------------------------- FACEBOX
 jQuery(document).ready(function($) {
      $('a[rel*=facebox]').facebox({
        loadingImage : 'img/loading.gif',
        closeImage   : 'img/closelabel.png'
      })
    });

//-------------------------- ANIMATION EFFECTS
$(document).ready(function(){

 
    $("#facebook").hover(function() {
        $(this).stop().animate({ marginTop: "5px" }, 200);
        
    },function(){
        $(this).stop().animate({ marginTop: "0px" }, 300);
       
    });
});

$(document).ready(function(){
	 $("#twitter").hover(function() {
        $(this).stop().animate({ marginTop: "5px" }, 200);
        
    },function(){
        $(this).stop().animate({ marginTop: "0px" }, 300);
       
    });
});

$(document).ready(function(){

 
    $("li.menu").hover(function() {
        $(this).stop().animate({ marginLeft: "20px" }, 200);
        
    },function(){
        $(this).stop().animate({ marginLeft: "0px" }, 300);
       
    });
});

$(document).ready(function(){

 
    $("li.menulast").hover(function() {
        $(this).stop().animate({ marginLeft: "20px" }, 200);
        
    },function(){
        $(this).stop().animate({ marginLeft: "0px" }, 300);
       
    });
});

//----------------------------------------- THUMBNAILS
$(document).ready(function(){
$("ul.thumb li").hover(function() {
	$(this).css({'z-index' : '10'}); /*Add a higher z-index value so this image stays on top*/ 
	$(this).find('img').addClass("hover").stop() /* Add class of "hover", then stop animation queue buildup*/
		.animate({
			marginTop: '-62px', /* The next 4 lines will vertically align this image */ 
			marginLeft: '-62px',
			top: '50%',
			left: '50%',
			width: '124px', /* Set new width */
			height: '124px', /* Set new height */
			padding: '20px'
		}, 200); /* this value of "200" is the speed of how fast/slow this hover animates */

	} , function() {
	$(this).css({'z-index' : '0'}); /* Set z-index back to 0 */
	$(this).find('img').removeClass("hover").stop()  /* Remove the "hover" class , then stop animation queue buildup*/
		.animate({
			marginTop: '0', /* Set alignment back to default */
			marginLeft: '0',
			top: '0',
			left: '0',
			width: '52px', /* Set width back to default */
			height: '52px', /* Set height back to default */
			padding: '0px'
		}, 400);
});
});




