<!--//  hide hide hide
var ie4=document.all;
var ns6=document.getElementById&&!document.all;
 // if (top.location != self.location)
   // top.location = self.location;

  //alert(location.pathname);

  function makehomepage(objPage)
  {
    if(navigator.appVersion.charAt(navigator.appVersion.indexOf("MSIE") + 5) >= 5 && navigator.platform.indexOf("Win16") == -1 && navigator.platform.indexOf("Mac") == -1)
    {
      objPage.style.behavior='url(#default#homepage)';
      objPage.setHomePage(document.location);
      objPage.href="#";
      return true;
    }
    else {return false};
  }
  
  function calcTime(intGMTHour)
  {
	  // Legacy function ???
    var datDate = new Date;
    var intMins = 0;
    
    var timHours = intGMTHour - parseInt(datDate.getTimezoneOffset() / 60);
    
    intMins = Math.abs(datDate.getTimezoneOffset() % 60);
    
    if (timHours > 23) timHours -= 24;
    if (timHours < 10) document.write("0");
    document.write(timHours + ":");
    if (intMins < 10) document.write("0");
    document.write(intMins); 
  }
  
  
  function displayGMTHour(intGMTHour)
  {
	  // Legacy function ???
    var datDate = new Date;
    
    var timHours = intGMTHour - parseInt(datDate.getTimezoneOffset() / 60);
    
    intMins = Math.abs(datDate.getTimezoneOffset() % 60);
    
    if (timHours > 23) timHours -= 24;
    if (timHours < 10) 
		return("0" + timHours);
	else
		return(timHours);
  }

  function helppop(ident)
  {
    beendumped=window.open('help.php?id='+ident, "_blank", "fullscreen=no, width=300, height=350, location=no, resizable=yes, scrollbars=yes, statusbar=no, toolbar=no, titlebar=no");
  }
  
  function fnDetectLanguage()
  { return (navigator.userLanguage) ? navigator.userLanguage.toLowerCase() : navigator.language.toLowerCase(); }
  
  
  /*  Banner script 
  banner_ads = new Array ('');
    banner_url = new Array ('');
  
    bannerindex = 1+Math.round(Math.random()*banner_ads.length-1);

    function switchimage()
    {
      bannerindex++;
      if (bannerindex >= banner_ads.length)
        bannerindex = 1;

      document.zoolook.src = banner_ads[bannerindex];

      setTimeout("switchimage()", 20000);
    }    

    function banner_click()
    {
      if (banner_url[bannerindex] != "")
        window.open(banner_url[bannerindex]); // Should be window.open
    }
    */
		
	
	function displayChatEvent(message, left, top)
	{				
		document.getElementById("popup").innerHTML = "<div><img src='images/close.gif' id='close' onclick='closePopup();' />"+message+"</div>";
		fnFindBrowserStyle(document.getElementById("popup")).marginLeft = left+"px";
		fnFindBrowserStyle(document.getElementById("popup")).marginTop = top+"px";
		fnFindBrowserStyle(document.getElementById("popup")).display="block";
		
		
	}
	
	function closePopup()
	{
		fnFindBrowserStyle(document.getElementById("popup")).display="none";			
	}
  
  
function fnFindBrowserStyle(objIdent)
{ return ((ie4||ns6) ? objIdent.style : objIdent); }

//end end end -->
