jQuery.preloadImages=function(){
  for(var i=0;i<arguments.length;i++){
    jquery("><img>").attr("src",arguments[i])
  }
};
$(document).ready(function(){
  jQuery.easing.def="easeOutCubic";
  $("#illustration a").hover(function(){
    $(this).next("em").animate({opacity:"show",top:"-70"},800)
  }, function(){
    $(this).next("em").animate({opacity:"hide",top:"-90"},1500)
  }
);
$("a.show1").click(function(){
  $(this).addClass("activetab");
  $("a.show3, a.show2, a.show4, a.show5, a.show6, a.show7, a.show8, a.show9, a.show10").removeClass("activetab");
  $(".wide").animate({marginLeft:"0px"},900);
  $("#navindicator").fadeOut("slow");
  return false
});
$("a.show2").click(function(){
  $(this).addClass("activetab");
  $("a.show1, a.show3, a.show4, a.show5, a.show6, a.show7, a.show8, a.show9, a.show10").removeClass("activetab");
  $(".wide").animate({marginLeft:"-680px"},1100);
  $("#navindicator").fadeOut("slow");
  return false
});
$("a.show3").click(function(){
  $(this).addClass("activetab");
  $("a.show1, a.show2, a.show4, a.show5, a.show6, a.show7, a.show8, a.show9, a.show10").removeClass("activetab");
  $(".wide").animate({marginLeft:"-1360px"},1100);
  $("#navindicator").fadeOut("slow");
  return false
});
$("a.show4").click(function(){
  $(this).addClass("activetab");
  $("a.show1, a.show2, a.show3, a.show5, a.show6, a.show7, a.show8, a.show9, a.show10").removeClass("activetab");
  $(".wide").animate({marginLeft:"-2040px"},1100);
  $("#navindicator").fadeOut("slow");
  return false
});
$("a.show5").click(function(){
  $(this).addClass("activetab");
  $("a.show1, a.show2, a.show3, a.show4, a.show6, a.show7, a.show8, a.show9, a.show10").removeClass("activetab");
  $(".wide").animate({marginLeft:"-2720px"},1100);
  $("#navindicator").fadeOut("slow");
  return false
});
$("a.show6").click(function(){
  $(this).addClass("activetab");
  $("a.show1, a.show2, a.show3, a.show4, a.show5, a.show7, a.show8, a.show9, a.show10").removeClass("activetab");
  $(".wide").animate({marginLeft:"-3400px"},1100);
  $("#navindicator").fadeOut("slow");
  return false
});
$("a.show7").click(function(){
  $(this).addClass("activetab");
  $("a.show1, a.show2, a.show3, a.show4, a.show5, a.show6, a.show8, a.show9, a.show10").removeClass("activetab");
  $(".wide").animate({marginLeft:"-4080px"},1100);
  $("#navindicator").fadeOut("slow");
  return false
});
$("a.show8").click(function(){
  $(this).addClass("activetab");
  $("a.show1, a.show2, a.show3, a.show4, a.show5, a.show6, a.show7, a.show9, a.show10").removeClass("activetab");
  $(".wide").animate({marginLeft:"-4760px"},1100);
  $("#navindicator").fadeOut("slow");
  return false
});
$("a.show9").click(function(){
  $(this).addClass("activetab");
  $("a.show1, a.show2, a.show3, a.show4, a.show5, a.show6, a.show7, a.show8, a.show10").removeClass("activetab");
  $(".wide").animate({marginLeft:"-5440px"},1100);
  $("#navindicator").fadeOut("slow");
  return false
});
$("a.show10").click(function(){
  $(this).addClass("activetab");
  $("a.show1, a.show2, a.show3, a.show4, a.show5, a.show6, a.show7, a.show8, a.show9").removeClass("activetab");
  $(".wide").animate({marginLeft:"-6120px"},1100);
  $("#navindicator").fadeOut("slow");
  return false
});

$(function(){
  $('a[@rel*=megaswim]').lightBox();
  $('a[@rel*=gamepicker]').lightBox();
  $('a[@rel*=bulletDVR]').lightBox();
  $('a[@rel*=sports-cannes]').lightBox()
  $('a[@rel*=pascal-ecailler]').lightBox()
  $('a[@rel*=manhattan]').lightBox()
  $('a[@rel*=sports-cannes1]').lightBox()
  $('a[@rel*=lakeside-Complex]').lightBox()
  $('a[@rel*=barbados]').lightBox()
  $('a[@rel*=mxgrafik]').lightBox()
  $('a[@rel*=monica]').lightBox()
  $('a[@rel*=rossi]').lightBox()
  $('a[@rel*=rossiPortrait]').lightBox()
  $('a[@rel*=jacques]').lightBox()
  $('a[@rel*=pilotemxgrafik]').lightBox()
  $('a[@rel*=christmas-mxgrafik]').lightBox()
  $('a[@rel*=lakeside]').lightBox()
  $('a[@rel*=my-whale]').lightBox()
  $('a[@rel*=model-girl]').lightBox()
  $('a[@rel*=franckrocca]').lightBox()
});

$(window).load(function(){
  $("#sidetabs").animate({opacity:"show",left:"1"},1000);
  $("#navindicator").animate({opacity:"show",left:"5"},1000)
})
});
