$(document).ready(function(){

//$(".imagesstore a").lightBox();
//$(".gallery a[href$=.jpg]:has(img)").lightBox();
$("a[href$=.jpg]:has(img)").lightBox();



$("table.tcost").removeAttr("width");
$("table.tcost").removeAttr("style");
$("table.tcost").removeAttr("cellpadding");
$("table.tcost").removeAttr("border");
$("table.tcost").removeAttr("cellspacing");
$("table.tcost td").removeAttr("style");
$("table.tcost td").removeAttr("valign");
$("table.tcost td").removeAttr("align");
$("table.tcost td").addClass("cost");

$("table.tcost td").filter(function(){
                    return $(this).text().search("[0-9]{3,5}")!==false;
                    })
                    .addClass("costth");

$("table.tcost").width("100%");
$("table.tcost").each(function(){
 var o = $(this);
 var fs = 95;
 while( fs > 50 && $(o).width()>$(o).parent().width()){
  $("th,td",o).css("font-size",fs+"%");
  fs = fs - 5;
 }
});

});
