
																			

								
							redir=getCookie('redircookie');
							
							if (redir == '/suomeksi.iw3' || redir == '/Kansainvalinen_sivusto/English.iw3')
							{
							window.location = redir;
							
							}
							
							
							function check(r, t)
							{
							   	if (r.checked == 1)
							 	{	
								setCookie('redircookie',t, 365);
							 	}
							 	else
								{
								setCookie('redircookie','', -1);
								}
							}
							
							function setCookie(c_name,value,expiredays)
							{
							var exdate=new Date();
							exdate.setDate(exdate.getDate()+expiredays);
							document.cookie=c_name+ "=" +escape(value)+
							((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
							}
							
							
							function getCookie(c_name)
							{
							if (document.cookie.length>0)
							  {
							  c_start=document.cookie.indexOf(c_name + "=");
							  if (c_start!=-1)
								{ 
								c_start=c_start + c_name.length+1; 
								c_end=document.cookie.indexOf(";",c_start);
								if (c_end==-1) c_end=document.cookie.length;
								return unescape(document.cookie.substring(c_start,c_end));
								} 
							  }
							return "";
							}
							
//hovering tabs

$(document).ready(function(){

	$(".box a").hover(function() {
	  $(this).prev('div').show(0);
	
	}, function() {
	   $(this).prev('div').hide(0);
	
	});

	$('#hover_fi').hover(function() {
		$(this).attr("src","/layouts/rovaniemi_intro/images/tab_fi_f2.gif");
	
	}, function() {
	
	$(this).attr("src","/layouts/rovaniemi_intro/images/tab_fi_f3.gif");
	
	});
	
	$('#hover_en').hover(function() {
		$(this).attr("src","/layouts/rovaniemi_intro/images/tab_en_f2.gif");
	
	}, function() {
	
	$(this).attr("src","/layouts/rovaniemi_intro/images/tab_en_f3.gif");
	
	});
	
	
	$('#hover_cityinfo').hover(function() {
		$(this).attr("src","/layouts/rovaniemi_intro/images/tab_cityinfo_s2.gif");
	
	}, function() {
	
	$(this).attr("src","/layouts/rovaniemi_intro/images/tab_cityinfo_s3.gif");
	
	});

});


