//Static Slide Menu 6.5 © MaXimuS 2000-2001, All Rights Reserved.
//Site: http://www.absolutegb.com/maximus
//Script featured on Dynamic Drive (http://www.dynamicdrive.com)

NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")

tempBar='';barBuilt=0;ssmItems=new Array();

function truebody(){
return (document.compatMode!="BackCompat")? document.documentElement : document.body
}

moving=setTimeout('null',1)
function moveOut() {
if ((NS6||NS)&&parseInt(ssm.left)<0 || IE && ssm.pixelLeft<0) {
clearTimeout(moving);moving = setTimeout('moveOut()', slideSpeed);slideMenu(10)}
else {clearTimeout(moving);moving=setTimeout('null',1)}};
function moveBack() {clearTimeout(moving);moving = setTimeout('moveBack1()', waitTime)}
function moveBack1() {
if ((NS6||NS) && parseInt(ssm.left)>(-menuWidth) || IE && ssm.pixelLeft>(-menuWidth)) {
clearTimeout(moving);moving = setTimeout('moveBack1()', slideSpeed);slideMenu(-10)}
else {clearTimeout(moving);moving=setTimeout('null',1)}}
function slideMenu(num){
if (IE) {ssm.pixelLeft += num;}
if (NS6) {ssm.left = parseInt(ssm.left)+num+"px";}
if (NS) {ssm.left = parseInt(ssm.left)+num; bssm.clip.right+=num;bssm2.clip.right+=num;}}

function makeStatic() {
if (NS||NS6) {winY = window.pageYOffset;}
if (IE) {winY = truebody().scrollTop;}
if (NS6||IE||NS) {
if (winY!=lastY&&winY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY - YOffset + staticYOffset);}
else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY - (YOffset-(YOffset-winY)));}
else {smooth=0}
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (IE) bssm.pixelTop+=smooth;
if (NS6) bssm.top=parseInt(bssm.top)+smooth+"px"
if (NS) bssm.top=parseInt(bssm.top)+smooth
lastY = lastY+smooth;
setTimeout('makeStatic()', 1)}}

function buildBar() {
if(barText.indexOf('<img')>-1) {tempBar=barText}
else{for (b=0;b<barText.length;b++) {tempBar+=barText.charAt(b)+"<br />"}}
document.write('<div class="barText">'+tempBar+'</div>')}

function initSlide() {
if (NS6){ssm=document.getElementById("thessm").style;bssm=document.getElementById("basessm").style;
bssm.clip="rect(0 "+document.getElementById("thessm").offsetWidth+" "+document.getElementById("thessm").offsetHeight+" 0)";ssm.visibility="visible";}
else if (IE) {ssm=document.all("thessm").style;bssm=document.all("basessm").style
bssm.clip="rect(0 "+thessm.offsetWidth+" "+thessm.offsetHeight+" 0)";bssm.visibility = "visible";}
else if (NS) {bssm=document.layers["basessm1"];
bssm2=bssm.document.layers["basessm2"];ssm=bssm2.document.layers["thessm"];
bssm2.clip.left=0;ssm.visibility = "show";}
if (menuIsStatic=="yes") makeStatic();}

function buildMenu() {
if (IE||NS6) {document.write('<div id="basessm" class="noprint" style="left:'+XOffset+'px; top:'+YOffset+'px ;z-index:20; width:'+(menuWidth+barWidth+15)+'px"><div id="thessm" style="position:absolute; left : '+(-menuWidth)+'px; top:0; z-index:20;" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS) {document.write('<layer name="basessm1" top="'+YOffset+'" left='+XOffset+' visibility="show"><ilayer name="basessm2"><layer visibility="hide" name="thessm" left="'+(-menuWidth)+'" onmouseover="moveOut()" onmouseout="moveBack()">')}
if (NS6){document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+5)+'px"><tr><td>')}
buildBar()
document.write('<div id="navMenu" style=""><a href="#content"><img src="../images/common/trans.gif" alt="Skip to content" height="1" width="1" /></a><h2>Chisholm Links</h2><div class="ssmlink"><p><a href="http://www.chisholm.vic.edu.au">Chisholm Homepage</a></p><p><a href="http://www.chisholm.vic.edu.au/library" accesskey="l">Library Homepage</a></p></div><h2><acronym title="Chisholm Online Information Literacy">COIL</acronym> Links</h2><div class="ssmlink" style="background-color:#ffffff; border:1px solid #e6e4ef; margin-top:0; margin-bottom:1px"><p><a href="../site/index.htm"><acronym title="Chisholm Online Information Literacy">COIL</acronym> Homepage</a></p><div style="float:left; width:50%; border:0" class="ssmlink"><p><a href="../site/contact.htm">Contact Us</a></p><p><a href="../site/contents.htm">Contents</a></p><p><a href="../site/credits.htm">Credits</a></p></div><div style="float:left; width:50%; border:0" class="ssmlink"><p><a href="../site/glossary.htm">Glossary</a></p><p><a href="../site/help.htm">Help</a></p><p><a href="../site/instructions.htm">Instructions</a></p></div></div><div><h2><acronym title="Chisholm Online Information Literacy">COIL</acronym> Tutorials</h2></div><div style="border:1px solid #e6e4ef; margin-top:0em; margin-bottom:0.5em"><div><ol class="indx"><li class="color01"><a href="../tute01/index.htm" style="color:#ffffff" accesskey="1">Assignment Topics</a></li><li class="color02"><a href="../tute02/index.htm" style="color:#ffffff" accesskey="2">Your Information Needs</a></li><li class="color03"><a href="../tute03/index.htm" style="color:#ffffff" accesskey="3">The Library Catalogue</a></li><li class="color04"><a href="../tute04/index.htm" style="color:#ffffff" accesskey="4">Search Techniques</a></li><li class="color05"><a href="../tute05/index.htm" style="color:#ffffff" accesskey="5">Evaluating Information</a></li><li class="color06"><a href="../tute06/index.htm" style="color:#ffffff" accesskey="6">Preparing Assignments</a></li><li class="color07"><a href="../tute07/index.htm" style="color:#ffffff" accesskey="7">Referencing &amp; Bibliographies</a></li></ol></div></div></div>');
if (NS6){document.write('</td></tr></table>')}
if (IE||NS6) {document.write('</div></div>')}
if (NS) {document.write('</layer></ilayer></layer>')}
theleft=-menuWidth;lastY=0;setTimeout('initSlide();', 1)}
