// This code is the property of Webs Unlimited, Inc.http://websunlimited.com
// Copyright 1999, 2000, 2001 All rights reserved
// It may not be used without explicit licensing
var ActiveMenu = '';function flowmenu(e,whichone,top,left,nSteps,nDelay) {if(ActiveMenu == whichone) return false;ActiveMenu = whichone;oPage = new PageCoords();sTemp = "resized();";fFunc = new Function(sTemp);window.onresize=fFunc;var themenu = thenamedgrp[whichone];oBrowser.ns4 || oBrowser.ns5 ? themenu.set_top(e.layerY+ top ) : themenu.set_top(document.body.scrollTop + event.clientY + top);oBrowser.ns4 || oBrowser.ns5 ? themenu.set_left(e.layerX + left) : themenu.set_left(document.body.scrollLeft + event.clientX + left);themenu.clip_obj(0,0,0,0);themenu.visible();unFoldMenu(whichone,10,nSteps,nDelay,1);sTemp = "ActiveMenu=''; thenamedgrp['" + whichone + "'].hide(); thenamedgrp['Transparent'].set_width(0);";var Trans = thenamedgrp['Transparent'];fFunc = new Function(sTemp);Trans.onmouseover(fFunc);Trans.set_zindex(40);var Trans = thenamedgrp['Transparent'];Trans.set_width(oPage.x2);Trans.set_height(oPage.y2);Trans.move(0,0);}function resized() {var page2 = new PageCoords();if(page2.x2 != oPage.x2 || page2.y2 != oPage.y2) {location.reload();oPage = new PageCoords();}}function doPercent(num,of) {if(num) {if(num.toString().indexOf("%") != -1) {iPercent = parseFloat(num)/100;return ( of * iPercent);} else {return parseFloat(num);}} else {return 0;}}function unFoldMenu(name,nChunk,step,delay,type) {nWidth = parseInt(thenamedgrp[name].get_width());nHeight = parseInt(thenamedgrp[name].get_height());nWidthPercent = this.doPercent(nChunk + "%",nWidth);nHeightPercent = this.doPercent(nChunk + "%",nHeight);if(type == 0) {thenamedgrp[name].clip_obj(0,0,nHeight,nWidth,false);} else if(type == 1) {thenamedgrp[name].clip_obj(0,0,nHeightPercent,nWidthPercent,false);} else if(type == 2) {thenamedgrp[name].clip_obj(0,0,nHeightPercent,nWidth,false);} else if(type == 3) {thenamedgrp[name].clip_obj(0,0,nHeight,nWidthPercent,false);}nChunk += step;if ((nChunk+step) <= 100) {window.setTimeout("this.unFoldMenu('" + name + "'," + nChunk + "," + step + "," + delay + "," + type + ")",delay);} else {thenamedgrp[name].clip_obj(0,0,nHeight,nWidth,false);}}