function ToggleInfobar()
{
	var obj = document.getElementById("infobar_main");
	if (!obj)
		return true;

	if (obj.style.display == 'block' || obj.style.display == '')
	{	obj.style.display = 'none';
		obj.parentNode.className = 'infobar_invisible';
	}
	else
	{
		obj.style.display = 'block';
		obj.parentNode.className = 'infobar_visible';
	}
	
	infobar_xmlhttp = false
	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.
	 try {
	  infobar_xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	 } catch (e) {
	  try {
	   infobar_xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (E) {
	   infobar_xmlhttp = false;
	  }
	 }
	@end @*/
	if (!infobar_xmlhttp && typeof XMLHttpRequest!='undefined') {
	  infobar_xmlhttp = new XMLHttpRequest();
	}

    if (infobar_xmlhttp)
	{
		infobar_xmlhttp.open("GET", "../infobar/infobarchange.php",true);
		infobar_xmlhttp.send(null);
 	}

	return false;
}
