var db=document.getElementById?1:0;
var fs=11;

function init()
{
	cbtxt('title');
}

window.onerror=eh;
window.onload=init;

function cbtxt(id)
{
	var ih=(db)?((window.opera&&!document.createComment)?0:1):0;
	var ie4=(document.all&&!db&&!window.opera)?1:0;
	if (!(ih||ie4)) return;
	var idobj=ih?document.getElementById(id):document.all[id];
	var txt=idobj.innerHTML;
	var txtlen=txt.length;
	var r=80,b=80,g=80,i=0,os='';
	var rd=Math.round(150/txtlen);
	var gd=Math.round(150/txtlen);
	var bd=Math.round(150/txtlen);

	for (;i<txtlen;i++)
	{
		r+=rd;
		g+=gd;
		b+=bd;
		os+='<span style="color:rgb('+r+','+g+','+b+')">'+txt.charAt(i)+'</span>';
	}

	idobj.innerHTML=os;
}

function menusizer(n)
{
	if (!db) return;
	(n)?(fs<16)?fs+=1:null:(fs>9)?fs-=1:null;
	document.getElementById('menu').style.fontSize=fs+'px';
}

function winpop(u,n,w,h,b,s)
{
	if (window.opera&&document.createComment) return;
	var sb=s?',scrollbars':'';
	var nbw=b?',toolbar,location,status,menubar':'';
	var opts=',width='+w+',height='+h+',resizable'+sb+nbw;
	var pop=window.open(u,n,opts);
	pop.focus();
	return false;
}

function eh()
{
	return true;
}
