// JavaScript Document
function anim_fade()
{
	setTimeout("Effect.Fade('animation', { duration:.3, from:1.0, to:0.0 });", 3000);
}
function selectSlide(town)
{
		if(window.interval != undefined)
		{
			window.clearInterval(interval);
		}
		Effect.Fade('slide'+window.i, { duration:.4});
		Effect.Appear('slide'+town, { duration:.4});
		window.i = town;
}
function boxMessage(page)
{
	$('ajax_content').innerHTML = '<br /> <br /><center><img scr="/images/site/loading.gif" / ></center>'
	Effect.Appear("mask", {to: .7, duration: .4});
	//new Ajax.Updater('ajax_content', '/ajax/'+page);
	
	new Ajax.Request('/ajax/'+page,
  {
    method:'get',
    onSuccess: function(transport){
      var response = transport.responseText || "no response text";
      $('ajax_content').innerHTML = response;
    },
    onFailure: function(){ alert('Something went wrong...') }
  });

	
	
	
	Effect.Appear("ajax_page", {to: 1, duration: .4});
	scroll(0,0); return false;
}
