/*
 * Catherine Gericke JS
 * Copyright: anti-design.com GmbH & Co. KG 2009
 * Author: Lars Lorenz
 * Version: $Id: common.js,v 1.3 2009/05/13 22:29:52 lars Exp $
 */

function setWorkWidth(){
  var totalWidth = 0;
  var margin = 5;
  if ($(".page_7 img").length > 0) {
    margin = 25;
  }
  $("#Work img").each(function() {
    totalWidth += this.width;
    totalWidth += margin;
  });
  $("#Work").width(totalWidth);
}

$(window).load(function(){
  if ($("#Work img").length > 0) {
    setWorkWidth();
  }
});

