function showprop(id){
	var i=id.rel;
	if (document.getElementById){ 
		obj = document.getElementById("p"+i); 
		if (obj.style.display == "none"){ 
			obj.style.display = ""; 
		} else { 
			obj.style.display = "none";
		} 
	} 
};

function hideprop(id){
	var i=id.rel;
	if (document.getElementById){ 
		obj = document.getElementById("p"+i); 
		obj.style.display = "none";
	} 
};

function prepareGallery(){
  if( document.getElementById &&
      document.getElementsByTagName ){
    if( document.getElementById( 'newproplist' ) ){
      var gallery = document.getElementById( 'newproplist' );
      var links = gallery.getElementsByTagName( 'a' );
      for( var i=0; i < links.length; i++ ){
        links[i].onmouseover = function(){
          return showprop(this);
        };
        links[i].onmouseout = function(){
          return hideprop(this);
        };
        links[i].onclick = function(){
          return hideprop(this);
        };
      }
    }
  }
};

window.onload = prepareGallery;
