// attributes var topMenuBarsPositionFromLeft=210; var topMenuBarsPositionFromTop=76; var menuItemsWidth="100"; var menuItemsheight=18; //Menu object creation oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname //Menu properties oCMenu.pxBetween=0 oCMenu.fromLeft=topMenuBarsPositionFromLeft oCMenu.fromTop=topMenuBarsPositionFromTop oCMenu.rows=1 oCMenu.menuPlacement=0 oCMenu.offlineRoot="" oCMenu.onlineRoot="" oCMenu.resizeCheck=1 oCMenu.wait=1000 oCMenu.fillImg="http://www.toshiba-gulf.com/site/images/pixel.gif" oCMenu.zIndex=0 //Background bar properties oCMenu.useBar=1 oCMenu.barWidth="menu" oCMenu.barHeight="menu" oCMenu.barClass="clBar" oCMenu.barX=topMenuBarsPositionFromLeft oCMenu.barY=topMenuBarsPositionFromTop oCMenu.barBorderX=0 oCMenu.barBorderY=0 oCMenu.barBorderClass="" //Level properties - ALL properties have to be spesified in level 0 oCMenu.level[0]=new cm_makeLevel() //Add this for each new level oCMenu.level[0].width=menuItemsWidth oCMenu.level[0].height=menuItemsheight oCMenu.level[0].regClass="clLevel0" oCMenu.level[0].overClass="clLevel0over" oCMenu.level[0].borderX=0 oCMenu.level[0].borderY=0 oCMenu.level[0].offsetX=0 oCMenu.level[0].offsetY=0 oCMenu.level[0].rows=0 oCMenu.level[0].borderClass=0 oCMenu.level[0].align="bottom" //EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number) oCMenu.level[1].width=275 oCMenu.level[1].height=menuItemsheight oCMenu.level[1].regClass="clLevel1" oCMenu.level[1].overClass="clLevel1over" oCMenu.level[1].borderX=1 oCMenu.level[1].borderY=1 oCMenu.level[1].offsetX=0 oCMenu.level[1].offsetY=-1 oCMenu.level[1].borderClass="clLevel1border" oCMenu.level[1].align="right" oCMenu.level[1].arrow="http://www.toshiba-gulf.com/site/images/menu_jointmarker.gif" oCMenu.level[1].arrowAlways="http://www.toshiba-gulf.com/site/images/menu_nodemarker.gif" oCMenu.level[1].arrowWidth=9 oCMenu.level[1].arrowHeight=9 //EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number) oCMenu.level[2].width=200 oCMenu.level[2].height=menuItemsheight oCMenu.level[2].offsetX=0 oCMenu.level[2].offsetY=0 oCMenu.level[2].regClass="clLevel1" oCMenu.level[2].overClass="clLevel1over" oCMenu.level[2].borderClass="clLevel1border" oCMenu.level[2].arrow="http://www.toshiba-gulf.com/site/images/menu_jointmarker.gif" oCMenu.level[2].arrowAlways="http://www.toshiba-gulf.com/site/images/menu_nodemarker.gif" oCMenu.level[2].arrowWidth=9 oCMenu.level[2].arrowHeight=9 /****************************************** Menu item creation: myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) *************************************/ //TOP LEVEL MENUS - LEVEL 0 oCMenu.makeMenu( 'products', '', 'PRODUCTS', '' ); oCMenu.makeMenu( 'about', '', 'ABOUT US', '' ); oCMenu.makeMenu( 'contact', '', 'CONTACT US', '' ); oCMenu.makeMenu( 'home', '', 'HOME', 'http://www.toshiba-gulf.com/site/index.asp' ); //PRODUCT MENUS - LEVEL 1 oCMenu.makeMenu("cat100", "products", "Air Conditioning", "http://www.toshiba-aircon.co.uk/index.html", "_blank" ); oCMenu.makeMenu("cat102", "products", "Computer Systems", "http://computers.toshiba-gulf.com/", "_blank" ); oCMenu.makeMenu("cat109", "products", "Copiers, Printer, Fax, Scanner, e-solutions", "http://www.estudio.com.sg/", "_blank" ); oCMenu.makeMenu("cat104", "products", "DVD’s", "http://www.toshiba-gulf.com/site/product/cat_display.asp?catid=104", "_self" ); oCMenu.makeMenu("cat105", "products", "Electronic Components", "http://www.toshiba-components.com/", "_blank" ); oCMenu.makeMenu("cat110", "products", "Refrigerators", "http://www.toshiba-gulf.com/site/product/cat_display.asp?catid=110", "_self" ); oCMenu.makeMenu("cat101", "products", "Televisions", "http://www.toshiba-gulf.com/site/product/cat_display.asp?catid=101", "_self" ); oCMenu.makeMenu("cat113", "products", "Washing Machines", "http://www.toshiba-gulf.com/site/product/cat_display.asp?catid=113", "_self" ); oCMenu.makeMenu("cat114", "cat101", "REGZA Collection", "http://www.toshiba-gulf.com/site/product/cat_display.asp?catid=114", "_self" ); oCMenu.makeMenu("cat142", "cat104", "DVD Player’s", "http://www.toshiba-gulf.com/site/product/cat_display.asp?catid=142", "_self" ); oCMenu.makeMenu("cat143", "cat104", "Portable DVD Players", "http://www.toshiba-gulf.com/site/product/prd_display.asp?catid=143", "_self" ); oCMenu.makeMenu("cat151", "cat104", "XDE Player", "http://www.toshiba-gulf.com/site/product/prd_display.asp?catid=151", "_self" ); oCMenu.makeMenu("cat130", "cat110", "Defrost One Door Refrigerators", "http://www.toshiba-gulf.com/site/product/prd_display.asp?catid=130", "_self" ); oCMenu.makeMenu("cat129", "cat110", "No Frost 2/3 Door Refrigerators", "http://www.toshiba-gulf.com/site/product/prd_display.asp?catid=129", "_self" ); oCMenu.makeMenu("cat132", "cat113", "Auto Washers", "http://www.toshiba-gulf.com/site/product/prd_display.asp?catid=132", "_self" ); oCMenu.makeMenu("cat131", "cat113", "Twin Tub Washing Machines", "http://www.toshiba-gulf.com/site/product/prd_display.asp?catid=131", "_self" ); oCMenu.makeMenu("cat155", "cat114", "40/32AV700", "http://www.toshiba-gulf.com/site/product/prd_display.asp?catid=155", "_self" ); oCMenu.makeMenu("cat158", "cat114", "42/40CV600", "http://www.toshiba-gulf.com/site/product/prd_display.asp?catid=158", "_self" ); oCMenu.makeMenu("cat154", "cat114", "46/42/32RV600", "http://www.toshiba-gulf.com/site/product/prd_display.asp?catid=154", "_self" ); oCMenu.makeMenu("cat152", "cat114", "55/47/42ZV600", "http://www.toshiba-gulf.com/site/product/prd_display.asp?catid=152", "_self" ); oCMenu.makeMenu("cat148", "cat142", "Basic DVD Players", "http://www.toshiba-gulf.com/site/product/prd_display.asp?catid=148", "_self" ); oCMenu.makeMenu("cat149", "cat142", "Divx DVD Players", "http://www.toshiba-gulf.com/site/product/prd_display.asp?catid=149", "_self" ); oCMenu.makeMenu("cat150", "cat142", "HDMI Up Conversion DVD Players", "http://www.toshiba-gulf.com/site/product/prd_display.asp?catid=150", "_self" ); oCMenu.makeMenu("about1", "about", "Company Profile", "http://www.toshiba-gulf.com/site/about/index.asp", "_self" ); oCMenu.makeMenu("about2", "about", "Message from the President", "http://www.toshiba-gulf.com/site/about/message.asp", "_self" ); oCMenu.makeMenu("about3", "about", "History of Toshiba", "http://www.toshiba-gulf.com/site/about/history.asp", "_self" ); oCMenu.makeMenu("about4", "about", "The Toshiba Commitment", "http://www.toshiba-gulf.com/site/about/commitment.asp", "_self" ); oCMenu.makeMenu("contact1", "contact", "Contact Information", "http://www.toshiba-gulf.com/site/contact/index.asp", "_self" ); oCMenu.makeMenu("contact2", "contact", "Enquiry Form", "http://www.toshiba-gulf.com/site/contact/enquiry.asp", "_self" ); //Leave this line - it constructs the menu oCMenu.construct()