PictureThis.Ajax = function(){

  return {
	
    createChildElement: function (src, $elementType, $attributes,$inner)
    {
        var el = document.createElement($elementType);
        for(var i in $attributes){
            if(i == "c"){
                //el.setAttribute("class",$attributes[i]);
                el.className = $attributes[i];
            }else{
                el.setAttribute(i,$attributes[i]);
            }
        }
        if($inner) el.innerHTML = $inner;
        src.appendChild(el);
        return el;
    },
    
    toggleElement: function (elementId, display)
    {
      var el = document.getElementById(elementId);
			try{
      	el.style.display = display;
			}
			catch(err){}
    }  
  }
}();

function exif_hide() {
  PictureThis.Ajax.toggleElement('exif_link','block');
  PictureThis.Ajax.toggleElement('exif','none');  
}  

function exif_show() {
  PictureThis.Ajax.toggleElement('exif_link','none');
  PictureThis.Ajax.toggleElement('exif','block');  
}

YAHOO.util.Event.onAvailable('exif', exif_hide);