$(function(){if($("div.image").length>0){var a=0;$("div#content div.image").each(function(){a+=$(this).width()+parseInt($(this).css("margin-right"))});$("div#content").width(a)}$("div.image a:not(.pad a)").fancybox({zoomSpeedIn:0,zoomSpeedOut:0,overlayShow:false,imageScale:true})});