<!--

var polaroid = 2

$(document).ready(function(){

	sendNewsletterForm();
	
	initHomePoll();
	initHomeVideo();
	
	initHomeNews();


	changePolaroid();
	setBannerSlider();

	$('div.accomodation, div.shirt, div.exclamation, div.practice').tooltip({
		track: true, 
		delay: 0, 
		fade: 100,
		extraClass: "titleTip"
	});

	
	initArticleShare();
	
	
	$('#changeSeason').bind('mouseenter mouseleave', function() {
		$(this).children('ul').toggle();
	});
	

	$('#socialmedia a').mouseleave(function() {
		animateSocialButtons(this,'leave');
	}).mouseenter(function() {
		animateSocialButtons(this,'enter');
	});
	
	initLastGlobalNav()
});



function animateSocialButtons(o,e){
	var bp = '0px -36px'
	var right = '0px'
	
	if (e=='leave'){
		bp = '0px 0px'
		right = '-10px'	
	}
	
	$(o).animate({
		'right' : right,
		'background-position': bp
	}, 200, function() {
		// Animation complete.
	});
}


function setPolaroidImage(){
	if (polaroid==2){
		polaroid = 1	
		$('#polaroid img#polaroid_2').show();
	}
	else{
		polaroid = 2
		$('#polaroid img#polaroid_2').hide();
	}
	changePolaroid();							
}

function changePolaroid(){
	setTimeout("setPolaroidImage();", 4500 );
}


function initLastGlobalNav(){
	
	var o = $('#globalNav a:last');
	var p = o.position();
	var w = o.outerWidth();
	var m = 20
	var wNav = $('#globalNav').width();
		wNav = (wNav-200+m)
	var left = p.left;
	
	if ((left+m+w)>wNav){	
		$('#header').append('<a id="lastGlobal" href="' +o.attr('href')+ '">&nbsp;</a>');
		
		var oA = $('a#lastGlobal');
		oA.css({'width':(((left+w)-wNav)+'px')});
		oA.bind('mouseenter mouseleave', function(){
			o.toggleClass('hover');
		});
	}
}





-->
