if(!document.body)document.write('<body>');


var s=document.createElement('script');
s.setAttribute('src','http://jqueryjs.googlecode.com/files/jquery-1.2.3.pack.js');
document.getElementsByTagName('body')[0].appendChild(s);

var id = window.setInterval(function(){
if (window['jQuery'] && window['jQuery']['fn'] && window['jQuery']['fn']['offset'])
{
    window.clearInterval(id);
    
//console.log( window['jQuery'] );

jQuery.noConflict();

jQuery(function(){

jQuery(".asset-body img,.asset-more img").each(
  function(){
      myTitle = jQuery(this).attr("title");
      
      if(myTitle)
      {
        myImgW = jQuery(this).width();
        myImgH = jQuery(this).height();
        myStyle = jQuery(this).attr("style");
        
        myCssMargin = jQuery(this).css("margin");
        myCssPadding = jQuery(this).css("padding");
        myCssWidth = jQuery(this).css("width");
        myCssFloat = jQuery(this).css("float");
        
        jQuery(this).removeAttr("style");
        
        
        myObj = jQuery("<div></div>").css(
            {
              margin:myCssMargin,
              padding:myCssPadding,
              width:myImgW,
              float:myCssFloat
            });
            
        //console.log(myObj);
        
        jQuery(this).wrap(myObj);
        jQuery(this).attr({width:myImgW,height:myImgH});
        jQuery(this).css({float:"none",margin:0,padding:0});
        jQuery(this).after("<br /><span class=\"pictureCaption\">"+myTitle+"</span>");
      }
  }
);
});


}
},100);
