var Opera = (navigator.userAgent.indexOf('Opera') != -1); var MSIE = (navigator.userAgent.indexOf('MSIE') != -1); var Moz = (navigator.userAgent.indexOf('Gecko') != -1); if ((Opera && MSIE) || Opera) { var Opera = true; MSIE = false; } if (MSIE && !Opera) { MSIE = true; } var menuTag = false; var logoTag = false; var xCTimerID = false; var xTimerID = false; var xOffset = 150; var xDelay = 40; var xCloseDelay = 1000; var xStep = 0; var xSteps = Array( 0, 1, 3, 6, 10, 20, 30, 40, 50, 60, 70, 80, 91, 95, 97, 99, 100 ); var xStepCount = xSteps.length-1; function total_hide() { menuTag.style.width = 0; } function set_length(lPercent) { var len = document.body.offsetWidth - xOffset; var newWidth = Math.round(len * lPercent / 100); menuTag.style.width = newWidth + 'px'; } function bar_expand() { if(xTimerID) clearTimeout(xTimerID); if(xStep<=xStepCount) { set_length(xSteps[xStep]); xStep++; xTimerID = setTimeout('bar_expand()', xDelay); } if(xStep>xStepCount) xStep = xStepCount; } function bar_shrink() { if(xTimerID) clearTimeout(xTimerID); if(xStep>=0) { set_length(xSteps[xStep]); xStep--; xTimerID = setTimeout('bar_shrink()', xDelay); } if(xStep<0) xStep = 0; } function bar_hover() { if(xCTimerID) clearTimeout(xCTimerID); bar_expand(); } function bar_out() { xCTimerID = setTimeout('bar_shrink()', xCloseDelay); } document.write(''); var cnt = 0; var htimeout; function toggle_erasedinfo_bar(op) { enl = document.getElementById('erased_network_linkbar'); enbc = document.getElementById('erased_network_big_container'); if ((op == 1) && (enl.style.display != "inline")) { enbc.style.borderRightColor = "#000000"; enbc.style.width = "100%"; enl.style.display = "inline"; } else { enbc.style.borderRightColor = "#777777"; enbc.style.width = "120px"; enl.style.display = "none"; } } document.write('