/* ©2001 coolmaps.com - http://club.coolmaps.com - clubmaster@coolmaps.com */var MB_brwsr;var MB_AN=navigator.appName;var MB_AV=navigator.appVersion;if(MB_AN=="Microsoft Internet Explorer" && parseInt(MB_AV)>=4 && MB_AV.indexOf("Mac")==-1) MB_brwsr=0;else if(MB_AN=="Netscape" && parseInt(MB_AV)>=4 && parseInt(MB_AV)<5) MB_brwsr=1;else if(MB_AN=="Netscape" && parseInt(MB_AV)>=5) MB_brwsr=2;var IE4s=(MB_brwsr==0 && parseInt(MB_AV)>=4 && parseFloat(MB_AV.substring(MB_AV.indexOf('MSIE')+5))<=5.01)?1:0;function MB_getObj(r){switch(MB_brwsr){case 0: return document.all(r);case 1:if(r.indexOf("document")!=-1) return eval(r);else return document.layers[r];case 2:return document.getElementById(r);}}function MB_getWinWidth(){switch(MB_brwsr){case 0:return document.body.clientWidth;case 1:case 2:return window.innerWidth;}}function MB_getWinHeight(){switch(MB_brwsr){case 0:return document.body.clientHeight;case 1:case 2:return window.innerHeight;}}function MB_getWidth(obj){switch(MB_brwsr){case 0:case 2:return obj.offsetWidth;case 1:return obj.clip.width;}}function MB_setWidth(obj,r){switch(MB_brwsr){case 0:case 2:obj.style.width=r;break;case 1:obj.clip.width=r;break;}}function MB_getHeight(obj){switch(MB_brwsr){case 0: case 2:return obj.offsetHeight;case 1:return obj.clip.height;}}function MB_setHeight(obj,r){switch(MB_brwsr){case 0:case 2: obj.style.height=r;break;case 1:obj.clip.height=r;break;}}function MB_getTop(obj){switch(MB_brwsr){case 0: case 2: return obj.offsetTop;case 1:return obj.top;}}function MB_setTop(obj,r){switch(MB_brwsr){case 0:case 2: obj.style.top=r;break;case 1:obj.top=r;break;}}function MB_getLeft(obj){switch(MB_brwsr){case 0: case 2:return obj.offsetLeft;case 1:return obj.left;}}function MB_setLeft(obj,r){switch(MB_brwsr){case 0:case 2: obj.style.left=r;break;case 1:obj.left=r;break;}}function MB_showItem(obj,a){if(a) obj=MB_getObj(obj);switch(MB_brwsr){case 0:case 2: obj.style.visibility="visible";break;case 1:obj.visibility="show";break;}}function MB_hideItem(obj){switch(MB_brwsr){case 0:case 2: obj.style.visibility="hidden";break;case 1:obj.visibility="hide";break;}}function MB_setZindex(obj,z){switch(MB_brwsr){case 0: case 2: obj.style.zIndex=z;break;case 1:obj.zIndex=z;break;}}function MB_getIE45Left(obj){var temp=obj.offsetParent;var x=obj.offsetLeft+temp.offsetLeft;while(temp!=null){temp=temp.offsetParent;if(temp!=null) x+=temp.offsetLeft;}return x;}function MB_sizeNav4(){var left=0;for(var i=0; i<this.menus.length; ++i){var width;var norm=this.getItem(0,i);var high=this.getItem(1,i);var dummy=this.getItem(2,i);var text=this.getItem(3,i);this.menus[i].base=this.reference+"_"+i+"_mi";var dd=dummy.document;dd.menu=eval(this.reference);dd.a=i;dd.b=-1;dd.onMouseUp=(this.openA)?MB_doActionNav6:MB_handleClickNav6;if(this.type==0 && i!=0)document.layers[this.reference].clip.width+=MB_getWidth(norm);else if(i!=0) document.layers[this.reference].clip.height+=MB_getHeight(norm);MB_setWidth(dummy,MB_getWidth(norm));MB_setHeight(dummy,MB_getHeight(norm));for(var r=0; r<this.menus[i].menuItems.length; ++r){var snorm=this.getItem(0,i,r);var shigh=this.getItem(1,i,r);var sdummy=this.getItem(2,i,r);var sd=sdummy.document;sd.menu=eval(this.reference);sd.a=i;sd.b=r;sd.onMouseUp=MB_doActionNav6;document.layers[this.reference+ "_"+i+"_mi"].clip.height+=MB_getHeight(snorm);MB_setWidth(sdummy,MB_getWidth(snorm));MB_setHeight(sdummy,MB_getHeight(snorm)); }document.layers[this.reference+ "_"+i+"_mi"].clip.height-=MB_getHeight(norm);this.stackItems(i);}if(this.type==0)this.tileItems();else this.stackItems();}function MB_sizeIE4s(){var left=0;for(var i=0; i<this.menus.length; ++i){var divTag=this.getItem(0,i);var text=MB_getObj(this.reference+"_"+i+"_text");MB_setWidth(divTag,MB_getWidth(text)+6+(this.bwidth*2));MB_setHeight(divTag,MB_getHeight(text)+6+(this.bwidth*2));MB_setLeft(divTag,left);left+=MB_getWidth(text)+6+this.bwidth;}}function MB_stackItems(b){var top=0;var obj;if(b==null) obj=this.menus;else obj=this.menus[b].menuItems;for(var i=0; i<obj.length; ++i){var norm=(b==null)?this.getItem(0,i):this.getItem(0,b,i);var high=(b==null)?this.getItem(1,i):this.getItem(1,b,i);var dummy=(b==null)?this.getItem(2,i):this.getItem(2,b,i);MB_setTop(norm,top);MB_setTop(high,top);MB_setTop(dummy,top);top+=MB_getHeight(norm)-this.bwidth;}}function MB_tileItems(){var left=0;for(var i=0; i<this.menus.length; ++i){var norm=this.getItem(0,i);var high=this.getItem(1,i);var dummy=this.getItem(2,i);var text=this.getItem(3,i);MB_setLeft(norm,left);MB_setLeft(high,left);MB_setLeft(dummy,left);left+=MB_getWidth(norm)-this.bwidth;}}function MB_getItem(c,a,b){var rv;if(MB_brwsr!=1){if(b==null){rv=MB_getObj(this.reference+"_"+a);}else{rv=MB_getObj(this.reference+"_"+a+"_mi"+"_"+b);}}else{if(b==null){rv=this.menus[a].objRef[c]}else{rv=this.menus[a].menuItems[b].objRef[c];}}return rv;}function MB_writeStyles(){this.fsize+=1;var bw='border-width: '+this.bwidth+';';var bs='border-style: '+this.bstyle+';';var pd='padding: 3;';var ff='font-family: '+this.fface+';';var fs='font-style: '+this.fstyle+';';var fw='font-weight: '+this.fweight+';';var fz='font-size: '+this.fsize+'px;';var styleDef='<STYLE>';styleDef+='.norm'+this.reference+' {';styleDef+=bw+'border-color: '+this.bncolor+';'+bs+'}';styleDef+='.high'+this.reference+' {';styleDef+=bw+'border-color: '+this.bncolor+';'+bs+'}';styleDef+='.normText'+this.reference+' {'+'color: '+this.fncolor+';'+ff+fz+fs+fw;if(this.bwidth==0) styleDef+=pd;styleDef+='}';styleDef+='.highText'+this.reference+' {'+'color: '+this.fhcolor+';'+ff+fz+fs+fw;if(this.bwidth==0) styleDef+=pd;styleDef+='}';styleDef+='</STYLE>';document.write(styleDef);}function MenuBar(reference,type,opens,mwidth,offset,mialign,openA,bwidth,bstyle,bcolor,bgncolor,bghcolor,fface,fsize,fstyle,fweight,fncolor,fhcolor){this.reference=reference;this.type=type;this.opens=opens;this.mwidth=mwidth;this.offset=offset;this.mialign=mialign;this.openA=openA;this.stop=-1;this.bwidth=bwidth;this.bstyle=bstyle;this.bncolor=bcolor;this.bgncolor=bgncolor;this.bghcolor=bghcolor;this.fface=fface;this.fsize=fsize;this.fstyle=fstyle;this.fweight=fweight;this.fncolor=fncolor;this.fhcolor=fhcolor;this.menus=null;this.menuClicked=-1;this.addMenu=MenuBar_addMenu;this.start=MenuBar_display;this.displayIENav6=MenuBar_displayIENav6;this.displayNav4=MenuBar_displayNav4;this.showMenu=MenuBar_showMenu;this.hideMenu=MenuBar_hideMenu;this.MBmouseOver=MB_mouseOver;this.MBmouseOut=MB_mouseOut;this.highlight=MB_highlight;this.normal=MB_normal;this.doAction=MB_doAction;this.handleClick=MenuBar_handleClick;if(MB_brwsr==1){this.sizeNav4=MB_sizeNav4;this.writeStyles=MB_writeStyles;this.stackItems=MB_stackItems;this.tileItems=MB_tileItems;this.writeStyles();}else if(MB_brwsr==0) this.sizeIE4s=MB_sizeIE4s;this.getItem=MB_getItem;this.eventMove=MB_eventMove;this.placeHolder=MB_placeHolder;if(IE4s) this.moveIE4=MB_moveIE4;}function MenuBar_addMenu(menu){if(this.menus==null){this.menus=new Array(1);this.menus[0]=menu;}else{this.menus[this.menus.length]=menu;}}function MenuBar_onLoad(){eval(window.coolOLTemp);}function MenuBar_onResize(){if(MB_brwsr==1) window.location.reload();else eval(window.coolORTemp);}function MB_eventMove(){var IE4=(parseInt(MB_AV.substring(MB_AV.indexOf('MSIE')+5))==4)?1:0;var obj1=MB_getObj(this.reference);var obj2=MB_getObj("MBpos"+this.reference);var x;var y=this.y;if(obj2==null){x=this.x;}else{switch(MB_brwsr){case 0:if(IE4) setTimeout(this.reference+".moveIE4()",25);else x=MB_getIE45Left(obj2);break;case 1:x=obj2.pageX;break;case 2:x=MB_getLeft(obj2);break;}}if(!IE4){if(MB_brwsr!=1 && this.mwidth && !IE4s) y+=3+this.bwidth;MB_setLeft(obj1,x);MB_setTop(obj1,y);MB_showItem(obj1);}}function MB_moveIE4(){var x=MB_getIE45Left(MB_getObj("MBpos"+this.reference));var obj=MB_getObj(this.reference);MB_setLeft(obj,x);MB_setTop(obj,this.y);MB_showItem(obj);}function MB_placeHolder(){switch(MB_brwsr){case 0: case 2:document.write('<DIV ID="MBpos'+this.reference+'" STYLE="position:relative;visibility:hidden;"></DIV>');break;case 1:document.write('<ILAYER ID="MBpos'+this.reference+'" VISIBILITY="hide"></ILAYER>');break;}}function MenuBar_display(x,y,z){var tr=this.reference;if(z){this.x=x;this.y=y;x=0;y=0;if(window.coolOLTemp==null){window.coolOLTemp=""+window.onload;window.coolOLTemp=window.coolOLTemp.substring(window.coolOLTemp.indexOf("{")+1,window.coolOLTemp.lastIndexOf("}")-1);}window.coolOLTemp=tr+".eventMove();"+window.coolOLTemp;window.onload=MenuBar_onLoad;if(window.coolORTemp==null){window.coolORTemp=""+window.onresize;window.coolORTemp=window.coolORTemp.substring(window.coolORTemp.indexOf("{")+1,window.coolORTemp.lastIndexOf("}")-1);}window.coolORTemp=tr+".eventMove();"+window.coolORTemp;window.onresize=MenuBar_onResize;}switch(MB_brwsr){case 0: case 2:if(!z && !IE4s && this.mwidth) y+=3+this.bwidth;this.displayIENav6(x,y);if(IE4s && !this.type && this.mwidth) this.sizeIE4s();if(IE4s) MB_getObj(tr).style.width=0;break;case 1: if(!z) window.onresize=MenuBar_onResize;this.displayNav4(x,y);this.sizeNav4();break;}if(!z) MB_showItem(MB_getObj(tr));}function MenuBar_displayIENav6(x,y){var styleString='position: absolute; left: '+x+'; top: '+y+'; z-index: 497; visibility: hidden; ';document.write('<DIV ID="'+this.reference+'" STYLE="'+styleString+'">');var r=0;for(var i=0; i<this.menus.length; ++i) r=this.menus[i].displayIENav6(this.reference,i,r);document.write('</DIV>');for(var i=0; i<this.menus.length; ++i) this.menus[i].displayMenuItemsIENav6(this.reference,i);}function MenuBar_displayNav4(x,y){document.writeln('<LAYER ID="'+this.reference+'" PAGEX="'+x+'" PAGEY="'+y+'" Z-INDEX=497 VISIBILITY="hide">');for(var i=0; i<this.menus.length; ++i) this.menus[i].displayNav4(this.reference,i);document.writeln('</LAYER>');for(var i=0; i<this.menus.length; ++i) this.menus[i].displayMenuItemsNav4(this.reference,i);}function MB_highlight(a,b){if(MB_brwsr==1){if(b==-1) MB_setZindex(this.getItem(1,a),501);else MB_setZindex(this.getItem(1,a,b),501);}else{if(b==-1){with(this.getItem(1,a).style){backgroundColor=this.bghcolor;color=this.fhcolor;}}else{with(this.getItem(1,a,b).style){backgroundColor=this.bghcolor;color=this.fhcolor;}}}}function MB_normal(a,b){if(MB_brwsr==1){if(b==-1) MB_setZindex(this.getItem(1,a),499);else MB_setZindex(this.getItem(1,a,b),499);}else{if(b==-1){with(this.getItem(1,a).style){backgroundColor=this.bgncolor;color=this.fncolor;}}else{with(this.getItem(1,a,b).style){backgroundColor=this.bgncolor;color=this.fncolor;}}}}function MB_mouseOver(a,b){this.stop=a;if(b==-1){if(this.openA){if(this.menuClicked!=a && this.menuClicked!=-1){this.normal(this.menuClicked,-1);MB_hideItem(MB_getObj(this.menus[this.menuClicked].base));}this.showMenu(a);this.menuClicked=a;}}this.highlight(a,b);}function MB_mouseOut(a,b){if(this.openA){this.stop=-1;setTimeout(this.reference+".hideMenu("+a+")",50);}if(b!=-1) this.normal(a,b);else if(b==-1 && !this.openA && this.menuClicked!=a) this.normal(a,b);}function MB_doActionNav6(){this.menu.doAction(this.a,this.b);}function MB_doAction(a,b){if(b==-1) obj=this.menus[a];else obj=this.menus[a].menuItems[b];if(obj.action.length>0){if(obj.action.indexOf("javascript:")==0) eval(obj.action);else if(obj.target!="") window.open(obj.action,obj.target);else parent.location.href=obj.action;MB_setZindex(this.getItem(1,a),499);MB_hideItem(MB_getObj(this.menus[a].base));this.menuClicked=-1;}}function MB_handleClickNav6(){this.menu.handleClick(this.a,this.b);}function MenuBar_handleClick(a,b){if(this.menuClicked>=0){if(a==this.menuClicked){this.normal(this.menuClicked,-1);MB_hideItem(MB_getObj(this.menus[this.menuClicked].base));this.menuClicked=-1;}else{MB_hideItem(MB_getObj(this.menus[this.menuClicked].base));this.normal(this.menuClicked,-1);this.showMenu(a);this.menuClicked=a;} }else{this.showMenu(a);this.highlight(a,-1);this.menuClicked=a;}}function MenuBar_hideMenu(n){if(this.stop!=n){this.normal(n,-1);MB_hideItem(MB_getObj(this.menus[n].base));}}function MenuBar_showMenu(n){var menuBarDiv=MB_getObj(this.reference);var menuHeadDiv=this.getItem(2,n);var menuItemDiv=MB_getObj(this.menus[n].base);var itemWidth=0;if(this.menus[n].menuItems.length>0) itemWidth=MB_getWidth(this.getItem(0,n,0));if(this.opens==0 || this.opens==2){var headWidth=MB_getWidth(this.getItem(2,n));var menuBarX=(MB_brwsr==2)?MB_getLeft(this.getItem(2,n)):MB_getLeft(menuBarDiv)+MB_getLeft(this.getItem(2,n));if(MB_brwsr==2) menuBarX-=this.bwidth;if(MB_getWinWidth()<menuBarX+itemWidth+20) menuBarX+=(headWidth-itemWidth);else if(MB_brwsr==0 && n!=0 && this.mwidth && !IE4s) menuBarX-=this.bwidth;if(this.opens==0){var menuBarY=0;if(this.menus[n].menuItems.length>0){var tempDiv=this.getItem(2,n,this.menus[n].menuItems.length-1);menuBarY=MB_getTop(menuBarDiv)-MB_getHeight(menuItemDiv)+(this.bwidth*this.menus[n].menuItems.length);}}else{var menuBarY=MB_getTop(menuBarDiv)+MB_getHeight(menuHeadDiv)-this.bwidth;}if(MB_brwsr!=1 && this.mwidth && !IE4s) menuBarY-=3+this.bwidth;}else if(this.opens==1 || this.opens==3){var menuBarY=(MB_brwsr==2)?menuHeadDiv.offsetTop-this.bwidth+this.offset:MB_getTop(menuBarDiv)+MB_getTop(menuHeadDiv)+this.offset;var itemHeight=0;if(this.menus[n].menuItems.length>0) itemHeight=(MB_getHeight(this.getItem(2,n,0))-this.bwidth)*this.menus[n].menuItems.length;if(MB_getWinHeight()<menuBarY+itemHeight+20) menuBarY+=(MB_getHeight(menuHeadDiv)-itemHeight-this.bwidth);if(this.opens==1) var menuBarX=MB_getLeft(menuBarDiv)+MB_getWidth(menuHeadDiv)-this.bwidth-this.offset;else var menuBarX=MB_getLeft(menuBarDiv)-itemWidth+this.bwidth+this.offset;}MB_setLeft(menuItemDiv,menuBarX);MB_setTop(menuItemDiv,menuBarY);MB_showItem(menuItemDiv);}function Menu(name, headwidth, menuwidth, action, target){this.name=name;this.headwidth=headwidth;this.menuwidth=menuwidth;this.action=(action!=null)?action:"";this.target=(target!=null)?target:"";this.menuItems=0;this.addMenuItem=Menu_addMenuItem;this.makeItem=MB_makeItem;this.displayIENav6=Menu_displayIENav6;this.displayNav4=Menu_displayNav4;this.displayMenuItemsIENav6=Menu_displayMenuItemsIENav6;this.displayMenuItemsNav4=Menu_displayMenuItemsNav4;}function Menu_addMenuItem(name,action,target){var menuItem=new MenuItem(name,action,target);if(this.menuItems==0){this.menuItems=new Array(1);this.menuItems[0]=menuItem;}else{this.menuItems[this.menuItems.length]=menuItem;}}function MB_makeItem(reference,menuNumber,r,b,c){var menu=eval(reference);var id;var name;var width;switch(b){case 1:id=reference+"_"+menuNumber+"_mi_"+c;name=this.menuItems[c].name;width=this.menuwidth;break;case 0:id=reference+"_"+menuNumber;name=this.name;width=this.headwidth;break;}var align='center';if(b){switch(menu.mialign){case 0: align='left';break;case 2: align='right';break;}}switch(MB_brwsr){case 0: case 2:var openA=reference+'.doAction('+menuNumber+','+c+')';if(!menu.openA && !b) openA=reference+'.handleClick('+menuNumber+',-1)';var html="";if((menu.mwidth && IE4s) || !menu.mwidth || b){html+='<DIV ID="'+id+'" STYLE="';if(menu.type || b){html+='position:relative;';html+='top:'+r+'px; ';r-=(b && menu.mwidth)?menu.bwidth+1:menu.bwidth;}else if(!menu.type){html+='position:absolute;';html+='left:'+r+'px; ';r+=this.headwidth+menu.bwidth;}if(MB_brwsr==2) html+='width:'+(width-6)+'px;';else if(b || !IE4s || !menu.mwidth) html+='width:'+(width+menu.bwidth*2)+'px;';html+='text-align:'+align+';';html+='border-width:'+menu.bwidth+'px;';}else if(menu.mwidth && !b){html+='<SPAN ID="'+id+'" STYLE="position: relative;';html+='border-top-width:'+menu.bwidth+'px;';html+='border-right-width:'+menu.bwidth+'px;';html+='border-bottom-width:'+menu.bwidth+'px;';html+=(r==0 || IE4s)?'border-left-width:'+menu.bwidth+'px;':'border-left-width: 0px;';}html+='background-color:'+menu.bgncolor+';';html+='border-style:solid;';html+='border-color:'+menu.bncolor+';';html+='padding:3px;';html+='font-family:'+menu.fface+';';html+='font-size:'+menu.fsize+'px;';html+='font-weight:'+menu.fweight+';';html+='font-style:'+menu.fstyle+';';html+='color:'+menu.fncolor+';';html+='cursor:default;" ';html+='onMouseOver="'+reference+'.MBmouseOver('+menuNumber+','+c+')" ';html+='onMouseOut="'+reference+'.MBmouseOut('+menuNumber+','+c+')" ';html+='onClick="'+openA+'">';if(IE4s && menu.mwidth && !b) html+='<SPAN ID="'+id+'_text">';html+=name;if(menu.mwidth && !b) html+='</SPAN>';if((menu.mwidth && IE4s) || !menu.mwidth || b) html+='</DIV>';if(menu.mwidth) r+=1;break;case 1:var widths;if(!menu.mwidth || b) widths=(menu.bwidth==0)?width:width-6;else width=0;var a1='<LAYER ID="'+id;var a2=reference+'" BGCOLOR="';var a3='" Z-INDEX=';var a4='<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR="';var a5='" WIDTH="'+widths+'">';var a6='<TR><TD><DIV class="';var a7='Text'+reference+'" ALIGN="'+align+'">'+name+'</DIV></TD></TR></TABLE></LAYER>'; var html=a1+'_norm" class="norm'+a2+menu.bgncolor+a3+'500>'+a4+menu.bgncolor+a5+a6+'norm'+a7; html+=a1+'_high" class="high'+a2+menu.bghcolor+a3+'499>'+a4+menu.bghcolor+a5+a6+'high'+a7;html+=a1+'_dummy" class="dummy'+reference+'" Z-INDEX=502 onMouseOver="window.'+reference+'.MBmouseOver('+menuNumber+','+c+')" onMouseOut="window.'+reference+'.MBmouseOut('+menuNumber+','+c+')">';html+='</LAYER>';break;}document.write(html);return r;}function Menu_displayIENav6(reference,menuNumber,r){return this.makeItem(reference,menuNumber,r,0,-1);}function Menu_displayMenuItemsIENav6(reference,menuNumber){var id=reference+"_"+menuNumber+"_mi";var style="position: absolute; top:0; left:0; visibility: hidden; width=19; z-index:498";var menu=eval(reference);this.base=id;document.write('<DIV ID="'+id+'" STYLE="'+style+'">');var r=0;for(var i=0; i<this.menuItems.length; ++i){r=this.makeItem(reference,menuNumber,r,1,i); }document.write('</DIV>');}function Menu_displayNav4(reference,menuNumber){var id=reference+"_"+menuNumber;var r=this.makeItem(reference,menuNumber,0,0,-1);this.objRef=new Array(eval("document."+reference+".document."+id+"_norm"),eval("document."+reference+".document."+id+"_high"),eval("document."+reference+".document."+id+"_dummy"),"");}function Menu_displayMenuItemsNav4(reference,menuNumber){var id=reference+"_"+menuNumber+"_mi";var base="document."+id+".document.";document.write('<LAYER ID="'+id+'" PAGEX="10 PAGEY="10" VISIBILITY="hidden Z-INDEX=498">');for(var i=0; i<this.menuItems.length; ++i){var r=this.makeItem(reference,menuNumber,0,1,i);this.menuItems[i].objRef=new Array(eval(base+id+"_"+i+"_norm"),eval(base+id+"_"+i+"_high"),eval(base+id+"_"+i+"_dummy"));}document.writeln('</LAYER>');}function MenuItem(name,action,target){this.name=name;this.action=action;this.target=(target!=null)?target:"";}