<!--
// main.js - main JavaScript file

if (window != top) top.location.href = location.href;

function bookmark(url, sitename)
{
  ns="FireFox users, use CTRL+D to bookmark this site."
  if ((navigator.appName=='Microsoft Internet Explorer') &&
    (parseInt(navigator.appVersion)>=4))
  {
    window.external.AddFavorite(url, sitename);
  }
  else if (navigator.appName=='Netscape')
  {
    alert(ns);
  }
}

IE4plus = (document.all) ? true : false;
NS4 = (document.layers) ? true : false;

function clickIE()
{
	if (IE4plus)
	    document.selection.empty();
    return false;
}

function clickNS(e)
{
	
	if ((e.which==1) && NS4)
	{
		return (e.target!=document);
	}
	else if (e.which==1 || e.which==2 || e.which==3 ) 
    {
       return false;
    }
}
if (!IE4plus) 
{
   document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
   document.onmousedown=clickNS;
   document.onmouseup= clickNS;
   document.oncontextmenu=clickIE;
} 
else 
{
   document.onmouseup= clickIE;
   document.oncontextmenu=clickIE;
}

//-->
