(function(n){function u(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function f(n){return typeof n=="undefined"}var t={},e=n.TraceKit,r=[].slice,i="?";t.noConflict=function(){return n.TraceKit=e,t};t.wrap=function(n){function i(){try{return n.apply(this,arguments)}catch(i){t.report(i);throw i;}}return i};t.report=function(){function c(n){f.push(n)}function l(n){for(var t=f.length-1;t>=0;--t)f[t]===n&&f.splice(t,1)}function o(n,i){var e=null,o;if(!i||t.collectWindowErrors){for(o in f)if(u(f,o))try{f[o].apply(null,[n].concat(r.call(arguments,2)))}catch(s){e=s}if(e)throw e;}}function s(u){var s=r.call(arguments,1),h,f;if(i){if(e===u)return;h=i;i=null;e=null;o.apply(null,[h,null].concat(s))}f=t.computeStackTrace(u);i=f;e=u;n.setTimeout(function(){e===u&&(i=null,e=null,o.apply(null,[f,null].concat(s)))},f.incomplete?2e3:0);throw u;}var f=[],e=null,i=null,h=n.onerror;return n.onerror=function(n,r,u,f,s){var l=null,c;return(s?l=t.computeStackTrace(s):i?(t.computeStackTrace.augmentStackTraceWithInitialElement(i,r,u,n),l=i,i=null,e=null):(c={url:r,line:u,column:f},c.func=t.computeStackTrace.guessFunctionName(c.url,c.line),c.context=t.computeStackTrace.gatherContext(c.url,c.line),l={mode:"onerror",message:n,url:document.location.href,stack:[c],useragent:navigator.userAgent}),o(l,"from window.onerror"),h)?h.apply(this,arguments):!1},s.subscribe=c,s.unsubscribe=l,s}();t.computeStackTrace=function(){function b(i){if(!t.remoteFetching)return"";try{function u(){try{return new n.XMLHttpRequest}catch(t){return new n.ActiveXObject("Microsoft.XMLHTTP")}}var r=u();return r.open("GET",i,!1),r.send(""),r.responseText}catch(f){return""}}function o(n){if(!u(a,n)){var t="";n=n||"";n.indexOf(document.domain)!==-1&&(t=b(n));a[n]=t?t.split("\n"):[]}return a[n]}function e(n,t){var r="",s=o(n),e,u;if(!s.length)return i;for(u=0;u<10;++u)if(r=s[t-u]+r,!f(r)&&((e=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/.exec(r))||(e=/function ([^(]*)\(([^)]*)\)/.exec(r))))return e[1];return i}function s(n,i){var u=o(n),r;if(!u.length)return null;var e=[],s=Math.floor(t.linesOfContext/2),h=s+t.linesOfContext%2,c=Math.max(0,i-s-1),l=Math.min(u.length,i+h-1);for(i-=1,r=c;r<l;++r)f(u[r])||e.push(u[r]);return e.length>0?e:null}function c(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function y(n){return c(n).replace("<","(?:<|&lt;)").replace(">","(?:>|&gt;)").replace("&","(?:&|&amp;)").replace('"','(?:"|&quot;)').replace(/\s+/g,"\\s+")}function l(n,t){for(var i,r,u=0,f=t.length;u<f;++u)if((i=o(t[u])).length&&(i=i.join("\n"),r=n.exec(i)))return{url:t[u],line:i.substring(0,r.index).split("\n").length,column:r.index-i.lastIndexOf("\n",r.index)-1};return null}function v(n,t,i){var r=o(t),f=new RegExp("\\b"+c(n)+"\\b"),u;return(i-=1,r&&r.length>i&&(u=f.exec(r[i])))?u.index:null}function k(t){for(var h,v,p,w,e=[n.location.href],a=document.getElementsByTagName("script"),u,o=""+t,r,i,f,s=0;s<a.length;++s)h=a[s],h.src&&e.push(h.src);return((i=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(o))?(v=i[1]?"\\s+"+i[1]:"",p=i[2].split(",").join("\\s*,\\s*"),u=c(i[3]).replace(/;$/,";?"),r=new RegExp("function"+v+"\\s*\\(\\s*"+p+"\\s*\\)\\s*{\\s*"+u+"\\s*}")):r=new RegExp(c(o).replace(/\s+/g,"\\s+")),f=l(r,e))?f:(i=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/.exec(o))&&((w=i[1],u=y(i[2]),r=new RegExp("on"+w+"=[\\'\"]\\s*"+u+"\\s*[\\'\"]","i"),f=l(r,e[0]))||(r=new RegExp(u),f=l(r,e)))?f:null}function d(n){var f,c;if(!n.stack)return null;var o=n.stack.split("\n"),u=[],t,r,h=/^(.*) is undefined$/.exec(n.message);for(f=0,c=o.length;f<c;++f){if(t=/^\s*(\S*)(?:\((.*?)\))?@((?:file|http|https).*?):(\d+)(?::(\d+))?\s*$/i.exec(o[f]))r={url:t[3],func:t[1]||i,args:t[2]?t[2].split(","):"",line:+t[4],column:t[5]?+t[5]:null};else if(t=/^\s*at (?:((?:\[object object\])?\S+) )?\(?((?:file|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i.exec(o[f]))r={url:t[2],func:t[1]||i,line:+t[3],column:t[4]?+t[4]:null};else if(t=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i.exec(o[f]))r={url:t[2],func:t[1]||i,line:+t[3],column:t[4]?+t[4]:null};else continue;!r.func&&r.line&&(r.func=e(r.url,r.line));r.line&&(r.context=s(r.url,r.line));u.push(r)}return(u[0]&&u[0].line&&!u[0].column&&h&&(u[0].column=v(h[1],u[0].url,u[0].line)),!u.length)?null:{mode:"stack",name:n.name,message:n.message,url:document.location.href,stack:u,useragent:navigator.userAgent}}function g(n){for(var t,o=n.stacktrace,u=o.split("\n"),f=[],i,r=0,h=u.length;r<h;r+=2)if(i=/ line (\d+), column (\d+) in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\) in (.*):\s*$/i.exec(u[r])){if(t={line:+i[1],column:+i[2],func:i[3]||i[4],args:i[5]?i[5].split(","):[],url:i[6]},!t.func&&t.line&&(t.func=e(t.url,t.line)),t.line)try{t.context=s(t.url,t.line)}catch(c){}t.context||(t.context=[u[r+1]]);f.push(t)}return f.length?{mode:"stacktrace",name:n.name,message:n.message,url:document.location.href,stack:f,useragent:navigator.userAgent}:null}function nt(t){var h=t.message.split("\n"),i,g,w,b,a,tt;if(h.length<4)return null;var p=[],v=document.getElementsByTagName("script"),k=[],f,r,d,c;for(r in v)u(v,r)&&!v[r].src&&k.push(v[r]);for(r=2,d=h.length;r<d;r+=2){if(i=null,f=/^\s*Line (\d+) of linked script ((?:file|http|https)\S+)(?:: in function (\S+))?\s*$/i.exec(h[r]))i={url:f[2],func:f[3],line:+f[1]};else if(f=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|http|https)\S+)(?:: in function (\S+))?\s*$/i.exec(h[r]))i={url:f[3],func:f[4]},g=+f[1],w=k[f[2]-1],w&&(c=o(i.url),c&&(c=c.join("\n"),b=c.indexOf(w.innerText),b>=0&&(i.line=g+c.substring(0,b).split("\n").length)));else if(f=/^\s*Line (\d+) of function script\s*$/i.exec(h[r])){var nt=n.location.href.replace(/#.*$/,""),it=f[1],rt=new RegExp(y(h[r+1]));c=l(rt,[nt]);i={url:nt,line:c?c.line:it,func:""}}i&&(i.func||(i.func=e(i.url,i.line)),a=s(i.url,i.line),tt=a?a[Math.floor(a.length/2)]:null,i.context=a&&tt.replace(/^\s*/,"")===h[r+1].replace(/^\s*/,"")?a:[h[r+1]],p.push(i))}return p.length?{mode:"multiline",name:t.name,message:h[0],url:document.location.href,stack:p,useragent:navigator.userAgent}:null}function p(n,t,i,r){var u={url:t,line:i},f;if(u.url&&u.line){if(n.incomplete=!1,u.func||(u.func=e(u.url,u.line)),u.context||(u.context=s(u.url,u.line)),f=/ '([^']+)' /.exec(r),f&&(u.column=v(f[1],u.url,u.line)),n.stack.length>0&&n.stack[0].url===u.url){if(n.stack[0].line===u.line)return!1;if(!n.stack[0].line&&n.stack[0].func===u.func)return n.stack[0].line=u.line,n.stack[0].context=u.context,!1}return n.stack.unshift(u),n.partial=!0,!0}return n.incomplete=!0,!1}function w(n,u){for(var c,l,h=[],a={},y=!1,b,f,s,o=w.caller;o&&!y;o=o.caller)o!==r&&o!==t.report&&(f={url:null,func:i,line:null,column:null},o.name?f.func=o.name:(b=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i.exec(o.toString()))&&(f.func=b[1]),(s=k(o))&&(f.url=s.url,f.line=s.line,f.func===i&&(f.func=e(f.url,f.line)),c=/ '([^']+)' /.exec(n.message||n.description),c&&(f.column=v(c[1],s.url,s.line))),a[""+o]?y=!0:a[""+o]=!0,h.push(f));return u&&h.splice(0,u),l={mode:"callers",name:n.name,message:n.message,url:document.location.href,stack:h,useragent:navigator.userAgent},p(l,n.sourceURL||n.fileName,n.line||n.lineNumber,n.message||n.description),l}function r(n,t){var i=null;t=t==null?0:+t;try{if(i=g(n),i)return i}catch(r){if(h)throw r;}try{if(i=d(n),i)return i}catch(r){if(h)throw r;}try{if(i=nt(n),i)return i}catch(r){if(h)throw r;}try{if(i=w(n,t+1),i)return i}catch(r){if(h)throw r;}return{mode:"failed"}}function tt(n){n=(n==null?0:+n)+1;try{throw new Error;}catch(t){return r(t,n+1)}return null}var h=!1,a={};return r.augmentStackTraceWithInitialElement=p,r.guessFunctionName=e,r.gatherContext=s,r.ofCaller=tt,r}(),function(){var i=function(i){var u=n[i];n[i]=function(){var n=r.call(arguments),i=n[0];return typeof i=="function"&&(n[0]=t.wrap(i)),u.apply?u.apply(this,n):u(n[0],n[1])}};i("setTimeout");i("setInterval")}();t.remoteFetching||(t.remoteFetching=!0);t.collectWindowErrors||(t.collectWindowErrors=!0);(!t.linesOfContext||t.linesOfContext<1)&&(t.linesOfContext=11);n.TraceKit=t})(window),function(n,t){"use strict";var r,u,i;n&&(r=n.event.add,n.event.add=function(i,u,f,e,o){var s;return f.handler?(s=f.handler,f.handler=t.wrap(f.handler)):(s=f,f=t.wrap(f)),f.guid=s.guid?s.guid:s.guid=n.guid++,r.call(this,i,u,f,e,o)},u=n.fn.ready,n.fn.ready=function(n){return u.call(this,t.wrap(n))},i=n.ajax,n.ajax=function(r,u){typeof r=="object"&&(u=r,r=undefined);u=u||{};for(var o=["complete","error","success"],f;f=o.pop();)n.isFunction(u[f])&&(u[f]=t.wrap(u[f]));try{return r?i.call(this,r,u):i.call(this,u)}catch(e){t.report(e);throw e;}})}(window.jQuery,window.TraceKit),function(n,t,i){function et(n){var t=n,i=n.split("//")[1];if(i){var e=i.indexOf("?"),r=i.toString().substring(0,e),u=r.split("/").slice(0,4).join("/"),f=r.substring(0,48);t=u.length<f.length?u:f;t!==r&&(t+="..")}return t}function k(n,t,u,f){var e="AJAX Error: "+(t.statusText||"unknown")+" "+(u.type||"unknown")+" "+(et(u.url)||"unknown");r.send(f||n.type,{status:t.status,statusText:t.statusText,type:u.type,url:u.url,ajaxErrorMessage:e,contentType:u.contentType,data:u.data?u.data.slice(0,10240):i})}function u(t,i){n.console&&n.console.log&&p&&(n.console.log(t),i&&n.console.log(i))}function d(){return s&&s!==""?!0:(u("Raygun API key has not been configured, make sure you call Raygun.init(yourApiKey)"),!1)}function g(n,t){var i,r={};for(i in n)r[i]=n[i];for(i in t)r[i]=t[i];return r}function ot(n,t){return t!=null?n.concat(t):n}function nt(n,t){for(var i=0;i<n.length;i++)t.call(null,i,n[i])}function tt(n){for(var t in n)if(n.hasOwnProperty(t))return!1;return!0}function st(){return Math.floor(Math.random()*9007199254740992)}function h(){var t=document.documentElement,i=document.getElementsByTagName("body")[0],r=n.innerWidth||t.clientWidth||i.clientWidth,u=n.innerHeight||t.clientHeight||i.clientHeight;return{width:r,height:u}}function it(n){var i=(new Date).toJSON(),t;try{t="raygunjs="+i+"="+st();typeof localStorage[t]=="undefined"&&(localStorage[t]=n)}catch(r){u("Raygun4JS: LocalStorage full, cannot save exception")}}function ht(){try{return"localStorage"in n&&n.localStorage!==null}catch(t){return!1}}function v(){if(ht()&&localStorage.length>0)for(var n in localStorage)n.substring(0,9)==="raygunjs="&&(rt(JSON.parse(localStorage[n])),localStorage.removeItem(n))}function y(t,r){var v=[],y={},s,c;t.stack&&t.stack.length&&nt(t.stack,function(n,t){v.push({LineNumber:t.line,ColumnNumber:t.column,ClassName:"line "+t.line+", column "+t.column,FileName:t.url,MethodName:t.func||"[anonymous]"})});n.location.search&&n.location.search.length>1&&nt(n.location.search.substring(1).split("&"),function(n,t){var i=t.split("=");i&&i.length===2&&(y[decodeURIComponent(i[0])]=i[1])});r===i&&(r={});tt(r.customData)&&(r.customData=typeof f=="function"?f():f);tt(r.tags)&&(r.tags=l);var e=n.screen||{width:h().width,height:h().height,colorDepth:8},p=r.customData&&r.customData.ajaxErrorMessage,o=r.customData;try{JSON.stringify(o)}catch(w){s="Cannot add custom data; may contain circular reference";o={error:s};u("Raygun4JS: "+s)}c={OccurredOn:new Date,Details:{Error:{ClassName:t.name,Message:p||t.message||r.status||"Script error",StackTrace:v},Environment:{UtcOffset:(new Date).getTimezoneOffset()/-60,"User-Language":navigator.userLanguage,"Document-Mode":document.documentMode,"Browser-Width":h().width,"Browser-Height":h().height,"Screen-Width":e.width,"Screen-Height":e.height,"Color-Depth":e.colorDepth,Browser:navigator.appCodeName,"Browser-Name":navigator.appName,"Browser-Version":navigator.appVersion,Platform:navigator.platform},Client:{Name:"raygun-js",Version:"1.8.5"},UserCustomData:o,Tags:r.tags,Request:{Url:document.location.href,QueryString:y,Headers:{"User-Agent":navigator.userAgent,Referer:document.referrer,Host:document.domain}},Version:b||"Not supplied"}};a&&(c.Details.User=a);rt(c)}function rt(n){if(d()){u("Sending exception data to Raygun:",n);var t=ft+"/entries?apikey="+encodeURIComponent(s);lt(t,JSON.stringify(n))}}function ct(t,i){var r;return r=new n.XMLHttpRequest,"withCredentials"in r?r.open(t,i,!0):n.XDomainRequest&&(w&&(i=i.slice(6)),r=new n.XDomainRequest,r.open(t,i)),r.timeout=1e4,r}function lt(t,i){var r=ct("POST",t,i);if("withCredentials"in r?(r.onreadystatechange=function(){r.readyState===4&&(r.status===202?v():c&&r.status!==403&&r.status!==400&&it(i))},r.onload=function(){u("logged error to Raygun")}):n.XDomainRequest&&(r.ontimeout=function(){c&&(u("Raygun: saved error locally"),it(i))},r.onload=function(){u("logged error to Raygun");v()}),r.onerror=function(){u("failed to log error to Raygun")},!r){u("CORS not supported");return}r.send(i)}var o=TraceKit.noConflict(),ut=n.Raygun,s,p=!1,w=!1,c=!1,f={},l=[],a,b,ft="https://api.raygun.io",e,r;t&&(e=t(document));r={noConflict:function(){return n.Raygun=ut,r},init:function(n,t,i){return s=n,o.remoteFetching=!1,f=i,t&&(w=t.allowInsecureSubmissions||!1,t.debugMode&&(p=t.debugMode)),v(),r},withCustomData:function(n){return f=n,r},withTags:function(n){l=n},attach:function(){if(d())return o.report.subscribe(y),e&&e.ajaxError(k),r},detach:function(){return o.report.unsubscribe(y),e&&e.unbind("ajaxError",k),r},send:function(n,t,i){try{y(o.computeStackTrace(n),{customData:typeof f=="function"?g(f(),t):g(f,t),tags:ot(l,i)})}catch(u){if(n!==u)throw u;}return r},setUser:function(n){return a={Identifier:n},r},setVersion:function(n){return b=n,r},saveIfOffline:function(n){return typeof n!="undefined"&&typeof n=="boolean"&&(c=n),r}};n.Raygun=r}(window,window.jQuery);jQuery.fn.center=function(){return this.css("position","absolute"),this.css("top",($(window).height()-this.height())/2+$(window).scrollTop()-50+"px"),this.css("left",($(window).width()-this.width())/2+$(window).scrollLeft()+"px"),this};$(function(){function n(n){$("#SubmissionForm").data("changed",!0);var i=$("#SubmissionForm").serialize(),t=!1;return $.ajax({type:"POST",cache:!1,dataType:"json",async:!1,url:"/submit/savedraft?"+$.now(),data:i+"&button="+n,success:function(n){t=n==!0},error:function(){}}),t}function i(n){n=="success"?location.reload():($("#LoginMessage").html(n),$("#LoginMessage").show(),$.unblockUI())}function r(n){$("#LoginMessage").html(n);$("#LoginMessage").show();$.unblockUI()}function t(n){if($(n).length!=0){var t=$(n).closest("div").find(".embedly-preview");$(t).length!=0&&($(t).hide().html(""),$.embedly($(n).val(),{key:"1b9ffe6e688f43fc92778d85e689491c",maxHeight:200,maxWidth:350,secure:!0,frame:!0,success:function(n){n.type!="link"&&n.code!=null?$(t).html(n.code).fadeIn():n.type!="link"&&$(t).html(n.html).fadeIn()}}))}}$("#pay-paypal").click(function(n){n.preventDefault();DoBlockUI();var t=$(this).attr("href");$.post(t,$("form").serialize(),function(n){window.location.href=n})});$("#location-filter").live("change",function(){var n=$(this).val();$("div.category").show();n&&$("div.category:not('."+n+"')").hide()});$("a.expand-guidelines").click(function(n){var t=$(this).closest(".category").find(".category-description");$(t).slideToggle(100);$(this).text($(this).text()=="+ Show Guidelines"?"- Hide Guidelines":$(this).text()=="- Hide Guidelines"?"+ Show Guidelines":$(this).text()=="+ Show Job Description"?"- Hide Job Description":"+ Show Job Description");n.preventDefault()});$("a.login").click(function(n){$("#login_form").center();$("#login_form").show();$("#login_form #LoginUsername").focus();$("#grey_out").css({display:"block",opacity:.7,width:$(document).width(),height:$(document).height()});n.preventDefault()});$("a.cancel").click(function(n){$("#login_form").hide();$("#grey_out").hide();n.preventDefault()});$("#LoginForm").submit(function(n){n.preventDefault();$("#LoginMessage").html('<img src="/Public/Images/loading-circular-sm.gif" alt="" />');var t=$("#LoginUsername").val(),u=$("#LoginPassword").val(),f=$("#returnUrl").val();$.ajax({url:"/account/login",type:"post",dataType:"json",data:{username:t,password:u,rememberMe:!1},success:i,error:r})});$("input.embedly").bind("input propertychange",function(){t(this)});$("input.embedly").each(function(){t(this)});$("#SubmissionForm :input").change(function(){n(!1)});$("#SubmissionForm input[type='text']").keypress(function(n){if(n.which==13)return!1});$("#draftbutton").click(function(){var t=n(!0);t?ShowNotification("Draft will be saved for 21 days."):ShowNotification("There was a problem saving the draft. Please try again.","error")});$("#SubmissionForm").submit(function(n){if($("#Terms").length>0&&$("#SubmissionForm").valid()&&$("#Terms").is(":checked")==!1)return alert("You must check the box verifying that you agree to the Terms Of Use."),$("#SubmissionForm").valid(!1),n.preventDefault(),!1;if($("#SubmissionForm").valid()&&$("#upload-required").val()==="true"&&$("#upload-list li").length==0)return alert("You must attach a file."),!1;var t=!0;if($(".upload-control").each(function(){if($("#SubmissionForm").valid()&&$(this).find(".upload-required").val()==="true"&&$(this).find(".upload-list li").length==0){var n=$(this).find(".file-list-cors").attr("id").replace("fid-",""),i="#CustomField_ID"+n+"_Label",r=$(i).val();return alert("The '"+r+"' field is required. You must attach a file."),t=!1,!1}}),!t)return!1;$("#SubmissionForm").valid()&&DoBlockUI()})})