// Last updated by Andy Wright
// 03-Nov-05
// email: andy@carino.co.uk
// MSN: carinocomms@hotmail.com

var list = new Array();
var pos  = new Array();

// Products menu
pos[category[1]] = new Array(81,102,164);
list[category[1]] = new Array();
list[category[1]][0]  = new Array("Capacitors","http://www.murata.com/cap/index.html");
list[category[1]][1]  = new Array("Resistors / Thermistors","http://www.murata.com/thermis/index.html");
list[category[1]][2]  = new Array("Coils (Inductors) / Delay Lines","http://www.murata.com/coil/index.html");
list[category[1]][3]  = new Array("Resonators","http://www.murata.com/ceralock/index.html");
list[category[1]][4]  = new Array("Noise Suppression Products / EMI Suppression Filters ","http://www.murata.com/emc/index.html");
list[category[1]][5]  = new Array("Spherical Speaker Products","http://www.murata.com/speaker/index.html");
list[category[1]][6]  = new Array("Sound Components","http://www.murata.com/piezo/index.html");
list[category[1]][7]  = new Array("Filters / Components / Modules for Audio Visual Equipment","http://www.murata.com/av/index.html");
list[category[1]][8]  = new Array("Filters / Components / Modules for Communication  Equipment","http://www.murata.com/mwall/index.html");
list[category[1]][9]  = new Array("Sensors","http://www.murata.com/sensor/index.html");
list[category[1]][10] = new Array("Power Supplies","http://www.murata.com/power/index.html");
list[category[1]][11] = new Array("Optical Products","http://www.murata.com/opt/index.html");

// Search menu
pos[category[2]] = new Array(81,266,164);
list[category[2]] = new Array();
list[category[2]][0]  = new Array("PRODUCT Search Engine","http://search.murata.co.jp/Ceramy/CeMenu_en.do");
list[category[2]][1]  = new Array("Part Number Search","http://search.murata.co.jp/Ceramy/Pn_en.do");
list[category[2]][2]  = new Array("Part Selection by Product Type","http://search.murata.co.jp/Ceramy/CatsearchAction.do?sLang=en");
list[category[2]][3]  = new Array("Chip Capacitor Search","http://search.murata.co.jp/Ceramy/GrsearchAction.do?sLang=en");
list[category[2]][4]  = new Array("Chip Coil Search","http://search.murata.co.jp/Ceramy/LqsearchAction.do?sLang=en");
list[category[2]][5]  = new Array("Ceramic Resonator vs. IC Part Number Search","http://search.murata.co.jp/Ceramy/IC_en.do");

// Support menu
pos[category[3]] = new Array(81,430,164);
list[category[3]] = new Array();
list[category[3]][0]  = new Array("PDF Catalog Library", "http://www.murata.com/catalog/index.html");
list[category[3]][1]  = new Array("E M I  Каталоги на Русском", "/russian_catalogues.html");
list[category[3]][2]  = new Array("Application Guides","http://www.murata.com/guide/index.html");
list[category[3]][3]  = new Array("Automotive Electronics","http://www.murata.com/auto/index.html");
list[category[3]][4]  = new Array("Design Tools", "http://www.murata.com/designlib/index.html");
list[category[3]][5]  = new Array("Technical Articles", "http://www.murata.com/articles/index.html");
list[category[3]][6]  = new Array("Технически Статьи", "/russian_articles.html");
list[category[3]][7]  = new Array("New Product Information", "http://news.murata.com/index.html");
list[category[3]][8]  = new Array("Press Releases (Product News)", "http://www.murata.com/ninfo/index.html");
list[category[3]][9]  = new Array("Contact Us", "contact/index.htm");
list[category[3]][10]  = new Array("Regarding Counterfeit Murata Products", "http://www.murata.com/info/index.html");
list[category[3]][11]  = new Array("Murata's Approach for EU RoHS", "http://www.murata.com/info/rohs.html");

// About menu
pos[category[4]] = new Array(81,594,164);
list[category[4]] = new Array();
list[category[4]][1]  = new Array("Murata Europe HQ", "/countries/hqs.htm");
list[category[4]][2]  = new Array("Country Selection", "/countries/sales.htm");
list[category[4]][3]  = new Array("Distributors", "/countries/distributors/index.htm");
list[category[4]][4]  = new Array("Jobs and Recruitment", "/vacancies.htm");
list[category[4]][5]  = new Array("Corporate Profile", "http://www.murata.com/company/index.html");
list[category[4]][6]  = new Array("Corporate Social Responsibility", "http://www.murata.com/csr/index.html");
list[category[4]][7]  = new Array("Worldwide Press Releases", "http://www.murata.com/news/index.html");
list[category[4]][8]  = new Array("Contact Us", "/contact/index.htm");
  
// Build menu
var pulldown = new Array();

for(var i in category){
   var name = category[i];
   if(!list[name]) continue;
   if(document.layers) continue;
   pulldown[name] = '<div id="menu' + name + '" style="position:absolute; top:' + pos[name][0] + 'px; left:' + pos[name][1] + 'px; width:' + pos[name][2] + 'px; visibility:hidden" onmouseover="on_list(\'' + name + '\')" onmouseout="off_list(\'' + name + '\')"><table border="1" cellpadding="2" cellspacing="0" class="pulldown_menu">';
   for(var j in list[name]){
      pulldown[name] += (list[name][j][1] == "") ? '<tr><td><span>' + list[name][j][0] + '</span></td></tr>'
                                                 : '<tr><td><a href="' + list[name][j][1] + '">' + list[name][j][0] + '</a></td></tr>';
   }
   pulldown[name] += '</table></div>';
   document.write(pulldown[name]);
}
