var inc = 0;
function loadPage()
{
	countElemenetByClass('article');	
}

function countElementByClass(classname){
	var alltags=document.all? document.all : document.getElementsByTagName("*")
	for (i=0; i<alltags.length; i++){
		if (alltags[i].className==classname)
		{
			alltags[i].parentNode.style.display = "none";
			//alltags[i].style.height = "1px";
			//alltags[i].style.visibility = "hidden";
			
			inc++;
		}
	}
}


function toggleText(divId)
{
	if ( divId <= inc )
	{
		for ( i = 1; i <= inc; i++ )
		{
			itemStyle 			= document.getElementById("article" + i).parentNode.style;
			itemStyle.display 	= ( ( i != divId ) ? "none" 	: "block" );
			//alert("i: "+ i + " inc: " + inc + " itemStyle.display: " + itemStyle.display); 
			//itemStyle.height 	= ( ( i != divId ) ? "1px" 		: "" );
			//itemStyle.visibility	= ( ( i != divId ) ? "hidden" 	: "visible" );
			
		}
	}
}