define([],function(){var t,i;return $.exists=function(t){"use strict";return jQuery(t).length>0},i=function(){$.exists(".container_aspectratio")&&$(".container_aspectratio").each(function(){var t,i=$(this),a=$(window).width(),e=$(this).attr("data-aspecttype"),h=$(this).attr("data-aspectelement");switch(t=$(window).width()<=980?parseFloat($(this).attr("data-wap-aspectratio")):parseFloat($(this).attr("data-aspectratio")),e){case"winwidth_height_auto":i.height(a/t-2);break;case"winwidth_width_auto":i.width(a/t);break;case"thiswidth_height_auto":i.height(i.width()/t);break;case"winwidth_incon_imgwidth_auto":i.find("img").each(function(){var t=parseFloat($(this).attr("data-aspectratio"));$(this).width(a/t)});break;case"winwidth_incon_elementheight_auto":i.find(h).each(function(){$(this).height(a/t)});break;default:i.height(a/t-2)}})},t=function(){i()},{initModule:t}});