﻿eval(function(j,b,g,f,i,h){i=function(a){return(a<b?"":i(parseInt(a/b)))+((a=a%b)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(g--){h[i(g)]=f[g]||i(g)}f=[function(a){return h[a]}];i=function(){return"\\w+"};g=1}while(g--){if(f[g]){j=j.replace(new RegExp("\\b"+i(g)+"\\b","g"),f[g])}}return j}('Q.P.O=3(z){1 p=z||{y:"N",x:"M",w:"L",v:K,u:"a",t:J};1 d=$("#"+p.y);1 c=$("#"+p.x);1 2=$("#"+p.w);1 j=p.v;1 e=p.u;1 4=p.t;1 g;1 9=3(){c.s("5",9);6(4)h();2.r({f:-j},\'q\',\'\',3(){2.i(e+":I").H(2);2.b("f",0);c.n("5",9);6(4)8()})};1 7=3(){d.s("5",7);6(4)h();2.i(e+":o").G().F().E(2);2.b("f",-j);2.r({f:0},\'q\',\'\',3(){2.i(e+":o").D();d.n("5",7);6(4)8()})};d.b("m","l").5(7);c.b("m","l").5(9);1 8=3(){g=k.C(7,B)};1 h=3(){k.A(g)};6(4)8()};',53,53,"|var|_imgFrame|function|_auto|click|if|turnRight|autoPlay|turnLeft||css|_btnPrev|_btnNext|_child|marginLeft|_itv|autoStop|find|_width|window|hand|cursor|bind|last||fast|animate|unbind|auto|child|width|frame|prev|next|params|clearInterval|3000|setInterval|remove|prependTo|show|clone|appendTo|first|true|100|viewerFrame|buttonPrev|buttonNext|imageScroller|fn|jQuery".split("|"),0,{}));
window.General=window.General||new (function(){var that=this;this.extend=function(to,from){if(from==null||typeof from!="object"){return from}if(from.constructor!=Object&&from.constructor!=Array){return from}if(from.constructor==Date||from.constructor==RegExp||from.constructor==Function||from.constructor==String||from.constructor==Number||from.constructor==Boolean){return new from.constructor(from)}to=to||new from.constructor();for(var name in from){to[name]=typeof to[name]=="undefined"?this.extend(null,from[name]):to[name]}return to};this.toJSON=function(o){if(o==null){return null}if(typeof o=="string"){return"'"+escape(o)+"'"}if(typeof o!="object"){return o}var array=[];var isArray=o instanceof Array;for(var key in o){array.push(isArray?this.toJSON(o[key]):key+":"+this.toJSON(o[key]))}return isArray?"["+array.toString()+"]":"{"+array.toString()+"}"};this.fromJSON=function(text){function Unescape(data){if(data==null){return null}for(var key in data){var item=data[key];if(!item){continue}if(item.constructor==String){data[key]=unescape(item)}if(typeof data=="object"){Unescape(item)}}}try{var data=null;if(text&&text.length>0){eval("data = "+text)}Unescape(data);return data}catch(ex){return null}};this.scrollIntoView=function(item,scroller){item=item.length?item[0]:item;scroller=scroller&&(scroller.length?scroller[0]:scroller);if(!scroller){for(scroller=item.parentNode;scroller&&scroller.offsetHeight>=scroller.scrollHeight;scroller=scroller.parentNode){}}var ir={top:item.offsetTop,bottom:item.offsetTop+item.offsetHeight};var sr={top:scroller.scrollTop,bottom:scroller.scrollTop+scroller.clientHeight};if(ir.top<=sr.top){$(scroller).scrollTop(ir.top)}if(ir.bottom>=sr.bottom){$(scroller).scrollTop(ir.bottom-sr.bottom+sr.top)}};this.StopEventBubbling=function(e){if(!e){var e=window.event}e.cancelBubble=true;if(e.stopPropagation){e.stopPropagation()}};this.scrollTop=function(){try{if(parent.window!=null){parent.window.scrollTo(0,0)}}catch(ex){window.scrollTo(0,0)}};this.currentCss=function(element){element=element.jquery?element[0]:element;if(element.nodeType!=1){return{}}if(element.currentStyle){return element.currentStyle}if(window.getComputedStyle){return window.getComputedStyle(element,null)}};this.isVisible=function(element){for(element=element[0];element=element.parentNode;){if(General.currentCss(element).display=="none"){return false}}return true};this.format=function(text){for(var n=0,arg;(arg=arguments[n+1])!=null;n++){text=text.replace(new RegExp("\\{"+n+"\\}","g"),arg)}return text};this.find=function(array,func){var value=func;var isFunc=func.constructor==Function;for(var n=0,item;item=array[n];n++){if(isFunc?func(item):item==value){return{item:item,index:n,remove:function(){array.splice(n,1);this.index=-1}}}}return{item:null,index:-1}};this.indexOf=function(array,func){var n=-1;var item=null;while((item=array[++n])&&!func(item)){}return n};this.accumulate=function(result,array,func){if(arguments.length==2){func=array;array=result;result=null}result=result||(array[0]&&new array[0].constructor());for(var n=0,item,value;item=array[n];n++){item&&(value=func(result,item,n))!=null&&(result=value)}return result};this.take=function(array,func){return this.accumulate([],array,function(result,item){result.push(func(item))})};this.wait=function(condFunc,readyFunc,delay){if(!condFunc()){setTimeout(function(){General.wait(condFunc,readyFunc,delay)},delay||50)}else{readyFunc()}};this.needWaitAjax=function(onAfterWait){if($.active>0){General.wait(function(){return $.active==0},function(){onAfterWait()});return true}return false};this.cloneCss=function(src,dest){if(!(src=src.jquery?src[0]:src)||!(dest=dest.jquery?dest[0]:dest)){return}var css=General.currentCss(src);if($.browser.msie){for(var key in css){dest.style[key]=css[key]}}else{for(var n=0,item;item=css.item(n++);){dest.style.setProperty(item,css.getPropertyValue(item),css.getPropertyPriority(item))}}};function calculateBox(prefix,postfix,sides,element,isNumeric){sides=sides||["Top","Right","Bottom","Left"];var css=General.currentCss(element);var top=css[prefix+sides[0]+postfix];var right=css[prefix+sides[1]+postfix];var bottom=css[prefix+sides[2]+postfix];var left=css[prefix+sides[3]+postfix];var result={top:parseInt(top),right:parseInt(right),bottom:parseInt(bottom),left:parseInt(left)};if(isNaN(result.top)){result.top=isNumeric?0:top}if(isNaN(result.right)){result.right=isNumeric?0:right}if(isNaN(result.bottom)){result.bottom=isNumeric?0:bottom}if(isNaN(result.left)){result.left=isNumeric?0:left}return result}function accumulate(result,func){if(arguments.length==1){func=result;result=null}return General.accumulate(result,this,func)}function take(func){return General.take(this,func)}function getServerControl(id,type){return $((type||"*")+"[id$="+id+"]")}function visible(){return this.css("display")!="none"}function currentCss(){return General.currentCss(this)}this.ShowToolTip=function(e){var tooltip=$("#divToolTip");if(!tooltip.length){tooltip=$("<div id='divToolTip' />").css("position","absolute").appendTo("body")}tooltip.empty().append($("#"+$(this).attr("tooltipCont")).clone()).css("top",e.pageY-50).css("left",e.pageX+30).show()};this.HideToolTip=function(e){$("#divToolTip").hide()};this.GetDdl=function(data,FirstOption,SelValue,name,className,id){if(data!=null){var curDdl=$("<select/>");that.BuildDdlOptions(curDdl,data,FirstOption);SelValue&&curDdl.val(SelValue);name&&curDdl.attr("name",name);id&&curDdl.attr("id",id);className&&curDdl.addClass(className);return curDdl}else{return null}};this.BuildDdlOptions=function(ddl,data,FirstOption){ddl.empty();FirstOption&&ddl.append($("<option/>").attr("value","-999").html(FirstOption));for(var i=0;i<data.length;i++){var curOption=$("<option/>").attr("value",data[i].ID).html(data[i].Name);ddl.append(curOption)}};this.GetQSParam=function(name,QS){name=name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var regexS="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(QS||window.location.href);if(results==null){return""}else{return results[1]}};jQuery.format=this.format;jQuery.fn.visible=visible;jQuery.fn.take=take;jQuery.fn.accumulate=accumulate;jQuery.fn.currentCss=currentCss;jQuery.$=getServerControl;jQuery.srcElem=function(e){return $(e.srcElement?e.srcElement:e.target)}})();$(window).ajaxError(function(c,b,a,d){if(b.status!=200){window.WaitPanel&&WaitPanel.Clear()}var e=b.getResponseHeader("CustomStatus");if(e==null||e==""){return}switch(e){case"SessionTimeout":window.location.href="Login.aspx";break;case"ServiceTimeout":alert(b.responseText||"Server is busy. Try again in some minutes.");break;case"Exception":alert(b.responseText||"There was a server error.");break}});jQuery.fn.outerHTML=function(a){return a?this.before(a).remove():jQuery("<p>").append(this.eq(0).clone()).html()};jQuery.fn.htmlPersChange=function(a){this.html(a);this.replaceWith(this.clone(true));return this};$.fn.check=function(a){a=a||"on";return this.each(function(){switch(a){case"on":this.checked=true;break;case"off":this.checked=false;break;case"toggle":this.checked=!this.checked;break}})};window.GenericAutoComplete=window.GenericAutoComplete||new (function(){this.All=[];this.DefaultSettings={url:null,data:null,minChars:1,delay:100,Events:{OnShowData:null}};this.Create=function(d,c){return this.All[this.All.length]=(d[0].Controls=d[0].Controls||{}).GenericAutoComplete=new a(d,c)};function a(e,d){var c=this;var g=null;this.Control=e;this.Settings=settings1=General.extend(d,GenericAutoComplete.DefaultSettings);function h(){e.keydown(i)}h();function i(j){switch(j.keyCode){case 37:case 39:break;case 38:break;case 40:break;case 13:break;case 9:break;case 27:break;default:g&&clearTimeout(g);g=setTimeout(function(){g=null;if(e.val().length>d.minChars){if(d.url){$.getJSON(d.url+"?InputString="+e.val(),f)}}},d.delay)}}function f(j){d.data=j;d.Events.OnShowData&&d.Events.OnShowData(d.data)}}function b(){}b()})();window.GenericDialog=window.GenericDialog||new (function(){var l=null;var a=null;var j=null;var h=null;var g=null;var d=400;var b=120;var e=d;var f=b;this.divDialog=function(m){if(m!=null){l=m}return l};this.ConfirmDialog=function(s,p,q,r,o,n,m){a=p;j=q;g=r;k(o,n);l=$("#divConfirm");$("div[id$=divDialogConfirm]").show();$("div[id$=divWait]").hide();$("div[id$=divDialogOk]").hide();if(s){l.find("*[id$=spnConfirmText]").html(s)}l.find("*[id$=lnkConfirmYes]").click(this.CloseDialog).click(i);l.find("*[id$=lnkConfirmNo]").click(this.CloseDialog).click(c);if(m){l.find("*[id$=lnkConfirmYes]").html(txtOk);l.find("*[id$=lnkConfirmNo]").html(txtCancel)}this.OpenDialog()};this.OkDialog=function(q,o,p,n,m){h=o;g=p;l=$("#divConfirm");$("div[id$=divDialogConfirm]").hide();$("div[id$=divWait]").hide();$("div[id$=divDialogOk]").show();if(q){l.find("*[id$=spnConfirmText]").html(q)}l.find("*[id$=lnkDialogOk]").click(this.CloseDialog).click(h);k(n,m);this.OpenDialog()};this.WaitDialog=function(m){l=$("#divConfirm");$("div[id$=divDialogConfirm]").hide();$("div[id$=divDialogOk]").hide();$("div[id$=divWait]").show();k();if(m){l.find("*[id$=spnConfirmText]").html(m)}l.dialog({open:function(){$(this).parents(".ui-dialog:first").find(".ui-dialog-titlebar-close").remove()}});this.OpenDialog()};function i(){if(a==null){return}a(g)}function c(){if(j==null){return}j(g)}this.OpenDialog=function(){if(l==null){return}l.dialog({position:["center",top==window?"center":"top"],width:e>0?e:"auto",height:f>0?f:"auto"});l.dialog("open")};this.CloseDialog=function(){if(l==null){return}l.dialog("close");l.dialog("destroy")};function k(n,m){if(n){e=n}else{e=d}if(m){f=m}else{f=b}}})();function IframeScrollTop(){$("<div/>").dialog({position:["right","top"],width:0,height:0}).dialog("open").dialog("close")}jQuery.cookie=function(j,e,a){if(typeof e!="undefined"){a=a||{};if(e===null){e="";a.expires=-1}var h="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){var b;if(typeof a.expires=="number"){b=new Date();b.setTime(b.getTime()+(a.expires*24*60*60*1000))}else{b=a.expires}h="; expires="+b.toUTCString()}var m=a.path?"; path="+(a.path):"";var c=a.domain?"; domain="+(a.domain):"";var k=a.secure?"; secure":"";document.cookie=[j,"=",encodeURIComponent(e),h,m,c,k].join("")}else{var g=null;if(document.cookie&&document.cookie!=""){var n=document.cookie.split(";");for(var l=0,d=n.length;l<d;l++){var f=jQuery.trim(n[l]);if(f.substring(0,j.length+1)==(j+"=")){g=decodeURIComponent(f.substring(j.length+1));break}}}return g}};
var IE=document.all?true:false;if(!IE){document.captureEvents(Event.CLICK)}document.onmouseclick=getMouseXY;var tempX=0;var tempY=0;function getMouseXY(a){if(IE){tempX=event.clientX+document.body.scrollLeft;tempY=event.clientY+document.body.scrollTop}else{tempX=a.pageX;tempY=a.pageY}if(tempX<0){tempX=0}if(tempY<0){tempY=0}alert(tempX+","+tempY);return true}function trim(a){var d;var b;var e="";for(d=0;d<a.length;d++){b=a.substring(d,d+1);if(b!=" "){e+=b}}return e}function ltrim(a){var d;var b;for(d=0;d<a.length;d++){b=a.substring(d,d+1);if(b!=" "){break}}return a.substr(d)}function rtrim(a){var d;var b;for(d=a.length;d>0;d--){b=a.substring(d,d-1);if(b!=" "){break}}return a.substring(0,d)}function EscapeXML(a){var d="";if(typeof(a)=="undefined"||String(a)==""){return d}if(typeof(a)!="string"){return a}var b=0;var c=0;while(a.indexOf("&",b)!=-1){c=a.indexOf("&",b)+1;d+=a.substring(b,c).replace("&","&amp;");b=c}d+=a.substr(b);while(d.indexOf("<")!=-1){d=d.replace("<","&lt;")}while(d.indexOf(">")!=-1){d=d.replace(">","&gt;")}while(d.indexOf('"')!=-1){d=d.replace('"',"&quot;")}while(d.indexOf("'")!=-1){d=d.replace("'","&apos;&apos;")}return d}function popup(f,h){var a=600;var g=400;var c=(screen.width-a)/2;var b=(screen.height-g)/2;var d="width="+a+",height="+g;d+=",top="+b+", left="+c;d+=",directories=no";d+=",location=no";d+=",menubar=no";d+=",resizable=no";d+=",scrollbars=no";d+=",status=no";d+=",toolbar=no";var e=null;e=window.open(f,h,d);if(window.focus){e.focus()}return false}function goToPage(page,target,alertForModifications,HaveSkills){checkIfRematch(page);if(typeof(alertForModifications)!="undefined"){if(alertForModifications){if(!confirm("Save button was not clicked. Would you like to exit without saving?")){return}else{pageTouched=false}}}if(parent.name=="redmatchWindow"){target="window.name"}document.forms.hiddenForm.action="c.asp?action="+page+"";if(target!=""){eval("document.forms['hiddenForm'].target = "+target+";")}document.forms.hiddenForm.submit()}function GetElementPosition(c,b){var d=0;var a=0;if(c.parentNode){try{if(b&&b.uniqueID==null){b.uniqueID="tempUniqueId"}do{d+=c.offsetLeft;a+=c.offsetTop;while(c&&(c=c.offsetParent)&&(c&&c.nodeType!=1)){}}while(c&&(b==null||c.uniqueID==null||c.uniqueID!=b.uniqueID));if(b!=null&&b.uniqueID=="tempUniqueId"){delete b.uniqueID}}catch(e){d=a=NaN}}return{x:d,y:a}}function GetChildElementByIndex(b,c){for(var a=0,d=b.firstChild;d;d=d.nextSibling){if(d.nodeType==1&&a++==c){return d}}return null}function GetParentByTagName(a,b){b=b.toLowerCase();while(a&&(a.nodeType==1)&&(a.tagName.toLowerCase()!=b)&&(a=a.parentNode)){}return a.nodeType==1?a:null}function RegisterOnResponseCallback(b){function a(c,d){Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(a);b(c,d)}Sys.WebForms.PageRequestManager.getInstance().add_endRequest(a)}function IE6CssFix(d,f){b();function b(){if(Sys.Browser.agent!=Sys.Browser.InternetExplorer||Sys.Browser.version!=6){return}f=new Array();d=d||"append";for(var j=0;j<document.styleSheets.length;j++){var p=document.styleSheets[j];var h=p.cssText.match(/\..*:hover(\r\n|.)*?{(\r\n|.)*?}/g);if(h==null){continue}for(var i=0;i<h.length;i++){var l=h[i];var k=l.match(/.*(?=:hover)/g)[0].substr(1);var o=l.match(/{(\r\n|.)*?}/g)[0];var q=k+"_hover";f[k]=q;p.addRule("."+q,o)}}document.body.attachEvent("onmouseover",e);document.body.attachEvent("onmouseout",a)}function g(m){if(m==null){return}var k=m.className;if(k.length==0){return}var i=k.split(" ");for(var h=0,o=i.length;h<o;h++){var j=i[h];if(j.length==0){continue}var l=f[j];if(l!=null){if(d=="append"){m.className+=" "+l}else{m.className=m.className.replace(j,l)}}}}function c(l){if(l==null){return}var k=l.className;if(k.length==0){return}var i=k.match(/\w*(?=_hover)/g);if(i==null){return}for(var h=0,m=i.length;h<m;h++){var j=i[h];if(j.length==0){continue}if(d=="append"){l.className=l.className.replace(new RegExp("\\s?"+j+"_hover"),"")}else{l.className=l.className.replace(new RegExp("\\s?"+j+"_hover"),j)}}}function e(){var h=event.srcElement;g(h);g(GetParentByTagName(h,"tr"))}function a(){var h=event.srcElement;c(h);c(GetParentByTagName(h,"tr"))}}function IE6Fix_HideDropDownControls(){if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version==6){var b=document.getElementsByTagName("select");for(var a=0;a<b.length;a++){b[a].style.visibility="hidden"}}}function IE6Fix_ShowDropDownControls(){if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version==6){var b=document.getElementsByTagName("select");for(var a=0;a<b.length;a++){b[a].style.visibility="visible"}}}function setCookie(a,g,f,d,c,b){var e=a+"="+escape(g)+((f)?"; expires="+f.toGMTString():"")+((d)?"; path="+d:"")+((c)?"; domain="+c:"")+((b)?"; secure":"");document.cookie=e}function getCookie(a){var e=document.cookie;var b=a+"=";var c=e.indexOf("; "+b);if(c==-1){c=e.indexOf(b);if(c!=0){return null}}else{c+=2}var d=document.cookie.indexOf(";",c);if(d==-1){d=e.length}return unescape(e.substring(c+b.length,d))}function deleteCookie(a,c,b){if(getCookie(a)){document.cookie=a+"="+((c)?"; path="+c:"")+((b)?"; domain="+b:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}}function loadWaitDiv(){var a=document.getElementById("waitDivImage").style;a.position="absolute";a.top=""+screen.height/2-50+"px";a.left=""+screen.width/2-300+"px"}function EscapeJS(a){var e="";var d;var b;for(d=0;d<a.length;d++){b=a.substring(d,d+1);switch(b){case"\n":e+="\\n";break;case"\\":e+="\\\\";break;case'"':e+="``";break;case"'":e+="\\'";break;default:e+=b}}return e};
jQuery.fn.LocationAC=function(){var i=arguments[0]||{};var a=i.wmLocation||"";var d=i.url||"../Handlers/DataSources.ashx?Type=AutoCompleteLocation";var f=i.urlGetLocByZip||null;var k=i.idZipCodeByUser||"hidZipCodeByUser";var j=i.ddlCountry||null;var c=i.onNotValid||null;var m=i.onValid||null;var b=i.setZipCookie||false;var h=$.$(k);var e={cnid:function(){return j?j.val():-1}};if(f){rmLocation.urlGetLocByZip=f}jQuery.fn.LocationAC.SetLocData=function(n,p,o){if(p){m&&m();n.data("LocData",o||null)}else{c&&c();n.data("LocData","NotValid")}if(o!=null&&o!=a){n.removeClass("Watermark")}};this.each(function(){$(this).rmAutocomplete(d,e).result(g).focus(function(){if(this.value==a){$(this).removeClass("Watermark").val("")}}).blur(function(){if(this.value==""){$(this).addClass("Watermark").val(a)}});if(this.value==""&&a!=""){$(this).addClass("Watermark").val(a)}if(this.value==a){jQuery.fn.LocationAC.SetLocData($(this),true,null)}else{if($("#hidIsChanged").length>0&&$("#hidIsChanged").val()!="1"){jQuery.fn.LocationAC.SetLocData($(this),true,this.value)}}});function g(r,n){var p=$(this);if(n){h.val("");jQuery.fn.LocationAC.SetLocData(p,true,n.text);b&&$.cookie("ck_LocationChooseByZip","1")}else{if($("#hidIsChanged").length>0){$("#hidIsChanged").val("1")}var o=p.val();if(l(o)){jQuery.fn.LocationAC.SetLocData(p,true,null);return}var q=rmLocation.ValidZipGetLocation(o,j&&j.val());if(q!=""){p.val(q);h.val(o);jQuery.fn.LocationAC.SetLocData(p,true,q);b&&$.cookie("ck_LocationChooseByZip","2")}else{h.val("");jQuery.fn.LocationAC.SetLocData(p,false)}}}function l(n){if(n==null||n==""||n==a){return true}else{return false}}return this};window.rmLocation=window.rmLocation||new (function(){var a=this;this.urlGetLocByZip="../Handlers/DataSources.ashx?Type=GetLocationByZip";this.urlValidateZipAndLoc="../Handlers/DataSources.ashx?Type=ValidateLocationAndZipCode";this.urlValidateLocationDesc="../Handlers/DataSources.ashx?Type=ValidateLocationDesc";this.ValidZipGetLocation=function(b,d){if(a.IsZipValid(b,d)){var c=a.GetLocDescByZipCode(b,d);if(c!=""){return c}}return""};this.ValidateLocationAndZipCode=function(b,e,d){$.ajaxSetup({async:false});var c=false;if(a.IsZipValid(b,e)){$.get(a.urlValidateZipAndLoc+"&zipCode="+b+"&cnid="+e+"&locationText="+d,function(g,f){if(g!=""){c=g}})}$.ajaxSetup({async:true});return c};this.IsZipValid=function(b,e){if(b==null||b==""){return true}if(e==null||e<=0){e=$.cookie("ck_AffCountryId")}var d="";if(e==1){d="[ABCEGHJKLMNPRSTVXY]\\d[A-Z]\\s+\\d[A-Z]\\d"}else{if(e==3){d="^\\d{5}$"}else{return true}}var c=new RegExp(d);if(c.test(b)){return true}else{return false}};this.GetLocDescByZipCode=function(b,d){$.ajaxSetup({async:false});var c="";$.get(a.urlGetLocByZip+"&zipCode="+b+"&cnid="+d,function(f,e){if(f!=""){c=f}});$.ajaxSetup({async:true});return c};this.ValidateLocationText=function(c){$.ajaxSetup({async:false});var b="";$.get(a.urlValidateLocationDesc+"&locationDesc="+c,function(e,d){if(e!=""){b=e}});$.ajaxSetup({async:true});return b}})();
var DefaultTop=50;function hideElement(a){if(document.getElementById&&document.getElementById(a)&&document.getElementById(a).style){document.getElementById(a).style.visibility="hidden";document.getElementById(a).style.display="none"}}function showElement(a){if(document.getElementById&&document.getElementById(a)&&document.getElementById(a).style){document.getElementById(a).style.visibility="visible";document.getElementById(a).style.display="block"}}function closePopUp(a){}function showPopup(f,a,c,e){document.getElementById(f).style.height=window.screen.availHeight+"px";var b=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);showElement(c);var d=document.getElementsByTagName("SELECT");for(var g=0;g<d.length;g++){d[g].style.visibility="hidden";d[g].style.display="none"}}function hidePopup(){document.body.parentNode.style.overflow="";var a=document.getElementsByTagName("SELECT");for(var b=0;b<a.length;b++){a[b].style.visibility="visible";a[b].style.display=""}}function checkscroll(a,e,c,d){if(document.getElementById(c).style.visibility=="visible"){var b=(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);document.getElementById(e).style.top=b+"px";if(d==null||d=="undefined"){d=DefaultTop}document.getElementById(a).style.top=String(Number(b)+d)+"px";setTimeout("checkscroll('"+a+"','"+e+"','"+c+"',"+d+")",1)}}function StopVideo(a){if(document.getElementById&&document.getElementById(a)&&document.getElementById(a).src){document.getElementById(a).src=""}}var ashxLoadControlPath="../Handlers/LoadControl.ashx";function LoadVideoControl(a){var b=ashxLoadControlPath;var c="~/UserControls/DisplayAd.ascx";b+="?rnd="+Math.random();b+="&SkipLogginTest=1";b+="&ControlPath="+c;b+="&ExternalSrcId="+a;$("#divInnerVideo").load(b,function(f,d,e){})}function LoadVideoControlToTop(a){var b=ashxLoadControlPath;var c="~/UserControls/DisplayAd.ascx";b+="?rnd="+Math.random();b+="&SkipLogginTest=1";b+="&ControlPath="+c;b+="&ExternalSrcId="+a;$(window.parent.document.getElementById("divInnerVideo")).load(b,function(f,d,e){})}function hideVideoFromTop(){window.parent.document.getElementById("divInnerVideo").innerHTML="";hideElement("fullscreen2");hidePopup()};
function NPdomyshow(b,a,f,e,d,c){$("#"+d).load(e,function(){domyshow(b,a,f,c)})}function domyshow(b,a,d,c){if(b=="fullscreen2"){$("#PopDivName",parent.document).html($("#PopDivName").html());if(window.parent.showPopup=="undefined"||window.parent.showPopup==null){window.showPopup(a,d,b)}else{window.parent.showPopup(a,d,b)}LoadVideoControlToTop(c)}if(b=="fullscreen"){$("#PopDivName",parent.document).html($("#PopDivName").html());if(window.parent.showPopup=="undefined"||window.parent.showPopup==null){window.showPopup(a,d,b)}else{window.parent.showPopup(a,d,b)}window.FitPic()}$(this).scrollTop($("#"+b).position().top)}function FitPic(){iWidth=700;iHeight=GetAvailableHeight();MinHeight=398;var a=(document.getElementById("popImgDisplayAd").width)*1;var b=(document.getElementById("popImgDisplayAd").height)*1;if(a>iWidth){a+=21;document.getElementById("DivpopImgDisplayAd").style.width=a+"px";a+=19;document.getElementById("fullscreen_printAboutInner").style.width=a+"px"}else{document.getElementById("fullscreen_printAboutInner").style.width=iWidth+"px"}document.getElementById("DivpopImgDisplayAd").style.overflow="auto"}function GetAvailableHeight(){if(screen.availHeight){var a=screen.availHeight;if(a>950){return Math.round((a/2)+(a/10))}else{return Math.round((a/2)-(a/10))}}else{return 350}}function PrintPosition(a,b,i,d){var k="toolbar=yes,location=no,directories=yes,menubar=yes,";k+="scrollbars=yes,width=650, height=600, left=100, top=25";var e=document.getElementById(a).innerHTML;var g=document.getElementById(b).innerHTML;var j=document.getElementById(i).innerHTML;var l=window.open("","",k);l.document.open();var h="<html><head><title>Job Description</title>";l.document.write(h);var c='<link href="../App_Themes/Default/GeneralStyleSheet.css" rel="stylesheet" type="text/css" />';l.document.write(c);var f='<link href="../App_Themes/Default/LandingPageStyleSheet.css" rel="stylesheet" type="text/css" />';l.document.write(f);l.document.write('</head><body onLoad="self.print()">');l.document.write('<div class="Planding PrintPosition">');l.document.write(e);l.document.write(" <br/>");l.document.write(g);l.document.write(" <br/>");l.document.write(" <br/>");l.document.write(j);l.document.write(" <br/>");l.document.write(" <p>");l.document.write('     <span class="grayText">Position ID: '+d+"</span>");l.document.write(" </p>");l.document.write("</div>");l.document.write("</body></html>");l.document.close();l.focus()}function gotoSendToFriend(a){window.open(a,"","toolbar=0,status=no,menubar=no,scrollbars=no,resizable=yes,width=700,height=450,left=300")};
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();