function cWindowShow(windowCall,winTitle,contentWidth,contentHeight,winType){if(winType instanceof Array&&(winType=winType.join(" ")),/^.+\"\s*admin\s*,.+\;$/.test(windowCall))return void cAdminWindowShow(windowCall,winTitle,contentWidth,contentHeight,winType);joms.jQuery("body").unbind("mouseup"),joms.jQuery("#cWindow").remove();var cWindowHTML=decodeURIComponent("%3Cdiv%20id%3D%22cWindow%22%20class%3D%22%7BcWindoClass%7D%22%3E%0A%09%3Cdiv%20id%3D%22cwin_tl%22%3E%3C%2Fdiv%3E%0A%09%3Cdiv%20id%3D%22cwin_tm%22%3E%3C%2Fdiv%3E%0A%09%3Cdiv%20id%3D%22cwin_tr%22%3E%3C%2Fdiv%3E%0A%09%3Cdiv%20style%3D%22clear%3A%20both%3B%22%3E%3C%2Fdiv%3E%0A%0A%09%3Cdiv%20id%3D%22cwin_ml%22%3E%3C%2Fdiv%3E%0A%09%3Cdiv%20id%3D%22cWindowContentOuter%22%3E%0A%0A%09%09%3Cdiv%20id%3D%22cWindowContentTop%22%3E%0A%09%09%09%3Ca%20href%3D%22javascript%3Avoid(0)%3B%22%20onclick%3D%22cWindowHide()%3B%22%20id%3D%22cwin_close_btn%22%3E%3C%2Fa%3E%0A%09%09%09%3Cdiv%20id%3D%22cwin_logo%22%3E%3C%2Fdiv%3E%0A%09%09%09%3Cdiv%20class%3D%22clr%22%3E%3C%2Fdiv%3E%0A%09%09%3C%2Fdiv%3E%0A%0A%09%09%3Cdiv%20id%3D%22cWindowContentWrap%22%3E%0A%09%09%09%3Cdiv%20id%3D%22cWindowContent%22%3E%3C%2Fdiv%3E%0A%09%09%3C%2Fdiv%3E%0A%0A%09%3C%2Fdiv%3E%0A%09%3Cdiv%20id%3D%22cwin_mr%22%3E%3C%2Fdiv%3E%0A%09%3Cdiv%20style%3D%22clear%3A%20both%3B%22%3E%3C%2Fdiv%3E%0A%0A%09%3Cdiv%20id%3D%22cwin_bl%22%3E%3C%2Fdiv%3E%0A%09%3Cdiv%20id%3D%22cwin_bm%22%3E%3C%2Fdiv%3E%0A%09%3Cdiv%20id%3D%22cwin_br%22%3E%3C%2Fdiv%3E%0A%09%3Cdiv%20style%3D%22clear%3A%20both%3B%22%3E%3C%2Fdiv%3E%0A%3C%2Fdiv%3E");cWindowHTML=cwindow_is_modeless?cWindowHTML.replace("{cWindoClass}","dialog modeless"):cWindowHTML.replace("{cWindoClass}","dialog"),cwindow_is_modeless=!1;var cWindow=joms.jQuery(cWindowHTML),cWindowSize,cBrowserWidth=joms.jQuery(window).width();cWindowSize="480">=cBrowserWidth?{contentWrapHeight:function(){return+contentHeight},contentOuterWidth:function(){return+cBrowserWidth-20},contentOuterHeight:function(){return+contentHeight+40},width:function(){return this.contentOuterWidth()-50},height:function(){return this.contentOuterHeight()+2},left:function(){return(joms.jQuery(window).width()-this.width())/2},top:function(){return joms.jQuery(document).scrollTop()+(joms.jQuery(window).height()-this.height())/2},zIndex:function(){return cGetZIndexMax()+1}}:{contentWrapHeight:function(){return+contentHeight},contentOuterWidth:function(){return+contentWidth},contentOuterHeight:function(){return+contentHeight+40},width:function(){return this.contentOuterWidth()+2},height:function(){return this.contentOuterHeight()+2},left:function(){return(joms.jQuery(window).width()-this.width())/2},top:function(){return joms.jQuery(document).scrollTop()+(joms.jQuery(window).height()-this.height())/2},zIndex:function(){return cGetZIndexMax()+1}},cWindow.find("#cwin_logo").html(winTitle),cWindow.find("#cWindowContentWrap").css({height:cWindowSize.contentWrapHeight()}),cWindow.find("#cWindowContentOuter, #cwin_tm, #cwin_bm").css({width:cWindowSize.contentOuterWidth()}),cWindow.find("#cWindowContentOuter, #cwin_ml, #cwin_mr").css({height:cWindowSize.contentOuterHeight()+40}),cWindow.attr({"class":winType}).css({width:cWindowSize.width(),height:cWindowSize.height(),top:cWindowSize.top(),left:cWindowSize.left(),zIndex:cWindowSize.zIndex()}).prependTo("body"),winType&&winType.match(/noresize/)&&cWindowResize(contentHeight),jax.loadingFunction=function(){joms.jQuery("#cWindowContentWrap").addClass("loading")},jax.doneLoadingFunction=function(){joms.jQuery("#cWindowContentWrap").removeClass("loading").css({overflow:"auto",overflowX:"hidden",overflowY:"auto"})},void 0!=windowCall&&"string"==typeof windowCall&&eval(windowCall),"function"==typeof windowCall&&windowCall(),joms.jQuery.browser.msie&&joms.jQuery.browser.version.substr(0,1)<7&&"undefined"!=typeof jomsIE6&&1==jomsIE6&&joms.jQuery("#cwin_tm, #cwin_bm, #cwin_ml, #cwin_mr").each(function(){joms.jQuery(this)[0].filters(0).sizingMethod="crop"}),cWindowHelper.hideIframe(),cWindowHelper.save(),cWindowHelper.start(),cWindowHelper.startRotationHandle()}function cMiniWindowShow(a,b,c,d,e){cwindow_is_modeless=!0,cWindowShow(a,b,c,d,e),joms.jQuery("#cWindow").hover(function(){mouse_is_inside=!0},function(){mouse_is_inside=!1}),joms.jQuery("body").mouseup(function(a){return!joms.jQuery.browser.msie||"SELECT"!=a.target.tagName&&"OPTION"!=a.target.tagName?void(mouse_is_inside||cMiniWindowHide()):!1})}function cAdminWindowShow(windowCall,winTitle,contentWidth,contentHeight,winType){joms.jQuery("body").unbind("mouseup"),joms.jQuery("#cWindow").remove();var cWindowHTML=decodeURIComponent("%3Cdiv%20id%3D%22cWindow%22%20class%3D%22modal%20%7BcWindoClass%7D%22%3E%20%3Cdiv%20class%3D%22modal-header%20cWindowContentTop%22%3E%20%3Ca%20href%3D%22javascript%3Avoid(0)%3B%22%20onclick%3D%22cWindowHide()%3B%22%20class%3D%22close%22%3E%C3%97%3C%2Fa%3E%20%3Ch3%20id%3D%22cwin_logo%22%3E%3C%2Fh3%3E%20%3C%2Fdiv%3E%20%3Cdiv%20id%3D%22cWindowContentOuter%22%3E%20%3Cdiv%20class%3D%22modal-body%22%3E%20%3Cdiv%20id%3D%22cWindowContentWrap%22%3E%20%3Cdiv%20id%3D%22cWindowContent%22%3E%3C%2Fdiv%3E%20%3C%2Fdiv%3E%20%3C%2Fdiv%3E%20%3C%2Fdiv%3E%20%3C%2Fdiv%3E");cWindowHTML=cwindow_is_modeless?cWindowHTML.replace("{cWindoClass}","dialog modeless"):cWindowHTML.replace("{cWindoClass}","dialog"),cwindow_is_modeless=!1;var cWindow=joms.jQuery(cWindowHTML),cWindowSize;cWindowSize={contentWrapHeight:function(){return+contentHeight},contentOuterHeight:function(){return+contentHeight+55},height:function(){return this.contentOuterHeight()+2}},cWindow.find("#cwin_logo").html(winTitle),cWindow.find("#cWindowContentOuter, #cwin_ml, #cwin_mr").css({}),cWindow.find(".modal-body").css({"max-height":joms.jQuery(window).height()-290+"px"}),cWindow.attr({"class":winType}).hide().prependTo("#js-cpanel").fadeIn(),jax.loadingFunction=function(){joms.jQuery("#cWindowContentWrap").addClass("loading")},jax.doneLoadingFunction=function(){joms.jQuery("#cWindowContentWrap").removeClass("loading").css({overflow:"auto",overflowX:"hidden",overflowY:"auto"})},void 0!=windowCall&&"string"==typeof windowCall&&eval(windowCall),"function"==typeof windowCall&&windowCall(),cWindowHelper.hideIframe(),cWindowHelper.save(),cWindowHelper.start()}function cWindowHide(){var a=joms.jQuery("#cWindow");a.find("#cWindowAction").add("
").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('