$(document).ready(function() { 
  
  /* This is basic - uses default settings */ 
  $("a#single_image").fancybox(); 
  
  /* Using custom settings */ 
  $("a#inline").fancybox({ 
    'hideOnContentClick': true 
  }); 
  
  /* Fancybox */
  $("a.fbox").fancybox({ 
    'zoomSpeedIn': 0, 
    'zoomSpeedOut': 0, 
    'overlayShow': true,
    'frameWidth': 850,
    'frameHeight': 460,
    'overlayColor': '#000',
    'overlayOpacity': 0.7,
    'hideOnContentClick': false
  });
  
  $("a.fbox_mid").fancybox({ 
    'zoomSpeedIn': 0, 
    'zoomSpeedOut': 0, 
    'overlayShow': true,
    'frameWidth': 390,
    'frameHeight': 350,
    'overlayColor': '#000',
    'overlayOpacity': 0.7,
    'hideOnContentClick': false
  });
  
  $("a.fbox_full").fancybox({ 
    'zoomSpeedIn': 0, 
    'zoomSpeedOut': 0, 
    'overlayShow': true,
    'frameWidth': 900,
    'frameHeight': 600,
    'overlayColor': '#000',
    'overlayOpacity': 0.7,
    'hideOnContentClick': false
  });
  
  /* qTip */
  $('a[title]').qtip({ 
    style: { 
      width: 200,
      padding: 5,
      background: '#887561',
      color: '#504233',
      textAlign: 'center',
      border: {
         width: 7,
         radius: 5,
         color: '#504233'
      },
      tip: 'bottomLeft',
      name: 'red' // Inherit the rest of the attributes from the preset dark style
    },
    position: {
      corner: {
         target: 'topRight',
         tooltip: 'bottomLeft'
      }
    }
  });
  
  /* Browser Check and IE correction */
  jQuery.each(jQuery.browser, function(i) {
    if($.browser.msie  && $.browser.version.substr(0,1) < 7)
    {
      $("#browsercomp").css("display", "inline");
      $(".portfolio_thumbs li .shadow").css("background", "url(\"images/peel_shadow_ie.jpg\") no-repeat top right");
      $(".form_submit").css("background", "url(\"images/peel_shadow_ie.jpg\") no-repeat top right");
      $(".peel_shadow").css("background", "url(\"images/peel_shadow_ie.jpg\") no-repeat top right");
      $(".form_input input, .form_input textarea").css("width", "500px");
      //$(".portfolio_thumbs li .content .overlay").css("background", "#79912c");
      //$("#navigation a").css("font-weight", "bold");
    }
    else
    {
      $("#browsercomp").css("display","none");
    }
  });
  
  /* Featured Overlay */
  $(".portfolio_thumbs li .content").hover(function(){
    $(this).children(".overlay").fadeIn(150);
  }, function(){
    $(this).children(".overlay").fadeOut(70);
  });
  
});


function showMore() 
{
  $("#more_container").slideDown("slow");
}

