function toggle(id) {
    
    span = id;
    img  = "img_" + id;

    spanElement = document.getElementById(span);
    imgElement  = document.getElementById(img);

    if (spanElement){
    if (spanElement.style.display == 'none'){
    spanElement.style.display = 'block'
    imgElement.src = "/bookmarks/images/close.gif";
    }else{
		// you may need to adjust the path - i added a slashe and it seems to work
    spanElement.style.display = 'none'
    imgElement.src = "/bookmarks/images/open.gif";
    }
  }             
}