function switchImage(element,dimensions,imageName) {
    $(element).src = "/getdynamicimage.aspx?path=" + escape(imageName) + "&d=" + dimensions;
}