function increase_height()
{
	height = parseInt(document.getElementById('slide').style.marginTop);
	if (height<110)
	{
		document.getElementById('slide').style.marginTop = eval(height+2)+"px";
		setTimeout("increase_height()",0.0001);
	}
	else
	{
		document.getElementById('panel').style.zIndex = 200;
	}
}

function decrease_height()
{
	height = parseInt(document.getElementById('slide').style.marginTop);
	document.getElementById('panel').style.zIndex = -1;
	if (height>0)
	{
		document.getElementById('slide').style.marginTop = eval(height-2)+"px";
		setTimeout("decrease_height()",0.0001);
	}
}

function show_panel()
{
	height = parseInt(document.getElementById('slide').style.marginTop);
	if (height>0)
	{
		decrease_height();
	}
	else
	{
		increase_height();
	}
	return false;
}

function ajaxFunction()
{

var xmlHttp;

try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
      }
    }
   var url = "{/literal}{$smarty.const.SITE_URL}{literal}update_session.php";

   xmlHttp.open("POST", url, false);
   xmlHttp.setRequestHeader(
    'Content-Type',
    'application/x-www-form-urlencoded; charset=UTF-8'
);
   xmlHttp.send('url='+window.location);
  }
