// Initialize Shadowbox
Shadowbox.init({
    language:   "en",
    overlayOpacity: ".7",
    players:    ["html", "flv", "img", "iframe"]
});




// Initialize jQuery
$(document).ready(function(){

	// Uniform
	// radio, pulldowns, checkboxes, and uploads
	$(function(){
		$("select, input:checkbox, input:radio, input:file").uniform();
  });


  $("#slider1").easySlider({
  	auto: false,
  	continuous: true,
  	numToShow: 3,
  	nextId: "slider1next",
  	prevId: "slider1prev",
  	nextText: 		' ',
  	prevText: 		' '
  });

  $("#slider2").easySlider({
		auto: false,
		continuous: true,
		numToShow: 3,
		nextId: "slider2next",
		prevId: "slider2prev",
		nextText: 		' ',
  	prevText: 		' '
  });


});


$(window).load(function() {
    $('.slider').nivoSlider({
        effect:'fold', //Specify sets like: 'fold,fade,sliceDown'
        slices:15,
        animSpeed:500, //Slide transition speed
        pauseTime:5000,
        startSlide:0, //Set starting Slide (0 index)
        directionNav:true, //Next & Prev
        directionNavHide:true, //Only show on hover
        controlNav:false, //1,2,3...
        pauseOnHover:true, //Stop animation while hovering
        manualAdvance:false, //Force manual transitions
        captionOpacity:0.8 //Universal caption opacity
    });
    $('.download_album').nivoSlider({
        effect:'fold', //Specify sets like: 'fold,fade,sliceDown'
        slices:15,
        animSpeed:500, //Slide transition speed
        pauseTime:3000,
        startSlide:0, //Set starting Slide (0 index)
        directionNav:true, //Next & Prev
        directionNavHide:true, //Only show on hover
        controlNav:false, //1,2,3...
        pauseOnHover:true, //Stop animation while hovering
        manualAdvance:true, //Force manual transitions
        captionOpacity:0.8 //Universal caption opacity
    });


    // set up all anchor elements with a "movie" class to work with Shadowbox
    Shadowbox.setup(".sliders_video ul li a", {
        autoplayMovies:     true,
        height: 540,
        width:670
    });
    Shadowbox.setup(".sliders_image ul li a[rel=images]", {
        autoplayMovies:     true,
        gallery: "images",
        displayNav: true,
        displayCounter: true
    });




    $(function(){
        $('.menu-item-1806 a').click(function(){
            window.open(this.href);
            return false;
        });
    });

});

