function initPage()
{
	//close lists
	if(document.getElementById('publishing-list') != null)
	{
		document.getElementById('publishing-list').style.display='none';
	}
	if(document.getElementById('biographical-list') != null)
	{
		document.getElementById('biographical-list').style.display='none';
	}
	//add arrows to list and fix links
	if(document.getElementById('publishing-link') != null)
	{
		document.getElementById('publishing-link').innerHTML = ' <img src="http://www.leeds.ac.uk/library/spcoll/leedspoetry/images/_down.gif" id="publishing-img"> ' + document.getElementById('publishing-link').innerHTML;
		document.getElementById('publishing-link').href = 'javascript:showlist(\'publishing-list\',\'publishing-img\');';
	}
	if(document.getElementById('biographical-link') != null)
	{
		document.getElementById('biographical-link').innerHTML = ' <img src="http://www.leeds.ac.uk/library/spcoll/leedspoetry/images/_down.gif" id="biographical-img"> ' + document.getElementById('biographical-link').innerHTML;
		document.getElementById('biographical-link').href = 'javascript:showlist(\'biographical-list\',\'biographical-img\');';
	}
		
}

function showlist(listid,imgid)
{
if(document.getElementById){ 
	if(document.getElementById(listid) != null)
  	{	if(document.getElementById(listid).style.display=='none')
			document.getElementById(listid).style.display='';
		else 
     		document.getElementById(listid).style.display='none';
	}  
	if(document.getElementById(imgid) != null)
	{	if(document.getElementById(imgid).src=='http://www.leeds.ac.uk/library/spcoll/leedspoetry/images/_up.gif')		
			document.getElementById(imgid).src='http://www.leeds.ac.uk/library/spcoll/leedspoetry/images/_down.gif';
		else 
			document.getElementById(imgid).src='http://www.leeds.ac.uk/library/spcoll/leedspoetry/images/_up.gif';
				
	}
    else
	{	return false;//no object found 
  	}
}else{ 
if(eval(id)){ 
  if(typeof eval(listid).style == "[object]"){ 
    if(eval(listid).style.display=='') 
      eval(listid).style.display='block'; 
    else 
     eval(listid).style.display=''; 
  }; 
}; 
};
}
