// // Center for IBM e-Business Innovation - Toronto // Iron Coder Victor Chan vwchan@ca.ibm.com - 12-05-2000 . // Copyright (c) IBM Canada - www.can.ibm.com // var iu='../images/index.html'; var mOverExt='_on.gif'; var mOutExt='_off.gif'; var str1="
\"City
\"Your
\"Getting
\"Things
\"Environment\"
\"Health\"
\"Awards
"; var str2="
\"About
\"Economic
\"Quality
\"City
\"Publications
\"Tenders\"
\"Resources
\"Services\"
"; var str3="
\"About
\"Attractions\"
\"Getting
\"Services\"
"; var str4="
\"City
\"Council
\"Divisions\"
\"Committees\"
\"Agencies,
\"Task
\"Your
\"Wards\"
\"Publications,
\"Services\"
"; //Code shouldn't have to be edited beyond this point regardless of what changes need to be made to the drop-downs //Functions only below //used by sub-menus function mOver(imgLayer,imgName,descr) { hide=false; if((ns4)) {document.layers[imgLayer].document[imgName].src=iu+imgName+mOverExt;} else {this.document[imgName].src=iu+imgName+mOverExt;} if (descr){window.status=descr;} } //used by sub-menus function mOut(imgLayer,imgName) { if((ns4)) {document.layers[imgLayer].document[imgName].src=iu+imgName+mOutExt;} else {this.document[imgName].src=iu+imgName+mOutExt;} window.status=''; } //used by menu to reveal selected sub-menus, and to hide non-selected sub-menus to prevent overlapping function show(mnuLayer) { if (loaded==true) { if ((oldShow!=mnuLayer)&&(oldShow!='')) { newShow=mnuLayer; hideOld(); } oldShow=mnuLayer; if ((ns4) ) document.layers[mnuLayer].visibility = "show" if ((ie4)) document.all[mnuLayer].style.visibility = "visible" if ((DOM)) document.getElementById(mnuLayer).style.visibility = "visible" } } //used by sub-menus to hide its layer if user moves off a selection but is provides delay //to allow for user to move between selections (normal mOuts are too quick to switch off layer) function timeOut(mnuLayer,delay) { if (loaded==true) { if ((ns4) || (ie4) || (DOM)) { hideLayer=mnuLayer; setTimeout ("delayHide()",delay); } } } //called by timeOut function...if user has not moused over a selection (hide=false) within //the delay period by now, sub-menu layer will be hidden function delayHide() { if (hide==true) { if ((ns4)) {document.layers[hideLayer].visibility = "hide"; } if ((ie4)) {document.all[hideLayer].style.visibility = "hidden"; } if ((DOM)) {document.getElementById(hideLayer).style.visibility = "hidden"; } } } //called by show function to hide sub-menus that user has moved away from...important call //if they just mOver'ed prev menu but not prev sub-menu function hideOld() { if ((ns4)) {document.layers[oldShow].visibility = "hide";} if ((ie4)) {document.all[oldShow].style.visibility = "hidden";} if ((DOM)) {document.getElementById(oldShow).style.visibility = "hidden"; } oldShow=newShow; } // Resize fix courtesy of WebMonkey - good stuff at www.webmonkey.com function WM_netscapeCssFix() { if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth || document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) { document.location = document.location; } } function WM_netscapeCssFixCheckIn() { if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) { if (typeof document.WM == 'undefined'){ document.WM = new Object; } if (typeof document.WM.WM_scaleFont == 'undefined') { document.WM.WM_netscapeCssFix = new Object; document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth; document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight; } window.onresize = WM_netscapeCssFix; } } WM_netscapeCssFixCheckIn(); function newWindow(videoType,videoFile,videodesc,theURL,winName,features) { window.open(theURL+"f1="+videoFile+"&t1="+videoType+"&d1="+videodesc,winName,features); } //end