$(document).ready(function(){
$("img.b").hover(
function() {
$(this).stop().animate({"opacity": "0"}, "slow");
},
function() {
$(this).stop().animate({"opacity": "1"}, "slow");
});
 
});

$(document).ready(function() {
	
	
	
	$("#one").click(function() {
$("#superhide").fadeOut(500);
$('#cont2').pause(500).fadeOut(500, function(){
    $(this)
        .html("<!--[if IE 8]> <div id='ie8box'> <![endif]--><div id='slides2'><div class='slides_container'><div><p class='white normal'>I was flicking through DigitalArts Magazine, as I was looking for the very best Digital Artists/ Illustrators, and I came across his work. It stood out a mile and was and is amazing.<br/><br/>I found him extremely hard working, talented and very easy to work with. He went above and beyond the call of duty and his services were on time, on budget and exemplary.<br/><br/>In the end the Olympic presentation we put together looked amazing and therefore, I would highly recommend Adam to anyone and I look forward to working with him again in the near future.</p><p class='btm accentblue'>Saatchi &amp; Saatchi Design London<br/>David Gilligan, Creative Director</p></div><div>  <p class='white normal'>Woodhouse is a featured artist on the Adobe Design Gallery and has also worked for some big international brands. Not bad for someone who's entirely self-taught.</p><p class='btm accentblue'><img src='images/quotes/digitalarts.png' width='129' height='30' class='quote' alt='digital arts'/><br/>Digital Arts - Best of new British talent<br/><br/><br/></p></div><div><p class='white normal'>Adam's unique styles push the boundaries of modern design, with abstract shapes and spacing, yet keeping the design focused and in context to its surroundings.</p><p class='btm accentblue'><img src='images/quotes/visitadobe.png' width='30' height='34' class='quote' alt='Visit Adobe'/><br/>Adobe Design Gallery - Featured Artist<br/><br/><br/></p></div><div>  <p class='white normal'>Adam Woodhouse is a extremely well rounded designer out of the United Kingdom. Adam is fluent in many of the designing programs we all know and he has been using them all to create his art. Adams illustrations consist of amazing 3D work mixed with Photoshop.</p><p class='btm accentblue'><img src='images/quotes/psdtutsplus.png' width='100' height='30' class='quote' alt='tutsplus'/><br/>psd.tutsplus.com</p><br/><br/></div></div></div><!--[if IE 8]></div> <![endif]-->")
        .fadeIn(500);Cufon.refresh();

	 if ( $.browser.msie ) {
		 $(document).ready(function() {
			$('#slides2').slides({
				generateNextPrev: true,
			    fadeSpeed: 1,
				play: 7000,
				autoHeight: true,
				hoverPause: true,
				effect: 'fade'
				});
			
		});
 } else {
$(document).ready(function() {
			$('#slides2').slides({
				generateNextPrev: true,
			    fadeSpeed: 800,
				play: 7000,
				autoHeight: true,
				hoverPause: true,
				effect: 'fade'
				});
		}); }	

		  Cufon.refresh();

});
})

$("#two").click(function() {
$("#superhide").fadeOut(500);
$('#cont2').pause(500).fadeOut(500, function(){
    $(this)
        .html("<div class='iesucks'><p class='white normal'>I have built up my career in London as a digital designer, where I was able to develop a wide range of commercial and personal skills.<br/><br/>I'm a passionate, award winning illustrator and digital designer with extensive industry experience; alongside exposure working with some of the most influential design agencies and companies in the world.<br><br>As I have been lucky enough to work with a large range of leading multinational brands; this has enhanced my understanding of a number of commercial sectors which enables me to design for their target market specifically with positive results.<br/><br/></p><br/><img src='images/sep1.png' width='358' height='138' alt='Sep' class='sepFIX4' /></div>")
        .fadeIn(500);Cufon.refresh();})});

$("#three").click(function() {
$("#superhide").fadeOut(500);
$('#cont2').pause(500).fadeOut(500, function(){
    $(this)
        .html("<div class='iesucks'><p class='white normal'>Alongside my core software skills, I am also interested in the use of 3D to enhance my illustrative and commercial design.<br/><br/>The use of programs such as Cinema 4d and Realflow have enabled me to add depth and dynamism to my designs I wouldn't be able to achieve using 2D software alone.<br/><br/>I enjoy exploring these different technologies to allow me to enhance and develop my technical knowledge, thus enabling me to create more concrete and eye catching design solutions.</p><br/><br/><img src='images/sep1.png' width='358' height='138' alt='Sep' class='sepFIX4' /></div>")
        .fadeIn(500);Cufon.refresh();})});


$("#mailmoi").click(function() {
$("#cont2").hide();
$("#superhide").fadeIn(2000);
		  Cufon.refresh();
		  

});
});

 $(document).keyup(function(e) {

  if (e.keyCode == 27) { Shadowbox.close() }   // esc
});

 $(document).keyup(function(e) {

  if (e.keyCode == 39) {   //right
  
var style=new Array('rot1','rot2','rot3','rot4');
 var l=style.length;
    Shadowbox.next()
  var t=(new Date()).getSeconds()%l;

  if(t>l){ while(t>l) t=(new Date()).getSeconds()%l; }

  var i=t;

  $("#sb-wrapper").each(function(a,b){	 
  $('#sb-wrapper').removeClass()
   if(i<l){
    $(b).addClass(style[i++]);
   }else{
    if(t>=0){
     $(b).addClass(style[--t]);
    }
   }
  });
 }   
 });

 $(document).keyup(function(e) {

  if (e.keyCode == 37) {   //left
  
var style=new Array('rot1','rot2','rot3','rot4');
 var l=style.length;
Shadowbox.previous()
 var t=(new Date()).getSeconds()%l;

  if(t>l){ while(t>l) t=(new Date()).getSeconds()%l; }

  var i=t;

  $("#sb-wrapper").each(function(a,b){	 
  $('#sb-wrapper').removeClass()
   if(i<l){
    $(b).addClass(style[i++]);
   }else{
    if(t>=0){
     $(b).addClass(style[--t]);
    }
   }
  });
 }   // esc
});


 

