window.onload = function(){ var MenuMain_1 = document.getElementById("MenuMain_1"); if(MenuMain_1 != null){ MenuMain_1_click = true; MenuMain_1.onclick = function(){ var tr = document.getElementsByTagName("tr"); if(MenuMain_1_click){ for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_1"){ tr[i].style.display=""; } } MenuMain_1_click = false; }else{ for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_1"){ tr[i].style.display="none"; } } MenuMain_1_click = true; } } } var tr = document.getElementsByTagName("tr"); for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_1"){ tr[i].style.display="none"; } } var MenuMain_2 = document.getElementById("MenuMain_2"); if(MenuMain_2 != null){ MenuMain_2_click = true; MenuMain_2.onclick = function(){ var tr = document.getElementsByTagName("tr"); if(MenuMain_2_click){ for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_2"){ tr[i].style.display=""; } } MenuMain_2_click = false; }else{ for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_2"){ tr[i].style.display="none"; } } MenuMain_2_click = true; } } } var tr = document.getElementsByTagName("tr"); for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_2"){ tr[i].style.display="none"; } } var MenuMain_3 = document.getElementById("MenuMain_3"); if(MenuMain_3 != null){ MenuMain_3_click = true; MenuMain_3.onclick = function(){ var tr = document.getElementsByTagName("tr"); if(MenuMain_3_click){ for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_3"){ tr[i].style.display=""; } } MenuMain_3_click = false; }else{ for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_3"){ tr[i].style.display="none"; } } MenuMain_3_click = true; } } } var tr = document.getElementsByTagName("tr"); for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_3"){ tr[i].style.display="none"; } } var MenuMain_4 = document.getElementById("MenuMain_4"); if(MenuMain_4 != null){ MenuMain_4_click = true; MenuMain_4.onclick = function(){ var tr = document.getElementsByTagName("tr"); if(MenuMain_4_click){ for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_4"){ tr[i].style.display=""; } } MenuMain_4_click = false; }else{ for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_4"){ tr[i].style.display="none"; } } MenuMain_4_click = true; } } } var tr = document.getElementsByTagName("tr"); for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_4"){ tr[i].style.display="none"; } } var MenuMain_5 = document.getElementById("MenuMain_5"); if(MenuMain_5 != null){ MenuMain_5_click = true; MenuMain_5.onclick = function(){ var tr = document.getElementsByTagName("tr"); if(MenuMain_5_click){ for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_5"){ tr[i].style.display=""; } } MenuMain_5_click = false; }else{ for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_5"){ tr[i].style.display="none"; } } MenuMain_5_click = true; } } } var tr = document.getElementsByTagName("tr"); for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_5"){ tr[i].style.display="none"; } } var MenuMain_6 = document.getElementById("MenuMain_6"); if(MenuMain_6 != null){ MenuMain_6_click = true; MenuMain_6.onclick = function(){ var tr = document.getElementsByTagName("tr"); if(MenuMain_6_click){ for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_6"){ tr[i].style.display=""; } } MenuMain_6_click = false; }else{ for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_6"){ tr[i].style.display="none"; } } MenuMain_6_click = true; } } } var tr = document.getElementsByTagName("tr"); for(var i = 0 ; i < tr.length ; i++){ if(tr[i].className == "MenuSub_6"){ tr[i].style.display="none"; } } var td = document.getElementsByTagName("td"); for(var i=0;i < td.length;i++){ if(td[i].className == "Menu_Text_Bg Menu_Text_WH"){ td[i].onmouseover = function(){this.className='Menu_Text_Bg_Over Menu_Text_WH';}; td[i].onmouseout = function(){this.className='Menu_Text_Bg Menu_Text_WH';}; } if(td[i].id != ""){ var Str_ID = new String(td[i].id); if (Str_ID.indexOf("Disaster",0) > -1){ td[i].onmouseover = function(){ var div = document.getElementsByTagName("div"); for(var j=0;j < div.length;j++){ if(div[j].id != ""){ var Div_ID = new String(div[j].id); var ck_ID = new String("Tab_" + k); if (Div_ID.indexOf("Tab_",0) > -1 ){ div[j].style.display = "none"; } } } var Div_ID = new String(this.id); Div_ID = Div_ID.replace(/Disaster/i,"Tab_"); document.getElementById(Div_ID).style.display = "";; this.className = "Disaster_Op2 Disaster_Txt"; } td[i].onmouseout = function(){ this.className = "Disaster_Op1 Disaster_Txt"; } } } } var div = document.getElementsByTagName("div"); var k = 0; for(var j=0;j < div.length;j++){ if(div[j].id != ""){ var Div_ID = new String(div[j].id); if (Div_ID.indexOf("Tab_",0) > -1){ k++; if(k!=1){ div[j].style.display = "none"; } } } } var Music_Html = document.getElementById("Music_Html"); if(Music_Html!= null){ Music_Html.style.display=""; } }