jQuery(document).ready(function() {  // do things when DOM is ready

  jQuery('img.reflect').reflect({height: 0.2, opacity: 0.6});
  
  jQuery(".jcarousel-skin-custom li").zoomEffect({scalePercentage:7});

  //http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/
  function clearHashtag(){
    url=location.href;
    if(url.indexOf('#!')){
      hashtag=true;
    }else{
      hashtag=false;
    }
    if(hashtag){
      location.hash='';
    }
  }
  
  jQuery("a[rel^='prettyPhoto']").prettyPhoto({
    social_tools: false,
    show_title: false,
    theme:'facebook',
    callback: clearHashtag
    /*, deeplinking: false*/
  });

  jQuery('a[rel*="external"],form[rel*="external"]').attr("target", "_blank");
  
});
