/***********************************************
* Show Hint script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/
		
var horizontal_offset="9px" //horizontal offset of hint box from anchor link

/////No further editting needed

var vertical_offset="0" //horizontal offset of hint box from anchor link. No need to change.
var ie=document.all
var ns6=document.getElementById&&!document.all

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1
if (whichedge=="rightedge"){
var windowedge=ie && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-30 : window.pageXOffset+window.innerWidth-40
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth+parseInt(horizontal_offset)
}
else{
var windowedge=ie && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
}
return edgeoffset
}

function showhint(menucontents, obj, e){
	if (hintVisible == true){
		if ((ie||ns6) && document.getElementById("hintbox")){
		dropmenuobj=document.getElementById("hintbox")
		dropmenuobj.innerHTML=menucontents
		dropmenuobj.style.left=dropmenuobj.style.top=-500
		
		dropmenuobj.x=getposOffset(obj, "left")
		dropmenuobj.y=getposOffset(obj, "top")
		dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+"px"
		dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
		dropmenuobj.style.width=250 + "px"
		dropmenuobj.style.visibility="visible"
		obj.onmouseout=hidetip
		}
	}
}

function hidetip(e){
dropmenuobj.style.visibility="hidden"
dropmenuobj.style.left="-500px"
}

function createhintbox(){
var divblock=document.createElement("div")
divblock.setAttribute("id", "hintbox")
document.body.appendChild(divblock)
}

if (window.addEventListener)
window.addEventListener("load", createhintbox, false)
else if (window.attachEvent)
window.attachEvent("onload", createhintbox)
else if (document.getElementById)
window.onload=createhintbox



 var menuHint = new Array();
  menuHint[0] = "Find out more about West Wirral Works City Learning Centre.";
  menuHint[1] = "Take a look at our wonderful staff!.";
  menuHint[2] = "Having problems finding West Wirral Works? Download directions and Maps Here.";
  menuHint[3] = "Find out why you should be using the CLC.";
  menuHint[4] = "Send an email to West Wirral Works.";
  menuHint[5] = "Take a Virtual Tour of the Centre, see whats on offer!";
  menuHint[6] = "All the information you need to make a booking at West Wirral Works";
  menuHint[7] = "Check for availability before you make telephone booking.";
  menuHint[8] = "How to loan educational equipment and classroom kits.";
  menuHint[9] = "Find out what it all costs! (Most of it is FREE!)";
  menuHint[10] = "How to book transport.";
  menuHint[11] = "Health & safety Documentation.";
  menuHint[12] = "Resource Information Home Page";
  menuHint[13] = "Software available in the centre.";
  menuHint[14] = "All our Manufacturing Machines are listed here. ";
  menuHint[15] = "Educational Kit Listing, most of which is available for Loan at no cost.";
  menuHint[16] = "Manufacturing Materials available at the centre.";
  menuHint[17] = "Hundreds of educational videos are available to view at the centre. Download Teacher Notes before you book your session.";
  menuHint[18] = "Take a look at our Classroom Resources.";
  menuHint[19] = "Curriculum Linked Primary Projects";
  menuHint[20] = "Curriculum Linked Primary Projects developed hosted at West wirral Works";
  menuHint[21] = "Control 'Bee-Bot' style Robots on the Web!";
  menuHint[22] = "Data Harvest - Flowol2 Micro Web, download software mimics developed at West Wirral Works. ";
  menuHint[23] = "Immersive Education. We have ALL the Kar2ouche Primary titles. Plenty of Teacher notes available for download. ";
  menuHint[24] = "Immersive Education. We have ALL the Kar2ouche Secondary titles, MediaStage 3D production Software, Mission Maker Game creation software and Krucible Virtual Science Lab Software. Plenty of Teacher notes available for download. ";
  menuHint[25] = "Our Micro Webs are designed for specific Software applicationns. FLOWOL, Pro/DESKTOP, 2D Design etc. Plenty of on-line resources are available for download.";
  menuHint[26] = "Remote Manufacturing Home Page. Login to your account. Get specific information about formatting your Job for ease of manufacture.";
  menuHint[27] = "See how much your job will cost!";
  menuHint[28] = "West Wirral Works Home Page.";
  menuHint[29] = "Disabled Facilities at West Wirral Works";
  menuHint[30] = "Login to the West Wirral Works Server Using your CLC account username and Password";
  menuHint[31] = "Data Harvest - Flowol2 Micro Web, download software mimics developed at West Wirral Works. ";
  menuHint[32] = "Can you get the frogs to cross the stream?";
  menuHint[33] = "Try a Primary Quiz!";
 
 
//**************************************************************************

var myMenu;
var exMenuCount=0;
window.onload = function() {
	myMenu = new SDMenu(menuID);
	myMenu.init();
	myMenu.remember = true;
	for (var i = 0; i < myMenu.submenus.length; i++){
		if (myMenu.submenus[i].className != "collapsed"){
			exMenuCount++;
		}
	}
	if (exMenuCount > 1){
		myMenu.collapseAll();   
		var firstSubmenu = myMenu.submenus[0];
		myMenu.expandMenu(firstSubmenu);      
	}
	myMenu.oneSmOnly = true;  
};  


function writemenu(){

document.write("<div style='float: left ' id='" + menuID + "' class='sdmenu' >")
document.write("<div>")
document.write("<span>West Wirral Works</span>")
document.write("<a href='../index.asp'  onMouseover='showhint( menuHint[28], this, event)' >CLC Home Page</a>")
document.write("<a href='../WestWirralWorks/aboutus.asp?PageID=4'  onMouseover='showhint( menuHint[0], this, event)' >About The CLC</a>")
document.write("<a href='../WestWirralWorks/meetstaff.asp' onMouseover='showhint(menuHint[1], this, event)'  >Meet The Staff</a>")
document.write("<a href='../WestWirralWorks/aboutus.asp?PageID=3'  onMouseover='showhint(menuHint[2], this, event)' >Directions</a>")
document.write("<a href='../WestWirralWorks/aboutus.asp?PageID=5' onMouseover='showhint(menuHint[3], this, event)'  >Why Use The CLC</a>")
document.write("<a href='../WestWirralWorks/contactus.asp'  onMouseover='showhint(menuHint[4], this, event)' >Contact Us</a>")
document.write("<a href='../WestWirralWorks/clctour.asp' onMouseover='showhint(menuHint[5], this, event)'  >Virtual Tour</a>")
document.write("</div>")
document.write("<div>")
document.write("<span>Booking Information</span>")
document.write("<a href='../booking/booking.asp' onMouseover='showhint(menuHint[6], this, event)'>Booking Procedure</a>")
document.write("<a href='../booking/availability.asp' onMouseover='showhint(menuHint[7], this, event)'>Check Availability</a>")
document.write("<a href='../booking/booking.asp?PageID=7' onMouseover='showhint(menuHint[8], this, event)'>Equipment & Kit Loans</a>")
document.write("<a href='../booking/booking.asp?PageID=8' onMouseover='showhint(menuHint[9], this, event)'>What Does It Cost?</a>")
document.write("<a href='../booking/hands.asp' onMouseover='showhint(menuHint[11], this, event)'>Health & Safety Informatoin</a>")
document.write("<a href='../westwirralworks/disabled.asp' onMouseover='showhint(menuHint[29], this, event)'>Disabled Facilities</a>")
document.write("</div>")
document.write("<div>")
document.write("<span>Available Resources</span>")
document.write("<a href='../Resources/' onMouseover='showhint(menuHint[12], this, event)'>Resource Home Page</a>")
document.write("<a href='../Resources/software.asp' onMouseover='showhint(menuHint[13], this, event)'>Installed Software</a>")
document.write("<a href='../Resources/machines.asp' onMouseover='showhint(menuHint[14], this, event)'>Manufacturing Hardware</a>")
document.write("<a href='../Resources/kits.asp' onMouseover='showhint(menuHint[15], this, event)'>Educational Kits</a>")
document.write("<a href='../Resources/materials.asp' onMouseover='showhint(menuHint[16], this, event)'>Manufacturing Materials</a>")
document.write("<a href='../Resources/mediaondemand.asp' onMouseover='showhint(menuHint[17], this, event)'>Classroom Video</a>")
document.write("<a href='../WestWirralWorks/clctour.asp' onMouseover='showhint(menuHint[18], this, event)'>Classrooms</a>")
document.write("</div>")
document.write("<div>")
document.write("<span>Primary Education Zone</span>")
document.write("<a href='../Projects/Primary/primary.asp' onMouseover='showhint(menuHint[19], this, event)'>Primary Projects Home</a>")
document.write("<a href='../Projects/Primary/primaryprojwww.asp' onMouseover='showhint(menuHint[20], this, event)'>Primary Projects @ The CLC</a>")
document.write("<a href='../wwwbots/' onMouseover='showhint(menuHint[21], this, event)'>On-line Robot Control</a>")
document.write("<a href='../leapfrog/' onMouseover='showhint(menuHint[32], this, event)'>Play Leapfrog</a>")
document.write("<a href='../microwebs/flowol/' onMouseover='showhint(menuHint[22], this, event)'>Flowol</a>")
document.write("<a href='../Immersive/' onMouseover='showhint(menuHint[23], this, event)'>Kar2ouche</a>")
document.write("<a href='../Quiz/' onMouseover='showhint(menuHint[33], this, event)'>Primary QuizTime</a>")
document.write("</div>")
document.write("<div>")
document.write("<span>Secondary Education Zone</span>")
document.write("<a href='../microwebs/flowol/' onMouseover='showhint(menuHint[31], this, event)'>Flowol</a>")
document.write("<a href='../Immersive/' onMouseover='showhint(menuHint[24], this, event)'>Kar2ouche</a>")
document.write("</div>")
document.write("<div>")
document.write("<span>Micro Webs @ The CLC</span>")
document.write("<a href='../microwebs/' onMouseover='showhint(menuHint[25], this, event)'>MicroWebs Home</a>")
document.write("<a href='../microwebs/flowol/' onMouseover='showhint(menuHint[31], this, event)'>Flowol</a>")
document.write("</div>")
document.write("<div>")
document.write("<span>Remote Manufacturing</span>")
document.write("<a href='../manufacture/remote.asp' onMouseover='showhint(menuHint[26], this, event)'>Remote Manufacture Home</a>")
document.write("<a href='../booking/PriceList.asp' onMouseover='showhint(menuHint[27], this, event)'>Manufacturing Price List</a>")
document.write("<a href='../Resources/materials.asp' onMouseover='showhint(menuHint[16], this, event)'>Manufacturing Materials</a>")
document.write("</div>")
document.write("<div>")
document.write("<span>Remote User Login</span>")
document.write("<a href='../users/userlogin.asp' onMouseover='showhint(menuHint[30], this, event)'>Login To Your Account</a>")
document.write("</div>")
};
