

 var menu_height;var step=10;if(typeof max_menu_height=='undefined')var max_menu_height=640;else if(max_menu_height=="")max_menu_height=640;if(typeof hamburger_menu_num=='undefined')var hamburger_menu_num=1;else if((hamburger_menu_num=="")||(hamburger_menu_num==0))hamburger_menu_num=1;var timer;var interval=5;var menu_div="menu_div"+hamburger_menu_num;function HideMenu(){if(is_mobile){document.getElementById(menu_div).style.height="0px";document.getElementById(menu_div).style.overflow="hidden"}}function ShowHideMobileMenu(){var img_src=document.getElementById("show_hide_mobile_menu_img").src;if(img_src.indexOf("menu-icon.png")>-1){document.getElementById("show_hide_mobile_menu_img").src=image_dir+"menu-close-icon.png";menu_height=0;timer=setInterval(ExpandMenu,interval)}else{document.getElementById("show_hide_mobile_menu_img").src=image_dir+"menu-icon.png";menu_height=max_menu_height;timer=setInterval(CollapseMenu,interval)}}function ExpandMenu(){if(menu_height<max_menu_height){menu_height=menu_height+step;document.getElementById(menu_div).style.height=menu_height+"px"}else{clearInterval(timer);document.getElementById(menu_div).style.overflow="visible"}}function CollapseMenu(){if(menu_height==max_menu_height)document.getElementById(menu_div).style.overflow="hidden";if(menu_height>0){menu_height=menu_height-step;document.getElementById(menu_div).style.height=menu_height+"px"}else{clearInterval(timer);document.getElementById(menu_div).style.height="0px"}}