function killErrors() 
{ 
return true; 
}   

function showdiv(s,h) {
document.getElementById(s).style.display="block";
document.getElementById(h).style.display="none";
}

function setbg(id,clas){
	parent.document.getElementById(id).className= clas;
}

var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;

function menu(obj,w,tip){
obj=$(obj);
var _i=document.createElement("div");
_i.className="menubg alpha";
if(!isIE){
_i.style.marginLeft='25px';
}
_i.style.width= w + 'px';
_i.style.display='none';
_i.style.position='absolute';
_i.style.fontSize='12px';
_i.innerHTML=tip;
obj.appendChild(_i);
obj.onmouseover=function(){_i.style.display='block';};
obj.onmouseout=function(){_i.style.display='none';};
delete _i;
}

function $(){
var elements=new Array();
for(var i=0;i<arguments.length;i++){
var element=arguments[i];
if(typeof element=='string')
element=document.getElementById(element);
if(arguments.length==1)
return element;
elements.push(element);
}
return elements;
}
window.onerror = killErrors;

function startScroll(){
	timer1=setInterval("doScroll()",3);
}

function doScroll(){
	window.scrollBy(0,4);
	step++;
	if(step>=line_height) {
		clearInterval(timer1);
		step=0
		cstep++;
		if(cstep>=lineNum){
			cstep=0;
			window.scrollTo(0,0);
		}
	}
}
function Stop(){
	bplay=false;
	clearInterval(timer2);
}
function Start(){
	if(bplay)return;
	bplay=true;
	timer2=setInterval("startScroll()",6000);
}

function shl(b,hl) {
	if (hl) { b.style.border="1px solid #00c" }
	else {b.style.border="1px solid silver"}
	if (navigator && navigator.userAgent.indexOf('Opera') != -1) {b.style.visibility = "hidden";b.style.visibility = "visible";}
}

function scrollit(){
topad.innerText=text.slice(0,i++)+"_";
if(i>text.length){i=0;setTimeout("scrollit()",3000);}
else setTimeout("scrollit()",delay);
}