//shadowbox
$(window).load(function(){
 var options = {
  animate: true,
  animateFade: true,
  animSequence: "sync",
  resizeDuration: 0.15,
  fadeDuration: 0.2,
  flvPlayer: 'theme/rest/flvplayer.swf',
  modal: false,
  continuous: true,
  counterType: "skip",
  counterLimit: 10,
  overlayColor: "black",
  overlayOpacity: 0.8,
  viewportPadding: 10,
  initialHeight: 250,
  initialWidth: 400
 };
 Shadowbox.init(options);
});

$.easing.easeOutQuart = function (x, t, b, c, d) {
 return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

$(document).ready(function(){
 $("#fotogaleria .ce_gallery .image_container").hover(
 function () {
   $(this).children("img").addClass('imgNowBord');
  }, 
   function () {
    $(this).children("img").removeClass('imgNowBord');
  }
 );
 $('#ilus').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '246px' }); 
 $("ul.sf-menu").supersubs({ 
    minWidth:    12,
    maxWidth:    27,
    extraWidth:  1
 }).superfish(); 
}); 
