ddsmoothmenu.init({
	transition: {overtime:800, outtime:100}, //duration of slide in/ out animation, in milliseconds
	shadow: {enabled:true, offsetx:5, offsety:5},
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	customtheme: ["#000000", "#999999"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})
function showLogin(close)
{
  if (close)
    url = "login.php?close";
  else url = "login.php";
  
	var http_request = false;
  
  if (window.XMLHttpRequest) 
  { // Mozilla, Safari,...
    http_request = new XMLHttpRequest();
  } 
  else if (window.ActiveXObject) 
  { // IE.
    try 
    {
      http_request = new ActiveXObject("Msxml2.XMLHTTP");
    } 
    catch (e)
    {
      try 
      {
        http_request = new ActiveXObject("Microsoft.XMLHTTP");
      } 
      catch (e) {}
    }
  }
  if (!http_request) 
  {
    return false;
  }
  http_request.onreadystatechange = function() { login(http_request); };
  http_request.open('GET', url, true);
  http_request.send(null);
}

function login(http_request)
{
  if (http_request.readyState == 4) 
  {
    if (http_request.status == 200) 
    {
      document.getElementById("login").innerHTML=http_request.responseText;
      document.getElementById("boxLogin").style.display='block';
    } 
    else 
    {
    }
  }
}
