// JavaScript Document

//Cufon

   Cufon.replace('h1') ('h5') ('h4') ('h2') ('.more') ('ul.this_section_list li a ', { hover: true })

	('.main-link-registration a', { hover: true }) 

	('.main-link-attending a', { hover: true }) 

	('ul.this_section_list-privatearea li a ', { hover: true })				   

	('#menu li a', { hover: true })
  
  ('#imminent');
   	
  
//Nivo Slider  
  
  $(window).load(function() {

        $('#slider').nivoSlider({

			slices:5,		

			animSpeed:500, 		

			pauseTime:3000,		

			startSlide:0, 		

			directionNav:false, 		

			directionNavHide:false, 		

			controlNav:true, 		

			pauseOnHover:false  

		});

    });

//Countdown - Primo

$(document).ready(function() {
		
  
    $("#time").countdown({
		date: "january 16, 2012 09:00:00",
		htmlTemplate: "<span class='cifra'><strong> %{d} </strong> <em class=\"cd-time\">days</em></span> <span class='cifra'><strong> %{h} </strong> <em class=\"cd-time\">hours</em></span> <span class='cifra'><strong> %{m} </strong> <em class=\"cd-time\">mins</em></span> <span class='cifra'><strong> %{s} </strong> <em class=\"cd-time\">sec</em></span>",
		
    onChange: function( event, timer ){
	},
		onComplete: function( event ){
		
			$(this).html("Completed");
		},
		onPause: function( event, timer ){

			$(this).html("Pause");
		},
		onResume: function( event ){
		
			$(this).html("Resumed");
		},
		leadingZero: true
	});	

	
//Countdown - Secondo
	
	$("#time2").countdown({
		date: "april 30, 2012 09:00:00",
		htmlTemplate: "<span class='cifra'><strong> %{d} </strong> <em class=\"cd-time\">days</em></span> <span class='cifra'><strong> %{h} </strong> <em class=\"cd-time\">hours</em></span> <span class='cifra'><strong> %{m} </strong> <em class=\"cd-time\">mins</em></span> <span class='cifra'><strong> %{s} </strong> <em class=\"cd-time\">sec</em></span>",
		offset: 1,
		onChange: function( event, timer ){
		
		},
		onComplete: function( event ){
		
			$(this).html("Completed");
		},
		onPause: function( event, timer ){

			$(this).html("Pause");
		},
		onResume: function( event ){
		
			$(this).html("Resumed");
		},
		leadingZero: true
	});
	
});


//Lightbox Galleries


	$(function() {

		 $('#scrollphoto a').lightBox();

		 $('.side-pic a').lightBox();
		 	 
		 $('.galleryview #aqua a').lightBox();
		 
		 $('.galleryview #boats a').lightBox();
		 
		 $('.galleryview #captains a').lightBox();
		 
		 $('.galleryview #sports a').lightBox();
		 
		 $('.galleryview #party a').lightBox();
		 
		 $('.galleryview #gala a').lightBox();
		 
		 $('.galleryview #show a').lightBox();
		 
		 $('.galleryview #marina a').lightBox();
		 
		 $('.galleryview #recept a').lightBox();
		 
		 $('.galleryview #comt a').lightBox();
		 
		 $('.galleryview #night a').lightBox();
		 
		 $('.galleryview #seminars a').lightBox();

    });
    
    
  

 //Vertical Tick

   
     $(document).ready(function(){
    $('.over_ul').bxSlider({
    mode: 'vertical',
    pager: true,
    auto: true,
    pause: 7000,
    controls: false,
    pagerActiveClass: 'target-news'
    });
    
  });
  
  

   $(document).ready(function() {
      $(document).ready(function() {
				var interval;
				
				$('ul.overview')
					.roundabout()
					.hover(
						function() {
							// oh no, it's the cops!
							clearInterval(interval);
						},
						function() {
							// false alarm: PARTY!
							interval = startAutoPlay();
						}
					);
				
				// let's get this party started
				interval = startAutoPlay();
			});
			
			function startAutoPlay() {
				return setInterval(function() {
					$('ul.overview').roundabout_animateToNextChild();
				}, 3000);
			}
   });

		
		
		
		
		
		
		
		
		
