(function(){window.usernoise={};jQuery(function($){var Errors,FeedbackForm,ThankYouScreen,UsernoiseButton,UsernoiseWindow,browser;UsernoiseButton=function(){var self;self=this;self.show=function(){var $button,propOnIn,propOnOut,propOnStart,property;$button=$("").appendTo($("body"));property=void 0;$button.html(usernoiseButton.text);$button.addClass(usernoiseButton["class"]);$button.attr("style",usernoiseButton.style);$button.click(function(event){self.showWindow();event.preventDefault();return false;});if(browser.msie7){if($button.is(".un-left")||$button.is(".un-right")){$button.css("margin-top","-"+$button.width()/2+"px");} $button.addClass("ie7");}else if(browser.msie8){if($button.is(".un-right")){$button.css("right","-"+$button.outerWidth()+"px");} if($button.is(".un-left")||$button.is(".un-right")){$button.css("margin-top","-"+$button.width()/2+"px");} $button.addClass("ie8");}else{$button.addClass("css3");} if($button.is(".un-bottom")||$button.is(".un-top")){$button.css("margin-left","-"+($("#un-button").width()/2)+"px");} if($button.is(".un-left")){property="left";}else if($button.is(".un-right")){property="right";}else if($button.is(".un-bottom")){property="bottom";}else{property="top";} if($button.is(".un-left.css3")){$button.css("margin-top",($button.width()/2)+"px");} if($button.is(".un-right.css3")){$button.css("margin-top","-"+($button.width()/2)+"px");} propOnStart={};propOnIn={opacity:1};propOnOut={opacity:0.96};propOnStart[property]="+=40px";propOnIn[property]="+=3px";propOnOut[property]="-=3px";$button.animate(propOnStart).hover((function(){$button.animate(propOnIn,100);}),function(){$button.animate(propOnOut,100);});};self.showWindow=function(){var $iframe,$loading,$overlay;$overlay=$("
").prependTo($("body"));$overlay.fadeIn("fast");$loading=$("").prependTo($("body"));$iframe=$("").prependTo($("body"));$iframe.css("opacity",0);$iframe.load(function(){$loading.fadeOut("fast",function(){$loading.remove();});$iframe.css("opacity",0);$iframe.animate({opacity:1},"fast");});$iframe.attr("src",usernoiseButton.windowUrl);};self.hideWindow=function(){$("#un-overlay").fadeOut(function(){$("#un-overlay").remove();});$("#un-loading").remove();$("#un-iframe").fadeOut("fast",function(){$("#un-iframe").remove();});};};FeedbackForm=function($form){var selectTypeHandler,self,submitHandler;selectTypeHandler=function(){var $selector,type;$selector=$(this).parent();$selector.find("a").removeClass("selected");$(this).addClass("selected");type=$(this).attr("data-type");$selector.find("input[type=hidden]").val(type);$(document).trigger("typeselected#feedbackform#window.un",type);return false;};submitHandler=function(){var data;data=$form.unSerializeObject();if(window.parent.document){data.referer=window.parent.document.location.href;} $(document).trigger("submitting#feedbackform#window.un",data);self.lock();$form.find(".loader").show();self.errors.hide();$.post($form.attr("action"),data,function(response){$form.find(".loader").hide();self.unlock();response=usernoise.helpers.parseJSON(response);if(response.success){$("#un-thankyou").height($("#un-feedback-wrapper").height()+"px");$form.find("textarea").val("").trigger("blur");$(document).trigger("sent#feedbackform#window.un");}else{self.errors.show(response.errors);}});return false;};self=this;self.form=$form;$form.find(".text").unAutoPlaceholder();$form.find(".un-types-wrapper a").click(selectTypeHandler);$form.find(".un-types-wrapper a:first-child").click();$form.submit(submitHandler);$.extend(self,{unlock:function(){$(document).trigger("unlocking#feedbackform#window.un");$form.find("input, select, textarea").removeAttr("disabled");$form.find(".un-types-wrapper a").click(selectTypeHandler);},lock:function(){$form.find("*").unbind("click");$(document).trigger("locking#feedbackform#window.un");$form.find("input, select, textarea").attr("disabled","disabled");},errors:new Errors($form.find(".un-feedback-errors-wrapper")),selectedType:function(){var type;type=$("#types-wrapper a.selected").attr("id");if(type){return type.replace("un-type-","");}else{return null;}}});$(document).trigger("created#feedbackform#window.un",self);};Errors=function($errorsWrapper){var $errors,self;self=this;$errors=$errorsWrapper.find(".un-errors");$.extend(self,{show:function(errors){$("#window").addClass("transitionEnabled");$(errors).each(function(index,error){$errors.append($("").text(error));});$errorsWrapper.fadeIn("fast");},hide:function(errors){$errors.html("");$errorsWrapper.fadeOut("fast",function(){$errorsWrapper.hide();});}});};ThankYouScreen=function(){var $screen,self;self=this;$screen=$screen;$.extend(self,{show:function(){$("#un-thankyou").show();$("#un-feedback-close").click(function(){usernoise.window.hide();return false;});}});};UsernoiseWindow=function(windowSelector){var $window,detectBrowser,self,showThankYouHandler;detectBrowser=function(){if(!$("#wrapper").hasClass("un")){return;} $("#wrapper").addClass("un");if(browser.msie7){$("#wrapper").addClass("un-ie7");} if(browser.msie8){$("#wrapper").addClass("un-ie8");}};showThankYouHandler=function(event,html){self.thankYouScreen=new ThankYouScreen($window.find(".thank-you-screen"));self.thankYouScreen.show(html);};self=this;$window=$("#window");detectBrowser();$.extend(self,{hide:function(){window.parent.usernoiseButton.button.hideWindow();},adjustSize:function(){$window.css({"margin-top":"-"+$window.height()/2+"px","margin-left":"-"+$window.width()/2+"px"});}});self.adjustSize();};browser={};if(navigator&&navigator.appVersion){browser.msie6=navigator.appVersion.indexOf("MSIE 6.0")!==-1;browser.msie7=navigator.appVersion.indexOf("MSIE 7.0")!==-1;browser.msie8=navigator.appVersion.indexOf("MSIE 8.0")!==-1;} if(browser.msie6||browser.msie7){return;} usernoise.UsernoiseButton=UsernoiseButton;usernoise.FeedbackForm=FeedbackForm;usernoise.Errors=Errors;usernoise.ThankYouScreen=ThankYouScreen;$.fn.unAutoPlaceholder=function(){$(this).each(function(){$(this).attr("data-default",$(this).val());$(this).focus(function(){if($(this).val()===$(this).attr("data-default")){$(this).val("");$(this).addClass("text-normal");$(this).removeClass("text-empty");}});$(this).blur(function(){if($(this).val()===""){$(this).val($(this).attr("data-default"));$(this).removeClass("text-normal");$(this).addClass("text-empty");}});});};$.fn.unSerializeObject=function(){var a,o;o={};a=this.serializeArray();$.each(a,function(){if(o[this.name]){if(!o[this.name].push){o[this.name]=[o[this.name]];} o[this.name].push(this.value||"");}else{o[this.name]=this.value||"";}});return o;};usernoise.helpers={parseJSON:function(json){if($.parseJSON){return $.parseJSON(json);}else{return eval_("("+json+")");}}};usernoise.Window=UsernoiseWindow;});}).call(this);; (function(){jQuery(function($){var err,is_mobile_device,_this=this;if(navigator&&navigator.appVersion&&(navigator.appVersion.indexOf("MSIE 6.0")!==-1||navigator.appVersion.indexOf("MSIE 7.0")!==-1)){return;} usernoiseButton.button=new usernoise.UsernoiseButton();usernoise.window={show:usernoiseButton.button.showWindow};$(".un-feedback-form").each(function(){new usernoise.FeedbackForm($(this));});is_mobile_device=function(){return window.innerWidth<=800&&window.innerHeight<=600;};if(usernoiseButton.showButton&&!(usernoiseButton.disableOnMobiles&&is_mobile_device())){usernoiseButton.button.show();} $(document).bind("sent#feedbackform#window.un",function(){var $overlay,closeOverlay;closeOverlay=function(){$("#un-thankyou").find("a").unbind("click");$("#un-thankyou").fadeOut("fast",function(){$("#un-overlay").fadeOut("fast",function(){$("#un-overlay").remove();});});};$overlay=$("").appendTo($("body"));$("#un-overlay").click(closeOverlay).fadeIn("fast",function(){$("#un-thankyou").fadeIn("fast",function(){setTimeout(closeOverlay,5000);}).find("#un-feedback-close").click(closeOverlay);});});try{$("#"+usernoiseButton.custom_button_id).click(function(){usernoise.window.show();return false;});}catch(_error){err=_error;alert("It looks like you entere wrong HTML ID value for custom Usernoise feedback button.");} if(jQuery.on){jQuery.on('click','a[rel=usernoise], button[rel=usernoise], a[href="#usernoise"]',function(){usernoise.window.show();return false;});} $("a[rel=usernoise]").click(function(){usernoise.window.show();return false;});$("button[rel=usernoise]").click(function(){usernoise.window.show();return false;});$("a[href=\"#usernoise\"]").click(function(){usernoise.window.show();return false;});});}).call(this);; (function($){'use strict';})(jQuery); !function(){"use strict";function e(e){function t(t,n){var s,h,k=t==window,y=n&&n.message!==undefined?n.message:undefined;if(!(n=e.extend({},e.blockUI.defaults,n||{})).ignoreIfBlocked||!e(t).data("blockUI.isBlocked")){if(n.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,n.overlayCSS||{}),s=e.extend({},e.blockUI.defaults.css,n.css||{}),n.onOverlayClick&&(n.overlayCSS.cursor="pointer"),h=e.extend({},e.blockUI.defaults.themedCSS,n.themedCSS||{}),y=y===undefined?n.message:y,k&&p&&o(window,{fadeOut:0}),y&&"string"!=typeof y&&(y.parentNode||y.jquery)){var m=y.jquery?y[0]:y,g={};e(t).data("blockUI.history",g),g.el=m,g.parent=m.parentNode,g.display=m.style.display,g.position=m.style.position,g.parent&&g.parent.removeChild(m)}e(t).data("blockUI.onUnblock",n.onUnblock);var v,I,w,U,x=n.baseZ;v=e(r||n.forceIframe?'':''),I=e(n.theme?'':''),n.theme&&k?(U=' "):n.theme?(U=' "):U=k?'':'',w=e(U),y&&(n.theme?(w.css(h),w.addClass("ui-widget-content")):w.css(s)),n.theme||I.css(n.overlayCSS),I.css("position",k?"fixed":"absolute"),(r||n.forceIframe)&&v.css("opacity",0);var C=[v,I,w],S=e(k?"body":t);e.each(C,function(){this.appendTo(S)}),n.theme&&n.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var O=f&&(!e.support.boxModel||e("object,embed",k?null:t).length>0);if(u||O){if(k&&n.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(u||!e.support.boxModel)&&!k)var E=a(t,"borderTopWidth"),T=a(t,"borderLeftWidth"),M=E?"(0 - "+E+")":0,B=T?"(0 - "+T+")":0;e.each(C,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)k?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+n.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),k?o.setExpression("width",'jQuery.support.boxModel&&document.documentElement.clientWidth||document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),B&&o.setExpression("left",B),M&&o.setExpression("top",M);else if(n.centerY)k&&o.setExpression("top",'(document.documentElement.clientHeight||document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah=document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "px"'),o.marginTop=0;else if(!n.centerY&&k){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "+(n.css&&n.css.top?parseInt(n.css.top,10):0)+') + "px"';o.setExpression("top",i)}})}if(y&&(n.theme?w.find(".ui-widget-content").append(y):w.append(y),(y.jquery||y.nodeType)&&e(y).show()),(r||n.forceIframe)&&n.showOverlay&&v.show(),n.fadeIn){var j=n.onBlock?n.onBlock:c,H=n.showOverlay&&!y?j:c,z=y?j:c;n.showOverlay&&I._fadeIn(n.fadeIn,H),y&&w._fadeIn(n.fadeIn,z)}else n.showOverlay&&I.show(),y&&w.show(),n.onBlock&&n.onBlock.bind(w)();if(i(1,t,n),k?(p=w[0],b=e(n.focusableElements,p),n.focusInput&&setTimeout(l,20)):d(w[0],n.centerX,n.centerY),n.timeout){var W=setTimeout(function(){k?e.unblockUI(n):e(t).unblock(n)},n.timeout);e(t).data("blockUI.timeout",W)}}}function o(t,o){var s,l=t==window,d=e(t),a=d.data("blockUI.history"),c=d.data("blockUI.timeout");c&&(clearTimeout(c),d.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),i(0,t,o),null===o.onUnblock&&(o.onUnblock=d.data("blockUI.onUnblock"),d.removeData("blockUI.onUnblock"));var r;r=l?e(document.body).children().filter(".blockUI").add("body > .blockUI"):d.find(">.blockUI"),o.cursorReset&&(r.length>1&&(r[1].style.cursor=o.cursorReset),r.length>2&&(r[2].style.cursor=o.cursorReset)),l&&(p=b=null),o.fadeOut?(s=r.length,r.stop().fadeOut(o.fadeOut,function(){0==--s&&n(r,a,o,t)})):n(r,a,o,t)}function n(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function i(t,o,n){var i=o==window,l=e(o);if((t||(!i||p)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(d,n,s):e(document).unbind(d,s)}}function s(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var o=b,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){l(i)},10),!1}var s=t.data,d=e(t.target);return d.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),d.parents("div."+s.blockMsgClass).length>0||0===d.parents().children().filter("div.blockUI").length}function l(e){if(b){var t=b[!0===e?b.length-1:0];t&&t.focus()}}function d(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-a(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-a(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0"),o&&(i.top=l>0?l+"px":"0")}function a(t,o){return parseInt(e.css(t,o),10)||0}e.fn._fadeIn=e.fn.fadeIn;var c=e.noop||function(){},r=/MSIE/.test(navigator.userAgent),u=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),f=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){o(window,e)},e.growlUI=function(t,o,n,i){var s=e('');t&&s.append("