//fix background image flicker for IE 6 
try {document.execCommand("BackgroundImageCache", false, true);} catch(err) {}

// finds the first object of name divblock and hides og unhides it.
function showMoreContent(idname) {
	var divblock = document.getElementById(idname);			 
//ALERT(idname);	
//ALERT("Look");				
	if (!divblock) return
//ALERT("IS THERE");
  if(divblock.style.display!="none")
	{
		 		divblock.style.display='none';
	//		ALERT("HiDE");
				
	}
	else
	{
	 		divblock.style.display='block';
		//	ALERT("sHOW");
	}		
}

// Expand and collapse blocks of text. Name of the block is passed. Also moves the indicator image offset.
function toggleExpand(idname) {
	var divblock = document.getElementById(idname);
	
	var containingobj = event.srcElement;			
	 
	if (!divblock) return;
  if(divblock.style.display!="none")
	{
		 		divblock.style.display='none';
				if (containingobj.style)
				{
					 containingobj.style.backgroundPosition='0% 0%';
				}
	}
	else
	{
	 		divblock.style.display='block';
  		if (containingobj.style)
			{
			   containingobj.style.backgroundPosition='0% -15px';
			}
	}		
}

function toggleUlOn() {
	var containingobj = event.srcElement;			 
	containingobj.style.textDecoration='underline';
}
function toggleUlOff() {
	var containingobj = event.srcElement;			 
	containingobj.style.textDecoration='none';
}
