function showPic(whichpic,uid) {
  var source = whichpic.getAttribute("href");
  var rel = whichpic.getAttribute("rel");
  var placeholder = document.getElementById("placeholder_"+uid);
  placeholder.setAttribute("src",source);

  //DESCRIPTION
  var text = whichpic.getAttribute("title");
  var lightbox = document.getElementById("lightbox_"+uid);
  var description = document.getElementById("description_"+uid);
  
  lightbox.setAttribute("href",rel);
  if(text){
	  description.firstChild.nodeValue = text;
	  lightbox.setAttribute("title",text);
  }
}
/*
function demoGallery(){
	var source = whichpic.getAttribute("href");
    var options = {
        continuous: true
    };

    var img = {
        player:     'img',
        content:    source,
        options:    options
    };

    Shadowbox.open([img]);
}
*/
/*
function init(){
	var thumbs = document.getElementById('mia_thumbs');
	alert(thumbs.childNodes[0].nodeValue);
}

window.onload = init;
*/
//Shadowbox.init();
