// JavaScript Document

function togglediv(divid,buttonid)
	{
	if (document.getElementById(divid).style.display=="block")
		{
		document.getElementById(divid).style.display="none";
		document.getElementById(buttonid).src="/visualmedia/sitecomp/expand.png";
		}
		else
		{
		document.getElementById(divid).style.display="block";
		document.getElementById(buttonid).src="/visualmedia/sitecomp/collapse.png";
		}
	}



function toggleindexheight(divid,buttonid,divnativeheight)
	{
	if (document.getElementById(divid).style.height==divnativeheight)
		{
		document.getElementById(divid).style.height="5px";
		document.getElementById(buttonid).src="/visualmedia/sitecomp/expand.png";
		document.getElementById(divid).style.overflow="auto";
		
		}
		else
		{
		document.getElementById(divid).style.height=divnativeheight;
		document.getElementById(buttonid).src="/visualmedia/sitecomp/collapse.png";
		document.getElementById(divid).style.overflow="auto";
		}
	//alert("toggleindexheight called: " + document.getElementById(divid).style.height);
	}

function showtallindex()
	{
	document.getElementById('entryIndex').style.height="";
	document.getElementById('entryIndex').style.overflow="visible";
	
	//alert("toggleindexheight called: " + document.getElementById(divid).style.height);
	}

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

function showIntroText()
	{
	var introDivs=getElementsByClassName('introtext');	
	
	for(i=0; i<introDivs.length; i++)	
		{
		var strCurrentID=introDivs[i].id;
		document.getElementById(strCurrentID).style.display="block";
		}	
	}

function hideIntroText()
	{
	var introDivs=getElementsByClassName('introtext');	
	for(i=0; i<introDivs.length; i++)	
		{
		var strCurrentID=introDivs[i].id;
		document.getElementById(strCurrentID).style.display="none";
		}	
	}

