$(document).ready(function()
{
    var IE = /*@cc_on!@*/false;
    /* init events in content */
    var thisParent = thisParent || $("body");
    if(IE == false);
    initEvents(thisParent);

});

/* Init basic events and effects */
function initEvents(thisParent)
{
  initNivoSlider();
}


function initNivoSlider(){
  $('#slider').nivoSlider({
          effect: 'random',
          slices: 15,
      boxCols: 12, // For box animations
      boxRows: 5, // For box animations          
          animSpeed: 1000,
          pauseTime: 5000,
          startSlide: 0, //Set starting Slide (0 index)
          directionNav: false, //Next & Prev
          directionNavHide: false, //Only show on hover
          controlNav: true, //1,2,3...
          controlNavThumbs: false, //Use thumbnails for Control Nav
          controlNavThumbsSearch: '.jpg', //Replace this with...
          controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
          keyboardNav: false, //Use left & right arrows
          pauseOnHover: false, //Stop animation while hovering
          manualAdvance: false, //Force manual transitions
          captionOpacity: 0.8, //Universal caption opacity
          beforeChange: function(){},
          afterChange: function(){},
          slideshowEnd: function(){} //Triggers after all slides have been shown
      });
}
