var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-25675091-1']);
 _gaq.push(['_trackPageview']);

 (function() {
   var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
   ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
   var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 })();
 
function loading(si_no)
{
	if(si_no)
		$('#wait').fadeIn();
	else
		$('#wait').fadeOut();
}
$(document).ready(function() {
	$('#display').css('min-height',($(window).height()-70-$('#contenido').height())+'px');
	
	$('#wait').hide();

	$('.btnLink').live('click',function(){
		if($(this).attr('href').match(/http:/)==null)
			document.location.href = vp_webBase+$(this).attr('href');
		else
			document.location.href = $(this).attr('href');
	});
	
	$('#menu div').click(function(){
		document.location.href = $(this)[0].childNodes[1].href;
	});
	
	$('#newsSubscribe').click(function(){
		var miRes = '';
		var MiRuta = 'http://www.vanwormerresorts.com/newsletter/suscribe/?mail='+$('#lang_pie_newsletter_mail_example').val();
		$.post(MiRuta);
		if(vp_idiomasel==1)
			alert('Thank you.');
		else
			alert('Gracias.');
	});
});
