<!--

var DHTML = (document.getElementById || document.all || document.layers);

function getObj(name)
{
  if (document.getElementById)
  {
 	this.obj = document.getElementById(name);
	this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
	this.obj = document.all[name];
	this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
   	this.style = document.layers[name];
  }
}


$(document).ready(function(){
     
    $(".div_html img").each(function (i) {
       var img_href = $(this).attr("src");
       
       if($(this).attr("alt")){
         var title = $(this).attr("alt");
       }else{
         var title = '';
       }

       if (img_href.indexOf('content/images/')!=-1 && img_href.indexOf('content/images/small')==-1){
         $(this).wrap('<a href="'+img_href+'" class="lightbox" title="'+title+'"></a>');
       }else{
//         $(this).wrap('<div style="height:200px; width:130px; float:left; padding:20px;"><center><b></b><div style="text-align:center;">'+title+'</div></center></div>');
       }
     });
     
     $('.div_html a[class=lightbox]').lightBox();
     $('.div_item_pictures a[class=lightbox]').lightBox();

})
-->

