window.onload = init;

var menu;

function init() {
	writeControls(); // in textResizer.js
	if (document.getElementByIfd) {
		menu = new Menu();
		menu.addSection('navDIVcontentIn');
		menu.addSection('navDIVWelcome');
		menu.addSection('navDIVcontentOut');
		menu.addSection('preferences');
		if (menu.halt=='n') {
			menu.calibrate();
			menu.addLinks();
			}
		}
	
	var glishis = new Array("glish is a scripting language and accompanying c++ library","glish is a dynamically typed","glish is a scripting language which","glish is an interpreted language based on \`\`s\'\'","glish is is at","glish is a language","glish is 1","glish is include \'pgplotter","glish is a software system for building high","glish is distributed under a ucb","glish is an interpretive language","glish is both a programming language and an environment for data acquisition and analysis","glish is an interpreted language for building distributed systems from modular","glish is a powerful whole","glish is the high","glish is the same as setting it with an assignment line in the table","glish is started automatically and glish commands can be entered into the original terminal window","glish is a programming language which allows you to perform mathematical computations","glish is a high","glish is a high level communication language","glish is both a programming language and an environment for data acquisition and","glish is 1 year old and an elmo fanatic","glish is 3 years old and in preschool","glish is to become an official lan","glish is well","glish is most efficient when performing operations on vectors","glish is a freshman at macalaster college in st","glish is now supported by darrell schiebel of the national radio astronomy observatory","glish is now maintained and developed by darrell schiebel","glish is two things in aips++","glish is freely available","glish is not only a great technical resource","glish is","glish is a weblog and collection of designs and a discussion forum","glish is the 63","glish is very interesting","glish is a css site","glish is so inspiring","glish is now configured using an autoconf","glish is a system with three components","glish is the official language","glish is an educated person who is equipped to pursue many career opportu","glish is a free road in greek","glish is still no","glish is not bad","glish is one of the web’s best sources of eclectic links?","glish is not the primary language","glish is an interpretive language for building loosely","glish is spoken by a minority","glish is nothing that could be made up in a tutorial","glish is used during most of a euromech colloquium there is a special obligation on the","glish is widely spoken in pharmacies","glish is not the","glish is no strong with these one","glish is the most common language of publication","glish is the dominant language of research communication","glish is back after a long","glish is the name of my website","glish is the first step into the gateway to the latest information","glish is obtained","glish is back","glish is a high level network interface language with a few epics interface tools written at lbl","glish is cool","glish is good enough for me","glish is a \`\`software bus\'\' allowing the transport of large volumes of data between tasks","glish is spoken","glish is strongly encouraged due to the international character of the multiconfer","glish is often given as a \"word with spaces\"","glish is a mine of css tips, meyer has worked with the web since 1993","glish is looking up bilingual lexicon we created from the ntc1","glish is a veritable encyclopedia of e","glish is similar to idl","glish is posting volumes in prep for a book he and owen are writing re","glish is written in a pseudo unification formalism","glish is such an excellent site","glish is used for marking proper nouns");
	var randy = Math.floor(Math.random()*glishis.length);
	document.getElementById("glishis").innerHTML = glishis[randy];
		
	window.onresize = resize;
	}

function resize() {
	resizeFix();
	//menu.moveEm();
	}
	
function getMyProperty(obj,prop) {
	//if (obj.style.position=='absolute') return parseInt(eval("obj.style."+prop))
	if (document.all) {
		if (prop=='top') return obj.offsetTop//+document.body.scrollTop;
		if (prop=='left') return obj.offsetLeft;
		if (prop=='height') return obj.offsetHeight;
	} else {
		if (prop=='top') return (parseInt(document.defaultView.getComputedStyle(obj,'').getPropertyValue('top')));
		if (prop=='left') return parseInt(document.defaultView.getComputedStyle(obj,'').getPropertyValue('left'));
		if (prop=='height') return parseInt(document.defaultView.getComputedStyle(obj,'').getPropertyValue('height'));
		}
	}



/********************************************************************
	cookie functions modified from code found at Alexei Kourbatov's
	javascripter.net/faq/
*/
function setCookie(cookieName,cookieValue) {
	document.cookie = cookieName+"="+escape(cookieValue) + ";expires="
	}
	
function readCookie(cookieName) {
	var theCookie=""+document.cookie;
	var ind=theCookie.indexOf(cookieName);
	if (ind==-1 || cookieName=="") return ""; 
	var ind1=theCookie.indexOf(';',ind);
	if (ind1==-1) ind1=theCookie.length; 
	return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
	}
	
/* from http://javascriptworld.com/scripts/chap09/script02.html */
if (document.layers) {
		origWidth = window.innerWidth
		origHeight = window.innerHeight
	}

	function resizeFix() {
		if (document.layers) {
			if (window.innerWidth != origWidth || window.innerHeight != origHeight) {
				window.location.reload()
			}
		}
	}



var agt = navigator.userAgent.toLowerCase();