function bookmarksite( title, url )
{
	if ( document.all )
		window.external.AddFavorite( url, title );
	else if ( window.sidebar )
		window.sidebar.addPanel( title, url, "" );
}

var last_el, hover_timeout;

function navover() {
	clearTimeout( hover_timeout );
	if( this != last_el )
		slowhoveroff();
	this.className += ' hover_on';
	if( ! this._link )
		this._link = this.getElementsByTagName('a')[0];
	this._link.className += ' hover_on';
	if( ! this._subsubnav )
		this._subsubnav = this.getElementsByTagName('div')[0];
	if( ! this._subsubnav )
		this._subsubnav = -1;
	if( this._subsubnav != -1 )
		this._subsubnav.className += ' slow_hover';
}

function navoff() {
	last_el = this;
	var el = this;
	el.className = el.className.replace( / ?hover_on/g, '' );
	if( el._link )
		el._link.className = el._link.className.replace( / ?hover_on/g, '' );
	hover_timeout = setTimeout(slowhoveroff, 1000 );
}

function slowhoveroff() {
	if( last_el && last_el._subsubnav != -1 ) {
		last_el._subsubnav.className = last_el._subsubnav.className.replace( / ?slow_hover/g, '' );
		last_el = undefined;
	}
}

/**
* An evil fix for IE's crappy browsers and their non-compliance of w3c css standards
*/
function ieIsCrap( )
{
	return;
    if(navigator.appName.indexOf("Microsoft")!=-1)
    {
      winW = document.documentElement.clientWidth-20;
      if( winW < 780 )
      {
        var mydiv = document.getElementById( 'main' );
        mydiv.style.width = '780px';
      }
    }
}
