function init(){	runScripts = true;	//if (!is.mac || !is.ns) wherEver()	/*if (code != '')	{		document.onmousemove = imageFollow		if (is.ns) document.captureEvents( Event.MOUSEMOVE )		document.onkeydown = keyDown;		//if (is.ns) document.captureEvents( Event.keydown )		checkField()	}*/	if (location.href.split(".html")[1]) metaMorph(location.href.split(".html")[1].slice(1));	else metaMorph(0);}function init2(){	runScripts = true	//if (!is.mac || !is.ns) wherEver()}function hideBodies (){	for (i=0; i<bodiesArray.length; i++)	{		hideBody(bodiesArray[i])	}}function hideBody (name){	div = document.getElementById(name+'BodyDiv');	//alert('hiding '+div);	div.style.visibility = 'hidden';}function metaMorph (index){	//alert ('index is ' + index)	hideBodies();	//alert (bodiesArray[index])	showBody(bodiesArray[index])	if (index < subMenuCount)	{		deselectSub()		currentSection = ('sub' + index)		selectSub()	}}function reloadPage() {	if (is.ns) location.reload() }function rollImg(name, state) {	if (name != currentSection)	document.images[name].src = eval(name+state).src; }function selectSub (){document.images[currentSection].src = eval(currentSection + '_sel').src}function deselectSub (){document.images[currentSection].src = eval(currentSection + '_off').src}function rollInchey (name, state){	buddy = document.getElementById('myBuddy');		if (is.ns)	buddy.src = '"images/inchey' + name + state + '.gif"';	else		eval (docObj + 'inchey' + name + '.src = "images/inchey' + name + state + '.gif"')}function rollSlideShow (client, state){	img = document.getElementById(client+'ViewSlideShow');	img.src = "images/viewSlideShow_" + state + ".gif";}function showBody (name){	//alert('getElementById('+name+'BodyDiv)');	div = document.getElementById(name+'BodyDiv');	//alert(div.style.visibility);	div.style.visibility = 'visible';	//alert(div.style.visibility);}function hideMenus () {	for (i=0; i<menusArray.length; i++) hideMenu(menusArray[i])	hideMenu(selectedMenu)}function showMenu (name){	menu = document.getElementById(name + 'MenuDiv');	menu.style.visibility = 'visible';}function hideMenu (name){	menu = document.getElementById(name + 'MenuDiv');	menu.style.visibility = 'hidden';}function hideOnStates () {	for (j=0; j<menusArray.length; j++)	rollImg(menusArray[j], '_off')	}function hideBlanks (){	for (k=1; k<=misterBlankCount; k++)	{		blank = document.getElementById('misterBlank'+k);		blank.style.visibility = 'hidden';	}}function showBlanks (){	for (k=1; k<=misterBlankCount; k++)	{		blank = document.getElementById('misterBlank'+k);		blank.style.visibility = 'visible';	}}//function showBlanks () {	for (l=1; l<=misterBlankCount; l++) eval (docObj + 'misterBlank' + l + styleObj + '.visibility=' + visible) }function hideAll () {	hideMenus()	hideOnStates()	hideBlanks()}function misterMenu (name) {	if (runScripts) {//		alert ('name is ' + name)		hideAll()		if (name != selectedMenu) rollImg (name,'_on')		showBlanks()		showMenu(name)	}}function missMenu (name){	if (runScripts)	{		menu = document.getElementById(name+'MenuDiv');		if ( (menu.style.visibility == 'hidden') && (name != selectedMenu) ) rollImg (name, '_off');	}}var scrollBarPos	= (is.ns)? 'self.pageYOffset' : 'document.body.scrollTop'var windowHeight	= (is.ns)? 'self.innerHeight' : 'document.body.clientHeight'var layerTop		= (is.ns)? '.top=' : '.pixelTop='var deltaY			= (is.ns)? 20 : 40function inchMan (down) {	if (down) window.scrollBy(0,deltaY)	else if (eval(scrollBarPos) > 0) window.scrollBy(0,-deltaY)}function scrollMan (down) {	if (!is.mac || !is.ns) {		if (down)							window.scrollTo(0,eval(windowHeight))		else if (eval(scrollBarPos) > 0)	window.scrollTo(0,0)	} else {		if (down)							window.scrollBy(0,180)		else if (eval(scrollBarPos) > 0)	window.scrollTo(0,0)	}}function wherEver(){//	var midWay = (eval(windowHeight))/2//	eval (docObj + 'myBuddy' + styleObj + layerTop + scrollBarPos + ' + ' + midWay)	buddy = document.getElementById('myBuddy');		if (is.mac) myBuddy.style.top = (scrollBarPos + 196);	else myBuddy.style.top = (scrollBarPos + 206);	setTimeout('wherEver()', 10)}var hammerDropped	= falsefunction keyDown(e) {	hiddenField		= eval (docObjForm + 'hiddenField')	if (is.ns) 		keystroke = e.which	else if (is.ie)	keystroke = event.keyCode	hiddenField.value += keystroke}function checkField() {	hiddenField		= eval(docObjForm + 'hiddenField')	userInput		= hiddenField.value	userInput		= userInput.match(code)	if (userInput != null) {		eval (docObj + 'popDiv' + styleObj + '.visibility=' + visible)		return	}	setTimeout("checkField()", 100)}function imageFollow(p_event) {	var x = ((is.ns)? p_event.pageX : event.x  + document.body.scrollLeft) - centerX	var y = ((is.ns)? p_event.pageY : event.y  + document.body.scrollTop) - centerY//	FollowTheMouse(x, y)	setTimeout("FollowTheMouse("+x+","+y+")", 500)}function FollowTheMouse(x, y) {	popDivStyle			= eval (docObj + 'popDiv' + styleObj)//	alert ('popDivStyle is ' + popDivStyle)	popDivStyle.left	= x	popDivStyle.top		= y}var dropCount		= 16function dropTheHammer(index) {	if (index > dropCount) {		index = 1		hammerDropped = true	}	if (index <= dropCount) {		if (is.ie) {			var xMax	= document.body.clientWidth			var yMax	= document.body.clientHeight		} else {			var xMax	= window.innerWidth			var yMax	= window.innerHeight		}		dropDivStyle				= eval (docObj + 'dropDiv' + index + styleObj)		dropDivStyle.left			= Math.round(Math.random() * xMax) + (-10)		dropDivStyle.top			= Math.round(Math.random() * yMax) + (-10)		dropDivStyle.visibility		= eval(visible)		index++		setTimeout("dropTheHammer("+index+")", 1000)	}}function nextPage (url) {	if (hammerDropped)  self.location.href = url	}var initWindowX		= 4var initWindowY		= 4var i = 0var windowX 	= initWindowX + (10*Math.sin(i))var windowY 	= initWindowY + (10*Math.cos(i))        function rotate() {	if (!is.mac || !is.ns) {		i=i+.35		windowX = windowX + (2*Math.sin(i))		windowY = windowY + (2*Math.cos(i))		window.moveTo(windowX,windowY)		setTimeout("rotate()", 120)	}}function goHere () { /* but don't do anything */ }function movieobject (movieName){	if (navigator.appName.indexOf ("Microsoft") !=-1)	{		return window[movieName]	}	else return document[movieName]}function loadMovie (shell, view){	if (movieobject(shell).PercentLoaded() == 100)	{		//alert ('loading ' + whichMovie)		movieobject(shell).TGotoLabel('_level0/', view)	}}
