/* Author: Arnold Visser / Aim24

*/

jQuery.fn.exists = function(){return jQuery(this).length>0;}

$(document).ready(function(){
  
  if ($('#featured').exists()) {
    $('#featured').orbit({
       animation: 'fade',                  // fade, horizontal-slide, vertical-slide, horizontal-push
       animationSpeed: 800,                // how fast animtions are
       timer: true,        // true or false to have the timer
       advanceSpeed: 4000,      // if timer is enabled, time between transitions 
       pauseOnHover: false,      // if you hover pauses the slider
       startClockOnMouseOut: false,    // if clock should start on MouseOut
       startClockOnMouseOutAfter: 1000,    // how long after MouseOut should the timer start again
       directionalNav: true,      // manual advancing directional navs
       captions: true,        // do you want captions?
       captionAnimation: 'fade',      // fade, slideOpen, none
       captionAnimationSpeed: 800,    // if so how quickly should they animate in
       bullets: true,       // true or false to activate the bullet navigation
    });
  };
  
  if ($("a[rel^='prettyPhoto']").exists()) {
    $("a[rel^='prettyPhoto']").prettyPhoto();
  };
  
});

















