function scr_w1() {
var tab,pref;
if(document.all){
pref="";
} else if (navigator.appName == "Opera")
{
pref="o";
}
 else {
if(document.layers){
pref="n4";
} else {
pref="n";
}
}
if (screen.width<641) {
tab=pref+"styl.css";
}
else if (screen.width<801 && screen.width>640) {
tab=pref+"styl1.css";
}
else {
tab=pref+"styl2.css";
}
document.write('<link rel="stylesheet" type="text/css" href="nilc/'+tab+'">');
}

function mOver(which){
which.style.background='#F4EDE3';
}
function mOut(which){
which.style.background='#E9E2D8';
}
function opUrl(){
var w=screen.width;
var h=screen.height;
Win=window.open('http://194.226.24.58/bbk/treeuse.php','มมส','width='+w+',height='+h+',top=0,left=0,menubar=no,resizable=yes,toolbar=no,location=no,scrollbars=yes,directories=no,status=no');
}
function Show(id1,id2)
{
	if (document.getElementById(id1).style.display=='none')
	{
		document.getElementById(id1).style.display='block';
		document.getElementById(id2).className='imi1';
	}
	else
	{
		document.getElementById(id1).style.display='none';
		document.getElementById(id2).className='imi';
	}
}
function loader()
{
  preload=new Image(9,15);
  preload.src="plus.gif";
  preload.src="minus.gif";
 }
 function op(url, w, h){
 var Win=window.open(url,'','width='+w+',height='+h+',top=10,left=10,menubar=no,resizable=no,toolbar=no,location=no,scrollbars=no,directories=no,status=no');
 Win.document.write('<html><body style="margin: 0px; padding: 0px"><img border=0 src="'+url+'" width='+w+' height='+h+' top=0 left=0></body></html>');
 Win.document.close();
 }
var isIE=(navigator.userAgent.indexOf('MSIE')!=-1)&&(!window.opera)?true:false;
var curs=isIE?'hand':'pointer';
function setCursor(obj)
{
	obj.style.cursor=curs;
	obj.style.background='#fef9ef';
	obj.style.textDecoration='underline';
}
function delCursor(obj)
{
	obj.style.background='#fcf6ec';
	obj.style.textDecoration='none';
}
