function MenuItemClicked(entryNo,fromToggle){var r=true;var e=this.entry[entryNo];var w=this.contentWin();var b=theBrowser;this.selectEntry(entryNo);if(this.wizardInstalled){w.menuItemClicked(entryNo);}if(e.onClickFunc){e.onClick=e.onClickFunc;}if(e.onClick){var me=e;if(eval(e.onClick)==false){r=false;}}if(r){if(((this.toggleOnLink)&&(e.FirstChild!=-1)&&!(fromToggle))||e.noOutlineImg){if(b.hasDHTML){this.toggle(entryNo,true);}else {setTimeout(this.name+'.toggle('+entryNo+', true);',100);}}}return (e.url!='')?r:false;}function MenuSelectEntry(entryNo){var oe=this.entry[this.selectedEntry];if(oe){oe.setSelected(false);}var e=this.entry[entryNo];if(e){e.setSelected(true);}this.selectedEntry=entryNo;}function MenuSetEntry(entryNo,state){var cl=','+entryNo+',';var e=this.entry[entryNo];this.lastPMClicked=entryNo;var mc=e.setIsOpen(state);var p=e.parent;while (p>=0){cl+=p+',';e=this.entry[p];mc|=(e.setIsOpen(true));p=e.parent;}if(this.modalFolders){for(var i=0;i<=this.count;i++){e=this.entry[i];if((cl.indexOf(','+i+',')<0)&&e){mc|=e.setIsOpen(false);}}}return mc;}function MenuSetEntryByURL(theURL,state){var i=this.findEntry(theURL,'url','right',0);return (i!=-1)?this.setEntry(i,state):false;}function MenuSetAllChildren(state,parentID){var hasChanged=false;var currEntry=(parentID>-1)?this.entry[parentID].FirstChild:this.firstEntry;while (currEntry>-1){var e=this.entry[currEntry];hasChanged|=e.setIsOpen(state);if(e.FirstChild>-1){hasChanged|=this.setAllChildren(state,currEntry);}currEntry=e.nextItem;}return hasChanged;}function MenuSetAll(state,parentID){if(theBrowser.version>=4){if(parentID=='undefined'){parentID=-1;}}else {if(parentID==null){parentID=-1;}}var hasChanged=false;if(parentID>-1){hasChanged|=this.entry[parentID].setIsOpen(state);}hasChanged|=this.setAllChildren(state,parentID);if(hasChanged){this.lastPMClicked=this.firstEntry;this.refresh();}}function MenuOpenAll(){this.setAll(true,-1);}function MenuCloseAll(){this.setAll(false,-1)}function MenuFindEntry(srchVal,srchProp,matchType,start){var e;var sf;if(srchVal==""){return -1;}if(!srchProp){srchProp="url";}if(!matchType){matchType="exact";}if(!start){start=0;}if(srchProp=="URL"){srchProp="url";}if(srchProp=="title"){srchProp="text";}eval("sf = cmp_"+matchType);for(var i=start;i<=this.count;i++){if(this.entry[i]){e=this.entry[i];if(sf(eval("e."+srchProp),srchVal)){return i;}}}return -1;}function cmp_exact(c,s){return (c==s);}function cmp_left(c,s){var l=Math.min(c.length,s.length);return ((c.substring(1,l)==s.substring(1,l))&&(c!=""));}function cmp_right(c,s){var l=Math.min(c.length,s.length);return ((c.substring(c.length-l)==s.substring(s.length-l))&&(c!=""));}function cmp_contains(c,s){return (c.indexOf(s)>=0);}function MenuToggle(entryNo,fromClicked){var r=true;var e=this.entry[entryNo];if(e.onToggle){var me=e;if(eval(e.onToggle)==false){r=false;}}if(r){var chg=this.setEntry(entryNo,e.isopen^1);if(this.linkOnExpand&&e.isopen){if(e.url!=''){loadURLInTarget(e.url,e.target);}if(!fromClicked){this.itemClicked(entryNo,true);}}if(chg){this.refresh();}}return false;}function DrawMenu(m){m.draw();}function browserInfo(){this.code='unknown';this.version=0;this.platform='Win';var ua=navigator.userAgent;var i=ua.indexOf('WebTV');if(i>=0){this.code='WebTV';i+=6;}else {i=ua.indexOf('Opera');if(i>=0){this.code='OP';i=ua.indexOf(') ')+2;}else {i=ua.indexOf('MSIE');if(i>=0){this.code='MSIE';i+=5;}else {i=ua.indexOf('Mozilla/');if(i>=0){this.code='NS';i+=8;}}}}this.version=parseFloat(ua.substring(i,i+4));if(ua.indexOf('Mac')>=0){this.platform='Mac';}if(ua.indexOf('OS/2')>=0){this.platform='OS/2';}if(ua.indexOf('X11')>=0){this.platform='UNIX';}var v=this.version;var p=this.platform;var NS=(this.code=='NS');var IE=(this.code=='MSIE');var WTV=(this.code=='WebTV');var OP=(this.code=='OP');var OP32up=(OP&&(v>=3.2));var OP5up=(OP&&(v>=5));var IE4up=(IE&&(v>=4));var NS3up=(NS&&(v>=3));var NS6up=(NS&&(v>=5));this.canCache=NS3up||IE4up||OP32up||WTV;this.canOnMouseOut=this.canCache;this.canOnError=NS3up||IE4up||OP32up;this.canJSVoid=!((NS&&!NS3up)||(IE&&!IE4up)||(OP&&(v<3.5)));this.lineByLine=(v<4);this.mustMoveAfterLoad=NS3up||(IE4up&&(p!='Mac'))||WTV;if(NS6up==true){this.reloadMethod='reload';}else {if(NS3up||IE4up||WTV||OP5up){this.reloadMethod='replace';}else {this.reloadMethod=(NS&&(v==2.01)&&(p!='Win'))?'timeout':'href';}}this.needsMenuSearch=(OP&&!OP5up);this.canFloat=NS||(IE&&!((p=='Mac')&&(v>=4)&&(v<5)));this.hasDHTML=((NS||IE)&&(v>=4))&&!(IE&&(p=='Mac')&&(v<4.5));this.slowDHTML=IE4up||NS6up;this.hasW3CDOM=(document.getElementById)?true:false;this.needLM=(!this.hasW3CDOM&&NS)||(IE&&(p=='Mac')&&(v>=4.5));this.DHTMLRange=IE?'.all':'';this.DHTMLStyleObj=IE?'.style':'';this.DHTMLDivHeight=IE?'.offsetHeight':'.clip.height';}function getWindow(){return (floatingMode)?myOpener:self;}function setStatus(theText){var theWindow=getWindow();if(theWindow){theWindow.status=theText;if(!theBrowser.canOnMouseOut){clearTimeout(statusTimeout);statusTimeout=setTimeout('clearStatus()',5000);}}return true;}function clearStatus(){var theWindow=getWindow();if(theWindow)theWindow.status='';}function unloadFloating(){if(myOpener){if(myOpener.MyFrameset)myOpener.setTimeout('menuClosed();',100);}}function getMode(){var theMode=getParm(document.cookie,'mode',';');return ((theMode=="Floating")||(theMode=="NoFrames"))?theMode:"Frames";}function smOnError(msg,url,lno){smCallerWin.onerror=oldErrorHandler;if(confirm(smSecurityMsg))setTimeout('setMode("'+smNewMode+'");',100);return true;}function smSetCookie(theMode){document.cookie="mode="+theMode+"; path=/";if(getMode()!=theMode){alert(smCookieMsg);return false;}else {return true;}}function setMode(theMode,callerWin){smNewMode=theModesmCallerWin=(theBrowser.code=='NS')?callerWin:self;var okToGo=true;var currentMode=getMode();if(theMode!=currentMode){if(currentMode=='Floating'){if(smSetCookie(theMode))self.close();}else {var dest='';if(theBrowser.canFloat){if((theMenu.savePage)&&(callerWin)){if(theBrowser.canOnError){oldErrorHandler=smCallerWin.onerror;smCallerWin.onerror=smOnError;}var l=theMenu.contentWin().location;var p=l.pathname;if(theBrowser.canOnError)smCallerWin.onerror=oldErrorHandler;if(p)dest=fixPath(p)+l.search;else {if(!confirm(smSecurityMsg))okToGo=false;}}}else okToGo=false;if(okToGo&&smSetCookie(theMode)){if(theMode=='NoFrames')location.href=(index3=='')?((dest=='')?'/':dest):index3;else location.href=index2+((dest=='')?'':'?page='+escape(dest));}}}}function fixPath(p){var i=p.indexOf('?',0);if(i>=0)p=p.substring(0,i);if(p.substring(0,2)=='/:')p=p.substring(p.indexOf('/',2),p.length);i=p.indexOf("\x5C",0);while (i>=0){p=p.substring(0,i)+'/'+p.substring(i+1,p.length);i=p.indexOf("\x5C",i);}return p;}function fileFromPath(p){p=fixPath(p);var i=p.lastIndexOf("\x5C");if(i>=0)p=p.substring(i+1,p.length);return p;}function getParm(theStr,parm,delim){if(theStr.length==0)return '';var sPos=theStr.indexOf(parm+"=");if(sPos==-1)return '';sPos=sPos+parm.length+1;var ePos=theStr.indexOf(delim,sPos);if(ePos==-1)ePos=theStr.length;return unescape(theStr.substring(sPos,ePos));}function pageFromSearch(def,m,selIt){var s=self.location.search;if((s==null)||(s.length<=1))return def;var p=getParm(s,'page','&');p=(p!='')?fixPath(p):def;if(m!=null){var e=m.findEntry(p,'URL','exact');if((e!=-1)&&selIt){m.setEntry(e,true);m.selectEntry(e);}}return p;}function loadURLInTarget(u,t){var w=eval("self."+t);if(!w&&myOpener)w=eval("myOpener."+t);if(!w&&("_top,_parent,_self".indexOf(t)>=0))w=eval("getWindow()."+t.substring(1));if(w)w.location.href=u;else window.open(u,t);}function defOnError(msg,url,lno){if(jsErrorMsg=='')return false;else {alert(jsErrorMsg+'.\n\nError: '+msg+'\nPage: '+url+'\nLine: '+lno+'\nBrowser: '+navigator.userAgent);return true;}}function defaultResizeHandler(){if((theBrowser.code=="NS")&&theBrowser.hasDHTML&&(self.frames.length!=0)){if(!eval(theMenu.container+".document.menuBottom"))theMenu.reload();}}{var theBrowser=new browserInfo;var jsErrorMsg='A JavaScript error has occurred on this page!  Please note down the ';jsErrorMsg+='following information and pass it on to the Webmaster.';if(theBrowser.canOnError)self.onerror=defOnError;var theMenu=new Menu;var MyFrameset=true;var statusTimeout=0;var index1='index.htm';var index2='index2.htm';var index3='index3.htm';var smCallerWin;var smNewMode;var oldErrorHandler;var smNoFloat='Sorry, your browser does not support this feature!';var smCookieMsg='You must have Cookies enabled to change the display mode!';var smSecurityMsg='Due to security restrictions imposed by your browser, I cannot ';smSecurityMsg+='change modes while a page from another server is being displayed. ';smSecurityMsg+='The default home page for this site will be displayed instead.';var floatingMode=(getMode()=='Floating');var myOpener=null;if(floatingMode==true){if(self.opener){myOpener=self.opener;if(myOpener.MyFrameset)myOpener.setTimeout("setGlobals();",100);}else {document.cookie="mode=Frames; path=/";floatingMode=false;}}else {if(getMode()!="Frames")document.cookie="mode=Frames; path=/";}}function initOutlineIcons(imgStore){var ip="images/menu/";imgStore.add('iconPlusTop',ip+'plustop.gif',13,16);imgStore.add('iconPlus',ip+'plus.gif',13,16);imgStore.add('iconPlusBottom',ip+'plusbottom.gif',13,16);imgStore.add('iconPlusOnly',ip+'plusonly.gif',13,16);imgStore.add('iconMinusTop',ip+'minustop.gif',13,16);imgStore.add('iconMinus',ip+'minus.gif',13,16);imgStore.add('iconMinusBottom',ip+'minusbottom.gif',13,16);imgStore.add('iconMinusOnly',ip+'minusonly.gif',13,16);imgStore.add('iconLine',ip+'line.gif',13,16);imgStore.add('iconBlank',ip+'blank.gif',13,16);imgStore.add('iconJoinTop',ip+'jointop.gif',13,16);imgStore.add('iconJoin',ip+'join.gif',13,16);imgStore.add('iconJoinBottom',ip+'joinbottom.gif',13,16);imgStore.add("Folder",ip+"blank1x1.gif",1,1);var di='images/menu/';if((theBrowser.code=='NS')||(theBrowser.code=='MSIE')){imgStore.add('Document',di+'blank1x1.gif',1,1);imgStore.add('DocumentMouseOver',di+'blank1x1.gif',1,1);imgStore.add('DocumentSelected',di+'blank1x1.gif',1,1);}else {imgStore.add('Document',di+'blank1x1.gif',1,1);}}