function Change(a,b){document.images[a].src=b}function Change_id(a,b){document.getElementById(a).src=b}var tmpid,am,let,count,menu_state="closed";function tree(a,b){if(menu_state=="closed"){menu_state="opening";count=1;am=b;let=a;show2()}if(menu_state=="opened"){menu_state="closing";count=1;am=b;let=a;show2()}return false}
function show2(){if(count<am){tmpid=""+let+count;setTimeout("show(tmpid, 1)",100);count++}else if(count==am){tmpid=""+let+count;if(menu_state=="opening")menu_state="opened";if(menu_state=="closing")menu_state="closed";setTimeout("show(tmpid, 0)",100)}}function show(a,b){a=document.getElementById(a);a.style.display=a.style.display=="block"?"none":"block";b!=0&&show2()}function mOver(){var a=window.event.srcElement;if(a.name=="menu1"){tree("c",4);Change(10,"media\\hyunday\\img\\m1_a.png")}}
function mOut(){var a=window.event.toElement,b=window.event.fromElement;if(a.name!="menu1"&&menu_state=="opened"){tree("c",4);Change(10,"media\\hyunday\\img\\m1.png")}}function changeBg(a,b){document.getElementById(a).style.backgroundImage="url('/media/hyunday/img/"+b+"')"}function changeBg2(a,b){document.getElementById(a).style.backgroundImage="url('/media/hyunday/img/"+b+"')"}function init(a){if(a=document.getElementById(a)){a.state=0;a.timer=null;a.maxVert=a.scrollWidth-a.offsetWidth}}
function scroll_down(a,b){var c=document.getElementById(a);c.maxVert||init(a);if(b==undefined)c.state=1;if(c.maxVert>c.scrollLeft&&c.state==1){c.scrollLeft+=10;c.timer=setTimeout("scroll_down('"+a+"',true)",100)}}function scroll_up(a,b){var c=document.getElementById(a);c.maxVert||init(a);if(b==undefined)c.state=-1;if(c.scrollLeft>0&&c.state==-1){c.scrollLeft=c.scrollLeft>10?c.scrollLeft-10:0;c.timer=setTimeout("scroll_up('"+a+"',true)",100)}}
function scroll_stop(a){if(a=document.getElementById(a)){a.timer&&clearTimeout(a.timer);a.state=0}};
function changeBgMain(pic,menu_id,menu_pic){}
