function setPaneExpandCollapse(n){$(n+" > li > a").each(function(){var t=$(this).attr("id"),n=null;$.cookie(t)&&(t!=null&&(n=$.cookie(t)),null!=n&&n!=""&&($(this).removeClass(),$(this).addClass(n)))});$(n+" > li > a.expanded ").find("+ div").css("display","block")}function setClickOfPane(n){$(n+" > li > a").on("click",function(){var n=$(this).attr("id"),t;n!=""&&n!=null&&(t=null,n!=null&&n!=""&&($.cookie(n,null),$(this).toggleClass("expanded").toggleClass("collapsed").find("+ div").slideToggle("medium"),t=$(this).attr("class"),$.cookie(n,t)))})}function tb_init(n){$(n).click(function(){var n=this.title||this.name||null,t=this.href||this.alt,i=this.rel||!1;return tb_show(n,t,i),this.blur(),!1})}function tb_show(n,t,i){var e,f,u,s,o,r;try{if(typeof document.body.style.maxHeight=="undefined"?($("body","html").css({height:"100%",width:"100%"}),$("html").css("overflow","hidden"),document.getElementById("TB_HideSelect")===null&&($("body").append("<iframe id='TB_HideSelect'><\/iframe><div id='TB_overlay'><\/div><div id='TB_window'><\/div>"),$("#TB_overlay").click(tb_remove))):document.getElementById("TB_overlay")===null&&($("body").append("<div id='TB_overlay'><\/div><div id='TB_window'><\/div>"),$("#TB_overlay").click(tb_remove)),tb_detectMacXFF()?$("#TB_overlay").addClass("TB_overlayMacFFBGHack"):$("#TB_overlay").addClass("TB_overlayBG"),n===null&&(n=""),$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /><\/div>"),$("#TB_load").show(),e=t.indexOf("?")!==-1?t.substr(0,t.indexOf("?")):t,f=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/,u=e.toLowerCase().match(f),u==".jpg"||u==".jpeg"||u==".png"||u==".gif"||u==".bmp"){if(TB_PrevCaption="",TB_PrevURL="",TB_PrevHTML="",TB_NextCaption="",TB_NextURL="",TB_NextHTML="",TB_imageCount="",TB_FoundURL=!1,i)for(TB_TempArray=$("a[@rel="+i+"]").get(),TB_Counter=0;TB_Counter<TB_TempArray.length&&TB_NextHTML==="";TB_Counter++)s=TB_TempArray[TB_Counter].href.toLowerCase().match(f),TB_TempArray[TB_Counter].href==t?(TB_FoundURL=!0,TB_imageCount="Image "+(TB_Counter+1)+" of "+TB_TempArray.length):TB_FoundURL?(TB_NextCaption=TB_TempArray[TB_Counter].title,TB_NextURL=TB_TempArray[TB_Counter].href,TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;<\/a><\/span>"):(TB_PrevCaption=TB_TempArray[TB_Counter].title,TB_PrevURL=TB_TempArray[TB_Counter].href,TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev<\/a><\/span>");imgPreloader=new Image;imgPreloader.onload=function(){imgPreloader.onload=null;var o=tb_getPageSize(),f=o[0]-150,e=o[1]-150,r=imgPreloader.width,u=imgPreloader.height;if(r>f?(u=u*(f/r),r=f,u>e&&(r=r*(e/u),u=e)):u>e&&(r=r*(e/u),u=e,r>f&&(u=u*(f/r),r=f)),TB_WIDTH=r+30,TB_HEIGHT=u+60,$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+t+"' width='"+r+"' height='"+u+"' alt='"+n+"'/><\/a><div id='TB_caption'>"+n+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"<\/div><\/div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close<\/a> or Esc Key<\/div>"),$("#TB_closeWindowButton").click(tb_remove),!(TB_PrevHTML==="")){function goPrev(){return $(document).unbind("click",goPrev)&&$(document).unbind("click",goPrev),$("#TB_window").remove(),$("body").append("<div id='TB_window'><\/div>"),tb_show(TB_PrevCaption,TB_PrevURL,i),!1}$("#TB_prev").click(goPrev)}if(!(TB_NextHTML==="")){function goNext(){return $("#TB_window").remove(),$("body").append("<div id='TB_window'><\/div>"),tb_show(TB_NextCaption,TB_NextURL,i),!1}$("#TB_next").click(goNext)}document.onkeydown=function(n){keycode=n==null?event.keyCode:n.which;keycode==27?tb_remove():keycode==190?TB_NextHTML==""||(document.onkeydown="",goNext()):keycode==188&&(TB_PrevHTML==""||(document.onkeydown="",goPrev()))};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=t}else o=t.replace(/^[^\?]+\??/,""),r=tb_parseQuery(o),TB_WIDTH=r.width*1+30||630,TB_HEIGHT=r.height*1+40||440,ajaxContentW=TB_WIDTH-30,ajaxContentH=TB_HEIGHT-45,t.indexOf("TB_iframe")!=-1?(urlNoQuery=t.split("TB_"),$("#TB_iframeContent").remove(),r.modal!="true"?$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+n+"<\/div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close<\/a> or Esc Key<\/div><\/div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1e3)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > <\/iframe>"):($("#TB_overlay").unbind(),$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1e3)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> <\/iframe>"))):$("#TB_window").css("display")!="block"?r.modal!="true"?$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+n+"<\/div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close<\/a> or Esc Key<\/div><\/div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'><\/div>"):($("#TB_overlay").unbind(),$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'><\/div>")):($("#TB_ajaxContent")[0].style.width=ajaxContentW+"px",$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px",$("#TB_ajaxContent")[0].scrollTop=0,$("#TB_ajaxWindowTitle").html(n)),$("#TB_closeWindowButton").click(tb_remove),t.indexOf("TB_inline")!=-1?($("#TB_ajaxContent").append($("#"+r.inlineId).children()),$("#TB_window").unload(function(){$("#"+r.inlineId).append($("#TB_ajaxContent").children())}),tb_position(),$("#TB_load").remove(),$("#TB_window").css({display:"block"})):t.indexOf("TB_iframe")!=-1?(tb_position(),$.browser.safari&&($("#TB_load").remove(),$("#TB_window").css({display:"block"}))):$("#TB_ajaxContent").load(t+="&random="+(new Date).getTime(),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})});r.modal||(document.onkeyup=function(n){keycode=n==null?event.keyCode:n.which;keycode==27&&tb_remove()})}catch(h){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}function tb_remove(){return $("#TB_imageOff").unbind("click"),$("#TB_closeWindowButton").unbind("click"),$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()}),$("#TB_load").remove(),typeof document.body.style.maxHeight=="undefined"&&($("body","html").css({height:"auto",width:"auto"}),$("html").css("overflow","")),document.onkeydown="",document.onkeyup="",!1}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt(TB_WIDTH/2,10)+"px",width:TB_WIDTH+"px"})}function tb_parseQuery(n){var u={},f,i,t,e,r;if(!n)return u;for(f=n.split(/[;&]/),i=0;i<f.length;i++)(t=f[i].split("="),t&&t.length==2)&&(e=unescape(t[0]),r=unescape(t[1]),r=r.replace(/\+/g," "),u[e]=r);return u}function tb_getPageSize(){var n=document.documentElement,t=window.innerWidth||self.innerWidth||n&&n.clientWidth||document.body.clientWidth,i=window.innerHeight||self.innerHeight||n&&n.clientHeight||document.body.clientHeight;return arrayPageSize=[t,i]}function tb_detectMacXFF(){var n=navigator.userAgent.toLowerCase();if(n.indexOf("mac")!=-1&&n.indexOf("firefox")!=-1)return!0}function InvokeHttpHandler(n){var t=n.HttpUrl;return t+="?"+n.ParameterValueList,t+="&RKey="+Math.random(),GetXmlHttpResponse(t)}function GetXmlHttpResponse(n){try{var t;try{t=new XMLHttpRequest}catch(i){t=new ActiveXObject("Msxml2.XMLHTTP")}return t.open("get",n,!1),t.send(null),t.responseText}catch(i){}}function ViewAnswerGroupsMultiType_AddNewClick(n,t,r){for(i=0;i<t.length;i++)$("#"+t[i]).show("slow");for(j=0;j<r.length;j++)$("#"+r[j]).css("display","none");return!1}function CheckAllUsers(n,t){for(re=new RegExp("$"+n+"$"),i=0;i<document.forms[0].elements.length;i++)elm=document.forms[0].elements[i],elm.type=="checkbox"&&re.test(elm.name)&&(elm.checked=t)}function select_deselectAll(n,t){var r=document.forms[0];for(i=0;i<r.length;i++)t.indexOf("checkAll")!=-1?r.elements[i].checked=n==!0?!0:!1:t.indexOf("CheckBox_select_candidate")!=-1&&r.elements[i].checked==!1&&(r.elements[1].checked=!1)}function SelectAll(n){var r="",t=document.forms[0],u;for(i=0;i<t.length;i++)t.elements[i].id.indexOf(n)!=-1&&(t.elements[i].disabled||($(t.elements[i]).prop("checked",!0).change(),u=$(t.elements[i]).attr("candidateid"),r=r+";"+u));return r}function DeSelectAll(n){var r="",t=document.forms[0],u;for(i=0;i<t.length;i++)t.elements[i].id.indexOf(n)!=-1&&($(t.elements[i]).prop("checked",!1).change(),u=$(t.elements[i]).attr("candidateid"),r=r+";"+u)}function openDialog(n,t,i){var r=window.screen.availWidth,u=r-(t+20);newwin=window.open(n,"","fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no,width="+t+",height="+i+",left="+u+",top=0");newwin.opener=null}function OnClientLoadCustomContainer(n){var i=n.get_id().replace("RadEditor_Content","Div_CustomContainerCounter"),t=document.getElementById(i);t.innerHTML=n.get_text().length;n.attachEventHandler("onkeyup",function(){t.innerHTML=trimEnter(n.get_text()).length})}function GetCharacterCount(n,t){objDiv=get_object(t);this.id&&(n=this);var i=trimEnter(n.value).length;objDiv.id&&(objDiv.innerHTML=i)}function get_object(n){var t=null;return document.layers?t=document.layers[n]:document.all?t=document.all[n]:document.getElementById&&(t=document.getElementById(n)),t}function trimEnter(n){return n.replace(/(\r\n|\r|\n)/g,"")}function JS_GetRadWindow(){var n=null;return window.radWindow?n=window.radWindow:window.frameElement&&window.frameElement.radWindow&&(n=window.frameElement.radWindow),n}function JS_OpenRadPopupWindow(n,t,i){var r=JS_GetRadWindow(),u,f;r?(u=r.BrowserWindow,setTimeout(function(){u.radopen(t,i)},0)):(f=$find(n),f.open(t,i))}function JS_CloseWindow(n){var t=JS_GetRadWindow();t?t.close(n):window&&window.close()}function JS_ConfirmDelete(n){return confirm(n)}function LoadCustomText(){$(".CustomTextViewer").each(function(n,t){var r=$(t).attr("CustomerId"),u=$(t).attr("DepartmentId"),f=$(t).attr("SystemLanguageId"),e=$(t).attr("CustomTextId"),o=$(t).attr("id"),i=$(t).attr("FormatParameter1");$.ajax({async:!0,type:"GET",url:"/customtexthandler.ashx?cid="+r+"&departmentId="+u+"&tSystemLanguageId="+f+"&customTextId="+e,dataType:"text",success:function(n){i!=null&&i!=""&&(n=n.replace("{0}",i));document.getElementById(o).innerHTML=n}})})}function RadAsyncUpload_OnClientFileSelected(n,t){var i=$telerik.$(".ruUploadProgress",t.get_row()),r=i.text(),u;r.length>25&&(u=r.substring(0,25)+"...",i.text(u));i.attr("title",r)}function DocumentReadyAfterPartialPostbackEventHandler(){LoadCustomText();typeof CameraTag!="undefined"&&CameraTag.setup();HideAllVideoProgressBarsInQuestionnaireOnPartialPostback()}function ConfirmAction(n){return confirm(n)}function HideAllVideoProgressBarsInQuestionnaireOnPartialPostback(){$(".videocv-question-progress-bar").each(function(n,t){$(t).hide()})}function InitializeCollapsiblePanelState(n,t,i,r,u,f,e,o,s,h,c,l,a,v){r=n+"_"+r;e=n+"_"+e;s=n+"_"+s;h=n+"_"+h;GetCookie(n)==""&&SetState(n,e,o,l);v=="False"&&SetState(n,e,o,l);GetState(n,e,o)=="true"?($("#"+n).removeClass("mb-2"),$("#"+r).html(u),$("#"+t).show(),$("#"+h).show(),$("#"+s).hide()):GetState(n,e,o)=="false"&&($("#"+n).addClass("mb-2"),$("#"+r).html(f),$("#"+t).hide(),$("#"+h).hide(),$("#"+s).show())}function CollapsiblePanelClick(n,t,i,r,u,f,e,o,s,h,c,l){o=n+"_"+o;t=n+"_"+t;i=n+"_"+i;c=n+"_"+c;f=n+"_"+f;e=n+"_"+e;var a="True";GetState(n,t,r)=="true"?($("#"+n).addClass("mb-2"),$("#"+o).html(s),$("#"+u).slideUp(),$("#"+e).hide(),$("#"+f).show(),SetState(n,t,r,"false"),a="True"):GetState(n,t,r)=="false"&&($("#"+n).removeClass("mb-2"),$("#"+o).html(h),$("#"+u).slideDown(),$("#"+e).show(),$("#"+f).hide(),SetState(n,t,r,"true"),a="False");l=="True"&&($("#"+i).val(a),$("#"+c).click())}function GetState(n,t,i){return i=="Cookie"?GetCookie(n):document.getElementById(t).value}function SetState(n,t,i,r){i=="Cookie"?SetCookie(n,r):document.getElementById(t).value=r}function SetCookie(n,t){document.cookie=n+"="+t+"; path=/"}function GetCookie(n){return document.cookie.length>0&&(c_start=document.cookie.indexOf(n+"="),c_start!=-1)?(c_start=c_start+n.length+1,c_end=document.cookie.indexOf(";",c_start),c_end==-1&&(c_end=document.cookie.length),unescape(document.cookie.substring(c_start,c_end))):""}$(document).ready(function(){setPaneExpandCollapse("#UL_SearchById");setClickOfPane("#UL_SearchById");setPaneExpandCollapse("#UL_SearchByApplicationId");setClickOfPane("#UL_SearchByApplicationId")});$(document).ready(function(){setPaneExpandCollapse("#UL_ExtendedSearch");setClickOfPane("#UL_ExtendedSearch")});var tb_pathToImage="/Images/LoadingProgressBar.gif";$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image;imgLoader.src=tb_pathToImage});$(document).ready(function(){if(typeof ZiggeoApi!="undefined")ZiggeoApi.Events.on("submitted",function(n){if(n&&n.data){var t=$("#"+n.data.hiddenField),i=$("#"+n.data.button);t&&i&&($(t).val(n.video.token),$(i).trigger("click"))}})});!function(n,t){"use strict";function v(t,i,r){"addEventListener"in n?t.addEventListener(i,r,!1):"attachEvent"in n&&t.attachEvent("on"+i,r)}function gt(t,i,r){"removeEventListener"in n?t.removeEventListener(i,r,!1):"detachEvent"in n&&t.detachEvent("on"+i,r)}function ni(n){return n.charAt(0).toUpperCase()+n.slice(1)}function or(n){var i,r,f,t=null,u=0,e=function(){u=ut();t=null;f=n.apply(i,r);t||(i=r=null)};return function(){var s=ut(),o;return u||(u=s),o=b-(s-u),i=this,r=arguments,0>=o||o>b?(t&&(clearTimeout(t),t=null),u=s,f=n.apply(i,r),t||(i=r=null)):t||(t=setTimeout(e,o)),f}}function ti(n){return tt+"["+it+"] "+n}function i(t){at&&"object"==typeof n.console&&console.log(ti(t))}function s(t){"object"==typeof n.console&&console.warn(ti(t))}function sr(){hr();i("Initialising iFrame ("+location.href+")");cr();ar();ft("background",wi);ft("padding",bi);kr();ui();fi();vr();gr();ei();p=dr();c("init","Init message from host page");wt()}function hr(){function i(n){return"true"===n?!0:!1}var n=gi.substr(tr).split(":");it=n[0];st=t!==n[1]?Number(n[1]):st;nt=t!==n[2]?i(n[2]):nt;at=t!==n[3]?i(n[3]):at;l=t!==n[4]?Number(n[4]):l;o=t!==n[6]?i(n[6]):o;g=n[7];u=t!==n[8]?n[8]:u;wi=n[9];bi=n[10];yt=t!==n[11]?Number(n[11]):yt;p.enable=t!==n[12]?i(n[12]):!1;vt=t!==n[13]?n[13]:vt;f=t!==n[14]?n[14]:f}function cr(){function r(){var t=n.iFrameResizer;i("Reading data from page: "+JSON.stringify(t));pt="messageCallback"in t?t.messageCallback:pt;wt="readyCallback"in t?t.readyCallback:wt;w="targetOrigin"in t?t.targetOrigin:w;u="heightCalculationMethod"in t?t.heightCalculationMethod:u;f="widthCalculationMethod"in t?t.widthCalculationMethod:f}function t(n,t){return"function"==typeof n&&(i("Setup custom "+t+"CalcMethod"),kt[t]=n,n="custom"),n}"iFrameResizer"in n&&Object===n.iFrameResizer.constructor&&(r(),u=t(u,"height"),f=t(f,"width"));i("TargetOrigin for parent set to: "+w)}function lr(n,t){return-1!==t.indexOf("-")&&(s("Negative CSS value ignored for "+n),t=""),t}function ft(n,r){t!==r&&""!==r&&"null"!==r&&(document.body.style[n]=r,i("Body "+n+' set to "'+r+'"'))}function ar(){t===g&&(g=st+"px");ft("margin",lr("margin",g))}function vr(){document.documentElement.style.height="";document.body.style.height="";i('HTML & body height set to "auto"')}function r(t){var r={add:function(i){function r(){c(t.eventName,t.eventType)}dt[i]=r;v(n,i,r)},remove:function(t){var i=dt[t];delete dt[t];gt(n,t,i)}};t.eventNames&&Array.prototype.map?(t.eventName=t.eventNames[0],t.eventNames.map(r[t.method])):r[t.method](t.eventName);i(ni(t.method)+" event listener: "+t.eventType)}function ii(n){r({method:n,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]});r({method:n,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]});r({method:n,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]});r({method:n,eventType:"Input",eventName:"input"});r({method:n,eventType:"Mouse Up",eventName:"mouseup"});r({method:n,eventType:"Mouse Down",eventName:"mousedown"});r({method:n,eventType:"Orientation Change",eventName:"orientationchange"});r({method:n,eventType:"Print",eventName:["afterprint","beforeprint"]});r({method:n,eventType:"Ready State Change",eventName:"readystatechange"});r({method:n,eventType:"Touch Start",eventName:"touchstart"});r({method:n,eventType:"Touch End",eventName:"touchend"});r({method:n,eventType:"Touch Cancel",eventName:"touchcancel"});r({method:n,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]});r({method:n,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]});r({method:n,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]});"child"===vt&&r({method:n,eventType:"IFrame Resized",eventName:"resize"})}function ri(n,t,r,u){return t!==n&&(n in r||(s(n+" is not a valid option for "+u+"CalculationMethod."),n=t),i(u+' calculation method set to "'+n+'"')),n}function ui(){u=ri(u,lt,h,"height")}function fi(){f=ri(f,er,a,"width")}function ei(){!0===o?(ii("add"),tu()):i("Auto Resize disabled")}function yr(){i("Disable outgoing messages");rr=!1}function pr(){i("Remove event listener: Message");gt(n,"message",yi)}function wr(){null!==ht&&ht.disconnect()}function oi(){ii("remove");wr();clearInterval(nr)}function br(){yr();pr();!0===o&&oi()}function kr(){var n=document.createElement("div");n.style.clear="both";n.style.display="block";document.body.appendChild(n)}function dr(){function f(){return{x:n.pageXOffset!==t?n.pageXOffset:document.documentElement.scrollLeft,y:n.pageYOffset!==t?n.pageYOffset:document.documentElement.scrollTop}}function o(n){var t=n.getBoundingClientRect(),i=f();return{x:parseInt(t.left,10)+parseInt(i.x,10),y:parseInt(t.top,10)+parseInt(i.y,10)}}function r(n){function s(n){var t=o(n);i("Moving to in page link (#"+r+") at x: "+t.x+" y: "+t.y);e(t.y,t.x,"scrollToOffset")}var r=n.split("#")[1]||n,u=decodeURIComponent(r),f=document.getElementById(u)||document.getElementsByName(u)[0];t!==f?s(f):(i("In page link (#"+r+") not found in iFrame, so sending to parent"),e(0,0,"inPageLink","#"+r))}function u(){""!==location.hash&&"#"!==location.hash&&r(location.href)}function h(){function n(n){function t(n){n.preventDefault();r(this.getAttribute("href"))}"#"!==n.getAttribute("href")&&v(n,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),n)}function c(){v(n,"hashchange",u)}function l(){setTimeout(u,ct)}function a(){Array.prototype.forEach&&document.querySelectorAll?(i("Setting up location.hash handlers"),h(),c(),l()):s("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}return p.enable?a():i("In page linking not enabled"),{findTarget:r}}function gr(){i("Enable public methods");eu.parentIFrame={autoResize:function(n){return!0===n&&!1===o?(o=!0,ei()):!1===n&&!0===o&&(o=!1,oi()),o},close:function(){e(0,0,"close");br()},getId:function(){return it},getPageInfo:function(n){"function"==typeof n?(bt=n,e(0,0,"pageInfo")):(bt=function(){},e(0,0,"pageInfoStop"))},moveToAnchor:function(n){p.findTarget(n)},reset:function(){vi("parentIFrame.reset")},scrollTo:function(n,t){e(t,n,"scrollTo")},scrollToOffset:function(n,t){e(t,n,"scrollToOffset")},sendMessage:function(n,t){e(0,0,"message",JSON.stringify(n),t)},setHeightCalculationMethod:function(n){u=n;ui()},setWidthCalculationMethod:function(n){f=n;fi()},setTargetOrigin:function(n){i("Set targetOrigin: "+n);w=n},size:function(n,t){var i=""+(n?n:"")+(t?","+t:"");c("size","parentIFrame.size("+i+")",n,t)}}}function si(){0!==l&&(i("setInterval: "+l+"ms"),nr=setInterval(function(){c("interval","setInterval: "+l)},Math.abs(l)))}function nu(){function h(n){function t(n){!1===n.complete&&(i("Attach listeners to "+n.src),n.addEventListener("load",o,!1),n.addEventListener("error",s,!1),u.push(n))}"attributes"===n.type&&"src"===n.attributeName?t(n.target):"childList"===n.type&&Array.prototype.forEach.call(n.target.querySelectorAll("img"),t)}function l(n){u.splice(u.indexOf(n),1)}function f(n){i("Remove listeners from "+n.src);n.removeEventListener("load",o,!1);n.removeEventListener("error",s,!1);l(n)}function e(n,i,r){f(n.target);c(i,r+": "+n.target.src,t,t)}function o(n){e(n,"imageLoad","Image loaded")}function s(n){e(n,"imageLoadFailed","Image load failed")}function a(n){c("mutationObserver","mutationObserver: "+n[0].target+" "+n[0].type);n.forEach(h)}function v(){var n=document.querySelector("body");return r=new y(a),i("Create body MutationObserver"),r.observe(n,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),r}var u=[],y=n.MutationObserver||n.WebKitMutationObserver,r=v();return{disconnect:function(){"disconnect"in r&&(i("Disconnect body MutationObserver"),r.disconnect(),u.forEach(f))}}}function tu(){var t=0>l;n.MutationObserver||n.WebKitMutationObserver?t?si():ht=nu():(i("MutationObserver not supported in this browser!"),si())}function et(n,t){function r(n){var i,r;return/^\d+(px)?$/i.test(n)?parseInt(n,pi):(i=t.style.left,r=t.runtimeStyle.left,t.runtimeStyle.left=t.currentStyle.left,t.style.left=n||0,n=t.style.pixelLeft,t.style.left=i,t.runtimeStyle.left=r,n)}var i=0;return t=t||document.body,"defaultView"in document&&"getComputedStyle"in document.defaultView?(i=document.defaultView.getComputedStyle(t,null),i=null!==i?i[n]:0):i=r(t.currentStyle[n]),parseInt(i,pi)}function iu(n){n>b/2&&(b=2*n,i("Event throttle increased to "+b+"ms"))}function ot(n,t){for(var o=t.length,f=0,e=0,s=ni(n),r=ut(),u=0;o>u;u++)f=t[u].getBoundingClientRect()[n]+et("margin"+s,t[u]),f>e&&(e=f);return r=ut()-r,i("Parsed "+o+" HTML elements"),i("Element position calculated in "+r+"ms"),iu(r),e}function d(n){return[n.bodyOffset(),n.bodyScroll(),n.documentElementOffset(),n.documentElementScroll()]}function hi(n,t){function r(){return s("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")}var i=document.querySelectorAll("["+t+"]");return 0===i.length&&r(),ot(n,i)}function ci(){return document.querySelectorAll("body *")}function ru(n,r,o,s){function v(){y=c;k=l;e(y,k,n)}function p(){function n(n,t){var i=Math.abs(n-t)<=yt;return!i}return c=t!==o?o:h[u](),l=t!==s?s:a[f](),n(y,c)||nt&&n(k,l)}function w(){return!(n in{init:1,interval:1,size:1})}function b(){return u in ir||nt&&f in ir}function d(){i("No change in size detected")}function g(){w()&&b()?vi(r):n in{interval:1}||d()}var c,l;p()||"init"===n?(li(),v()):g()}function c(n,t,r,u){function f(){n in{reset:1,resetPage:1,init:1}||i("Trigger event: "+t)}function e(){return rt&&n in fu}e()?i("Trigger event cancelled: "+n):(f(),ou(n,t,r,u))}function li(){rt||(rt=!0,i("Trigger event lock on"));clearTimeout(fr);fr=setTimeout(function(){rt=!1;i("Trigger event lock off");i("--")},ct)}function ai(n){y=h[u]();k=a[f]();e(y,k,n)}function vi(n){var t=u;u=lt;i("Reset trigger event: "+n);li();ai("reset");u=t}function e(n,r,u,f,e){function o(){t===e?e=w:i("Message targetOrigin: "+e)}function s(){var s=n+":"+r,o=it+":"+s+":"+u+(t!==f?":"+f:"");i("Sending message to host page ("+o+")");ur.postMessage(tt+o,e)}!0===rr&&(o(),s())}function yi(t){function o(){return tt===(""+t.data).substr(0,tr)}function f(){return t.data.split("]")[1].split(":")[0]}function u(){return t.data.substr(t.data.indexOf(":")+1)}function h(){return"iFrameResize"in n}function e(){return t.data.split(":")[2]in{"true":1,"false":1}}function l(){var n=f();n in r?r[n]():h()||e()||s("Unexpected message ("+t.data+")")}function a(){!1===ki?l():e()?r.init():i('Ignored message of type "'+f()+'". Received before initialization.')}var r={init:function(){function u(){gi=t.data;ur=t.source;sr();ki=!1;setTimeout(function(){di=!1},ct)}document.body?u():(i("Waiting for page ready"),v(n,"readystatechange",r.initFromParent))},reset:function(){di?i("Page reset ignored by init"):(i("Page size reset by host page"),ai("resetPage"))},resize:function(){c("resizeParent","Parent window requested size check")},moveToAnchor:function(){p.findTarget(u())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var n=u();i("PageInfoFromParent called from parent: "+n);bt(JSON.parse(n));i(" --")},message:function(){var n=u();i("MessageCallback called from parent: "+n);pt(JSON.parse(n));i(" --")}};o()&&a()}function uu(){"loading"!==document.readyState&&n.parent.postMessage("[iFrameResizerChild]Ready","*")}var o=!0,pi=10,wi="",st=0,g="",ht=null,bi="",nt=!1,fu={resize:1,click:1},ct=128,ki=!0,y=1,lt="bodyOffset",u=lt,di=!0,gi="",p={},l=32,nr=null,at=!1,tt="[iFrameSizer]",tr=tt.length,it="",ir={max:1,min:1,bodyScroll:1,documentElementScroll:1},vt="child",rr=!0,ur=n.parent,w="*",yt=0,rt=!1,fr=null,b=16,k=1,er="scroll",f=er,eu=n,pt=function(){s("MessageCallback function not defined")},wt=function(){},bt=function(){},kt={height:function(){return s("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return s("Custom width calculation function not defined"),document.body.scrollWidth}},dt={},ut=Date.now||function(){return(new Date).getTime()},h={bodyOffset:function(){return document.body.offsetHeight+et("marginTop")+et("marginBottom")},offset:function(){return h.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return kt.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,d(h))},min:function(){return Math.min.apply(null,d(h))},grow:function(){return h.max()},lowestElement:function(){return Math.max(h.bodyOffset(),ot("bottom",ci()))},taggedElement:function(){return hi("bottom","data-iframe-height")}},a={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return kt.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(a.bodyScroll(),a.documentElementScroll())},max:function(){return Math.max.apply(null,d(a))},min:function(){return Math.min.apply(null,d(a))},rightMostElement:function(){return ot("right",ci())},taggedElement:function(){return hi("right","data-iframe-width")}},ou=or(ru);v(n,"message",yi);uu()}(window||{}),function(n){var t="placeholder"in document.createElement("input");n.fn.placeholder=function(i){var i=n.extend({},n.fn.placeholder.defaults,i);return t?this:this.each(function(){var t=n(this),f=n.trim(t.val()),e=t.width(),o=t.height(),r=this.id?this.id:"placeholder"+ +new Date,s=t.attr("placeholder"),u=n("<label for="+r+">"+s+"<\/label>");i.placeholderCSS.width=e;i.placeholderCSS.height=o;i.placeholderCSS["font-size"]=t.css("font-size");i.placeholderCSS.padding="12px";i.placeholderCSS["margin-top"]="4px";u.css(i.placeholderCSS);f||(t.wrap(i.inputWrapper),t.attr("id",r).after(u));t.focus(function(){n.trim(t.val())||t.next().hide()});t.blur(function(){n.trim(t.val())||t.next().show()})})};n.fn.placeholder.defaults={inputWrapper:'<span style="position:relative"><\/span>',placeholderCSS:{color:"#B0B0B0",position:"absolute",left:"1px","overflow-x":"hidden"}}}(jQuery)