function set_floater()
{
	var _width=$(this).width();
	var _height=$(this).height();
	var _left=((_width-990)>0)?(_width-950)/2+800:800;
	$('#logoPrint').css('left',_left);
	$('#logoPrint').css('top',_height-120+$(this).scrollTop());
}

function hide_floater()
{
  $('#logoPrint').hide();
  $.cookie('hot_summer','hide',{ expires: 1, path: '/'});
}
	  
$(document).ready(function() {
	if(!$.cookie) return false;
	else
	{	
		var hot_summer=$.cookie('hot_summer');
		if(hot_summer=='hide')
		{
			$('#logoPrint').hide();
		}
		else
		{
			$('#logoPrint').load("/Library/hot_summer.lbi");
			$('#logoPrint').show();
			$('body').append($('#logoPrint'));
			setInterval("set_floater()",100);
		}
	}
});



function selLanguage(lng) {
var page=location;

if (lng=='en') {
	
	if (location.href.indexOf('.html') ==-1)
	{ location.href='index-en.html';
	return;}

	if (location.href.indexOf('index-body.html')!=-1)
	{ location.href=location.href.slice(0,location.href.indexOf('.html'))+'-en.html';
	return;}
	
	if (location.href.indexOf('index.html')!=-1)
	{ location.href=location.href.slice(0,location.href.indexOf('.html'))+'-en.html';
	return;}
	
	if (location.href.indexOf('-ro.html')>=0)
	{location.href=location.href.slice(0,location.href.indexOf('-ro.html'))+'.html';
	return;}
}

if (lng=='ro') {
	
	if (location.href.indexOf('index-body-en.html')!=-1)
	{ location.href=location.href.slice(0,location.href.indexOf('-en.html'))+'.html';
	return;}
	
	if (location.href.indexOf('index-en.html')!=-1)
	{ location.href=location.href.slice(0,location.href.indexOf('-en.html'))+'.html';
	return;}
	
	if (location.href.indexOf('.html')>=0)
	{location.href=location.href.slice(0,location.href.indexOf('.html'))+'-ro.html';
	return;}
}

}