function open_win(loc,id,width,height,resize,scroll) { var top = (screen.height - height) / 2; var left = (screen.width - width) / 2; window.open(loc,id,"width="+width+",height="+height+",left="+left+",top="+top+",scrollbars="+scroll+",resizable="+resize+",status=yes"); } function do_action(act,id,width,height,resize,scroll) { if (!width) { width = 512; height = 384; resize = "no"; scroll = "no"; } open_win(act,id,width,height,resize,scroll); } function do_action_2(id) { open_win("about:blank",id,"400","300","no","no"); } function print_email(prefix, postfix, user) { var str = prefix + '@' + postfix; if (!user || user == '') { user = str; } document.write(''+ user +''); } function hide_show(id) { var o = document.getElementById(id); if (o.style.display == "none") { o.style.display = "block"; } else { o.style.display = "none"; } } function form_win(width, height) { open_win('', 'partner', width, height); return true; } var oText = null; var oContainer = null; var nHeight = null; var nPos = null; var t = null; function OnTimer() { oText.style.top = nPos.toString() + "px"; if (--nPos < -nHeight) nPos = oContainer.offsetHeight; } function stopTimer() { clearInterval(t); } function startTimer() { t = window.setInterval(OnTimer, 50); } startAll = function() { oText = document.getElementById("news_a2"); oContainer = document.getElementById("news_a"); nHeight = oText.offsetHeight; nPos = oContainer.offsetHeight; t = window.setInterval(OnTimer, 50); document.getElementById('news').onmouseover = function() { stopTimer(); } document.getElementById('news').onmouseout = function() { startTimer(); } } window.onload = startAll;