function toggleBar()
{
	if(document.getElementById("bar_container").style.display=="block" || document.getElementById("bar_container").style.display=="")
	{
		document.getElementById("bar_container").style.display = "none";
		setCookie("floatbottomboxdisplay",1,null);
	}
	else
	{
		document.getElementById("bar_container").style.display = "block";
		setCookie("floatbottomboxdisplay",2,null);
	}
}
var floatbottomboxCurrent = 0;

function floatbottomboxNext()
{
	if(floatbottomboxCurrent<"2")
	{
		document.getElementById("floatbottombox_ctn_"+floatbottomboxCurrent).style.display="none";
		document.getElementById("floatbottombox_ctn_"+(floatbottomboxCurrent+1)).style.display="block";
		floatbottomboxCurrent = floatbottomboxCurrent+1;
	} else {
		document.getElementById("floatbottombox_ctn_2").style.display="none";
		document.getElementById("floatbottombox_ctn_0").style.display="block";
		floatbottomboxCurrent = 0;
	}
}
function setCookie(c_name,value,expiredays)
{
	var today = new Date();
	var expires = 3600000*3;//var expires = 3600000*24*1;
	var expires_date = new Date(today.getTime() + (expires));
	document.cookie = c_name+"="+value+";expires=" + expires_date.toGMTString();
	/*
	var exdate=new Date();
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+expires_date.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 "";
}

initFloatBox();


