 SVGDoc=null
 foafNS="http://xmlns.com/foaf/0.1/"
 svgNS="http://www.w3.org/2000/svg";
 xlinkNS="http://www.w3.org/1999/xlink"

 function init(evt) {
  SVGDoc = evt.getTarget().getOwnerDocument();
	}

 function si(evt) {
  el=evt.getTarget()
  while (el && el.nodeName!='g') el=el.parentNode
  el2=SVGDoc.getElementById('imgs')
  while (el2.childNodes.length>0) el2.removeChild(el2.firstChild)
  imgs=el.getAttributeNS(foafNS,"depiction").split('!')
		for (var i=0;i<imgs.length-1;i++) {
   img=SVGDoc.createElementNS(svgNS,"image")
   img.setAttributeNS(null,"height",200)
   img.setAttributeNS(null,"width",300)
   img.setAttributeNS(null,"x",20)
   img.setAttributeNS(null,"y",20+202*i)
   img.setAttributeNS(xlinkNS,'href',imgs[i])
   el2.appendChild(img)
  }
 }

 function ri(evt) {
  el2=SVGDoc.getElementById('imgs')
 el2=SVGDoc.getElementById('imgs')
  while (el2.childNodes.length>0) el2.removeChild(el2.firstChild)
 }
