<!--

//*******************************************
//    Browser detector
//  From Curious Eye @ www.HTMLguru.com
//**********************************************************
function Is() {
    agent  = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns    = ((agent.indexOf('mozilla')   !=   -1) &&
                 ((agent.indexOf('spoofer')   ==   -1) &&
                 (agent.indexOf('compatible') ==   -1)));
    this.ns2   = (this.ns && (this.major      ==    3));
    this.ns3   = (this.ns && (this.major      ==    3));
    this.ns4b  = (this.ns && (this.major      ==    4) &&
                 (this.minor                  <= 4.03));
    this.ns4   = (this.ns && (this.major      ==    4));
    this.ns6    = (this.ns && (this.major     >=    5));
    this.ie    = (agent.indexOf("msie")       !=   -1);
    this.ie3   = (this.ie && (this.major      <     4));
    this.ie4   = (this.ie && (this.major      ==    4) &&
                 (agent.indexOf("msie 5.0")   ==   -1));
    this.ie5   = (this.ie && (this.major      ==    4) &&
                 (agent.indexOf("msie 5.0")   !=   -1));
    this.ie55  = (this.ie && (this.major      ==    4) &&
                 (agent.indexOf("msie 5.5")   !=   -1));

}
var is = new Is();


//******************************
//  Reassign variables for browser compatibility
//***************************************************************

if(is.ns4 || is.ns4b ) {
  doc = "document.layers";
  sty = "";
  htm = ".document"
  visible = 'show';
  hidden = 'hide';
  y = "left";
  x = "top";

}
else if(is.ns6){
 doc = "document.getElementByID";
  sty = ".style";
  htm = ".document"
  visible = 'visible';
  hidden = 'hidden';
  y = "left";
  x = "top";
}
else {
  doc = "document.all";
  sty = ".style";
  htm = ""
  visible = 'visible';
  hidden = 'hidden';
  y = "pixelLeft";
  x = "pixelTop";
  

}



/////////////////////////////////////////////
// Function to pop up menu in the Library ///
/////////////////////////////////////////////
function seeCal() {
var x = "theMenu"

	if(is.ns6){
	myCal = window.document.getElementById("theMenu").style;
	
		if(myCal.visibility == visible){
		myCal.visibility = hidden;
		}else{
		myCal.visibility = visible;
		}
		
	}else{
	
	myCal = eval(doc + '[x]' + sty);
	
		if(myCal.visibility == visible){
		myCal.visibility = hidden;
		}else{
		myCal.visibility = visible;
		}
	}
} // End of seeCal()


function hideCal() {
var x = "theMenu"
	if(is.ns6){
	myCal = window.document.getElementById("theMenu").style;
	myCal.visibility = hidden;
	}else{
		var myCal = eval(doc + '[x]' + sty);
		myCal.visibility = hidden;
		}

} // End of hideCal()


<!-- Script for floating "Back to Top" ---->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin

function setVariables() {
	if (is.ns4 || is.ns4b) {
	v=".top=";
	dS="document.";
	sD="";
	y= "window.pageYOffset + 300";
	lf=".left=";
	}
	else {
	v=".pixelTop=";
	dS="";
	sD=".style";
	y="document.body.scrollTop";
	}
}

sc = window.screen.width - window.screen.width/4

function checkLocation() {

	 object="object1";
	
		if(is.ns4 || is.ns4b){
			eval(dS+object+sD+v+y);
			eval(dS+object+sD+lf+sc);			
		}
		else if (is.ns6){
			obj = window.document.getElementById("object1");
			obj.style.top = window.pageYOffset + 300;
		}
		else{
			yy=eval(y) + 325;
			eval(dS+object+sD+v+yy);
		}
	
	setTimeout("checkLocation()",10);

}


//  End -->





