function on(it){it.style.color="#666666";}
function off(it){it.style.color="#222222";}

function imover(im){im.filters.Glow.Enabled=true;}
function imout(im){im.filters.Glow.Enabled=false;}

function sol(n){
 if(top.CtrlPress) window.open('/online.php?room='+n,'onlines','width=400,height=500,toolbar=no,location=no,scrollbars=yes,resizable=yes');
  else top.changeloc('/builds.php?room='+n);
}

function Down(){top.CtrlPress=window.event.ctrlKey;}

function view_hide(it){
 if(it.style.display=='none'){
  it.style.display='';
 }
 else{
  it.style.display='none';
 }
}

function qw(title,txt){
 ml2.innerHTML='<table style="background-color:#D4AD86;BORDER-BOTTOM:#666666 1px solid;BORDER-TOP: #666666 1px solid;BORDER-LEFT:#666666 1px solid;BORDER-RIGHT: #666666 1px solid;cursor:default" border=0 cellspacing=0 cellpadding=2><thead style="background-color:#E58433;font-weight:bold;vertical-align:middle;"><tr><td align=center><B>'+title+'</td><td width=40 align=right><BIG style="cursor:hand" onclick="qwclose();">x</BIG></td></tr></thead><tbody><tr><td>'+
 '<table align=center width=100%><tr><td style="FONT-FAMILY: Verdana;">'+txt+'</td></tr></table>'+
 '</td></tr></tbody></table>';
 ml2.style.visibility='visible';
 ml2.style.left=document.body.scrollLeft+250;
 ml2.style.top=document.body.scrollTop+50;
}

function qwclose(){
 ml2.style.visibility='hidden';
}

function spl(s){
 var z=s.split("<BR>");
 var x=80;
 for(j=0;j<z.length;j++){
  var line=z[j];
  var a=line.split(" ");
  for(i=0;i<a.length;i++){
   r=""; w=a[i];
   l=Math.floor(w.length/x)+1;
   if(w.length>x){
    for(t=0;t<l;t++){
     q=w.substring(x*t,x*t+x);
     if(q.length>x) r+=q.substring(0,x)+" "+q.substring(x,q.length);
      else r+=q+" ";
    }
   }
   else r+=w;
   a[i]=r;
  }
  z[j]=a.join(" ");
 }
 document.write(z.join("<BR>"));
}
