$(document).ready( function() {
    //Homepage Banner Carousel
    $("#slideshow").cycle({
      speed: 2000,
      pager: '.pager',
      next: 'a#next-1',
      prev: 'a#prev-1',
      pause: 1,
      timeout: 0,
      speed: 400,
      fx: 'scrollHorz',
      cleartypeNoBg: true
    });

    $(".style-link-a").click(function() {
      var page = parseInt($(this).attr("href"));
      $("#show-gallery #show-a .wrap").cycle(page);
      return false;
    });

    $(".style-link-b").click(function() {
      var page = parseInt($(this).attr("href"));
      $("#show-gallery #show-b .wrap").cycle(page);
      return false;
    });

    // Looks Carousel    
    $("#show-gallery #show-a .wrap").cycle({
      next: 'a#next-1,#show-a .blank',
      prev: 'a#prev-1',
      pause: 1,
      timeout: 0,
      speed: 400,
      fx: 'scrollHorz',
      cleartypeNoBg: true
    });

    $("#show-gallery #show-b .wrap").cycle({
      next: 'a#next-2,#show-b .blank',
      prev: 'a#prev-2',
      pause: 1,
      timeout: 0,
      speed: 400,
      fx: 'scrollHorz',
      cleartypeNoBg: true
    });

    $(".model .description").hide();
    
    $(".model").hover(function(){
        $('.description', this).stop().fadeTo('fast', 1, function(){
          if($('.fb-like iframe', this).length > 0){return;}
          FB.XFBML.parse(this);
        });
      }, function() {
        $('.description', this).stop().fadeOut();
    });
    
    $(".model h4 a").colorbox();
});

