/* CAROUSEL CONFIG */
jQuery(document).ready(function() {
    jQuery('#mycarousel').jcarousel({
    });
});

/* CROSSFADE BUTTONS */
$(document).ready(function() {
  $("ul.gallery li").hover(function() { //On hover...
    var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'
    $(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});
    $(this).find("span").stop().fadeTo('normal', 0 , function() {
      $(this).hide() //Hide the image after fade
    });
  } , function() { //on hover out...
    $(this).find("span").stop().fadeTo('normal', 1).show();
  });

  $("ul.jcarousel-list li").hover(function() { //On hover...
    var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'
    $(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});
    $(this).find("span").stop().fadeTo('normal', 0 , function() {
      $(this).hide() //Hide the image after fade
    });
  } , function() { //on hover out...
    $(this).find("span").stop().fadeTo('normal', 1).show();
  });
});


/* FANCYBOX CONFIG */
$(document).ready(function() {
  $("a.fancy").fancybox({
    'transitionIn'	: 'elastic',
    'transitionOut'	: 'elastic'
  });
  
  $("a.iframe").fancybox({
  });

  $("a.maps").fancybox({
    'width'     : 720,
    'height'     : 480,
    'transitionIn'	: 'elastic',
    'transitionOut'	: 'elastic'
  });
});


    

