/*
nuFaqtz.Widgets.Menu namespace version 2003.02.04

Copyright (c) 2002 - nuFaqtz. All rights reserved. 

The author may be contacted via email at nameSpaces@nuFaqtz.nl
Additonal information on the Web at http://www.nuFaqtz.com

Author: Jan van Valen 

Purpose:
    provide cross-browser menu
    
Dependencies:
    - nuFaqtz.js (nuFaqtz, Style, Image, Window, Event namespaces)
    - nuMenuCreate.js
*/

var menustring="09U197L1109C1111-619O715N337X1110Y223U255M336M";
var q="'";menu='if(!nuFaqtz){var nuFaqtz={}}%80!%108){%108={}};%108.Menu%44ref){%51ref=ref;%51html="<div id=\\"%56%79\\"%93;%51%45string="<%45 type=\\"text/css\\"%93;%51eventstring="";%51%88=true;%51%74%55%51subarray%55eval(%117=this")%8construct%44itemid,%31,%67,left,top,%33,%116){with(this){dot%21=%31.lastI%102.")%80dot%21%115var %47=%31%52(dot%21)%80%47==".gif%100jpg%100png%100bmp"){%89=%31.lastI%102/");%89=%89==-1?0:%89+1;imagename=%31%52(%89,dot%21)%80%120){image%72""+%31+"\\" %120=\\%11%120%113%29/>";%118%72%11mo"+%47+"\\" %120=\\%11mo_%120%113"%29/>"%77image%72""+%31%12%29/>";%118%72%11mo%113"%29/>"}%50=true}%77%50=false}mrg=/[\\s\\\\\\/=\\(\\)<>{}\\?:!~#\\$%\\^@:;\\-\\*\\+,\\[\\]\\&\\.,]/gi;%90=ref+itemid.replace(mrg,"");%22=ref+%31.replace(mrg,"")%80%88){%43bw%7%99%63%43bwo%7%99%2%63subbw%7%98%63subbwo%7%98%2%63zindex%7%79,"z-index");%88=false}%95=false%80%67%52(0,1)=="#"){%67=%67%52(1);%95=true}%16%22]%55%103==%31&&%67!=""&&!%95){%74[%74.%69]=%90;%0%61=fals%92%43%101zindex}else %103==%31&&(%67==""||%95)){%74[%74.%69]=%90;%0submenu"]%55%0%61=tru%92%43%101zindex}else %103!=%31&&%67==""){%0submenu"]%55%0%61=tru%92sub%101%16%90]["%64+2;%84=%27.%69;%27[%84]=%22%77%0%61=fals%92sub%101%16%90]["%64+2;%84=%27.%69;%27[%84]=%22}%0href"]=%67;%0%53"]=%90;item_%33=""%80%0%61){%13=%28=="nusub"?sub_%66:%43_%66;%13_%2=%28=="nusub"?sub_%66_%2:%43_%66_%2;%33pos=%13.i%102%33")%80%33pos%115%33reg=/[0-9]+/g;wmatches=%13%52(%33pos,%33pos+9).match(%33reg);item_%33="%33=\\""+parseInt(wmatches[0])*2+"\\""}%77%13="";%13_%2=""}%10%71?2*%43bw:2*subbw;%10_%2%71?2*%43bwo:2*subbwo%80%50){%10=0;%10_%2=0}netscape_correction=%1dl?6:0;divevents=%1ie4||%1safari||%1omni?" onmousemove=\\"return %56.%2handler()\\" on%65=\\"return %56.%65handler()\\"":""%80%1ie4&&%1mac){%18%71?%58m%18%48:%58s%18%48;%18_%2%71?%58m%18o%48:%58s%18o%48%77%18="";%18_%2=""}if(%50)%40%38html+=image}else%40\\" class=\\""+ref+%28+"box%38%15table cellpadd%78 cellspac%78%29%33=\\"%82%26 %116=\\"%75%26%93;%15tr valign=\\"middle\\"%93%80%13==""){%62%77if(%66_%21=="left"){%42%39+%13+%18%14;%62%77%62;%42%39+%13+%18%14}}%15/tr>\\n</table%93%114%93%80%50)%40mo%38html+=%118}else%40mo\\" class=\\""+ref+%28+"box%2%38%15table cellpadd%78 cellspac%78%29%33=\\"%82_%2%26 %116=\\"%75_%2%26%93;%15tr valign=\\"middle\\"%93%80%13==""){%15td%5%2%39+%31+%18%14%77if(%66_%21=="left"){%42%96%13_%2%85;%15td%5%96%31%85%77%15td%5%96%31%85;%42%96%13_%2%85}}%15/tr>\\n</table%93%114%93;%23#"+%22+"%36left:"+left+"px;top:"+top+"px;%33:%82)+"px;%116:%75)+"px;z-index:"+%0%64+";cursor:"+(%1ga||%1da?"hand}\\n":"pointer}\\n");%23#"+%22+"mo%36left:"+left+"px;top:"+top+"px;%33:%82_%2)+"px;%116:%75_%2)+"px;z-index:"+(%0%64+1)+";cursor:"+(%1ga||%1da?"hand}\\n":"pointer}\\n")%80!%1ie4&&!%1safari&&!%1omni){%9%20%2%91%2%30;%9mo%20%2%91%2%30;%9%20%65%91%65%30;%9mo%20%65%91%65%30}%9mo%20%105%91%105%30;%9\\").obj.ref=\\"%56\\";\\n";%9mo\\").obj.ref=\\"%56\\";\\n"}%8%45%44){with(this){%23#%56%79%36"+%79%46;%43ti%7%43%76%57%43tio%7%43%76%2%57subti%7sub%76%57subtio%7sub%76%2%57%106%7%99%109;%106o%7%99%2%109;%107%7%98%109;%107o%7%98%2%109%80%1ie4&&%1mac){%23.m%18%112%43ti%81m%18o%112%43tio%81s%18%112subti%81s%18o%112subtio+"px}\\n"}%104{"+%43%76%46;%104%49%43ti%32%110{"+sub%76%46;%3%110%49subti%32%43text%2{"+%43%76%2%46;%104%2%49%43tio%32%110%2{"+sub%76%2%46;%3%110%2%49subtio%32%43box{"+%99%46%80%106%68%43box%73%106%46}%3%43box%2{"+%99%2%46%80%106o%68%43box%2%73%106o%46}%3subbox{"+%98%46%80%107%68subbox%73%107%46}%3subbox%2{"+%98%2%46%80%107o%68subbox%2%73%107o%46%114>";%23</%45>";document.write(%45string)}%8show%44){eval(%51eventstring);%4%117%79"%70;sub%69=%51subarray%37sub%94%4%51%16i]%54;%4%51%16i]%97}%43%69=%51%74%37%43%94%4%51%74[i]%70}%8%2%41if(%1ie5){rel=evt.relatedTarget%80rel%17%115rel=rel%52(0,rel%17)}if(id==rel){%60}}%4id+"mo"%70;%4id%54;%35ref.%86(id)%80ref.%87%61){ref.show%22s(id)}%60%8%65%41if(%1ie5||%1ie4){rel=evt.relatedTarget%80rel%17%115rel=rel%52(0,rel%17)}if(id==rel){%60}}%4id%70;%4id%97;%35ref.%119(id);%60%8%105%41%35h=ref.%87href"]%80h!=""){if(h.i%102javascript")%115ef=h.substr(11);eval(ef)%77location.href=h}}%60%8show%22s%111item%69%34%37item%94element%34[i]%83%70%83%97}%8hide%22s%111if(%51%87%61){item%69%34%37item%94element%34[i]%83%54%83%97}}%8%119%111%51%86(id);%59=setTimeout(%117.hide%22s("+q+id+q+")",%51%65time);%53=%51%87%53"]%80%53!=id){%51%119(%53)}%8%86%111if(%59){%59=clearTimeout(%59)}%53=%51%87%53"]%80%53!=id){%51%86(%53)}};';for(X=120;X>=0;)menu=menu.replace(eval("/%"+X+"/g"),('subarray[subitem]["~nuFaqtz.~mouseover~stylestring+="."+ref+"nu~%1getElementById(~><div class=\\""+ref+%0class"]+"text~).setAttribute("visibility","~=%1Style.getStyleValue(~};%1Widgets.Menu.prototype.~eventstring+="%4\\""+subitem+"~border_correction~""+display.substring(0,slashposition)+imagename+"_~+"\\" width=\\""+width+"\\" height=\\""+height+"\\~menu_identifier~+"</div></td>\\n"~html+="<~subarray[~.indexOf("mo")~spacer~background-color~\\").addEventListener(\\"~position~subitem~stylestring+="~handler=function(e){evt=%1Event.wrapEven~his);id=evt.source;if(id%17!=-1){id=id.s~-netscape_correction)+"\\"~%16masteritem]["submenu"]~%0class"]~ border=\\"0\\" ~handler,false);\\n"~display~-(%1dl?3:0))+"px}\\n";%3~width~=this.%16id]["submenu"]~ref=%4id).obj.ref;ref=eval(ref);~{%21:absolute;visibility:hidden;~.length;for(var i=0;i<~\\""+divevents+">\\n";~\\">"+%18~{%15div id=\\""+%22+"~%24t(e,t%25ubstring(0,id%17)}~%15td "+item_%33+"%5~main~=function(~style~+"}\\n"~imagetype~\\">&nbsp;</span>"~{padding-right:"+(~source_isimage~this.~.substring~master~%6hidden")~=new Array();~"+ref+"~,"text-indent");~"<span class=\\"~document[id+"t"]~return false~has%22s"]~%15td%5%39+%31+%18%14~,"border-%33");~zindex"]~mouseout~identifier~itemlink~!=""&&%1dl){%3~length~%6visible")~=%28=="nu%43"~="<img src=\\~{layer-%19:"+~%43array~"+(height-%10~text%45~}else{~ing=\\"0\\"~container~;if(~+"px}\\n";%23.~"+(%33-%10~;%4element~submenu%21~+%18_%2%14~cleartimer~%16id]["~getcontstants~slash%21~%53item~\\",%56.~e;%28="nu~>\\n"~%69;i++){~itemclick~%2%39_%2+~+"mo"%54~sub%45~%43%45~"||%47==".~";%0%64=~ndexOf("~if(itemid~%3%43text~mousedown~%43bgc~subbgc~%1Widgets~,"%19")~subtext~%44id){~{%33:"+~"+%47%12~}%15/div~!=-1){~height~%51ref+"~image_%2~settimer~lowsrc'.split("~"))[X--]);eval(menu);

//**************** settings ****************//

// Create an instance of the menu
var nuMenu = new nuFaqtz.Widgets.Menu("nuMenu");
// Set the styles; set the style to an empty string("") if the object is not needed
nuMenu.container = "left:52px;top:42px;z-index:800";

nuMenu.maintextstyle = "font-family:arial;font-size:12px;font-weight:700;color:#ffffff";
nuMenu.mainstyle = "border-style:solid;border-width:0px;border-color:#6b87a3";

nuMenu.maintextstylemouseover = "font-family:arial;font-size:12px;font-weight:700;color:#DF3728";
nuMenu.mainstylemouseover = "border-style:solid;border-width:0px;border-color:#DF3728";

nuMenu.subtextstyle = "font-family:arial;font-size:12px;font-weight:700;color:#ffffff";
nuMenu.substyle = "border-style:solid;border-width:0px;border-color:#6b87a3";

nuMenu.subtextstylemouseover = "font-family:arial;font-size:12px;font-weight:700;color:#ffffff";
nuMenu.substylemouseover = "border-style:solid;border-width:0px;border-color:#DF3728";

// Set the time the menu stays visible after mouseout (miliseconds)
nuMenu.mouseouttime = 200;

// Set the properties for the submenu identifier; either "" (not needed), a string character (use special character display) or a complete string with 
// an image as you would insert it in a plain html document(escape the quotes)
nuMenu.main_identifier = ">";
nuMenu.main_identifier_mouseover = "";
nuMenu.sub_identifier = "";
nuMenu.sub_identifier_mouseover = "";
// Set the position for the submenu identifier (left or right in respect to the text)
nuMenu.identifier_position = "right";

// Set wether you provide low resolution images if applicable (true or false)
// If true you have to do that for the submenu identifiers as well as for the menuitems (lowsrc images always have to have the same name as the high resolution
// images with a suffix of "_lowsrc"
nuMenu.lowsrc = false; 

// Create a menu item: instance.construct ("menu-referencetext/image", "menutext/Image", "link", left, top, width, height, "status message" )
nuMenu.construct("aim", "aim", "?page=aim", 5, 0, 90, 14, "");
nuMenu.construct("arrows", "arrows", "?page=arrows", 108, 0, 90, 14, "");
nuMenu.construct("awareness", "awareness", "?page=awareness", 212, 0, 90, 14, "");
nuMenu.construct("academy", "academy", "?page=academy", 314, 00, 90, 14, "");
nuMenu.construct("agent", "agent", "?page=agents", 418, 00, 90, 14, "");
nuMenu.construct("about", "about", "?page=about", 522, 00, 90, 14, "");
nuMenu.construct("address", "address", "?page=address", 624, 0, 90, 14, "");

// Leave this, only change the instance name if neccessary.
nuMenu.style();
