function BrowserCheck()

{	var b = navigator.appName
	if (b == "Netscape") this.b = "ns"
	else if (b == "Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b == "ns" && this.v >= 4)
	this.ns4 = (this.b == "ns" && this.v == 4)
	this.ns5 = (this.b == "ns" && this.v == 5)
	this.ie = (this.b == "ie" && this.v >= 4)
	this.ie4 = (this.version.indexOf('MSIE 4') > 0)
	this.ie5 = (this.version.indexOf('MSIE 5') > 0)
	this.min = (this.ns || this.ie)	}

is = new BrowserCheck()
//alert(is.min)

if (is.ie){
      links = document.all.tags("link");

      links[0].disabled=true;
      links[1].disabled=false;
}



function window_popup(url, title)

{
   SmallWin = window.open( url , title , 'scrollbars,height=350,width=400' );
}


function close_window()

{

   SmallWin = window.close( );

}


function getAppVersion(){

    appname= navigator.appName;
    appversion = navigator.appVersion;
    majorver = appversion.substring(0, 1);
    if ( (appname == "Netscape") && ( majorver >= 3 ) ) return 1;

    if ( (appname == "Microsoft Internet Explorer") && (majorver >= 4) )
return 1;

    return 0;
}


function get_url() {
    if (getAppVersion()) {
             bookmark_url="/bookmarks/tree.html";
        }

	else {bookmark_url="/bookmarks/"}

}

function openBookmarkWindow(winName,features) {
  get_url();

  window.open(bookmark_url,winName,features);
}



