function ReadCookie(){
	var the_cookie = document.cookie;
	var the_string = the_cookie.split(";");
	var values = new Array();
	for (i = 0; i < the_string.length; i++){
		var the_value = the_string[i].split("=");
		if (i ==0){
			values[" " + the_value[0]] = the_value[1];}
		else{
			values[the_value[0]] = the_value[1];}
	}
	return values;


}

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.min1 = (this.ns || this.ie)	
	if (this.min1){
		var p = navigator.platform

		//alert (p)
		if (p == "Win32"){this.pc = 1;this.mac = 0}
		if (p == "MacPPC"){this.mac = 1;this.pc = 0}	
	}
	this.min = (this.ns || (this.pc && this.ie))
}

is = new BrowserCheck()




function window_popup(url, title)


{

	if (arguments[2]){
		//alert(arguments[1])
		var w = arguments[3]
		var h = arguments[2]}
	else{
		var w = 400
		var h = 350}
	var SmallWin = window.open( url, title, "resizable=no,titlebar=no,scrollbars,height=" + h + ",width=" + w )

	



}


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);
}

function ReadCookie(){
	var the_cookie = document.cookie;
	var the_string = the_cookie.split(";");
	var values = new Array();
	for (i = 0; i < the_string.length; i++){
		var the_value = the_string[i].split("=");
		if (i ==0){
			values[" " + the_value[0]] = the_value[1];}
		else{
			values[the_value[0]] = the_value[1];}
	}
	return values;


}

function MM_preloadImages() { //v3.0


  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)


    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}




function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}



function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}



function MM_swapImage() { //v3.0

  var i,j=0,x,re,a=MM_swapImage.arguments; document.MM_sr=new Array; re = new RegExp("http://","i"); for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; if (!a[i+2].match(re)) {x.src='http://a128.g.akamai.net/7/128/1365/js12345/away.com' + a[i+2];} else {x.src=a[i+2];}}

}

function MM_openBrWindow(theURL,winName,features) { //v2.0

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



