// Webs Unlimited's JMoves Expression Web Designer JavaScript Generator version 5.0
// Copyright Webs Unlimited 1998 - 2006 All rights reserved
// This code is the property of Webs Unlimited, Inc.http://www.websunlimited.com
// It may not be used without explicit licensing
function existingHandlers(elEvent) {sTemp = "";if(elEvent != null) {sTemp = elEvent.toString();iStart = sTemp.indexOf("{") + 1;sTemp = sTemp.substr(iStart,sTemp.length-iStart-2) + ";";}return sTemp;}function MakeArray(n) {this.length = n;for (var i = 1; i <= n; i++) {this[i] = null;}return this;}function GetRand(limit){if (limit > 1) {return (Math.round(Math.random()*(limit-1)))+1;} else {return limit;}}function dirTree(home,sep,orient,space) {var path = location.href;var arr = path.split('/');var bVertical = orient;var appended_path = arr[0] + "//" + arr[2];for (i =2 ; i < arr.length-1; i++) {if(i == 2 ) {document.write('<a class="dirtree" href="' + appended_path + '">' + home + '</a>');if(bVertical) {document.write(space); }} else {appended_path +=  '/' + unescape(arr[i]);document.write(' ' + sep + ' ');document.write('<a class="dirtree" href="' + appended_path + '">' + unescape(arr[i]) + '</a>');if(bVertical) {document.write(space); }}}document.write(' ' + sep + ' ' + document.title);}function RadioJump (el,target) {var iLen = el.length;if(iLen == null) { window.open(el.value,target); return; }for(i = 0 ; i < iLen; i++ ) {if(el[i].checked) {window.open( el[i].value,target);break;}}}function catajumpupdate(tree,src,el1,el2) {cat = parseInt(src);el1.length = 0;el1.length = tree[cat].length;x = tree[cat].length;for(i=0;i < x; i++) {el1[i].text = tree[cat][i].Name;el1[i].value = i;}el1.selectedIndex = 0;if(arguments.length == 4) { setMenu(tree[cat],0,el2) } else { setMenu(tree[cat],0,el2,arguments[4]) }}function setMenu(tree,src,el) {argv = setMenu.arguments;argc = setMenu.arguments.length;start = (argc > 3) ? argv[3] : 0;menu = parseInt(src);el.length = tree[menu].length + start;x = tree[menu].length + start;for(i=start;i < x; i++) {el[i].text = tree[menu][i-start].text;el[i].value = tree[menu][i-start].value;}el.selectedIndex = 0;}function checkBrowser(){this.ver=navigator.appVersion;this.dom=document.getElementById?1:0;this.dom5=document.getElementsByTagName?1:0;this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;this.ie4=(document.all && !this.dom)?1:0;this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;this.ns4=(document.layers && !this.dom)?1:0;this.ns=(this.ns4 || this.ns5);this.ie=(this.ie4 || this.ie5 || this.ie6);this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5 || this.ie6);return this}
