can someone kind enough to help me look at the attached html and js
file? Why is it that the javascript menu could not work at
www.apchosting.net but could work at
http://home.pacific.net.sg/~jacksony ? (the drop down bar could not work
at www.apchosting.net but can drop at home.pacific.ne t.sg. I suspect it
is a server problem but was told it is not possible, therefore assuming
it is a client script problem? the script works last time though. can
anyone help? email me at jacksony@pacifi c.net.sg! (don't reply to
newsgroup as it might be gone) thank you very much! :)
these are the codes for the files:
INDEX.HTML
"<html>
<head>
<title>APC Hosting: web hosting and domain registration. web designing
and programming.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="Descripti on" CONTENT="APC Hosting - High speed quality web
hosting and domain name registration at an affordable, lowest price. Web
designing and programming services.">
<META NAME="Keywords" CONTENT="apc hosting, apchosting, web hosting,
hosting, domain hosting, domain registration, domain name registration,
domain name, register domain, register domain name, web designing,
webdesign, programming,">
<META NAME="ROBOTS" CONTENT = "All">
<META NAME="AUTHOR" CONTENT = "APC Hosting">
<style type="text/css">
<!--
A:link, A:visited { text-decoration: none }
A:hover { text-decoration: underline; color: #000000; font-weight : none }
//.style1 {font-size: 9px}
..style60 {font-family: Verdana, Arial, Helvetica, sans-serif}
..style61 {font-size: 10px}
..style62 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
10px; }
..style66 {font-size: 12px; }
..style68 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
10px; color: #FF9900;}
..style69 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
10px; font-weight: bold; }
-->
</style>
<script language="JavaS cript">
<!--
function mmLoadMenus() {
if (window.mm_menu _0518132243_0) return;
window.mm_menu_ 0518132243_0 = new Menu("root",82, 16,"Arial,
Helvetica,
sans-serif",10,"#000 000","#FFFFFF", "#FFFFFF","#FF9 900","center"," middle",3,0,100 0,-5,7,true,true,t rue,0,false,tru e);
mm_menu_0518132 243_0.addMenuIt em("Why Us ?","location='w hyus.htm'");
mm_menu_0518132 243_0.fontWeigh t="bold";
mm_menu_0518132 243_0.hideOnMou seOut=true;
mm_menu_0518132 243_0.bgColor=' #000000';
mm_menu_0518132 243_0.menuBorde r=1;
mm_menu_0518132 243_0.menuLiteB gColor='#FFFFFF ';
mm_menu_0518132 243_0.menuBorde rBgColor='#0000 00';
window.mm_menu_ 0518145422_0 = new Menu("root",82, 16,"Arial, Helvetica,
sans-serif",10,"#000 000","#FFFFFF", "#FFFFFF","#FF9 900","center"," middle",3,0,100 0,-5,7,true,true,t rue,0,false,tru e);
mm_menu_0518145 422_0.addMenuIt em("Web Ho sting","locatio n='webhosting.h tm'");
mm_menu_0518145 422_0.addMenuIt em("Reseller"," location='resel ler.htm'");
mm_menu_0518145 422_0.addMenuIt em("Web De sign","location ='webdesign.htm '");
mm_menu_0518145 422_0.addMenuIt em("Programming ","location='pr ogramming.htm'" );
mm_menu_0518145 422_0.fontWeigh t="bold";
mm_menu_0518145 422_0.hideOnMou seOut=true;
mm_menu_0518145 422_0.bgColor=' #000000';
mm_menu_0518145 422_0.menuBorde r=1;
mm_menu_0518145 422_0.menuLiteB gColor='#FFFFFF ';
mm_menu_0518145 422_0.menuBorde rBgColor='#0000 00';
window.mm_menu_ 0518150423_0 = new Menu("root",82, 16,"Arial,
Helvetica,
sans-serif",10,"#000 000","#FFFFFF", "#FFFFFF","#FF9 900","center"," middle",3,0,100 0,-5,7,true,true,t rue,0,false,tru e);
mm_menu_0518150 423_0.addMenuIt em("Order Form","location ='order.htm'");
mm_menu_0518150 423_0.fontWeigh t="bold";
mm_menu_0518150 423_0.hideOnMou seOut=true;
mm_menu_0518150 423_0.bgColor=' #000000';
mm_menu_0518150 423_0.menuBorde r=1;
mm_menu_0518150 423_0.menuLiteB gColor='#FFFFFF ';
mm_menu_0518150 423_0.menuBorde rBgColor='#0000 00';
window.mm_menu_ 0518150942_0 = new Menu("root",82, 16,"Arial,
Helvetica,
sans-serif",10,"#000 000","#FFFFFF", "#FFFFFF","#FF9 900","center"," middle",3,0,100 0,-5,7,true,true,t rue,0,false,tru e);
mm_menu_0518150 942_0.addMenuIt em("Customers", "location='cust omers.htm'");
mm_menu_0518150 942_0.addMenuIt em("Help F iles","location ='helpfiles.htm '");
mm_menu_0518150 942_0.addMenuIt em("Forum","win dow.open('forum/index.php',
'_blank');");
mm_menu_0518150 942_0.fontWeigh t="bold";
mm_menu_0518150 942_0.hideOnMou seOut=true;
mm_menu_0518150 942_0.bgColor=' #000000';
mm_menu_0518150 942_0.menuBorde r=1;
mm_menu_0518150 942_0.menuLiteB gColor='#FFFFFF ';
mm_menu_0518150 942_0.menuBorde rBgColor='#0000 00';
mm_menu_0518150 942_0.writeMenu s();
} // mmLoadMenus()
//-->
</script>
<script language="JavaS cript" src="mm_menu.js "></script>
</head>
<body link="#FF9900" vlink="#FF9900" alink="#FF9900" leftmargin="5"
topmargin="5">
<script language="JavaS cript1.2">mmLoa dMenus();</script>
<table width="760" border="0" align="left" cellpadding="0" cellspacing="0" >
<tr>
<td width="130" height="0" rowspan="2"><im g src="pic/logo2.gif"
alt="APC Hosting: web hosting, domain registration, web designing,
programming." width="130" height="63"></td>
<td width="3" height="0" align="left" valign="middle" > </td>
<td width="629" height="0" rowspan="2" valign="bottom" >
<div align="right">< img src="pic/hori.gif" alt="APC Hosting: web
hosting, domain registration, web designing, programming." width="28"
height="17"><a href="index.htm l"
onMouseOver="MM _showMenu(windo w.mm_menu_05181 32243_0,0,16,nu ll,'image1')"
onMouseOut="MM_ startTimeout(); "><img src="pic/home.gif" alt="APC
Hosting: web hosting, domain registration, web designing, programming."
name="image1" width="85" height="17" border="0" id="image1"></a><a
href="javascrip t:;"
onMouseOver="MM _showMenu(windo w.mm_menu_05181 45422_0,0,16,nu ll,'image2')"
onMouseOut="MM_ startTimeout(); "><img src="pic/products.gif" alt="APC
Hosting: web hosting, domain registration, web designing, programming."
name="image2" width="85" height="17" border="0" id="image2"></a></a><a
href="order.htm "
onMouseOver="MM _showMenu(windo w.mm_menu_05181 50423_0,0,16,nu ll,'image3')"
onMouseOut="MM_ startTimeout(); "><img src="pic/order.gif" alt="APC
Hosting: web hosting, domain registration, web designing, programming."
name="image3" width="85" height="17" border="0" id="image3"></a><a
href="javascrip t:;"
onMouseOver="MM _showMenu(windo w.mm_menu_05181 50942_0,0,16,nu ll,'image4')"
onMouseOut="MM_ startTimeout(); "><img src="pic/support.gif" alt="APC
Hosting: web hosting, domain registration, web designing, programming."
name="image4" width="85" height="17" border="0" id="image4"></a><a
href="aboutus.h tm"><img src="pic/aboutus.gif" alt="APC Hosting: web
hosting, domain registration, web designing, programming." width="85"
height="17" border="0"></a><a href="contact.h tm"><img
src="pic/contact.gif" alt="APC Hosting: web hosting, domain
registration, web designing, programming." width="85" height="17"
border="0"></a><img src="pic/hori.gif" alt="APC Hosting: web hosting,
domain registration, web designing, programming." width="28"
height="17"></div></td>
</tr>
<tr>
<td width="1" height="0">&nbs p;</td>
<tr>
<td height="100" colspan="3" valign="top"><p > </p>
<table width="600" border="0" align="center" cellpadding="0"
cellspacing="0" >
<tr>
<td width="200" height="253" valign="top"><t able width="200"
height="0" border="0" cellpadding="0" cellspacing="0" >
<tr valign="top" class="style55" >
<td height="0" colspan="2"><di v align="center"
class="style56 style60 style61"><u>Qui ck Links </u></div></td>
</tr>
<tr valign="top" class="style55" >
<td width="100" height="0"><div align="center"
class="style62" ><span class="style54" ><font color="#FF9900" ><a
href="http://www.apchosting. net/forum/viewforum.php?f =2"
target="_blank" >Promotion</a></font></span></div></td>
<td width="100" height="0"><div align="center"
class="style62" ><font color="#FF9900" ><a href="freehosti ng.htm">Free
Hosting</a></font></div></td>
</tr>
<tr valign="top" class="style55" >
<td height="0" colspan="2"><fo nt size="1"
face="Verdana, Arial, Helvetica, sans-serif"><img src="pic/server.jpg"
alt="APC Hosting: web hosting, domain registration, web designing,
programming." width="200" height="229" class="style56" ></font></td>
</tr>
</table></td>
<td width="25" valign="top"><f ont size="1" face="Verdana,
Arial, Helvetica, sans-serif"> </font></td>
<td width="375" valign="top"> <p><img src="pic/welcome.gif"
alt="APC Hosting: web hosting, domain registration, web designing,
programming." width="287" height="35"></p>
<p align="justify" class="style66" ><font color="#000000"
face="Verdana, Arial, Helvetica, sans-serif"> APC Hosting possess a
series of high-tech equipment as well
as technologies to provide our customers with top quality
services
like web hosting, domain name registration, web designing
and programming at lowest
affordable price.</font></p>
<p align="justify" class="style66" ><font color="#000000"
face="Verdana, Arial, Helvetica, sans-serif">This
could not have been done if not for our dedicated and
dilligent
staffs, who are constantly monitoring our list of servers
and serving
our customers to meet their needs.</font></p>
<p align="justify" class="style66" ><font color="#000000"
face="Verdana, Arial, Helvetica, sans-serif">We believe in working with
our customers and not just
for them. Sign up for our hosting and be a part of APC
Hosting now!</font></p>
</td>
</tr>
</table>
<p align="center" class="style68" ><strong><a
href="webhostin g.htm">Web hosting</a></strong> from $1.95 monthly.<br>
<strong><a href="reseller. htm">Reseller web hosting</a></strong>
from $24.95 monthly.<br>
<br>
<strong><a href="domainreg istration.htm"> Top-level Domain</a></strong>
|.com|.net|.org |.biz|.info| at $9.95 yearly.<br>
<strong><a href="domainreg istration.htm"> Singapore
Domain</a></strong> |.com.sg|.net.s g|.org.sg|.edu. sg| at S$59.95 yearly.<br>
|.per.sg| at S$29.95 yearly.</p>
<p align="center" class="style69" >For other domain types and
services, please contact <a
href="mailto:sa les@apchosting. net">sales@apch osting.net</a>. </p></td>
</tr>
<tr valign="top">
<td colspan="3"><ta ble width="430" border="0" align="center"
cellpadding="0" cellspacing="0" >
<tr>
<td height="10" colspan="6">&nb sp;</td>
</tr>
<tr>
<td colspan="6"><di v align="left"><f ont size="1"
face="Verdana, Arial, Helvetica, sans-serif"><u>Power ed
by:</u></font></div></td>
</tr>
<tr>
<td height="10" colspan="6"></td>
</tr>
<tr>
<td width="71"><a href="http://www.intel.com"
target="_blank" ><img src="pic/intel.gif" alt="APC Hosting: web hosting,
domain registration, web designing, programming." width="69" height="35"
border="0"></a></td>
<td width="43"><a href="http://www.microsoft.c om"
target="_blank" ><img src="pic/microsoft.gif" alt="APC Hosting: web
hosting, domain registration, web designing, programming." width="39"
height="35" border="0"></a></td>
<td width="75"><a href="http://www.mysql.com"
target="_blank" ><img src="pic/mysql.gif" alt="APC Hosting: web hosting,
domain registration, web designing, programming." width="66" height="35"
border="0"></a></td>
<td width="75"><a href="http://www.php.net"
target="_blank" ><img src="pic/php.gif" alt="APC Hosting: web hosting,
domain registration, web designing, programming." width="67" height="35"
border="0"></a></td>
<td width="96"><a href="http://www.redhat.com"
target="_blank" ><img src="pic/redhat.gif" alt="APC Hosting: web hosting,
domain registration, web designing, programming." width="92" height="35"
border="0"></a></td>
<td width="70"><a href="http://www.cpanel.net"
target="_blank" ><img src="pic/cpanel.gif" alt="APC Hosting: web hosting,
domain registration, web designing, programming." width="70" height="43"
border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td height="10" colspan="3">&nb sp;</td>
</tr>
<tr>
<td colspan="3" valign="bottom" > <div align="center"> <font size="1"
face="Arial, Helvetica, sans-serif">Best
Viewed with 800x600 resolution and above, using Internet
Explorer 4.0
or Netscape 4.0 or later, with Medium font.<br>
©Copyri ght 2003, <a href="tos.htm" target="_blank" >APC
Hosting</a>,
All Rights Reserved.</font></div></td>
</tr>
</table>
</body>
</html>"
MM_MENU.JS
"/**
* mm_menu 20MAR2002 Version 6.0
* Andy Finnell, March 2002
* Copyright (c) 2000-2002 Macromedia, Inc.
*
* based on menu.js
* by gary smith, July 1997
* Copyright (c) 1997-1999 Netscape Communications Corp.
*
* Netscape grants you a royalty free license to use or modify this
* software provided that this copyright notice appears on all copies.
* This software is provided "AS IS," without a warranty of any kind.
*/
function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh, halgn,
valgn, pad, space, to, sx, sy, srel, opq, vert, idt, aw, ah)
{
this.version = "020320 [Menu; mm_menu.js]";
this.type = "Menu";
this.menuWidth = mw;
this.menuItemHe ight = mh;
this.fontSize = fs;
this.fontWeight = "plain";
this.fontFamily = fnt;
this.fontColor = fclr;
this.fontColorH ilite = fhclr;
this.bgColor = "#555555";
this.menuBorder = 1;
this.menuBgOpaq ue=opq;
this.menuItemBo rder = 1;
this.menuItemIn dent = idt;
this.menuItemBg Color = bg;
this.menuItemVA lign = valgn;
this.menuItemHA lign = halgn;
this.menuItemPa dding = pad;
this.menuItemSp acing = space;
this.menuLiteBg Color = "#ffffff";
this.menuBorder BgColor = "#777777";
this.menuHilite BgColor = bgh;
this.menuContai nerBgColor = "#cccccc";
this.childMenuI con = "arrows.gif ";
this.submenuXOf fset = sx;
this.submenuYOf fset = sy;
this.submenuRel ativeToItem = srel;
this.vertical = vert;
this.items = new Array();
this.actions = new Array();
this.childMenus = new Array();
this.hideOnMous eOut = true;
this.hideTimeou t = to;
this.addMenuIte m = addMenuItem;
this.writeMenus = writeMenus;
this.MM_showMen u = MM_showMenu;
this.onMenuItem Over = onMenuItemOver;
this.onMenuItem Action = onMenuItemActio n;
this.hideMenu = hideMenu;
this.hideChildM enu = hideChildMenu;
if (!window.menus) window.menus = new Array();
this.label = " " + label;
window.menus[this.label] = this;
window.menus[window.menus.le ngth] = this;
if (!window.active Menus) window.activeMe nus = new Array();
}
function addMenuItem(lab el, action) {
this.items[this.items.leng th] = label;
this.actions[this.actions.le ngth] = action;
}
function FIND(item) {
if( window.mmIsOper a ) return(document .getElementById (item));
if (document.all) return(document .all[item]);
if (document.getEl ementById) return(document .getElementById (item));
return(false);
}
function writeMenus(cont ainer) {
if (window.triedTo WriteMenus) return;
var agt = navigator.userA gent.toLowerCas e();
window.mmIsOper a = agt.indexOf("op era") != -1;
if (!container && document.layers ) {
window.delayWri teMenus = this.writeMenus ;
var timer = setTimeout('del ayWriteMenus()' , 500);
container = new Layer(100);
clearTimeout(ti mer);
} else if (document.all || document.hasChi ldNodes || window.mmIsOper a) {
document.writel n('<span id="menuContain er"></span>');
container = FIND("menuConta iner");
}
window.mmHideMe nuTimer = null;
if (!container) return;
window.triedToW riteMenus = true;
container.isCon tainer = true;
container.menus = new Array();
for (var i=0; i<window.menus. length; i++)
container.menus[i] = window.menus[i];
window.menus.le ngth = 0;
var countMenus = 0;
var countItems = 0;
var top = 0;
var content = '';
var lrs = false;
var theStat = "";
var tsc = 0;
if (document.layer s) lrs = true;
for (var i=0; i<container.men us.length; i++, countMenus++) {
var menu = container.menus[i];
if (menu.bgImageUp || !menu.menuBgOpa que) {
menu.menuBorder = 0;
menu.menuItemBo rder = 0;
}
if (lrs) {
var menuLayer = new Layer(100, container);
var lite = new Layer(100, menuLayer);
lite.top = menu.menuBorder ;
lite.left = menu.menuBorder ;
var body = new Layer(100, lite);
body.top = menu.menuBorder ;
body.left = menu.menuBorder ;
} else {
content += ''+
'<div id="menuLayer' + countMenus +'"
style="position :absolute;z-index:1;left:10 px;top:'+ (i * 100)
+'px;visibility :hidden;color:' + menu.menuBorder BgColor + ';">\n'+
' <div id="menuLite'+ countMenus +'"
style="position :absolute;z-index:1;left:'+ menu.menuBorder +'px;top:'+
menu.menuBorder +'px;visibility :hide;" onmouseout="mou seoutMenu();">\ n'+
' <div id="menuFg'+ countMenus +'" style="position :absolute;left: '+
menu.menuBorder +'px;top:'+ menu.menuBorder +'px;visibility :hide;">\n'+
'';
}
var x=i;
for (var i=0; i<menu.items.le ngth; i++) {
var item = menu.items[i];
var childMenu = false;
var defaultHeight = menu.fontSize+2 *menu.menuItemP adding;
if (item.label) {
item = item.label;
childMenu = true;
}
menu.menuItemHe ight = menu.menuItemHe ight || defaultHeight;
var itemProps = '';
if( menu.fontFamily != '' ) itemProps += 'font-family:' +
menu.fontFamily +';';
itemProps += 'font-weight:' + menu.fontWeight + ';fontSize:' +
menu.fontSize + 'px;';
if (menu.fontStyle ) itemProps += 'font-style:' + menu.fontStyle + ';';
if (document.all || window.mmIsOper a)
itemProps += 'font-size:' + menu.fontSize + 'px;"
onmouseover="on MenuItemOver(nu ll,this);"
onclick="onMenu ItemAction(null ,this);';
else if (!document.laye rs) {
itemProps += 'font-size:' + menu.fontSize + 'px;';
}
var l;
if (lrs) {
var lw = menu.menuWidth;
if( menu.menuItemHA lign == 'right' ) lw -= menu.menuItemPa dding;
l = new Layer(lw,body);
}
var itemLeft = 0;
var itemTop = i*menu.menuItem Height;
if( !menu.vertical ) {
itemLeft = i*menu.menuWidt h;
itemTop = 0;
}
var dTag = '<div id="menuItem'+ countItems +'"
style="position :absolute;left: ' + itemLeft + 'px;top:'+ itemTop +'px;'+
itemProps +'">';
var dClose = '</div>'
if (menu.bgImageUp ) dTag = '<div id="menuItem'+ countItems +'"
style="backgrou nd:url('+menu.b gImageUp+');pos ition:absolute; left:' +
itemLeft + 'px;top:'+ itemTop +'px;'+ itemProps +'">';
var left = 0, top = 0, right = 0, bottom = 0;
left = 1 + menu.menuItemPa dding + menu.menuItemIn dent;
right = left + menu.menuWidth - 2*menu.menuItem Padding -
menu.menuItemIn dent;
if( menu.menuItemVA lign == 'top' ) top = menu.menuItemPa dding;
if( menu.menuItemVA lign == 'bottom' ) top =
menu.menuItemHe ight-menu.fontSize-1-menu.menuItemPa dding;
if( menu.menuItemVA lign == 'middle' ) top =
((menu.menuItem Height/2)-(menu.fontSize/2)-1);
bottom = menu.menuItemHe ight - 2*menu.menuItem Padding;
var textProps = 'position:absol ute;left:' + left + 'px;top:' + top +
'px;';
if (lrs) {
textProps +=itemProps + 'right:' + right + ';bottom:' + bottom + ';';
dTag = "";
dClose = "";
}
if(document.all && !window.mmIsOpe ra) {
item = '<div align="' + menu.menuItemHA lign + '">' + item + '</div>';
} else if (lrs) {
item = '<div style="text-align:' + menu.menuItemHA lign + ';">' +
item + '</div>';
} else {
var hitem = null;
if( menu.menuItemHA lign != 'left' ) {
if(window.mmIsO pera) {
var operaWidth = menu.menuItemHA lign == 'center' ?
-(menu.menuWidth-2*menu.menuItem Padding) :
(menu.menuWidth-6*menu.menuItem Padding);
hitem = '<div id="menuItemHil ite' + countItems + 'Shim"
style="position :absolute;top:1 px;left:' + menu.menuItemPa dding +
'px;width:' + operaWidth + 'px;text-align:'
+ menu.menuItemHA lign + ';visibility:vi sible;">' + item + '</div>';
item = '<div id="menuItemTex t' + countItems + 'Shim"
style="position :absolute;top:1 px;left:' + menu.menuItemPa dding +
'px;width:' + operaWidth + 'px;text-align:'
+ menu.menuItemHA lign + ';visibility:vi sible;">' + item + '</div>';
} else {
hitem = '<div id="menuItemHil ite' + countItems + 'Shim"
style="position :absolute;top:1 px;left:1px;rig ht:-' +
(left+menu.menu Width-3*menu.menuItem Padding) + 'px;text-align:'
+ menu.menuItemHA lign + ';visibility:vi sible;">' + item + '</div>';
item = '<div id="menuItemTex t' + countItems + 'Shim"
style="position :absolute;top:1 px;left:1px;rig ht:-' +
(left+menu.menu Width-3*menu.menuItem Padding) + 'px;text-align:'
+ menu.menuItemHA lign + ';visibility:vi sible;">' + item + '</div>';
}
} else hitem = null;
}
if(document.all && !window.mmIsOpe ra) item = '<div id="menuItemShi m'
+ countItems + '" style="position :absolute;left: 0px;top:0px;">' + item +
'</div>';
var dText = '<div id="menuItemTex t'+ countItems +'" style="' +
textProps + 'color:'+ menu.fontColor +';">'+ item +' </div>\n'
+ '<div id="menuItemHil ite'+ countItems +'" style="' + textProps +
'color:'+ menu.fontColorH ilite +';visibility:h idden;">'
+ (hitem||item) +' </div>';
if (childMenu) content += ( dTag + dText + '<div id="childMenu' +
countItems +'" style="position :absolute;left: 0px;top:3px;">< img src="'+
menu.childMenuI con +'"></div>\n' + dClose);
else content += ( dTag + dText + dClose);
if (lrs) {
l.document.open ("text/html");
l.document.writ eln(content);
l.document.clos e();
content = '';
theStat += "-";
tsc++;
if (tsc > 50) {
tsc = 0;
theStat = "";
}
status = theStat;
}
countItems++;
}
if (lrs) {
var focusItem = new Layer(100, body);
focusItem.visib lity="hidden";
focusItem.docum ent.open("text/html");
focusItem.docum ent.writeln("&n bsp;");
focusItem.docum ent.close();
} else {
content += ' <div id="focusItem' + countMenus +'"
style="position :absolute;left: 0px;top:0px;vis ibility:hide;"
onclick="onMenu ItemAction(null ,this);"> </div>\n';
content += ' </div>\n </div>\n</div>\n';
}
i=x;
}
if (document.layer s) {
container.clip. width = window.innerWid th;
container.clip. height = window.innerHei ght;
container.onmou seout = mouseoutMenu;
container.menuC ontainerBgColor = this.menuContai nerBgColor;
for (var i=0; i<container.doc ument.layers.le ngth; i++) {
proto = container.menus[i];
var menu = container.docum ent.layers[i];
container.menus[i].menuLayer = menu;
container.menus[i].menuLayer.Menu = container.menus[i];
container.menus[i].menuLayer.Menu .container = container;
var body = menu.document.l ayers[0].document.layer s[0];
body.clip.width = proto.menuWidth || body.clip.width ;
body.clip.heigh t = proto.menuHeigh t || body.clip.heigh t;
for (var n=0; n<body.document .layers.length-1; n++) {
var l = body.document.l ayers[n];
l.Menu = container.menus[i];
l.menuHiliteBgC olor = proto.menuHilit eBgColor;
l.document.bgCo lor = proto.menuItemB gColor;
l.saveColor = proto.menuItemB gColor;
l.onmouseover = proto.onMenuIte mOver;
l.onclick = proto.onMenuIte mAction;
l.mmaction = container.menus[i].actions[n];
l.focusItem = body.document.l ayers[body.document.l ayers.length-1];
l.clip.width = proto.menuWidth || body.clip.width ;
l.clip.height = proto.menuItemH eight || l.clip.height;
if (n>0) {
if( l.Menu.vertical ) l.top = body.document.l ayers[n-1].top +
body.document.l ayers[n-1].clip.height + proto.menuItemB order +
proto.menuItemS pacing;
else l.left = body.document.l ayers[n-1].left +
body.document.l ayers[n-1].clip.width + proto.menuItemB order +
proto.menuItemS pacing;
}
l.hilite = l.document.laye rs[1];
if (proto.bgImageU p) l.background.sr c = proto.bgImageUp ;
l.document.laye rs[1].isHilite = true;
if (l.document.lay ers.length > 2) {
l.childMenu = container.menus[i].items[n].menuLayer;
l.document.laye rs[2].left = l.clip.width -13;
l.document.laye rs[2].top = (l.clip.height / 2) -4;
l.document.laye rs[2].clip.left += 3;
l.Menu.childMen us[l.Menu.childMen us.length] = l.childMenu;
}
}
if( proto.menuBgOpa que ) body.document.b gColor = proto.bgColor;
if( proto.vertical ) {
body.clip.width = l.clip.width +proto.menuBord er;
body.clip.heigh t = l.top + l.clip.height +proto.menuBord er;
} else {
body.clip.heigh t = l.clip.height +proto.menuBord er;
body.clip.width = l.left + l.clip.width +proto.menuBord er;
if( body.clip.width > window.innerWid th ) body.clip.width =
window.innerWid th;
}
var focusItem = body.document.l ayers[n];
focusItem.clip. width = body.clip.width ;
focusItem.Menu = l.Menu;
focusItem.top = -30;
focusItem.captu reEvents(Event. MOUSEDOWN);
focusItem.onmou sedown = onMenuItemDown;
if( proto.menuBgOpa que ) menu.document.b gColor = proto.menuBorde rBgColor;
var lite = menu.document.l ayers[0];
if( proto.menuBgOpa que ) lite.document.b gColor = proto.menuLiteB gColor;
lite.clip.width = body.clip.width +1;
lite.clip.heigh t = body.clip.heigh t +1;
menu.clip.width = body.clip.width + (proto.menuBord er * 3) ;
menu.clip.heigh t = body.clip.heigh t + (proto.menuBord er * 3);
}
} else {
if ((!document.all ) && (container.hasC hildNodes) && !window.mmIsOpe ra) {
container.inner HTML=content;
} else {
container.docum ent.open("text/html");
container.docum ent.writeln(con tent);
container.docum ent.close();
}
if (!FIND("menuLay er0")) return;
var menuCount = 0;
for (var x=0; x<container.men us.length; x++) {
var menuLayer = FIND("menuLayer " + x);
container.menus[x].menuLayer = "menuLayer" + x;
menuLayer.Menu = container.menus[x];
menuLayer.Menu. container = "menuLayer" + x;
menuLayer.style .zindex = 1;
var s = menuLayer.style ;
s.pixeltop = -300;
s.pixelleft = -300;
s.top = '-300px';
s.left = '-300px';
var menu = container.menus[x];
menu.menuItemWi dth = menu.menuWidth || menu.menuIEWidt h || 140;
if( menu.menuBgOpaq ue ) menuLayer.style .backgroundColo r =
menu.menuBorder BgColor;
var top = 0;
var left = 0;
menu.menuItemLa yers = new Array();
for (var i=0; i<container.men us[x].items.length; i++) {
var l = FIND("menuItem" + menuCount);
l.Menu = container.menus[x];
l.Menu.menuItem Layers[l.Menu.menuItem Layers.length] = l;
if (l.addEventList ener || window.mmIsOper a) {
l.style.width = menu.menuItemWi dth + 'px';
l.style.height = menu.menuItemHe ight + 'px';
l.style.pixelWi dth = menu.menuItemWi dth;
l.style.pixelHe ight = menu.menuItemHe ight;
l.style.top = top + 'px';
l.style.left = left + 'px';
if(l.addEventLi stener) {
l.addEventListe ner("mouseover" , onMenuItemOver, false);
l.addEventListe ner("click", onMenuItemActio n, false);
l.addEventListe ner("mouseout", mouseoutMenu, false);
}
if( menu.menuItemHA lign != 'left' ) {
l.hiliteShim = FIND("menuItemH ilite" + menuCount + "Shim");
l.hiliteShim.st yle.visibility = "inherit";
l.textShim = FIND("menuItemT ext" + menuCount + "Shim");
l.hiliteShim.st yle.pixelWidth = menu.menuItemWi dth -
2*menu.menuItem Padding - menu.menuItemIn dent;
l.hiliteShim.st yle.width = l.hiliteShim.st yle.pixelWidth;
l.textShim.styl e.pixelWidth = menu.menuItemWi dth -
2*menu.menuItem Padding - menu.menuItemIn dent;
l.textShim.styl e.width = l.textShim.styl e.pixelWidth;
}
} else {
l.style.pixelWi dth = menu.menuItemWi dth;
l.style.pixelHe ight = menu.menuItemHe ight;
l.style.pixelTo p = top;
l.style.pixelLe ft = left;
if( menu.menuItemHA lign != 'left' ) {
var shim = FIND("menuItemS him" + menuCount);
shim[0].style.pixelWid th = menu.menuItemWi dth -
2*menu.menuItem Padding - menu.menuItemIn dent;
shim[1].style.pixelWid th = menu.menuItemWi dth -
2*menu.menuItem Padding - menu.menuItemIn dent;
shim[0].style.width = shim[0].style.pixelWid th + 'px';
shim[1].style.width = shim[1].style.pixelWid th + 'px';
}
}
if( menu.vertical ) top = top +
menu.menuItemHe ight+menu.menuI temBorder+menu. menuItemSpacing ;
else left = left +
menu.menuItemWi dth+menu.menuIt emBorder+menu.m enuItemSpacing;
l.style.fontSiz e = menu.fontSize + 'px';
l.style.backgro undColor = menu.menuItemBg Color;
l.style.visibil ity = "inherit";
l.saveColor = menu.menuItemBg Color;
l.menuHiliteBgC olor = menu.menuHilite BgColor;
l.mmaction = container.menus[x].actions[i];
l.hilite = FIND("menuItemH ilite" + menuCount);
l.focusItem = FIND("focusItem " + x);
l.focusItem.sty le.pixelTop = -30;
l.focusItem.sty le.top = '-30px';
var childItem = FIND("childMenu " + menuCount);
if (childItem) {
l.childMenu = container.menus[x].items[i].menuLayer;
childItem.style .pixelLeft = menu.menuItemWi dth -11;
childItem.style .left = childItem.style .pixelLeft + 'px';
childItem.style .pixelTop = (menu.menuItemH eight /2) -4;
childItem.style .top = childItem.style .pixelTop + 'px';
l.Menu.childMen us[l.Menu.childMen us.length] = l.childMenu;
}
l.style.cursor = "hand";
menuCount++;
}
if( menu.vertical ) {
menu.menuHeight = top-1-menu.menuItemSp acing;
menu.menuWidth = menu.menuItemWi dth;
} else {
menu.menuHeight = menu.menuItemHe ight;
menu.menuWidth = left-1-menu.menuItemSp acing;
}
var lite = FIND("menuLite" + x);
var s = lite.style;
s.pixelHeight = menu.menuHeight +(menu.menuBord er * 2);
s.height = s.pixelHeight + 'px';
s.pixelWidth = menu.menuWidth + (menu.menuBorde r * 2);
s.width = s.pixelWidth + 'px';
if( menu.menuBgOpaq ue ) s.backgroundCol or = menu.menuLiteBg Color;
var body = FIND("menuFg" + x);
s = body.style;
s.pixelHeight = menu.menuHeight + menu.menuBorder ;
s.height = s.pixelHeight + 'px';
s.pixelWidth = menu.menuWidth + menu.menuBorder ;
s.width = s.pixelWidth + 'px';
if( menu.menuBgOpaq ue ) s.backgroundCol or = menu.bgColor;
s = menuLayer.style ;
s.pixelWidth = menu.menuWidth + (menu.menuBorde r * 4);
s.width = s.pixelWidth + 'px';
s.pixelHeight = menu.menuHeight +(menu.menuBord er*4);
s.height = s.pixelHeight + 'px';
}
}
if (document.captu reEvents) document.captur eEvents(Event.M OUSEUP);
if (document.addEv entListener) document.addEve ntListener("mou seup",
onMenuItemOver, false);
if (document.layer s && window.innerWid th) {
window.onresize = NS4resize;
window.NS4sIW = window.innerWid th;
window.NS4sIH = window.innerHei ght;
setTimeout("NS4 resize()",500);
}
document.onmous eup = mouseupMenu;
window.mmWroteM enu = true;
status = "";
}
function NS4resize() {
if (NS4sIW != window.innerWid th || NS4sIH != window.innerHei ght)
window.location .reload();
}
function onMenuItemOver( e, l) {
MM_clearTimeout ();
l = l || this;
a = window.ActiveMe nuItem;
if (document.layer s) {
if (a) {
a.document.bgCo lor = a.saveColor;
if (a.hilite) a.hilite.visibi lity = "hidden";
if (a.Menu.bgImage Over) a.background.sr c = a.Menu.bgImageU p;
a.focusItem.top = -100;
a.clicked = false;
}
if (l.hilite) {
l.document.bgCo lor = l.menuHiliteBgC olor;
l.zIndex = 1;
l.hilite.visibi lity = "inherit";
l.hilite.zIndex = 2;
l.document.laye rs[1].zIndex = 1;
l.focusItem.zIn dex = this.zIndex +2;
}
if (l.Menu.bgImage Over) l.background.sr c = l.Menu.bgImageO ver;
l.focusItem.top = this.top;
l.focusItem.lef t = this.left;
l.focusItem.cli p.width = l.clip.width;
l.focusItem.cli p.height = l.clip.height;
l.Menu.hideChil dMenu(l);
} else if (l.style && l.Menu) {
if (a) {
a.style.backgro undColor = a.saveColor;
if (a.hilite) a.hilite.style. visibility = "hidden";
if (a.hiliteShim) a.hiliteShim.st yle.visibility = "inherit";
if (a.Menu.bgImage Up) a.style.backgro und = "url(" + a.Menu.bgImageU p
+")";;
}
l.style.backgro undColor = l.menuHiliteBgC olor;
l.zIndex = 1;
if (l.Menu.bgImage Over) l.style.backgro und = "url(" +
l.Menu.bgImageO ver +")";
if (l.hilite) {
l.hilite.style. visibility = "inherit";
if( l.hiliteShim ) l.hiliteShim.st yle.visibility = "visible";
}
l.focusItem.sty le.pixelTop = l.style.pixelTo p;
l.focusItem.sty le.top = l.focusItem.sty le.pixelTop + 'px';
l.focusItem.sty le.pixelLeft = l.style.pixelLe ft;
l.focusItem.sty le.left = l.focusItem.sty le.pixelLeft + 'px';
l.focusItem.sty le.zIndex = l.zIndex +1;
l.Menu.hideChil dMenu(l);
} else return;
window.ActiveMe nuItem = l;
}
function onMenuItemActio n(e, l) {
l = window.ActiveMe nuItem;
if (!l) return;
hideActiveMenus ();
if (l.mmaction) eval("" + l.mmaction);
window.ActiveMe nuItem = 0;
}
function MM_clearTimeout () {
if (mmHideMenuTime r) clearTimeout(mm HideMenuTimer);
mmHideMenuTimer = null;
mmDHFlag = false;
}
function MM_startTimeout () {
if( window.ActiveMe nu ) {
mmStart = new Date();
mmDHFlag = true;
mmHideMenuTimer = setTimeout("mmD oHide()",
window.ActiveMe nu.Menu.hideTim eout);
}
}
function mmDoHide() {
if (!mmDHFlag || !window.ActiveM enu) return;
var elapsed = new Date() - mmStart;
var timeout = window.ActiveMe nu.Menu.hideTim eout;
if (elapsed < timeout) {
mmHideMenuTimer = setTimeout("mmD oHide()", timeout+100-elapsed);
return;
}
mmDHFlag = false;
hideActiveMenus ();
window.ActiveMe nuItem = 0;
}
function MM_showMenu(men u, x, y, child, imgname) {
if (!window.mmWrot eMenu) return;
MM_clearTimeout ();
if (menu) {
var obj = FIND(imgname) || document.images[imgname] ||
document.links[imgname] || document.anchor s[imgname];
x = moveXbySlicePos (x, obj);
y = moveYbySlicePos (y, obj);
}
if (document.layer s) {
if (menu) {
var l = menu.menuLayer || menu;
l.top = l.left = 1;
hideActiveMenus ();
if (this.visibilit y) l = this;
window.ActiveMe nu = l;
} else {
var l = child;
}
if (!l) return;
for (var i=0; i<l.layers.leng th; i++) {
if (!l.layers[i].isHilite) l.layers[i].visibility = "inherit";
if (l.layers[i].document.layer s.length > 0) MM_showMenu(nul l,
"relative", "relative", l.layers[i]);
}
if (l.parentLayer) {
if (x != "relative") l.parentLayer.l eft = x || window.pageX || 0;
if (l.parentLayer. left + l.clip.width > window.innerWid th)
l.parentLayer.l eft -= (l.parentLayer. left + l.clip.width -
window.innerWid th);
if (y != "relative") l.parentLayer.t op = y || window.pageY || 0;
if (l.parentLayer. isContainer) {
l.Menu.xOffset = window.pageXOff set;
l.Menu.yOffset = window.pageYOff set;
l.parentLayer.c lip.width = window.ActiveMe nu.clip.width +2;
l.parentLayer.c lip.height = window.ActiveMe nu.clip.height +2;
if (l.parentLayer. menuContainerBg Color && l.Menu.menuBgOp aque )
l.parentLayer.d ocument.bgColor = l.parentLayer.m enuContainerBgC olor;
}
}
l.visibility = "inherit";
if (l.Menu) l.Menu.containe r.visibility = "inherit";
} else if (FIND("menuItem 0")) {
var l = menu.menuLayer || menu;
hideActiveMenus ();
if (typeof(l) == "string") l = FIND(l);
window.ActiveMe nu = l;
var s = l.style;
s.visibility = "inherit";
if (x != "relative") {
s.pixelLeft = x || (window.pageX + document.body.s crollLeft) || 0;
s.left = s.pixelLeft + 'px';
}
if (y != "relative") {
s.pixelTop = y || (window.pageY + document.body.s crollTop) || 0;
s.top = s.pixelTop + 'px';
}
l.Menu.xOffset = document.body.s crollLeft;
l.Menu.yOffset = document.body.s crollTop;
}
if (menu) window.activeMe nus[window.activeMe nus.length] = l;
MM_clearTimeout ();
}
function onMenuItemDown( e, l) {
var a = window.ActiveMe nuItem;
if (document.layer s && a) {
a.eX = e.pageX;
a.eY = e.pageY;
a.clicked = true;
}
}
function mouseupMenu(e) {
hideMenu(true, e);
hideActiveMenus ();
return true;
}
function getExplorerVers ion() {
var ieVers = parseFloat(navi gator.appVersio n);
if( navigator.appNa me != 'Microsoft Internet Explorer' ) return ieVers;
var tempVers = navigator.appVe rsion;
var i = tempVers.indexO f( 'MSIE ' );
if( i >= 0 ) {
tempVers = tempVers.substr ing( i+5 );
ieVers = parseFloat( tempVers );
}
return ieVers;
}
function mouseoutMenu() {
if ((navigator.app Name == "Microsoft Internet Explorer") &&
(getExplorerVer sion() < 4.5))
return true;
hideMenu(false, false);
return true;
}
function hideMenu(mouseu p, e) {
var a = window.ActiveMe nuItem;
if (a && document.layers ) {
a.document.bgCo lor = a.saveColor;
a.focusItem.top = -30;
if (a.hilite) a.hilite.visibi lity = "hidden";
if (mouseup && a.mmaction && a.clicked && window.ActiveMe nu) {
if (a.eX <= e.pageX+15 && a.eX >= e.pageX-15 && a.eY <= e.pageY+10
&& a.eY >= e.pageY-10) {
setTimeout('win dow.ActiveMenu. Menu.onMenuItem Action();', 500);
}
}
a.clicked = false;
if (a.Menu.bgImage Over) a.background.sr c = a.Menu.bgImageU p;
} else if (window.ActiveM enu && FIND("menuItem0 ")) {
if (a) {
a.style.backgro undColor = a.saveColor;
if (a.hilite) a.hilite.style. visibility = "hidden";
if (a.hiliteShim) a.hiliteShim.st yle.visibility = "inherit";
if (a.Menu.bgImage Up) a.style.backgro und = "url(" + a.Menu.bgImageU p
+")";
}
}
if (!mouseup && window.ActiveMe nu) {
if (window.ActiveM enu.Menu) {
if (window.ActiveM enu.Menu.hideOn MouseOut) MM_startTimeout ();
return(true);
}
}
return(true);
}
function hideChildMenu(h cmLayer) {
MM_clearTimeout ();
var l = hcmLayer;
for (var i=0; i < l.Menu.childMen us.length; i++) {
var theLayer = l.Menu.childMen us[i];
if (document.layer s) theLayer.visibi lity = "hidden";
else {
theLayer = FIND(theLayer);
theLayer.style. visibility = "hidden";
if( theLayer.Menu.m enuItemHAlign != 'left' ) {
for(var j = 0; j < theLayer.Menu.m enuItemLayers.l ength; j++) {
var itemLayer = theLayer.Menu.m enuItemLayers[j];
if(itemLayer.te xtShim) itemLayer.textS him.style.visib ility = "inherit";
}
}
}
theLayer.Menu.h ideChildMenu(th eLayer);
}
if (l.childMenu) {
var childMenu = l.childMenu;
if (document.layer s) {
l.Menu.MM_showM enu(null,null,n ull,childMenu.l ayers[0]);
childMenu.zInde x = l.parentLayer.z Index +1;
childMenu.top = l.Menu.menuLaye r.top + l.Menu.submenuY Offset;
if( l.Menu.vertical ) {
if( l.Menu.submenuR elativeToItem ) childMenu.top += l.top +
l.parentLayer.t op;
childMenu.left = l.parentLayer.l eft + l.parentLayer.c lip.width -
(2*l.Menu.menuB order) + l.Menu.menuLaye r.left + l.Menu.submenuX Offset;
} else {
childMenu.top += l.top + l.parentLayer.t op;
if( l.Menu.submenuR elativeToItem ) childMenu.left =
l.Menu.menuLaye r.left + l.left + l.clip.width + (2*l.Menu.menuB order) +
l.Menu.submenuX Offset;
else childMenu.left = l.parentLayer.l eft + l.parentLayer.c lip.width
- (2*l.Menu.menuB order) + l.Menu.menuLaye r.left + l.Menu.submenuX Offset;
}
if( childMenu.left < l.Menu.containe r.clip.left )
l.Menu.containe r.clip.left = childMenu.left;
var w = childMenu.clip. width+childMenu .left-l.Menu.containe r.clip.left;
if (w > l.Menu.containe r.clip.width) l.Menu.containe r.clip.width = w;
var h = childMenu.clip. height+childMen u.top-l.Menu.containe r.clip.top;
if (h > l.Menu.containe r.clip.height) l.Menu.containe r.clip.height = h;
l.document.laye rs[1].zIndex = 0;
childMenu.visib ility = "inherit";
} else if (FIND("menuItem 0")) {
childMenu = FIND(l.childMen u);
var menuLayer = FIND(l.Menu.men uLayer);
var s = childMenu.style ;
s.zIndex = menuLayer.style .zIndex+1;
if (document.all || window.mmIsOper a) {
s.pixelTop = menuLayer.style .pixelTop + l.Menu.submenuY Offset;
if( l.Menu.vertical ) {
if( l.Menu.submenuR elativeToItem ) s.pixelTop += l.style.pixelTo p;
s.pixelLeft = l.style.pixelWi dth + menuLayer.style .pixelLeft +
l.Menu.submenuX Offset;
s.left = s.pixelLeft + 'px';
} else {
s.pixelTop += l.style.pixelTo p;
if( l.Menu.submenuR elativeToItem ) s.pixelLeft =
menuLayer.style .pixelLeft + l.style.pixelLe ft + l.style.pixelWi dth +
(2*l.Menu.menuB order) + l.Menu.submenuX Offset;
else s.pixelLeft = (menuLayer.styl e.pixelWidth-4*l.Menu.menuBo rder)
+ menuLayer.style .pixelLeft + l.Menu.submenuX Offset;
s.left = s.pixelLeft + 'px';
}
} else {
var top = parseInt(menuLa yer.style.top) + l.Menu.submenuY Offset;
var left = 0;
if( l.Menu.vertical ) {
if( l.Menu.submenuR elativeToItem ) top += parseInt(l.styl e.top);
left = (parseInt(menuL ayer.style.widt h)-4*l.Menu.menuBo rder) +
parseInt(menuLa yer.style.left) + l.Menu.submenuX Offset;
} else {
top += parseInt(l.styl e.top);
if( l.Menu.submenuR elativeToItem ) left =
parseInt(menuLa yer.style.left) + parseInt(l.styl e.left) +
parseInt(l.styl e.width) + (2*l.Menu.menuB order) + l.Menu.submenuX Offset;
else left = (parseInt(menuL ayer.style.widt h)-4*l.Menu.menuBo rder) +
parseInt(menuLa yer.style.left) + l.Menu.submenuX Offset;
}
s.top = top + 'px';
s.left = left + 'px';
}
childMenu.style .visibility = "inherit";
} else return;
window.activeMe nus[window.activeMe nus.length] = childMenu;
}
}
function hideActiveMenus () {
if (!window.active Menus) return;
for (var i=0; i < window.activeMe nus.length; i++) {
if (!activeMenus[i]) continue;
if (activeMenus[i].visibility && activeMenus[i].Menu &&
!window.mmIsOpe ra) {
activeMenus[i].visibility = "hidden";
activeMenus[i].Menu.container .visibility = "hidden";
activeMenus[i].Menu.container .clip.left = 0;
} else if (activeMenus[i].style) {
var s = activeMenus[i].style;
s.visibility = "hidden";
s.left = '-200px';
s.top = '-200px';
}
}
if (window.ActiveM enuItem) hideMenu(false, false);
window.activeMe nus.length = 0;
}
function moveXbySlicePos (x, img) {
if (!document.laye rs) {
var onWindows = navigator.platf orm ? navigator.platf orm == "Win32" :
false;
var macIE45 = document.all && !onWindows && getExplorerVers ion() == 4.5;
var par = img;
var lastOffset = 0;
while(par){
if( par.leftMargin && ! onWindows ) x += parseInt(par.le ftMargin);
if( (par.offsetLeft != lastOffset) && par.offsetLeft ) x +=
parseInt(par.of fsetLeft);
if( par.offsetLeft != 0 ) lastOffset = par.offsetLeft;
par = macIE45 ? par.parentEleme nt : par.offsetParen t;
}
} else if (img.x) x += img.x;
return x;
}
function moveYbySlicePos (y, img) {
if(!document.la yers) {
var onWindows = navigator.platf orm ? navigator.platf orm == "Win32" :
false;
var macIE45 = document.all && !onWindows && getExplorerVers ion() == 4.5;
var par = img;
var lastOffset = 0;
while(par){
if( par.topMargin && !onWindows ) y += parseInt(par.to pMargin);
if( (par.offsetTop != lastOffset) && par.offsetTop ) y +=
parseInt(par.of fsetTop);
if( par.offsetTop != 0 ) lastOffset = par.offsetTop;
par = macIE45 ? par.parentEleme nt : par.offsetParen t;
}
} else if (img.y >= 0) y += img.y;
return y;
}"
file? Why is it that the javascript menu could not work at
www.apchosting.net but could work at
http://home.pacific.net.sg/~jacksony ? (the drop down bar could not work
at www.apchosting.net but can drop at home.pacific.ne t.sg. I suspect it
is a server problem but was told it is not possible, therefore assuming
it is a client script problem? the script works last time though. can
anyone help? email me at jacksony@pacifi c.net.sg! (don't reply to
newsgroup as it might be gone) thank you very much! :)
these are the codes for the files:
INDEX.HTML
"<html>
<head>
<title>APC Hosting: web hosting and domain registration. web designing
and programming.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META NAME="Descripti on" CONTENT="APC Hosting - High speed quality web
hosting and domain name registration at an affordable, lowest price. Web
designing and programming services.">
<META NAME="Keywords" CONTENT="apc hosting, apchosting, web hosting,
hosting, domain hosting, domain registration, domain name registration,
domain name, register domain, register domain name, web designing,
webdesign, programming,">
<META NAME="ROBOTS" CONTENT = "All">
<META NAME="AUTHOR" CONTENT = "APC Hosting">
<style type="text/css">
<!--
A:link, A:visited { text-decoration: none }
A:hover { text-decoration: underline; color: #000000; font-weight : none }
//.style1 {font-size: 9px}
..style60 {font-family: Verdana, Arial, Helvetica, sans-serif}
..style61 {font-size: 10px}
..style62 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
10px; }
..style66 {font-size: 12px; }
..style68 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
10px; color: #FF9900;}
..style69 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size:
10px; font-weight: bold; }
-->
</style>
<script language="JavaS cript">
<!--
function mmLoadMenus() {
if (window.mm_menu _0518132243_0) return;
window.mm_menu_ 0518132243_0 = new Menu("root",82, 16,"Arial,
Helvetica,
sans-serif",10,"#000 000","#FFFFFF", "#FFFFFF","#FF9 900","center"," middle",3,0,100 0,-5,7,true,true,t rue,0,false,tru e);
mm_menu_0518132 243_0.addMenuIt em("Why Us ?","location='w hyus.htm'");
mm_menu_0518132 243_0.fontWeigh t="bold";
mm_menu_0518132 243_0.hideOnMou seOut=true;
mm_menu_0518132 243_0.bgColor=' #000000';
mm_menu_0518132 243_0.menuBorde r=1;
mm_menu_0518132 243_0.menuLiteB gColor='#FFFFFF ';
mm_menu_0518132 243_0.menuBorde rBgColor='#0000 00';
window.mm_menu_ 0518145422_0 = new Menu("root",82, 16,"Arial, Helvetica,
sans-serif",10,"#000 000","#FFFFFF", "#FFFFFF","#FF9 900","center"," middle",3,0,100 0,-5,7,true,true,t rue,0,false,tru e);
mm_menu_0518145 422_0.addMenuIt em("Web Ho sting","locatio n='webhosting.h tm'");
mm_menu_0518145 422_0.addMenuIt em("Reseller"," location='resel ler.htm'");
mm_menu_0518145 422_0.addMenuIt em("Web De sign","location ='webdesign.htm '");
mm_menu_0518145 422_0.addMenuIt em("Programming ","location='pr ogramming.htm'" );
mm_menu_0518145 422_0.fontWeigh t="bold";
mm_menu_0518145 422_0.hideOnMou seOut=true;
mm_menu_0518145 422_0.bgColor=' #000000';
mm_menu_0518145 422_0.menuBorde r=1;
mm_menu_0518145 422_0.menuLiteB gColor='#FFFFFF ';
mm_menu_0518145 422_0.menuBorde rBgColor='#0000 00';
window.mm_menu_ 0518150423_0 = new Menu("root",82, 16,"Arial,
Helvetica,
sans-serif",10,"#000 000","#FFFFFF", "#FFFFFF","#FF9 900","center"," middle",3,0,100 0,-5,7,true,true,t rue,0,false,tru e);
mm_menu_0518150 423_0.addMenuIt em("Order Form","location ='order.htm'");
mm_menu_0518150 423_0.fontWeigh t="bold";
mm_menu_0518150 423_0.hideOnMou seOut=true;
mm_menu_0518150 423_0.bgColor=' #000000';
mm_menu_0518150 423_0.menuBorde r=1;
mm_menu_0518150 423_0.menuLiteB gColor='#FFFFFF ';
mm_menu_0518150 423_0.menuBorde rBgColor='#0000 00';
window.mm_menu_ 0518150942_0 = new Menu("root",82, 16,"Arial,
Helvetica,
sans-serif",10,"#000 000","#FFFFFF", "#FFFFFF","#FF9 900","center"," middle",3,0,100 0,-5,7,true,true,t rue,0,false,tru e);
mm_menu_0518150 942_0.addMenuIt em("Customers", "location='cust omers.htm'");
mm_menu_0518150 942_0.addMenuIt em("Help F iles","location ='helpfiles.htm '");
mm_menu_0518150 942_0.addMenuIt em("Forum","win dow.open('forum/index.php',
'_blank');");
mm_menu_0518150 942_0.fontWeigh t="bold";
mm_menu_0518150 942_0.hideOnMou seOut=true;
mm_menu_0518150 942_0.bgColor=' #000000';
mm_menu_0518150 942_0.menuBorde r=1;
mm_menu_0518150 942_0.menuLiteB gColor='#FFFFFF ';
mm_menu_0518150 942_0.menuBorde rBgColor='#0000 00';
mm_menu_0518150 942_0.writeMenu s();
} // mmLoadMenus()
//-->
</script>
<script language="JavaS cript" src="mm_menu.js "></script>
</head>
<body link="#FF9900" vlink="#FF9900" alink="#FF9900" leftmargin="5"
topmargin="5">
<script language="JavaS cript1.2">mmLoa dMenus();</script>
<table width="760" border="0" align="left" cellpadding="0" cellspacing="0" >
<tr>
<td width="130" height="0" rowspan="2"><im g src="pic/logo2.gif"
alt="APC Hosting: web hosting, domain registration, web designing,
programming." width="130" height="63"></td>
<td width="3" height="0" align="left" valign="middle" > </td>
<td width="629" height="0" rowspan="2" valign="bottom" >
<div align="right">< img src="pic/hori.gif" alt="APC Hosting: web
hosting, domain registration, web designing, programming." width="28"
height="17"><a href="index.htm l"
onMouseOver="MM _showMenu(windo w.mm_menu_05181 32243_0,0,16,nu ll,'image1')"
onMouseOut="MM_ startTimeout(); "><img src="pic/home.gif" alt="APC
Hosting: web hosting, domain registration, web designing, programming."
name="image1" width="85" height="17" border="0" id="image1"></a><a
href="javascrip t:;"
onMouseOver="MM _showMenu(windo w.mm_menu_05181 45422_0,0,16,nu ll,'image2')"
onMouseOut="MM_ startTimeout(); "><img src="pic/products.gif" alt="APC
Hosting: web hosting, domain registration, web designing, programming."
name="image2" width="85" height="17" border="0" id="image2"></a></a><a
href="order.htm "
onMouseOver="MM _showMenu(windo w.mm_menu_05181 50423_0,0,16,nu ll,'image3')"
onMouseOut="MM_ startTimeout(); "><img src="pic/order.gif" alt="APC
Hosting: web hosting, domain registration, web designing, programming."
name="image3" width="85" height="17" border="0" id="image3"></a><a
href="javascrip t:;"
onMouseOver="MM _showMenu(windo w.mm_menu_05181 50942_0,0,16,nu ll,'image4')"
onMouseOut="MM_ startTimeout(); "><img src="pic/support.gif" alt="APC
Hosting: web hosting, domain registration, web designing, programming."
name="image4" width="85" height="17" border="0" id="image4"></a><a
href="aboutus.h tm"><img src="pic/aboutus.gif" alt="APC Hosting: web
hosting, domain registration, web designing, programming." width="85"
height="17" border="0"></a><a href="contact.h tm"><img
src="pic/contact.gif" alt="APC Hosting: web hosting, domain
registration, web designing, programming." width="85" height="17"
border="0"></a><img src="pic/hori.gif" alt="APC Hosting: web hosting,
domain registration, web designing, programming." width="28"
height="17"></div></td>
</tr>
<tr>
<td width="1" height="0">&nbs p;</td>
<tr>
<td height="100" colspan="3" valign="top"><p > </p>
<table width="600" border="0" align="center" cellpadding="0"
cellspacing="0" >
<tr>
<td width="200" height="253" valign="top"><t able width="200"
height="0" border="0" cellpadding="0" cellspacing="0" >
<tr valign="top" class="style55" >
<td height="0" colspan="2"><di v align="center"
class="style56 style60 style61"><u>Qui ck Links </u></div></td>
</tr>
<tr valign="top" class="style55" >
<td width="100" height="0"><div align="center"
class="style62" ><span class="style54" ><font color="#FF9900" ><a
href="http://www.apchosting. net/forum/viewforum.php?f =2"
target="_blank" >Promotion</a></font></span></div></td>
<td width="100" height="0"><div align="center"
class="style62" ><font color="#FF9900" ><a href="freehosti ng.htm">Free
Hosting</a></font></div></td>
</tr>
<tr valign="top" class="style55" >
<td height="0" colspan="2"><fo nt size="1"
face="Verdana, Arial, Helvetica, sans-serif"><img src="pic/server.jpg"
alt="APC Hosting: web hosting, domain registration, web designing,
programming." width="200" height="229" class="style56" ></font></td>
</tr>
</table></td>
<td width="25" valign="top"><f ont size="1" face="Verdana,
Arial, Helvetica, sans-serif"> </font></td>
<td width="375" valign="top"> <p><img src="pic/welcome.gif"
alt="APC Hosting: web hosting, domain registration, web designing,
programming." width="287" height="35"></p>
<p align="justify" class="style66" ><font color="#000000"
face="Verdana, Arial, Helvetica, sans-serif"> APC Hosting possess a
series of high-tech equipment as well
as technologies to provide our customers with top quality
services
like web hosting, domain name registration, web designing
and programming at lowest
affordable price.</font></p>
<p align="justify" class="style66" ><font color="#000000"
face="Verdana, Arial, Helvetica, sans-serif">This
could not have been done if not for our dedicated and
dilligent
staffs, who are constantly monitoring our list of servers
and serving
our customers to meet their needs.</font></p>
<p align="justify" class="style66" ><font color="#000000"
face="Verdana, Arial, Helvetica, sans-serif">We believe in working with
our customers and not just
for them. Sign up for our hosting and be a part of APC
Hosting now!</font></p>
</td>
</tr>
</table>
<p align="center" class="style68" ><strong><a
href="webhostin g.htm">Web hosting</a></strong> from $1.95 monthly.<br>
<strong><a href="reseller. htm">Reseller web hosting</a></strong>
from $24.95 monthly.<br>
<br>
<strong><a href="domainreg istration.htm"> Top-level Domain</a></strong>
|.com|.net|.org |.biz|.info| at $9.95 yearly.<br>
<strong><a href="domainreg istration.htm"> Singapore
Domain</a></strong> |.com.sg|.net.s g|.org.sg|.edu. sg| at S$59.95 yearly.<br>
|.per.sg| at S$29.95 yearly.</p>
<p align="center" class="style69" >For other domain types and
services, please contact <a
href="mailto:sa les@apchosting. net">sales@apch osting.net</a>. </p></td>
</tr>
<tr valign="top">
<td colspan="3"><ta ble width="430" border="0" align="center"
cellpadding="0" cellspacing="0" >
<tr>
<td height="10" colspan="6">&nb sp;</td>
</tr>
<tr>
<td colspan="6"><di v align="left"><f ont size="1"
face="Verdana, Arial, Helvetica, sans-serif"><u>Power ed
by:</u></font></div></td>
</tr>
<tr>
<td height="10" colspan="6"></td>
</tr>
<tr>
<td width="71"><a href="http://www.intel.com"
target="_blank" ><img src="pic/intel.gif" alt="APC Hosting: web hosting,
domain registration, web designing, programming." width="69" height="35"
border="0"></a></td>
<td width="43"><a href="http://www.microsoft.c om"
target="_blank" ><img src="pic/microsoft.gif" alt="APC Hosting: web
hosting, domain registration, web designing, programming." width="39"
height="35" border="0"></a></td>
<td width="75"><a href="http://www.mysql.com"
target="_blank" ><img src="pic/mysql.gif" alt="APC Hosting: web hosting,
domain registration, web designing, programming." width="66" height="35"
border="0"></a></td>
<td width="75"><a href="http://www.php.net"
target="_blank" ><img src="pic/php.gif" alt="APC Hosting: web hosting,
domain registration, web designing, programming." width="67" height="35"
border="0"></a></td>
<td width="96"><a href="http://www.redhat.com"
target="_blank" ><img src="pic/redhat.gif" alt="APC Hosting: web hosting,
domain registration, web designing, programming." width="92" height="35"
border="0"></a></td>
<td width="70"><a href="http://www.cpanel.net"
target="_blank" ><img src="pic/cpanel.gif" alt="APC Hosting: web hosting,
domain registration, web designing, programming." width="70" height="43"
border="0"></a></td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td height="10" colspan="3">&nb sp;</td>
</tr>
<tr>
<td colspan="3" valign="bottom" > <div align="center"> <font size="1"
face="Arial, Helvetica, sans-serif">Best
Viewed with 800x600 resolution and above, using Internet
Explorer 4.0
or Netscape 4.0 or later, with Medium font.<br>
©Copyri ght 2003, <a href="tos.htm" target="_blank" >APC
Hosting</a>,
All Rights Reserved.</font></div></td>
</tr>
</table>
</body>
</html>"
MM_MENU.JS
"/**
* mm_menu 20MAR2002 Version 6.0
* Andy Finnell, March 2002
* Copyright (c) 2000-2002 Macromedia, Inc.
*
* based on menu.js
* by gary smith, July 1997
* Copyright (c) 1997-1999 Netscape Communications Corp.
*
* Netscape grants you a royalty free license to use or modify this
* software provided that this copyright notice appears on all copies.
* This software is provided "AS IS," without a warranty of any kind.
*/
function Menu(label, mw, mh, fnt, fs, fclr, fhclr, bg, bgh, halgn,
valgn, pad, space, to, sx, sy, srel, opq, vert, idt, aw, ah)
{
this.version = "020320 [Menu; mm_menu.js]";
this.type = "Menu";
this.menuWidth = mw;
this.menuItemHe ight = mh;
this.fontSize = fs;
this.fontWeight = "plain";
this.fontFamily = fnt;
this.fontColor = fclr;
this.fontColorH ilite = fhclr;
this.bgColor = "#555555";
this.menuBorder = 1;
this.menuBgOpaq ue=opq;
this.menuItemBo rder = 1;
this.menuItemIn dent = idt;
this.menuItemBg Color = bg;
this.menuItemVA lign = valgn;
this.menuItemHA lign = halgn;
this.menuItemPa dding = pad;
this.menuItemSp acing = space;
this.menuLiteBg Color = "#ffffff";
this.menuBorder BgColor = "#777777";
this.menuHilite BgColor = bgh;
this.menuContai nerBgColor = "#cccccc";
this.childMenuI con = "arrows.gif ";
this.submenuXOf fset = sx;
this.submenuYOf fset = sy;
this.submenuRel ativeToItem = srel;
this.vertical = vert;
this.items = new Array();
this.actions = new Array();
this.childMenus = new Array();
this.hideOnMous eOut = true;
this.hideTimeou t = to;
this.addMenuIte m = addMenuItem;
this.writeMenus = writeMenus;
this.MM_showMen u = MM_showMenu;
this.onMenuItem Over = onMenuItemOver;
this.onMenuItem Action = onMenuItemActio n;
this.hideMenu = hideMenu;
this.hideChildM enu = hideChildMenu;
if (!window.menus) window.menus = new Array();
this.label = " " + label;
window.menus[this.label] = this;
window.menus[window.menus.le ngth] = this;
if (!window.active Menus) window.activeMe nus = new Array();
}
function addMenuItem(lab el, action) {
this.items[this.items.leng th] = label;
this.actions[this.actions.le ngth] = action;
}
function FIND(item) {
if( window.mmIsOper a ) return(document .getElementById (item));
if (document.all) return(document .all[item]);
if (document.getEl ementById) return(document .getElementById (item));
return(false);
}
function writeMenus(cont ainer) {
if (window.triedTo WriteMenus) return;
var agt = navigator.userA gent.toLowerCas e();
window.mmIsOper a = agt.indexOf("op era") != -1;
if (!container && document.layers ) {
window.delayWri teMenus = this.writeMenus ;
var timer = setTimeout('del ayWriteMenus()' , 500);
container = new Layer(100);
clearTimeout(ti mer);
} else if (document.all || document.hasChi ldNodes || window.mmIsOper a) {
document.writel n('<span id="menuContain er"></span>');
container = FIND("menuConta iner");
}
window.mmHideMe nuTimer = null;
if (!container) return;
window.triedToW riteMenus = true;
container.isCon tainer = true;
container.menus = new Array();
for (var i=0; i<window.menus. length; i++)
container.menus[i] = window.menus[i];
window.menus.le ngth = 0;
var countMenus = 0;
var countItems = 0;
var top = 0;
var content = '';
var lrs = false;
var theStat = "";
var tsc = 0;
if (document.layer s) lrs = true;
for (var i=0; i<container.men us.length; i++, countMenus++) {
var menu = container.menus[i];
if (menu.bgImageUp || !menu.menuBgOpa que) {
menu.menuBorder = 0;
menu.menuItemBo rder = 0;
}
if (lrs) {
var menuLayer = new Layer(100, container);
var lite = new Layer(100, menuLayer);
lite.top = menu.menuBorder ;
lite.left = menu.menuBorder ;
var body = new Layer(100, lite);
body.top = menu.menuBorder ;
body.left = menu.menuBorder ;
} else {
content += ''+
'<div id="menuLayer' + countMenus +'"
style="position :absolute;z-index:1;left:10 px;top:'+ (i * 100)
+'px;visibility :hidden;color:' + menu.menuBorder BgColor + ';">\n'+
' <div id="menuLite'+ countMenus +'"
style="position :absolute;z-index:1;left:'+ menu.menuBorder +'px;top:'+
menu.menuBorder +'px;visibility :hide;" onmouseout="mou seoutMenu();">\ n'+
' <div id="menuFg'+ countMenus +'" style="position :absolute;left: '+
menu.menuBorder +'px;top:'+ menu.menuBorder +'px;visibility :hide;">\n'+
'';
}
var x=i;
for (var i=0; i<menu.items.le ngth; i++) {
var item = menu.items[i];
var childMenu = false;
var defaultHeight = menu.fontSize+2 *menu.menuItemP adding;
if (item.label) {
item = item.label;
childMenu = true;
}
menu.menuItemHe ight = menu.menuItemHe ight || defaultHeight;
var itemProps = '';
if( menu.fontFamily != '' ) itemProps += 'font-family:' +
menu.fontFamily +';';
itemProps += 'font-weight:' + menu.fontWeight + ';fontSize:' +
menu.fontSize + 'px;';
if (menu.fontStyle ) itemProps += 'font-style:' + menu.fontStyle + ';';
if (document.all || window.mmIsOper a)
itemProps += 'font-size:' + menu.fontSize + 'px;"
onmouseover="on MenuItemOver(nu ll,this);"
onclick="onMenu ItemAction(null ,this);';
else if (!document.laye rs) {
itemProps += 'font-size:' + menu.fontSize + 'px;';
}
var l;
if (lrs) {
var lw = menu.menuWidth;
if( menu.menuItemHA lign == 'right' ) lw -= menu.menuItemPa dding;
l = new Layer(lw,body);
}
var itemLeft = 0;
var itemTop = i*menu.menuItem Height;
if( !menu.vertical ) {
itemLeft = i*menu.menuWidt h;
itemTop = 0;
}
var dTag = '<div id="menuItem'+ countItems +'"
style="position :absolute;left: ' + itemLeft + 'px;top:'+ itemTop +'px;'+
itemProps +'">';
var dClose = '</div>'
if (menu.bgImageUp ) dTag = '<div id="menuItem'+ countItems +'"
style="backgrou nd:url('+menu.b gImageUp+');pos ition:absolute; left:' +
itemLeft + 'px;top:'+ itemTop +'px;'+ itemProps +'">';
var left = 0, top = 0, right = 0, bottom = 0;
left = 1 + menu.menuItemPa dding + menu.menuItemIn dent;
right = left + menu.menuWidth - 2*menu.menuItem Padding -
menu.menuItemIn dent;
if( menu.menuItemVA lign == 'top' ) top = menu.menuItemPa dding;
if( menu.menuItemVA lign == 'bottom' ) top =
menu.menuItemHe ight-menu.fontSize-1-menu.menuItemPa dding;
if( menu.menuItemVA lign == 'middle' ) top =
((menu.menuItem Height/2)-(menu.fontSize/2)-1);
bottom = menu.menuItemHe ight - 2*menu.menuItem Padding;
var textProps = 'position:absol ute;left:' + left + 'px;top:' + top +
'px;';
if (lrs) {
textProps +=itemProps + 'right:' + right + ';bottom:' + bottom + ';';
dTag = "";
dClose = "";
}
if(document.all && !window.mmIsOpe ra) {
item = '<div align="' + menu.menuItemHA lign + '">' + item + '</div>';
} else if (lrs) {
item = '<div style="text-align:' + menu.menuItemHA lign + ';">' +
item + '</div>';
} else {
var hitem = null;
if( menu.menuItemHA lign != 'left' ) {
if(window.mmIsO pera) {
var operaWidth = menu.menuItemHA lign == 'center' ?
-(menu.menuWidth-2*menu.menuItem Padding) :
(menu.menuWidth-6*menu.menuItem Padding);
hitem = '<div id="menuItemHil ite' + countItems + 'Shim"
style="position :absolute;top:1 px;left:' + menu.menuItemPa dding +
'px;width:' + operaWidth + 'px;text-align:'
+ menu.menuItemHA lign + ';visibility:vi sible;">' + item + '</div>';
item = '<div id="menuItemTex t' + countItems + 'Shim"
style="position :absolute;top:1 px;left:' + menu.menuItemPa dding +
'px;width:' + operaWidth + 'px;text-align:'
+ menu.menuItemHA lign + ';visibility:vi sible;">' + item + '</div>';
} else {
hitem = '<div id="menuItemHil ite' + countItems + 'Shim"
style="position :absolute;top:1 px;left:1px;rig ht:-' +
(left+menu.menu Width-3*menu.menuItem Padding) + 'px;text-align:'
+ menu.menuItemHA lign + ';visibility:vi sible;">' + item + '</div>';
item = '<div id="menuItemTex t' + countItems + 'Shim"
style="position :absolute;top:1 px;left:1px;rig ht:-' +
(left+menu.menu Width-3*menu.menuItem Padding) + 'px;text-align:'
+ menu.menuItemHA lign + ';visibility:vi sible;">' + item + '</div>';
}
} else hitem = null;
}
if(document.all && !window.mmIsOpe ra) item = '<div id="menuItemShi m'
+ countItems + '" style="position :absolute;left: 0px;top:0px;">' + item +
'</div>';
var dText = '<div id="menuItemTex t'+ countItems +'" style="' +
textProps + 'color:'+ menu.fontColor +';">'+ item +' </div>\n'
+ '<div id="menuItemHil ite'+ countItems +'" style="' + textProps +
'color:'+ menu.fontColorH ilite +';visibility:h idden;">'
+ (hitem||item) +' </div>';
if (childMenu) content += ( dTag + dText + '<div id="childMenu' +
countItems +'" style="position :absolute;left: 0px;top:3px;">< img src="'+
menu.childMenuI con +'"></div>\n' + dClose);
else content += ( dTag + dText + dClose);
if (lrs) {
l.document.open ("text/html");
l.document.writ eln(content);
l.document.clos e();
content = '';
theStat += "-";
tsc++;
if (tsc > 50) {
tsc = 0;
theStat = "";
}
status = theStat;
}
countItems++;
}
if (lrs) {
var focusItem = new Layer(100, body);
focusItem.visib lity="hidden";
focusItem.docum ent.open("text/html");
focusItem.docum ent.writeln("&n bsp;");
focusItem.docum ent.close();
} else {
content += ' <div id="focusItem' + countMenus +'"
style="position :absolute;left: 0px;top:0px;vis ibility:hide;"
onclick="onMenu ItemAction(null ,this);"> </div>\n';
content += ' </div>\n </div>\n</div>\n';
}
i=x;
}
if (document.layer s) {
container.clip. width = window.innerWid th;
container.clip. height = window.innerHei ght;
container.onmou seout = mouseoutMenu;
container.menuC ontainerBgColor = this.menuContai nerBgColor;
for (var i=0; i<container.doc ument.layers.le ngth; i++) {
proto = container.menus[i];
var menu = container.docum ent.layers[i];
container.menus[i].menuLayer = menu;
container.menus[i].menuLayer.Menu = container.menus[i];
container.menus[i].menuLayer.Menu .container = container;
var body = menu.document.l ayers[0].document.layer s[0];
body.clip.width = proto.menuWidth || body.clip.width ;
body.clip.heigh t = proto.menuHeigh t || body.clip.heigh t;
for (var n=0; n<body.document .layers.length-1; n++) {
var l = body.document.l ayers[n];
l.Menu = container.menus[i];
l.menuHiliteBgC olor = proto.menuHilit eBgColor;
l.document.bgCo lor = proto.menuItemB gColor;
l.saveColor = proto.menuItemB gColor;
l.onmouseover = proto.onMenuIte mOver;
l.onclick = proto.onMenuIte mAction;
l.mmaction = container.menus[i].actions[n];
l.focusItem = body.document.l ayers[body.document.l ayers.length-1];
l.clip.width = proto.menuWidth || body.clip.width ;
l.clip.height = proto.menuItemH eight || l.clip.height;
if (n>0) {
if( l.Menu.vertical ) l.top = body.document.l ayers[n-1].top +
body.document.l ayers[n-1].clip.height + proto.menuItemB order +
proto.menuItemS pacing;
else l.left = body.document.l ayers[n-1].left +
body.document.l ayers[n-1].clip.width + proto.menuItemB order +
proto.menuItemS pacing;
}
l.hilite = l.document.laye rs[1];
if (proto.bgImageU p) l.background.sr c = proto.bgImageUp ;
l.document.laye rs[1].isHilite = true;
if (l.document.lay ers.length > 2) {
l.childMenu = container.menus[i].items[n].menuLayer;
l.document.laye rs[2].left = l.clip.width -13;
l.document.laye rs[2].top = (l.clip.height / 2) -4;
l.document.laye rs[2].clip.left += 3;
l.Menu.childMen us[l.Menu.childMen us.length] = l.childMenu;
}
}
if( proto.menuBgOpa que ) body.document.b gColor = proto.bgColor;
if( proto.vertical ) {
body.clip.width = l.clip.width +proto.menuBord er;
body.clip.heigh t = l.top + l.clip.height +proto.menuBord er;
} else {
body.clip.heigh t = l.clip.height +proto.menuBord er;
body.clip.width = l.left + l.clip.width +proto.menuBord er;
if( body.clip.width > window.innerWid th ) body.clip.width =
window.innerWid th;
}
var focusItem = body.document.l ayers[n];
focusItem.clip. width = body.clip.width ;
focusItem.Menu = l.Menu;
focusItem.top = -30;
focusItem.captu reEvents(Event. MOUSEDOWN);
focusItem.onmou sedown = onMenuItemDown;
if( proto.menuBgOpa que ) menu.document.b gColor = proto.menuBorde rBgColor;
var lite = menu.document.l ayers[0];
if( proto.menuBgOpa que ) lite.document.b gColor = proto.menuLiteB gColor;
lite.clip.width = body.clip.width +1;
lite.clip.heigh t = body.clip.heigh t +1;
menu.clip.width = body.clip.width + (proto.menuBord er * 3) ;
menu.clip.heigh t = body.clip.heigh t + (proto.menuBord er * 3);
}
} else {
if ((!document.all ) && (container.hasC hildNodes) && !window.mmIsOpe ra) {
container.inner HTML=content;
} else {
container.docum ent.open("text/html");
container.docum ent.writeln(con tent);
container.docum ent.close();
}
if (!FIND("menuLay er0")) return;
var menuCount = 0;
for (var x=0; x<container.men us.length; x++) {
var menuLayer = FIND("menuLayer " + x);
container.menus[x].menuLayer = "menuLayer" + x;
menuLayer.Menu = container.menus[x];
menuLayer.Menu. container = "menuLayer" + x;
menuLayer.style .zindex = 1;
var s = menuLayer.style ;
s.pixeltop = -300;
s.pixelleft = -300;
s.top = '-300px';
s.left = '-300px';
var menu = container.menus[x];
menu.menuItemWi dth = menu.menuWidth || menu.menuIEWidt h || 140;
if( menu.menuBgOpaq ue ) menuLayer.style .backgroundColo r =
menu.menuBorder BgColor;
var top = 0;
var left = 0;
menu.menuItemLa yers = new Array();
for (var i=0; i<container.men us[x].items.length; i++) {
var l = FIND("menuItem" + menuCount);
l.Menu = container.menus[x];
l.Menu.menuItem Layers[l.Menu.menuItem Layers.length] = l;
if (l.addEventList ener || window.mmIsOper a) {
l.style.width = menu.menuItemWi dth + 'px';
l.style.height = menu.menuItemHe ight + 'px';
l.style.pixelWi dth = menu.menuItemWi dth;
l.style.pixelHe ight = menu.menuItemHe ight;
l.style.top = top + 'px';
l.style.left = left + 'px';
if(l.addEventLi stener) {
l.addEventListe ner("mouseover" , onMenuItemOver, false);
l.addEventListe ner("click", onMenuItemActio n, false);
l.addEventListe ner("mouseout", mouseoutMenu, false);
}
if( menu.menuItemHA lign != 'left' ) {
l.hiliteShim = FIND("menuItemH ilite" + menuCount + "Shim");
l.hiliteShim.st yle.visibility = "inherit";
l.textShim = FIND("menuItemT ext" + menuCount + "Shim");
l.hiliteShim.st yle.pixelWidth = menu.menuItemWi dth -
2*menu.menuItem Padding - menu.menuItemIn dent;
l.hiliteShim.st yle.width = l.hiliteShim.st yle.pixelWidth;
l.textShim.styl e.pixelWidth = menu.menuItemWi dth -
2*menu.menuItem Padding - menu.menuItemIn dent;
l.textShim.styl e.width = l.textShim.styl e.pixelWidth;
}
} else {
l.style.pixelWi dth = menu.menuItemWi dth;
l.style.pixelHe ight = menu.menuItemHe ight;
l.style.pixelTo p = top;
l.style.pixelLe ft = left;
if( menu.menuItemHA lign != 'left' ) {
var shim = FIND("menuItemS him" + menuCount);
shim[0].style.pixelWid th = menu.menuItemWi dth -
2*menu.menuItem Padding - menu.menuItemIn dent;
shim[1].style.pixelWid th = menu.menuItemWi dth -
2*menu.menuItem Padding - menu.menuItemIn dent;
shim[0].style.width = shim[0].style.pixelWid th + 'px';
shim[1].style.width = shim[1].style.pixelWid th + 'px';
}
}
if( menu.vertical ) top = top +
menu.menuItemHe ight+menu.menuI temBorder+menu. menuItemSpacing ;
else left = left +
menu.menuItemWi dth+menu.menuIt emBorder+menu.m enuItemSpacing;
l.style.fontSiz e = menu.fontSize + 'px';
l.style.backgro undColor = menu.menuItemBg Color;
l.style.visibil ity = "inherit";
l.saveColor = menu.menuItemBg Color;
l.menuHiliteBgC olor = menu.menuHilite BgColor;
l.mmaction = container.menus[x].actions[i];
l.hilite = FIND("menuItemH ilite" + menuCount);
l.focusItem = FIND("focusItem " + x);
l.focusItem.sty le.pixelTop = -30;
l.focusItem.sty le.top = '-30px';
var childItem = FIND("childMenu " + menuCount);
if (childItem) {
l.childMenu = container.menus[x].items[i].menuLayer;
childItem.style .pixelLeft = menu.menuItemWi dth -11;
childItem.style .left = childItem.style .pixelLeft + 'px';
childItem.style .pixelTop = (menu.menuItemH eight /2) -4;
childItem.style .top = childItem.style .pixelTop + 'px';
l.Menu.childMen us[l.Menu.childMen us.length] = l.childMenu;
}
l.style.cursor = "hand";
menuCount++;
}
if( menu.vertical ) {
menu.menuHeight = top-1-menu.menuItemSp acing;
menu.menuWidth = menu.menuItemWi dth;
} else {
menu.menuHeight = menu.menuItemHe ight;
menu.menuWidth = left-1-menu.menuItemSp acing;
}
var lite = FIND("menuLite" + x);
var s = lite.style;
s.pixelHeight = menu.menuHeight +(menu.menuBord er * 2);
s.height = s.pixelHeight + 'px';
s.pixelWidth = menu.menuWidth + (menu.menuBorde r * 2);
s.width = s.pixelWidth + 'px';
if( menu.menuBgOpaq ue ) s.backgroundCol or = menu.menuLiteBg Color;
var body = FIND("menuFg" + x);
s = body.style;
s.pixelHeight = menu.menuHeight + menu.menuBorder ;
s.height = s.pixelHeight + 'px';
s.pixelWidth = menu.menuWidth + menu.menuBorder ;
s.width = s.pixelWidth + 'px';
if( menu.menuBgOpaq ue ) s.backgroundCol or = menu.bgColor;
s = menuLayer.style ;
s.pixelWidth = menu.menuWidth + (menu.menuBorde r * 4);
s.width = s.pixelWidth + 'px';
s.pixelHeight = menu.menuHeight +(menu.menuBord er*4);
s.height = s.pixelHeight + 'px';
}
}
if (document.captu reEvents) document.captur eEvents(Event.M OUSEUP);
if (document.addEv entListener) document.addEve ntListener("mou seup",
onMenuItemOver, false);
if (document.layer s && window.innerWid th) {
window.onresize = NS4resize;
window.NS4sIW = window.innerWid th;
window.NS4sIH = window.innerHei ght;
setTimeout("NS4 resize()",500);
}
document.onmous eup = mouseupMenu;
window.mmWroteM enu = true;
status = "";
}
function NS4resize() {
if (NS4sIW != window.innerWid th || NS4sIH != window.innerHei ght)
window.location .reload();
}
function onMenuItemOver( e, l) {
MM_clearTimeout ();
l = l || this;
a = window.ActiveMe nuItem;
if (document.layer s) {
if (a) {
a.document.bgCo lor = a.saveColor;
if (a.hilite) a.hilite.visibi lity = "hidden";
if (a.Menu.bgImage Over) a.background.sr c = a.Menu.bgImageU p;
a.focusItem.top = -100;
a.clicked = false;
}
if (l.hilite) {
l.document.bgCo lor = l.menuHiliteBgC olor;
l.zIndex = 1;
l.hilite.visibi lity = "inherit";
l.hilite.zIndex = 2;
l.document.laye rs[1].zIndex = 1;
l.focusItem.zIn dex = this.zIndex +2;
}
if (l.Menu.bgImage Over) l.background.sr c = l.Menu.bgImageO ver;
l.focusItem.top = this.top;
l.focusItem.lef t = this.left;
l.focusItem.cli p.width = l.clip.width;
l.focusItem.cli p.height = l.clip.height;
l.Menu.hideChil dMenu(l);
} else if (l.style && l.Menu) {
if (a) {
a.style.backgro undColor = a.saveColor;
if (a.hilite) a.hilite.style. visibility = "hidden";
if (a.hiliteShim) a.hiliteShim.st yle.visibility = "inherit";
if (a.Menu.bgImage Up) a.style.backgro und = "url(" + a.Menu.bgImageU p
+")";;
}
l.style.backgro undColor = l.menuHiliteBgC olor;
l.zIndex = 1;
if (l.Menu.bgImage Over) l.style.backgro und = "url(" +
l.Menu.bgImageO ver +")";
if (l.hilite) {
l.hilite.style. visibility = "inherit";
if( l.hiliteShim ) l.hiliteShim.st yle.visibility = "visible";
}
l.focusItem.sty le.pixelTop = l.style.pixelTo p;
l.focusItem.sty le.top = l.focusItem.sty le.pixelTop + 'px';
l.focusItem.sty le.pixelLeft = l.style.pixelLe ft;
l.focusItem.sty le.left = l.focusItem.sty le.pixelLeft + 'px';
l.focusItem.sty le.zIndex = l.zIndex +1;
l.Menu.hideChil dMenu(l);
} else return;
window.ActiveMe nuItem = l;
}
function onMenuItemActio n(e, l) {
l = window.ActiveMe nuItem;
if (!l) return;
hideActiveMenus ();
if (l.mmaction) eval("" + l.mmaction);
window.ActiveMe nuItem = 0;
}
function MM_clearTimeout () {
if (mmHideMenuTime r) clearTimeout(mm HideMenuTimer);
mmHideMenuTimer = null;
mmDHFlag = false;
}
function MM_startTimeout () {
if( window.ActiveMe nu ) {
mmStart = new Date();
mmDHFlag = true;
mmHideMenuTimer = setTimeout("mmD oHide()",
window.ActiveMe nu.Menu.hideTim eout);
}
}
function mmDoHide() {
if (!mmDHFlag || !window.ActiveM enu) return;
var elapsed = new Date() - mmStart;
var timeout = window.ActiveMe nu.Menu.hideTim eout;
if (elapsed < timeout) {
mmHideMenuTimer = setTimeout("mmD oHide()", timeout+100-elapsed);
return;
}
mmDHFlag = false;
hideActiveMenus ();
window.ActiveMe nuItem = 0;
}
function MM_showMenu(men u, x, y, child, imgname) {
if (!window.mmWrot eMenu) return;
MM_clearTimeout ();
if (menu) {
var obj = FIND(imgname) || document.images[imgname] ||
document.links[imgname] || document.anchor s[imgname];
x = moveXbySlicePos (x, obj);
y = moveYbySlicePos (y, obj);
}
if (document.layer s) {
if (menu) {
var l = menu.menuLayer || menu;
l.top = l.left = 1;
hideActiveMenus ();
if (this.visibilit y) l = this;
window.ActiveMe nu = l;
} else {
var l = child;
}
if (!l) return;
for (var i=0; i<l.layers.leng th; i++) {
if (!l.layers[i].isHilite) l.layers[i].visibility = "inherit";
if (l.layers[i].document.layer s.length > 0) MM_showMenu(nul l,
"relative", "relative", l.layers[i]);
}
if (l.parentLayer) {
if (x != "relative") l.parentLayer.l eft = x || window.pageX || 0;
if (l.parentLayer. left + l.clip.width > window.innerWid th)
l.parentLayer.l eft -= (l.parentLayer. left + l.clip.width -
window.innerWid th);
if (y != "relative") l.parentLayer.t op = y || window.pageY || 0;
if (l.parentLayer. isContainer) {
l.Menu.xOffset = window.pageXOff set;
l.Menu.yOffset = window.pageYOff set;
l.parentLayer.c lip.width = window.ActiveMe nu.clip.width +2;
l.parentLayer.c lip.height = window.ActiveMe nu.clip.height +2;
if (l.parentLayer. menuContainerBg Color && l.Menu.menuBgOp aque )
l.parentLayer.d ocument.bgColor = l.parentLayer.m enuContainerBgC olor;
}
}
l.visibility = "inherit";
if (l.Menu) l.Menu.containe r.visibility = "inherit";
} else if (FIND("menuItem 0")) {
var l = menu.menuLayer || menu;
hideActiveMenus ();
if (typeof(l) == "string") l = FIND(l);
window.ActiveMe nu = l;
var s = l.style;
s.visibility = "inherit";
if (x != "relative") {
s.pixelLeft = x || (window.pageX + document.body.s crollLeft) || 0;
s.left = s.pixelLeft + 'px';
}
if (y != "relative") {
s.pixelTop = y || (window.pageY + document.body.s crollTop) || 0;
s.top = s.pixelTop + 'px';
}
l.Menu.xOffset = document.body.s crollLeft;
l.Menu.yOffset = document.body.s crollTop;
}
if (menu) window.activeMe nus[window.activeMe nus.length] = l;
MM_clearTimeout ();
}
function onMenuItemDown( e, l) {
var a = window.ActiveMe nuItem;
if (document.layer s && a) {
a.eX = e.pageX;
a.eY = e.pageY;
a.clicked = true;
}
}
function mouseupMenu(e) {
hideMenu(true, e);
hideActiveMenus ();
return true;
}
function getExplorerVers ion() {
var ieVers = parseFloat(navi gator.appVersio n);
if( navigator.appNa me != 'Microsoft Internet Explorer' ) return ieVers;
var tempVers = navigator.appVe rsion;
var i = tempVers.indexO f( 'MSIE ' );
if( i >= 0 ) {
tempVers = tempVers.substr ing( i+5 );
ieVers = parseFloat( tempVers );
}
return ieVers;
}
function mouseoutMenu() {
if ((navigator.app Name == "Microsoft Internet Explorer") &&
(getExplorerVer sion() < 4.5))
return true;
hideMenu(false, false);
return true;
}
function hideMenu(mouseu p, e) {
var a = window.ActiveMe nuItem;
if (a && document.layers ) {
a.document.bgCo lor = a.saveColor;
a.focusItem.top = -30;
if (a.hilite) a.hilite.visibi lity = "hidden";
if (mouseup && a.mmaction && a.clicked && window.ActiveMe nu) {
if (a.eX <= e.pageX+15 && a.eX >= e.pageX-15 && a.eY <= e.pageY+10
&& a.eY >= e.pageY-10) {
setTimeout('win dow.ActiveMenu. Menu.onMenuItem Action();', 500);
}
}
a.clicked = false;
if (a.Menu.bgImage Over) a.background.sr c = a.Menu.bgImageU p;
} else if (window.ActiveM enu && FIND("menuItem0 ")) {
if (a) {
a.style.backgro undColor = a.saveColor;
if (a.hilite) a.hilite.style. visibility = "hidden";
if (a.hiliteShim) a.hiliteShim.st yle.visibility = "inherit";
if (a.Menu.bgImage Up) a.style.backgro und = "url(" + a.Menu.bgImageU p
+")";
}
}
if (!mouseup && window.ActiveMe nu) {
if (window.ActiveM enu.Menu) {
if (window.ActiveM enu.Menu.hideOn MouseOut) MM_startTimeout ();
return(true);
}
}
return(true);
}
function hideChildMenu(h cmLayer) {
MM_clearTimeout ();
var l = hcmLayer;
for (var i=0; i < l.Menu.childMen us.length; i++) {
var theLayer = l.Menu.childMen us[i];
if (document.layer s) theLayer.visibi lity = "hidden";
else {
theLayer = FIND(theLayer);
theLayer.style. visibility = "hidden";
if( theLayer.Menu.m enuItemHAlign != 'left' ) {
for(var j = 0; j < theLayer.Menu.m enuItemLayers.l ength; j++) {
var itemLayer = theLayer.Menu.m enuItemLayers[j];
if(itemLayer.te xtShim) itemLayer.textS him.style.visib ility = "inherit";
}
}
}
theLayer.Menu.h ideChildMenu(th eLayer);
}
if (l.childMenu) {
var childMenu = l.childMenu;
if (document.layer s) {
l.Menu.MM_showM enu(null,null,n ull,childMenu.l ayers[0]);
childMenu.zInde x = l.parentLayer.z Index +1;
childMenu.top = l.Menu.menuLaye r.top + l.Menu.submenuY Offset;
if( l.Menu.vertical ) {
if( l.Menu.submenuR elativeToItem ) childMenu.top += l.top +
l.parentLayer.t op;
childMenu.left = l.parentLayer.l eft + l.parentLayer.c lip.width -
(2*l.Menu.menuB order) + l.Menu.menuLaye r.left + l.Menu.submenuX Offset;
} else {
childMenu.top += l.top + l.parentLayer.t op;
if( l.Menu.submenuR elativeToItem ) childMenu.left =
l.Menu.menuLaye r.left + l.left + l.clip.width + (2*l.Menu.menuB order) +
l.Menu.submenuX Offset;
else childMenu.left = l.parentLayer.l eft + l.parentLayer.c lip.width
- (2*l.Menu.menuB order) + l.Menu.menuLaye r.left + l.Menu.submenuX Offset;
}
if( childMenu.left < l.Menu.containe r.clip.left )
l.Menu.containe r.clip.left = childMenu.left;
var w = childMenu.clip. width+childMenu .left-l.Menu.containe r.clip.left;
if (w > l.Menu.containe r.clip.width) l.Menu.containe r.clip.width = w;
var h = childMenu.clip. height+childMen u.top-l.Menu.containe r.clip.top;
if (h > l.Menu.containe r.clip.height) l.Menu.containe r.clip.height = h;
l.document.laye rs[1].zIndex = 0;
childMenu.visib ility = "inherit";
} else if (FIND("menuItem 0")) {
childMenu = FIND(l.childMen u);
var menuLayer = FIND(l.Menu.men uLayer);
var s = childMenu.style ;
s.zIndex = menuLayer.style .zIndex+1;
if (document.all || window.mmIsOper a) {
s.pixelTop = menuLayer.style .pixelTop + l.Menu.submenuY Offset;
if( l.Menu.vertical ) {
if( l.Menu.submenuR elativeToItem ) s.pixelTop += l.style.pixelTo p;
s.pixelLeft = l.style.pixelWi dth + menuLayer.style .pixelLeft +
l.Menu.submenuX Offset;
s.left = s.pixelLeft + 'px';
} else {
s.pixelTop += l.style.pixelTo p;
if( l.Menu.submenuR elativeToItem ) s.pixelLeft =
menuLayer.style .pixelLeft + l.style.pixelLe ft + l.style.pixelWi dth +
(2*l.Menu.menuB order) + l.Menu.submenuX Offset;
else s.pixelLeft = (menuLayer.styl e.pixelWidth-4*l.Menu.menuBo rder)
+ menuLayer.style .pixelLeft + l.Menu.submenuX Offset;
s.left = s.pixelLeft + 'px';
}
} else {
var top = parseInt(menuLa yer.style.top) + l.Menu.submenuY Offset;
var left = 0;
if( l.Menu.vertical ) {
if( l.Menu.submenuR elativeToItem ) top += parseInt(l.styl e.top);
left = (parseInt(menuL ayer.style.widt h)-4*l.Menu.menuBo rder) +
parseInt(menuLa yer.style.left) + l.Menu.submenuX Offset;
} else {
top += parseInt(l.styl e.top);
if( l.Menu.submenuR elativeToItem ) left =
parseInt(menuLa yer.style.left) + parseInt(l.styl e.left) +
parseInt(l.styl e.width) + (2*l.Menu.menuB order) + l.Menu.submenuX Offset;
else left = (parseInt(menuL ayer.style.widt h)-4*l.Menu.menuBo rder) +
parseInt(menuLa yer.style.left) + l.Menu.submenuX Offset;
}
s.top = top + 'px';
s.left = left + 'px';
}
childMenu.style .visibility = "inherit";
} else return;
window.activeMe nus[window.activeMe nus.length] = childMenu;
}
}
function hideActiveMenus () {
if (!window.active Menus) return;
for (var i=0; i < window.activeMe nus.length; i++) {
if (!activeMenus[i]) continue;
if (activeMenus[i].visibility && activeMenus[i].Menu &&
!window.mmIsOpe ra) {
activeMenus[i].visibility = "hidden";
activeMenus[i].Menu.container .visibility = "hidden";
activeMenus[i].Menu.container .clip.left = 0;
} else if (activeMenus[i].style) {
var s = activeMenus[i].style;
s.visibility = "hidden";
s.left = '-200px';
s.top = '-200px';
}
}
if (window.ActiveM enuItem) hideMenu(false, false);
window.activeMe nus.length = 0;
}
function moveXbySlicePos (x, img) {
if (!document.laye rs) {
var onWindows = navigator.platf orm ? navigator.platf orm == "Win32" :
false;
var macIE45 = document.all && !onWindows && getExplorerVers ion() == 4.5;
var par = img;
var lastOffset = 0;
while(par){
if( par.leftMargin && ! onWindows ) x += parseInt(par.le ftMargin);
if( (par.offsetLeft != lastOffset) && par.offsetLeft ) x +=
parseInt(par.of fsetLeft);
if( par.offsetLeft != 0 ) lastOffset = par.offsetLeft;
par = macIE45 ? par.parentEleme nt : par.offsetParen t;
}
} else if (img.x) x += img.x;
return x;
}
function moveYbySlicePos (y, img) {
if(!document.la yers) {
var onWindows = navigator.platf orm ? navigator.platf orm == "Win32" :
false;
var macIE45 = document.all && !onWindows && getExplorerVers ion() == 4.5;
var par = img;
var lastOffset = 0;
while(par){
if( par.topMargin && !onWindows ) y += parseInt(par.to pMargin);
if( (par.offsetTop != lastOffset) && par.offsetTop ) y +=
parseInt(par.of fsetTop);
if( par.offsetTop != 0 ) lastOffset = par.offsetTop;
par = macIE45 ? par.parentEleme nt : par.offsetParen t;
}
} else if (img.y >= 0) y += img.y;
return y;
}"
Comment