function reloadlink(obj)
{	
	var rows = obj.parentElement.parentElement;
	var cell = obj.parentElement;
	for(var i=0; i < rows.cells.length; i++)
	{
		rows.cells[i].all[0].attributes[3].value = 'b6 LinkWhite ww8';
	}
	cell.all[0].attributes[3].value = 'y8 LinkWhite';
}

function reloadImageLink(obj)
{	
	var rows = obj.parentElement.parentElement;
	var cell = obj.parentElement;
	for(var i=1; i < rows.cells.length; i+=2)
	{
		rows.cells[i].all[0].src = 'images/tab_splitter_none.gif';
	}
	for(var i=0; i < rows.cells.length; i+=2)
	{
		rows.cells[i].bgColor = '8E9295';
		rows.cells[i].all[0].attributes[3].value = 'b6 LinkWhite ww8';
	}
	
	cell.bgColor = '666666';
	cell.all[0].attributes[3].value = 'y8 LinkWhite';
	if(document.all[cell.sourceIndex-1].src != 'undefined')
		document.all[cell.sourceIndex-1].src = 'images/tab_splitter_on.gif';	
	if(document.all[cell.sourceIndex+3].src != 'undefined' && cell.sourceIndex != rows.cells[rows.cells.length - 1].sourceIndex)
		document.all[cell.sourceIndex+3].src = 'images/tab_splitter_off.gif';
		
	
}


function InitMoveMenu(obj,shadow_width)
{		
	if(!obj.tag)
	{
		obj.setAttribute('movediv',false);
		obj.setAttribute('temp',0);
		obj.setAttribute('limit',obj.style.width.replace("px","") - shadow_width.replace("px","") - 5);
		obj.setAttribute('tag',true);
	}		
}

function setmove(obj)
{	
	obj.moveit=true;	
}

function clearmove(obj)
{	
	obj.moveit=false;
}

function turnleft(obj)
{
	var objstr='document.all[\''+obj.id+'\']';	
	if(obj.moveit==true&&obj.temp < 0)
	{
		obj.temp=obj.temp+2;
		obj.style.left=obj.temp;
		setTimeout('turnleft('+objstr+')',20);
	}	
	
}

function turnleftnow(obj)
{
	obj.temp=0
	obj.movetbl.style.left=obj.temp;
}

function turnright(obj)
{
	var objstr='document.all[\''+obj.id+'\']';
	if(obj.moveit==true&&obj.temp > - obj.limit)
	{		
		obj.temp=obj.temp-2;		
		obj.style.left=obj.temp;	
		setTimeout('turnright('+objstr+')',20);		
	}	
	
}

function turnrightnow(obj)
{
	obj.temp=obj.limit;
	obj.style.left=temp;
}

var flashspeed=1000; //变化间隔时间（毫秒）
function initTile(ctext){
	var message=ctext;	
	var n=0
	document.write('<table border="0" cellpadding="0" cellspacing="0" onmouseover="this.style.cursor=\'hand\'" onclick="window.open(\'freegame.htm\',\'免费游戏\',\'width=476,height=266,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no\')"><tr>');
	if (document.all){			
		for (m=0;m<message.length;m++)
			document.write('<td id="neonlight" style="color:#FFFFFF;filter:Glow(enabled:false,Color=blue,Strength=5)">'+message.charAt(m)+'</td>');					
	}
	else
		document.write(message)
	document.write('</tr></table>');	
}

function neon(n){	
	var tempref=document.all.neonlight;	
	for(m=0;m<tempref.length;m++)
	{	
		tempref[m].style.color='#0000FF';		
		//tempref[m].filters[0].Color='blue';	
		//tempref[m].filters[0].Strength=5;	
	}
	if(tempref[n])
	{	
		tempref[n].style.color='#FF0000';		
		//tempref[n].filters[0].Color='red';	
		//tempref[n].filters[0].Strength=5;		
	}
	if (n<tempref.length-1)
		n++;
	else			
		n=0;	
	setTimeout("neon("+n+")",flashspeed); //循环前的间隔时间（毫秒），最好与变色间隔时间相同
}

function chcolor(){
	if (document.all)
		neon(0);
}
