// image preLoads
image1 = new Image();
image1.src = "/images/revamp/searchGoOv.jpg";
image2 = new Image();
image2.src = "/images/bgOv.jpg";
image3 = new Image();
image3.src = "/images/revamp/clients/Wrap n Roll.jpg";
/*
image4 = new Image();
image4.src = "/images/revamp/clients/Autotrader.jpg";

image5 = new Image();
image5.src = "/images/revamp/clients/Appliance365.jpg";

image6 = new Image();
image6.src = "/images/revamp/clients/AstraZeneca.jpg";

image7 = new Image();
image7.src = "/images/revamp/clients/Empowering%20Mums.jpg";

image8 = new Image();
image8.src = "/images/revamp/clients/Eyewear%20Warehouse.jpg";

image9 = new Image();
image9.src = "/images/revamp/clients/Galaxy%20Optical.jpg";

image10 = new Image();
image10.src = "/images/revamp/clients/Milford.jpg";

image11 = new Image();
image11.src = "/images/revamp/clients/Progressive%20Solutions.jpg";

image12 = new Image();
image12.src = "/images/revamp/clients/Spinney.jpg";

image13 = new Image();
image13.src = "/images/revamp/clients/Storengy.jpg";

image14 = new Image();
image14.src = "/images/revamp/clients/T.M.Duche.jpg";

image15 = new Image();
image15.src = "/images/revamp/clients/Connexions.jpg";

image16 = new Image();
image16.src = "/images/revamp/clients/Groundwork.jpg";

image17 = new Image();
image17.src = "/images/revamp/clients/Guerbet.jpg";
                                                      
image18 = new Image();
image18.src = "/images/revamp/clients/Progressive%20Solutions%20Graphic%20Design.jpg";

image19 = new Image();
image19.src = "/images/revamp/clients/Relish%20Graphic%20Design.jpg";

image20 = new Image();
image20.src = "/images/revamp/clients/Admin-4-U.jpg";

image21 = new Image();
image21.src = "/images/revamp/clients/Creative%20Industries%20Support%20Project.jpg";

image22 = new Image();
image22.src = "/images/revamp/clients/Indicium.jpg";

image23 = new Image();
image23.src = "/images/revamp/clients/Relish%20logo.jpg";

image24 = new Image();
image24.src = "/images/revamp/clients/email2.jpg";

image25 = new Image();
image25.src = "/images/revamp/clients/email1.jpg";

image26 = new Image();
image26.src = "/images/revamp/clients/email3.jpg";

image27 = new Image();
image27.src = "/images/revamp/clients/JordanSheppard.jpg";
*/







// nice fades
$(document).ready(function () {
	
  $('#navMenu li, #lastOne, #firstOne').append('<div class="hover"><\/div>');
 	$('#navMenu li, #lastOne, #firstOne').hover(

		function() {	
			$(this).children('div').fadeIn('1000');	
		}, 

		function() {
			$(this).children('div').fadeOut('1000');	
	})
	
	
    $("#main_left a, .box a").hover(function() {
      $(this).stop().css({ 'backgroundColor': '#fff'})
      $(this).stop().animate({ backgroundColor: "#A0A0A0" }, "fast");
    },function() {
      $(this).stop().css({ 'backgroundColor': '#A0A0A0'})
      $(this).stop().animate({ backgroundColor: "#fff" }, "fast");
    }); 
    
    
    $("#second2010Menu li a").hover(function() {
      $(this).stop().css({ 'backgroundColor': '#f6fdc2'})
      $(this).stop().animate({ backgroundColor: "#B5CF1E" }, "fast");
    },function() {
      $(this).stop().css({ 'backgroundColor': '#B5CF1E'})
      $(this).stop().animate({ backgroundColor: "#f6fdc2" }, "fast");
    }); 
    
    
    
        $("#second2010Menu li li a").hover(function() {
      $(this).stop().css({ 'backgroundColor': '#f8faea'})
      $(this).stop().animate({ backgroundColor: "#B5CF1E" }, "fast");
    },function() {
      $(this).stop().css({ 'backgroundColor': '#B5CF1E'})
      $(this).stop().animate({ backgroundColor: "#f8faea" }, "fast");
    }); 
    
    
 $("#second2010Menu .selected a").hover(function() {
      $(this).stop().css({ 'backgroundColor': '#B5CF1E'})
      $(this).stop().animate({ backgroundColor: "#B5CF1E" }, "fast");
    },function() {
      $(this).stop().css({ 'backgroundColor': '#B5CF1E'})
      $(this).stop().animate({ backgroundColor: "#B5CF1E" }, "fast");
    });  
    
    
  $('.logoFooLightFade img').mouseover(function() {
    $(this).stop().fadeTo(600, 0.96);
  }),
  
  $('.logoFooLightFade img').mouseout(function() {
    $(this).stop().fadeTo(800, 1.0);
  });
     
      
      
  $('.logoFooDarkFade img').mouseover(function() {
    $(this).stop().fadeTo(500, 0.80);
  }),
  
  $('.logoFooDarkFade img').mouseout(function() {
    $(this).stop().fadeTo(800, 1.0);
  });
     
     
  $('.logoFooMedFade img').mouseover(function() {
    $(this).stop().fadeTo(500, 0.92);
  }),
  
  $('.logoFooMedFade img').mouseout(function() {
    $(this).stop().fadeTo(800, 1.0);
  }); 


    $("#main_left h2 a").hover(function() {
      $(this).stop().css({ 'backgroundColor': '#fff'})
      $(this).stop().animate({ backgroundColor: "#F6FDC2" }, "fast");
    },function() {
      $(this).stop().css({ 'backgroundColor': '#F6FDC2'})
      $(this).stop().animate({ backgroundColor: "#fff" }, "fast");
    }); 



    $("h1 a").hover(function() {
      $(this).stop().css({ 'backgroundColor': '#fff'})
      $(this).stop().animate({ backgroundColor: "#eeeeee" }, "fast");
    },function() {
      $(this).stop().css({ 'backgroundColor': '#eeeeee'})
      $(this).stop().animate({ backgroundColor: "#fff" }, "fast");
    }); 
                                               
$('#portfolio img').hide().fadeIn(900);

	$('.fadein img:gt(0)').hide();
setInterval(function(){$('.fadein :first-child').fadeOut(1000).next('img').fadeIn(1000).end().appendTo('.fadein');}, 5000);


 $("#main_left img").lazyload({
     placeholder : "/images/clear.gif",       
     effect      : "fadeIn"
 });

     
});


