var i=0;
var kj=1;
var is_max=1;
var currentpos,timer;
var suspendcode


function sc(){clearInterval(timer);}
function initialize(){timer=setInterval("scrollwindow()",1);}
function scrollwindow(){currentpos=document.body.scrollTop;window.scroll(0,++currentpos);}
document.onmousedown=sc
document.ondblclick=initialize
function New(para_URL){var URL=new String(para_URL);window.open(URL,'','resizable,scrollbars')}
function hao(para_URL){var URL=new String(para_URL);window.open(URL,'friend','width,height=504')}
function min_yuzi(){if(kj==1){parent.main_frame.rows='0,*';}}
function copyText(obj) {var rng = document.body.createTextRange();rng.moveToElementText(obj);rng.select();rng.execCommand('Copy');}function del(){if(confirm("您确定要删除该帖子吗?")){return true;}return false;}
function img(){if(top==self){}else{parent.main_frame.rows='*,20';parent.yuzi_frame.kj=1}}
function off(){if(top==self){window.close()}else{parent.main_frame.rows='*,0';parent.yuzi_frame.kj=1}}

suspendcode="<DIV id=shut style='right:13px;POSITION:absolute;TOP:1px;'><a href='../index_main.htm' title='关闭本页，回到首页'><img border=0 src='../images/red_close.gif'></a></div>"
document.write(suspendcode);
lastScrollY=0;
function heartBeat(){
diffY=document.body.scrollTop;
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.all.shut.style.pixelTop+=percent;
lastScrollY=lastScrollY+percent;
}
window.setInterval("heartBeat()",1);
//added for hide right/left_menu
document.oncontextmenu=new Function("return false;"); 
document.onselectstart=new Function("event.returnValue=false");

function show_tips(sid)
{
whichEl = eval("tips" + sid);
if (whichEl.style.display == "none")
{
eval("tips" + sid + ".style.display=\"\";");
}
else
{
eval("tips" + sid + ".style.display=\"none\";");
}
}

function hide_tips(sid)
{
whichEl = eval("tips" + sid);
if (whichEl.style.display == "none")
{
//eval("submenu" + sid + ".style.display=\"\";");
}
else
{
///eval("submenu" + sid + ".style.display=\"none\";");
}
}