if(window.HTMLElement){
HTMLElement.prototype.__defineGetter__
(
"innerText",
function ()
{
var anyString = "";

var childS = this.childNodes;
	for(var i=0; i<childS.length; i++)
	{
		if(childS[i].nodeType==1)
			anyString += childS[i].tagName=="BR" ? '\n' : childS[i].innerText;
		else if(childS[i].nodeType==3)
			anyString += childS[i].nodeValue;
	}
	return anyString;
}
); 
}

var vCurTab = "c4";
function rd_clk(c)
{

	for(var i=1; i<=4; i++){
		if(c==i){
			document.getElementById("c"+i).className = 'top_chan1';		
			document.getElementById("cc"+i).style.display = 'block';
		}else{
			document.getElementById("c"+i).className = 'top_chan';		
			document.getElementById("cc"+i).style.display = 'none';
		}
	}

/*

	if(c == vCurTab)
		return;
		
	var vAct = document.getElementById(vCurTab);
	var vNewAct = document.getElementById(c);
	if(vNewAct != null && vAct != null)
	{
		vNewAct.className = 'top_chan1';
		vAct.className = 'top_chan';
	}
	

	var vActMore = document.getElementById('c'+vCurTab);
	var vNewActMore = document.getElementById('c'+c);
	if(vActMore != null && vNewActMore != null)
	{
		vNewActMore.style.display = 'block';
		vActMore.style.display = 'none';
	}	
	
	vCurTab = c;	*/
}

if(window.HTMLElement){
HTMLElement.prototype.__defineGetter__
(
"innerText",
function ()
{
var anyString = "";

var childS = this.childNodes;
	for(var i=0; i<childS.length; i++)
	{
		if(childS[i].nodeType==1)
			anyString += childS[i].tagName=="BR" ? '\n' : childS[i].innerText;
		else if(childS[i].nodeType==3)
			anyString += childS[i].nodeValue;
	}
	return anyString;
}
); 
}

var vCurTab2 = "d1";
function rd_clk2(d)
{

	if(d == vCurTab2)
		return;
		
	var vAct2 = document.getElementById(vCurTab2);
	var vNewAct2 = document.getElementById(d);
	if(vNewAct2 != null && vAct2 != null)
	{
		vNewAct2.className = 'top_chan1';
		vAct2.className = 'top_chan';
	}
	

	var vActMore2 = document.getElementById('d'+vCurTab2);
	var vNewActMore2 = document.getElementById('d'+d);
	if(vActMore2 != null && vNewActMore2 != null)
	{
		vNewActMore2.style.display = 'block';
		vActMore2.style.display = 'none';
	}	
	
	vCurTab2 = d;	
}