window.onload=searchtext;var timeout=2000;var submenu=0;var closetimer=0;function showsubmenu(a){cancelclosetime();if(submenu){submenu.style.visibility="hidden"}submenu=document.getElementById(a);submenu.style.visibility="visible"}function closesubmenu(){if(submenu){submenu.style.visibility="hidden"}}function closetime(){closetimer=window.setTimeout(closesubmenu,timeout)}function cancelclosetime(){if(closetimer){window.clearTimeout(closetimer);closetimer=null}}function faq_show_answer(a){if(document.getElementById(a).style.display=="none"){document.getElementById(a).style.display="block"}else{document.getElementById(a).style.display="none"}}function showhideplayerstuff(a){if(document.getElementById(a).style.display=="none"){document.getElementById(a).style.display="block"}else{document.getElementById(a).style.display="none"}}function changeplayerbottom(){if(document.getElementById("vp_page_under_player_container").style.display=="none"){document.getElementById("bottom_video_container_open").style.display="none";document.getElementById("bottom_video_container_closed").style.display="block"}else{document.getElementById("bottom_video_container_closed").style.display="none";document.getElementById("bottom_video_container_open").style.display="block"}}function showdiv(a){document.getElementById(a).style.display="block"}function hidediv(a){document.getElementById(a).style.display="none"}function backcolorgray(a){document.getElementById(a).style.backgroundColor="#D4D4D4"}function backcolorwhite(a){document.getElementById(a).style.backgroundColor="#FFFFFF"}function removeunderline(a){document.getElementById(a).style.textDecoration="none"}function underline(a){document.getElementById(a).style.textDecoration="underline"}function trim(a){a=a.replace(/(^\s*)|(\s*$)/gi,"");a=a.replace(/[ ]{2,}/gi," ");a=a.replace(/\n /,"\n");return a}function showhideitem(a){if(document.getElementById(a).style.display=="none"){document.getElementById(a).style.display="block"}else{document.getElementById(a).style.display="none"}}function getcookie(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return""}function searchtext(){if(document.forms.pub_search_form.elements.pub_search_input.value==""){document.forms.pub_search_form.elements.pub_search_input.style.color="#999999";document.forms.pub_search_form.elements.pub_search_input.value="Search for Tutorials Here"}}function searchinputnorm(){if(document.forms.pub_search_form.elements.pub_search_input.value=="Search for Tutorials Here"){document.forms.pub_search_form.elements.pub_search_input.style.color="#000000";document.forms.pub_search_form.elements.pub_search_input.value=""}};
