").animate({bottom:"-30px"},"fast",function(){a.fadeOut("fast",function(){a.find("iframe").prop("src",""),a.remove(),cWindowHelper.unhideIframe(),cWindowHelper.stop(),cWindowHelper.startRotationHandle()})})}function cMiniWindowHide(){var a=joms.jQuery("#cWindow");a.remove(),cWindowHelper.unhideIframe()}function cWindowAddContent(html,actions,cmd){var cWindow=joms.jQuery("#cWindow"),cWindowContent;cWindow.length&&(cWindowContent=cWindow.find("#cWindowContent"),cWindowContent.html(html),actions&&(joms.jQuery("#cWindowAction").remove(),joms.jQuery('
').html(actions).appendTo("#cWindowContentOuter")),setTimeout(function(){cWindowResize(cWindowContent.innerHeight()),cWindowContent.find("img").load(function(){cWindowResize(cWindowContent.innerHeight())})},0),void 0!=cmd&&""!=cmd&&eval(cmd))}function cWindowResize(a){var b,c,d=joms.jQuery("#cWindow");if(d.length){if(b=.85*joms.jQuery(window).height(),c=d.find(".modal-body"),c&&c.length)return b=+c.css("max-height").replace(/[^\d]+/g,""),void d.find("#cWindowContentWrap").css({height:b});if((!a||0>a)&&(d.find("#cWindowContentWrap").css({height:""}),a=d.find("#cWindowContentWrap").height()),a>b&&(a=b),!d.hasClass("noresize-after")){d.hasClass("noresize")&&d.removeClass("noresize").addClass("noresize-after"),d.css({paddingBottom:0});var e=d.find("#cWindowAction"),f=e.length>0?e.innerHeight():0,g=d.find("#cWindowContentTop"),h=g.length>0?g.innerHeight():0,i=(cWindowHelper.contentWrapHeight,cWindowHelper.contentOuterHeight,parseInt(a)+4),j=i+f+h;d.find("#cWindowContentWrap").css({maxHeight:b,height:"auto"}),d.find("#cWindowContentOuter, #cwin_ml, #cwin_mr").css({height:"auto"});var k=document.documentElement,l=(window.pageYOffset||k.scrollTop)-(k.clientTop||0),m=window.innerHeight||j;d.css({height:"auto",top:l+m/2-j/2},function(){cWindowHelper.save()})}}}function cWindowActions(a){joms.jQuery("#cWindowAction").remove(),a&&joms.jQuery('