

//script language="JavaScript1.2" call it slider.js//
// Author: Ron Grafe rgrafe@texas.net http://www.lonestar.texas.net/~rgrafe/Pages/Scripts/BottomSlider/bottomslider.htm
// Permission granted to SimplytheBest.net to feature script in its
// DHTML script collection at http://simplythebest.net/info/dhtml_scripts.html
//-- Browser Check -->
iens6=document.all||document.getElementById
ns4=document.layers
//--GLOBAL VARIABLES-->
var thename
var theobj

var thetext
var winHeight
var winPositionFromTop
var winWidth
var startH=2
var openTimer
//-END GLOBAL VARIABLES-->
//-DEFINE MOUSEOVER CONTENT-->
var textArray = new Array
textArray[1]="<img src='design/pics/scribe2.jpg' width='86' height='104' alt='~black and white scribe drawing~' style='float:right;padding:3px;' /><h2 style='font-color:teal'>&nbsp; Seated Scribe</h2><p style='font-color:teal'>&nbsp; 5th dynasty (c. 2475 BCE)</p><ul style='list-style-type:circle;color:teal;'><li>Scan from a drawing in Maspero's 1912 <cite>Art in Egypt</cite title='book'> series Vol. V.</li><br /> <li>I added a hint of color similar to the actual colors on the limestone statue.</li><br /> <li>The statue is still displayed at the Egyptian Museum in Cairo, where the French Egyptologist Gaston Maspero was the first director.</li><br /> <img src='design/pics/scribHGL.gif' alt='~scribe hieroglyph~' width='40' height='51' style='float:right;padding:3px;' /><li>Follow the <a href='scribe.html'>description</a> link for a contemporary photo of the statue.</li></ul><p>&nbsp; copyright &copy; 2002 <span style='font-variant:small-caps;'>webscribe.us</span> All Rights Reserved.<br />&nbsp; ~ webmaster@webscribe.us ~</p>"
textArray[2]="<p  style='text-align:center;'><img src='../img/log14310.gif' width='142' height='16' alt='Nile Muse' title='Nile Muse' /></p><p style='font-color:teal;text-align:center;'><span style='font-variant:small-caps;'>webscribe.us</span> created by Donna Hyora<br />  Copyright &copy; 2002<br /> All Rights Reserved.</p>"
textArray[3]=""
//-END DEFINE MOUSEOVER CONTENT-->
//-GLOBAL FUNCTIONS-->
function setObj(elementpos,theswitch,inwidth,inheight) {
	thetext=textArray[elementpos]
	if(iens6){
		thename = "viewer"
		theobj=document.getElementById? document.getElementById(thename):document.all.thename
		winHeight=100
			if(iens6&&document.all) {
				winPositionFromTop=document.body.clientHeight
				winWidth=(document.body.clientWidth-document.body.leftMargin)
			}
			if(iens6&&!document.all) {
				winPositionFromTop=window.innerHeight
				winWidth=(window.innerWidth-(document.body.offsetLeft+20))
			}
			if(theswitch=="override") {
				winWidth=inwidth
				winHeight=inheight
			}
		theobj.style.width=winWidth
		theobj.style.height=startH
			if(iens6&&document.all) {
				theobj.style.top=document.body.scrollTop+winPositionFromTop
				theobj.innerHTML = ""
				theobj.insertAdjacentHTML("BeforeEnd","<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=1><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>")
			}
			if(iens6&&!document.all) {
				theobj.style.top=window.pageYOffset+winPositionFromTop
				theobj.innerHTML = ""
				theobj.innerHTML="<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=1><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>"
			}
	}
	if(ns4){
		thename = "nsviewer"
		theobj = eval("document."+thename)
		winPositionFromTop=window.innerHeight
		winWidth=window.innerWidth
		winHeight=100
			if(theswitch=="override") {
				winWidth=inwidth
				winHeight=inheight
			}
		theobj.moveTo(0,eval(window.pageYOffset+winPositionFromTop))
		theobj.width=winWidth
		theobj.clip.width=winWidth
		theobj.document.write("<table cellspacing=0 width="+winWidth+" height="+winHeight+" border=1><tr><td width=100% valign=top><font type='times' size='2' style='color:black;font-weight:normal'>"+thetext+"</font></td></tr></table>")
		theobj.document.close()
	}
	viewIt()
}

function viewIt() {
	if(startH<=winHeight) {
		if(iens6) {
			theobj.style.visibility="visible"
				if(iens6&&document.all) {
					theobj.style.top=(document.body.scrollTop+winPositionFromTop)-startH
				}
				if(iens6&&!document.all) {
					theobj.style.top=(window.pageYOffset+winPositionFromTop)-startH
				}
			theobj.style.height=startH
			startH+=2
			openTimer=setTimeout("viewIt()",10)
		}
		if(ns4) {
			theobj.visibility = "visible"
			theobj.moveTo(0,(eval(window.pageYOffset+winPositionFromTop)-startH))
			theobj.height=startH
			theobj.clip.height=(startH)
			startH+=2
			openTimer=setTimeout("viewIt()",10)
		}
	}else{
		clearTimeout(openTimer)
	}
}

function stopIt() {
	if(iens6) {
		theobj.innerHTML = ""
		theobj.style.visibility="hidden"
		startH=2
	}
	if(ns4) {
		theobj.document.write("")
		theobj.document.close()
		theobj.visibility="hidden"
		theobj.width=0
		theobj.height=0
		theobj.clip.width=0
		theobj.clip.height=0
		startH=2
	}
}
//-END GLOBAL FUNCTIONS-->

