$("div.tabs").tabs(".images > div", {

    // enable "cross-fading" effect
    effect: 'fade',
    fadeOutSpeed: "slow",

    // start from the beginning after the last tab
    rotate: true

// use the slideshow plugin. It accepts its own configuration
}).slideshow({
    autoplay: true
});

// Date picker form
$.datepicker.setDefaults($.datepicker.regional['']);

$(".datepicker").datepicker($.datepicker.regional['es']);

$(".datepicker").datepicker({
    altFormat:'dd-mm-yy',
    dateFormat: 'dd-mm-yy'
});

// Close Error
$(".close").click(function(){
    $("#error").fadeOut("slow");
});


// select the thumbnails and make them trigger our overlay
$("#sgContent a").overlay({

    // each trigger uses the same overlay with the id "gallery"
    target: '#gallery',

    // optional exposing effect
    expose: '#869b47'

// let the gallery plugin do its magic!
}).gallery({

    // the plugin accepts its own set of configuration options
    speed: 800
});


