/* - ++resource++iz.imageglamourizer.js - */
// http://www.bankenverband.de/portal_javascripts/++resource++iz.imageglamourizer.js?original=1
jQuery(document).ready(function(){var MAX=128;var count=0;jQuery('img.image-glamourized').each(function(){var width=this.width;var height=this.height;var base=width;if(height>base){base=height}
var factor=MAX/base;this.width=Math.abs(width * factor);this.height=Math.abs(height * factor);var id="image-glamourized-"+count.toString();count++;jQuery(this).attr({rel:"#"+id});var overlayheight=this.height;var template="<div class=\"image_glamourized_overlay\" id=\"";template+=id+"\"";template+="style=\"width:"+this.width.toString+"px;";template+="height:"+overlayheight.toString+"px;\">";template+="<img src=\""+this.src+"\" />";template+="<br /><div class=\"headline\">";template+=jQuery(this).attr('alt')+"</div>";template+="</div>";jQuery('#content').append(template)});jQuery('img[rel]').overlay()});
