SetupNamespaces("AlpineInterviews");AlpineInterviews.Shared={ModalDialog:function(){var b={dialog:null,dialogContents:null,curtain:null,onClose:function(){}};var a={IsDisplaying:false,Display:function(d,l,f){var i=Get("ElementDropbox");var g=Math.max(((document.height)?document.height:document.body.offsetHeight),document.documentElement.clientHeight);var j=((document.width)?document.width:document.body.offsetWidth);d+=20;l+=20;b.curtain=Elem("div");b.curtain.style.display="block";b.curtain.style.position="absolute";b.curtain.style.top="0px";b.curtain.style.left="0px";b.curtain.style.backgroundColor="#000000";b.curtain.style.opacity=0.25;b.curtain.style.filter="alpha(opacity=25)";b.curtain.style.height=Math.ceil(g)+"px";b.curtain.style.width=Math.ceil(j)+"px";b.curtain.style.margin="0px auto";b.curtain.style.zIndex=175;b.curtain.appendChild(Text(" "));if(f){b.curtain.onclick=function(){a.Remove();return false}}b.dialog=Elem("div");b.dialog.style.position="absolute";b.dialog.style.position="fixed";b.dialog.style.zIndex=176;b.dialog.style.width=(d+40)+"px";b.dialog.style.height=(l+40)+"px";b.dialog.style.left=Math.max(Math.floor((document.body.clientWidth-(d+40))/2),0)+"px";b.dialog.style.top=Math.max(Math.floor(((document.documentElement.clientHeight-(l+40))/2)),0)+"px";for(var m=0;m<10;m++){var h=Math.ceil(3+((m*m)/30));var k=Elem("div");k.style.position="absolute";k.style.top=(2*m)+"px";k.style.left=(2*m)+"px";k.style.width=(d+40-(4*m))+"px";k.style.height=(l+40-(4*m))+"px";k.style.zIndex=177+m;k.style.backgroundColor="#000000";k.style.opacity=h/100;k.style.filter="alpha(opacity="+h+")";b.dialog.appendChild(k)}var c=Elem("div");c.style.position="absolute";c.style.top="20px";c.style.left="20px";c.style.width=(d-40)+"px";c.style.height=(l-40)+"px";c.style.zIndex=190;c.style.backgroundColor="#FFFFFF";c.style.opacity=1;c.style.filter="alpha(opacity=100)";c.style.padding="20px 20px";c.style.textAlign="left";if(f){var e=Elem("a");e.className="CloseButton";e.style.display="block";e.style.margin="-13px -10px 0 0";if(typeof(e.style.cssFloat)!="undefined"){e.style.cssFloat="right"}else{e.style.styleFloat="right"}e.href="#";e.onclick=function(){a.Remove();return false};e.appendChild(Text("Close"));c.appendChild(e)}b.dialogContents=Elem("div");b.dialogContents.style.width=(d-20)+"px";b.dialogContents.style.height=(l-20)+"px";c.appendChild(b.dialogContents);b.dialog.appendChild(c);setTimeout(function(){i.appendChild(b.curtain);i.appendChild(b.dialog);i=null},1);a.IsDisplaying=true},Remove:function(){b.onClose();var c=Get("ElementDropbox");try{c.removeChild(b.dialog);c.removeChild(b.curtain)}catch(d){}c=null;a.IsDisplaying=false},AddElem:function(c){b.dialogContents.appendChild(c);setTimeout(function(){b.dialogContents.style.display="none";b.dialogContents.style.display="block";b.dialogContents.focus()},250)},RemoveElem:function(c){b.dialogContents.removeChild(c)},ClearElems:function(){ClearElem(b.dialogContents)},DisplayLoadingBackground:function(){b.dialogContents.style.background="transparent url(https://www.alpineinterviews.com/images/layout/loading.gif) no-repeat scroll center center"},RemoveLoadingBackground:function(){b.dialogContents.style.backgroundImage="none"},AddOnCloseEvent:function(c){b.onClose=AddEventHandler(b.onClose,c)}};return a}};window.onload=AddEventHandler(window.onload,function(){Pliner.Util.Forms.CreateCookie("timezone-offset",((new Date()).getTimezoneOffset()*-1),365)});