redbullet = '<img src="images/bullet-blue-l.gif" width="5" height="14" border="0" alt="">&nbsp;';
smlredbullet = '<img src="images/bullet-blue-s.gif" width="7" height="18" border="0" alt="" align="left">';
redarrow = 'images/redarrow.gif';

menunum=0;
menus=new Array();
_d=document;

function addmenu()
{
	menunum++;
	menus[menunum]=menu;
}

function dumpmenus()
{
	mt="<script language=javascript>";
	for(a=1;a<menus.length;a++)
	{
		mt+=" menu"+a+"=menus["+a+"];"
	}
	mt+="<\/script>";
	_d.write(mt)
}

effect = ""

timegap = 100
followspeed = 5
followrate = 40
suboffset_top = 10;
suboffset_left = 10;


function MenuStyle()
{
this.textNormal = "white"; this.textRollover = "333333";
this.bgNormal = "DDE6EA"; this.bgRollover = "white";
this.borderColor = "95B1BF";
this.textSize = 12; this.textStyle = "normal"; this.textWeight = "bold"
this.textFont = "Arial"; this.padding = 0; this.subImage = "";
this.border3d = ""; this.border3dHColor = ""; this.border3dLColor = "";
this.textActiveItem = ""; this.bgActiveItem = ""; this.topbarImg = "";
this.textHeader = ""; this.bgHeader = ""; this.seperator = "";
}

MenuStyle.prototype.applyStyle = function()
{
this.style = new Array();
this.style[0] = this.textNormal; this.style[1] = this.bgNormal;
this.style[2] = this.textRollover; this.style[3] = this.bgRollover;
this.style[4] = this.borderColor; this.style[5] = this.textSize;
this.style[6] = this.textStyle; this.style[7] = this.textWeight;
this.style[8] = this.textFont; this.style[9] = this.padding;
this.style[10] = this.subImage; this.style[11] = this.border3d;
this.style[12] = this.border3dHColor; this.style[13] = this.border3dLColor;
this.style[14] = this.textActiveItem; this.style[15] = this.bgActiveItem;
this.style[16] = this.topbarImg; this.style[17] = this.textHeader;
this.style[18] = this.bgHeader; this.style[19] = this.seperator;

}

topStyle = new MenuStyle();
topStyle.bgNormal = "E5306C";
topStyle.bgRollover = "F299B6";
topStyle.borderColor = "95B1BF";
topStyle.textStyle = "normal";
topStyle.seperator = "E5306C";
topStyle.subImage = "";
topStyle.applyStyle();

itemStyle = new MenuStyle();
itemStyle.textNormal = "585858"
itemStyle.bgNormal = "DDE6EA";
itemStyle.bgRollover = "FFFFFF";
itemStyle.borderColor = "95B1BF";
itemStyle.textStyle = "normal";
itemStyle.seperator = "95B1BF";
itemStyle.subImage = redarrow;
itemStyle.applyStyle();


itemStyle1 = new MenuStyle();
itemStyle1.bgNormal = "ffffff";
itemStyle1.bgRollover = "ebebeb";
itemStyle1.borderColor = "ffffff";
itemStyle1.textStyle = "normal";
itemStyle1.textWeight = "normal";
itemStyle1.seperator = "95B1BF";
itemStyle1.subImage = redarrow;
itemStyle1.applyStyle();


// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
//---------主菜單----------
addmenu(menu=["mainmenu",41,30,menuitemwidths,0,,topStyle.style,1,"left",effect,,1,,,,,,,,,,	
,"&nbsp;"+redbullet+"Home"+"&nbsp;","show-menu=home","index.asp?com=d","",50
,"&nbsp;"+redbullet+"Company Profile"+"&nbsp;","show-menu=company","","",50
,"&nbsp;"+redbullet+"Digital Products"+"&nbsp;","show-menu=digitalproducts","digital_products.asp?com=d","",50
,"&nbsp;"+redbullet+"TV Products"+"&nbsp;","show-menu=tvproducts","tv_products.asp?com=d","",50
,"&nbsp;"+redbullet+"Contact Us"+"&nbsp;","contactus.asp?com=d",,"",50
]);

//---------Home 下拉菜單----------
addmenu(menu=["home",,,100,1,"",itemStyle.style,,"left",effect,,,,"middle",,,,,,,,
,smlredbullet+"Client Only","show-menu=client",,,1
,smlredbullet+"Staff Only","show-menu=staff",,,1
,smlredbullet+"Other Links"+"&nbsp;","show-menu=link",,,1
]);

//---------Home 子菜單----------
addmenu(menu=["client",,,235,1,"",itemStyle.style,,"left",effect,,,,"middle",,,,,,,,
,smlredbullet+"Download & Upload File","http://www.oticdigitech.com/download.htm","",,1
]);

addmenu(menu=["staff",,,160,1,"",itemStyle.style,,"left",effect,,,,"middle",,,,,,,,
,smlredbullet+"WebMail-Oticdigitech","http://www.weboffice.com.hk/webmail1/index.php?lang=chinese_hk","",,1
,smlredbullet+"WebMail-Wide-Tech","http://www.weboffice.com.hk/webmail1/index.php?lang=chinese_hk","",,1
]);

addmenu(menu=["link",,,300,1,"",itemStyle.style,,"left",effect,,,,"middle",,,,,,,,
,smlredbullet+"Adobe Reader download","http://www.oticdigitech.com/open.asp?link=http://www.adobe.com/products/acrobat/readstep2.html&w=800","",,1
,smlredbullet+"Hong Kong MAP","http://www.oticdigitech.com/open.asp?link=http://www.ypmap.com/&w=800","",,1
,smlredbullet+"Hong Kong Flight Information","http://www.oticdigitech.com/open.asp?link=http://www.hkairport.com/eng/flightinfo/chkfltarr.jsp&w=800","",,1
,smlredbullet+"Hong Kong Traffic Condition","http://www.oticdigitech.com/open.asp?link=http://traffic.td.gov.hk/&w=800","",,1
,smlredbullet+"Time Zone Converter","http://www.oticdigitech.com/open.asp?link=http://www.timezoneconverter.com/cgi-bin/tzc.tzc&w=800","",,1
,smlredbullet+"The Universal Currency Converter","http://www.oticdigitech.com/open.asp?link=http://www.xe.net/ucc&w=800","",,1
,smlredbullet+"Metric Conversion Calculator","http://www.oticdigitech.com/open.asp?link=http://www.admiralmetals.com/Metalweb/Templates/admiral/metric-calc.jsp&w=800","",,1
,smlredbullet+"Yellow Pages","http://www.oticdigitech.com/open.asp?link=http://yp.com.hk/&w=800","",,1
,smlredbullet+"World Weather Information","http://www.oticdigitech.com/open.asp?link=http://www.weather.gov.hk/wxinfo/worldwx/index.htm&w=800","",,1
,smlredbullet+"Web-based instant messaging (msn, icq, yahoo...)","http://www.oticdigitech.com/open.asp?link=http://www.meebo.com/index-en.html&w=800","",,1
,smlredbullet+"Web-based instant messaging (QQ)","http://www.oticdigitech.com/open.asp?link=http://web.qq.com/&w=800","",,1
,smlredbullet+"Online Translation Service","http://www.oticdigitech.com/open.asp?link=http://www.microsofttranslator.com&w=800","",,1
,smlredbullet+"Online PDF Editor & Form Filler","http://www.oticdigitech.com/open.asp?link=http://www.pdfescape.com/open/?expired#&w=800","",,1
,smlredbullet+"Online FTP Service","http://www.oticdigitech.com/open.asp?link=http://www.ftplive.com/ftp.php&w=800","",,1
,smlredbullet+"Online Free Hosting Service","http://www.oticdigitech.com/open.asp?link=http://www.depositfiles.com&w=800","",,1
,smlredbullet+"Online Open Autocad File","http://www.oticdigitech.com/open.asp?link=http://www.autocadws.com&w=800","",,1
,smlredbullet+"Real-time P2P File Transfers","http://www.oticdigitech.com/open.asp?link=http://dushare.com&w=800","",,1
]);

//---------Company Profile 下拉菜單----------
addmenu(menu=["company",,,130,1,"",itemStyle.style,,"left",effect,,,,"middle",,,,,,,,
,smlredbullet+"TV Products"+"&nbsp;","about.asp?com=d",,"",1
,smlredbullet+"Digital Products"+"&nbsp;","about.asp?com=d",,"",1
]);

//---------Digital Products 下拉菜單----------
addmenu(menu=["digitalproducts",,,180,1,"",itemStyle.style,,"left",effect,,,,"middle",,,,,,,,
,smlredbullet+"Set Top Box"+"&nbsp;","settopbox/settopbox_list.asp?com=d",,"",1
,smlredbullet+"SoundBar System"+"&nbsp;","soundbar/soundbar_list.asp?com=d",,"",1
,smlredbullet+"Portable Media Player"+"&nbsp;","pdvd/pdvd_list.asp?com=d",,"",1
,smlredbullet+"Blu-Ray Disc Player"+"&nbsp;","bluray/bluray_list.asp?com=d",,"",1
//---------取消---------- ,smlredbullet+"Photo Frame"+"&nbsp;","photoframe/photoframe_list.asp?com=d",,"",1
//---------取消---------- ,smlredbullet+"Docking System"+"&nbsp;","docking/docking_list.asp?com=d",,"",1
]);

//---------TV Products 下拉菜單----------
addmenu(menu=["tvproducts",,,180,1,"",itemStyle.style,,"left",effect,,,,"middle",,,,,,,,
,smlredbullet+"Color TV","show-menu=tv",,,1
,smlredbullet+"Color TV Combo"+"&nbsp;","show-menu=tvdvd",,"",1
,smlredbullet+"LCD TV & Combo"+"&nbsp;","show-menu=lcdtv",,"",1
,smlredbullet+"LED TV & Combo"+"&nbsp;","led_tv/ledtvcombo_list.asp?com=d","",,1
//---------取消---------- ,smlredbullet+"PLASMA TV"+"&nbsp;","pdp_tv/pdp169tv_list.asp?com=d","",,1
]);

//---------TV Products 子菜單----------
addmenu(menu=["tv",,,130,1,"",itemStyle.style,,"left",effect,,,,"middle",,,,,,,,
,smlredbullet+"4:3 Color TV","tv/tv43_list.asp?com=d","",,1
]);

addmenu(menu=["tvdvd",,,230,1,"",itemStyle.style,,"left",effect,,,,"middle",,,,,,,,
,smlredbullet+"4:3 Color TV Combo","tv_dvd/tvdvd43_list.asp?com=d","",,1
,smlredbullet+"15&quot; Pure Flat Color TV Combo","tv_dvd/tvdvd15_list.asp?com=d","",,1
]);

addmenu(menu=["lcdtv",,,180,1,"",itemStyle.style,,"left",effect,,,,"middle",,,,,,,,
,smlredbullet+"LCD TV","lcd_tv/lcdtv_list.asp?com=d","",,1
,smlredbullet+"LCD TV Combo","lcd_tv/lcdtvcombo_list.asp?com=d","",,1
,smlredbullet+"Portable LCD TV","lcd_tv/plcdtv_list.asp?com=d","",,1
,smlredbullet+"Portable LCD TV Combo","lcd_tv/plcdtvcombo_list.asp?com=d","",,1
]);

//---------Digital Products 子菜單----------(暫停使用)
addmenu(menu=["sdvd",,,180,1,"",itemStyle.style,,"left",effect,,,,"middle",,,,,,,,
,smlredbullet+"DVD Player (wide 230mm)","sdvd/sdvd230_list.asp?com=d","",,1
,smlredbullet+"DVD Player (wide 320mm)","sdvd/sdvd320_list.asp?com=d","",,1
,smlredbullet+"DVD Player (wide 380mm)","sdvd/sdvd380_list.asp?com=d","",,1
,smlredbullet+"DVD Player (wide 430mm)","sdvd/sdvd430_list.asp?com=d","",,1
]);

dumpmenus();
