BLANK_IMAGE="/images/space.gif"; var menuoffsetx=0; var menuoffsety=0; if( navigator.userAgent.indexOf("Safari") > -1 ){ // manually set offset for safari menuoffsetx = -5; menuoffsety = -5; } if( navigator.userAgent.indexOf("Mac_PowerPC") > -1 && navigator.userAgent.indexOf("MSIE") > -1 ) { menuoffsetx = 0; menuoffsety = 0; } var code="code"; var url="url"; var sub="sub"; var color = {"border":"#000000", "shadow":"0", "bgON":"#2D7EBC","bgOVER":"#3A9BE0"}; var color2 = {"border":"#000000", "shadow":"0", "bgON":"#3A9BE0","bgOVER":"#54B6F7"}; var cssSub = {"ON":"Level1", "OVER":"Level1over"}; var css = {"ON":"Level0", "OVER":"Level0over"}; var STYLE = {"border":1, "shadow":0, "color":color, "css":css}; var STYLE2 = {"border":1, "shadow":0, "color":color2, "css":cssSub}; var MENU_ITEMS = [ {"pos":[-100,-100], "itemoff":[0,21], "leveloff":[21+menuoffsety,0+menuoffsetx], "style":STYLE, "size":[22,999]}, {code:"About Us", url:"http://www.scaany.org/about/", "format":{"size":[22,56]}, sub:[ {"itemoff":[21,0], "style":STYLE2}, {code:"History", url:"http://www.scaany.org/about/history.php", sub:[ {"itemoff":[21,0], "leveloff":[0,55], "style":STYLE2}, {code:"Milestones", url:"http://www.scaany.org/about/milestones.php", "format":{"size":[22,66]}} ]}, {code:"President", url:"http://www.scaany.org/about/president.php"}, {code:"Staff", url:"http://www.scaany.org/about/staff.php"}, {code:"Board", url:"http://www.scaany.org/about/board.php"} ] }, // WSG/mrg due to a coding error, overriding the size does not change the // itemoff, so we have to set it manually to the size of the previous menu {code:"What's New", url:"http://www.scaany.org/whats_new/", "format":{"itemoff":[0,55],"size":[22,66], "leveloff":[22,0]}}, {code:"Initiatives & Legislation", url:"http://www.scaany.org/initiatives/", "format":{"itemoff":[0,65],"size":[22,119]}, sub:[ {"itemoff":[21,0], "style":STYLE2}, {code:"Our Agenda", url:"http://www.scaany.org/initiatives/agenda.php"}, {code:"New York CAN", url:"http://www.scaany.org/nycan/"}, {code:"Adult Home Reform", url:"http://www.scaany.org/initiatives/AdultHomeReform.php"}, {code:"Memos in Support or Opposition", url:"http://www.scaany.org/initiatives/memos.php", "format":{"size":[34,119]}}, {code:"Testimony", url:"http://www.scaany.org/initiatives/testimony.php", "format":{"itemoff":[33,0]}}, {code:"Contact Your Representative", url:"http://www.scaany.org/initiatives/contact_rep.php", "format":{"size":[34,119]}}, ] }, {code:"Publications & Resources", url:"http://www.scaany.org/resources/", "format":{"itemoff":[0,118],"size":[22,128]}, sub:[ {"itemoff":[21,0], "style":STYLE2}, {code:"Publications", url:"http://www.scaany.org/resources/publications.php"}, {code:"Helping Hands for Working Families", url:"http://www.scaany.org/resources/lowincome_taxpolicy.php", "format":{"size":[34,128]}}, {code:"Links", url:"http://www.scaany.org/resources/links.php", "format":{"itemoff":[33,0]}}, {code:"Federal Poverty Guidelines", url:"http://www.scaany.org/resources/guidelines.php", "format":{"size":[34,128]}}, {code:"Archives", url:"http://www.scaany.org/resources/archives.php", "format":{"itemoff":[33,0]}}, ] }, {code:"Get Involved", url:"http://www.scaany.org/get_involved/", "format":{"itemoff":[0,127],"size":[22,74]}, sub:[ {"itemoff":[21,0], "style":STYLE2}, {code:"Support SCAA", url:"http://www.scaany.org/get_involved/support_scaa.php", "format":{"itemoff":[33,0],"size":[34,74]}}, ] }, {code:"Press Coverage", url:"http://www.scaany.org/press/", "format":{"itemoff":[0,73],"size":[22,87]} }, {code:"Events Calendar", url:"http://www.scaany.org/calendar/", "format":{"itemoff":[0,86],"size":[22,89]}, sub:[ {"itemoff":[21,0], "style":STYLE2}, {code:"Event Registration", url:"http://www.scaany.org/calendar/registration.php","format":{"size":[22,100]}} ] }, {code:"Collaborations", url:"http://www.scaany.org/collaborations/", "format":{"itemoff":[0,88],"size":[22,82]} }, {code:"FAQs", url:"http://www.scaany.org/faqs/", "format":{"itemoff":[0,81],"size":[22,37]}, sub:[ {"itemoff":[21,0], "leveloff":[21,-20], "style":STYLE2}, {code:"Directions", url:"http://www.scaany.org/faqs/index.php#5","format":{"size":[22,57]}} ] } ]; mymenu=new COOLjsMenu('mymenu',MENU_ITEMS); //Making the menu object.Argument:menuname function movemenu(menu,img) { var left; var top; left = moveXbySlicePos(0,img); left += menuoffsetx; top = moveYbySlicePos(0,img); top += menuoffsety; mymenu.move(left,top); }