jQuery.query={get:function(b){var c=window.location.search.substring(1);var a=c.split("&");for(i=0;i<a.length;i++){ft=a[i].split("=");if(ft[0]==b){return ft[1]}}return""}};(function(a){a.fn.wresize=function(c){version="1.1";wresize={fired:false,width:0};function b(){if(a.browser.msie){if(!wresize.fired){wresize.fired=true}else{var e=parseInt(a.browser.version,10);wresize.fired=false;if(e<7){return false}else{if(e==7){var f=a(window).width();if(f!=wresize.width){wresize.width=f;return false}}}}}return true}function d(f){if(b()){return c.apply(this,[f])}}this.each(function(){if(this==window){a(this).resize(d)}else{a(this).resize(c)}});return this}})(jQuery);function getMaxZ(){var a=Math.max.apply(null,$.map($("body > *"),function(b,c){if($(b).css("position")=="absolute"){return parseInt($(b).css("z-index"),10)||1}}));return a}jQuery.fn.currentMousePosition=function(b){var a=$("#[isjsonrendercontainer]");if(b!==null&&b!==undefined){$(a).data("currentMousePosition",b)}else{if($(a).data("currentMousePosition")==null||$(a).data("currentMousePosition")==undefined){$(a).data("currentMousePosition",{left:0,top:0})}return $(a).data("currentMousePosition")}};jQuery.fn.lockMousePosition=function(a){var b=$(this).getJsonContainerDiv();$(b).data("lockedMousePosition",$(b).currentMousePosition())};jQuery.fn.lockedMousePosition=function(){return $(this).getJsonContainerDiv().data("lockedMousePosition")};$(document).ready(function(){$().mousemove(function(a){$("#[isjsonrendercontainer]").currentMousePosition({left:a.pageX,top:a.pageY})})});jQuery.fn.getJsonContainerDiv=function(){var a=$(this).parents().andSelf().filter("#[isjsonrendercontainer]:first");return a};var atl_HideInvoked=false;function atl_ToggleDisplay(a){var b=document.getElementById(a);if(b){b.style.display=(b.style.display=="block"?"none":"block")}return true}function atl_SwapDisplay(b,a){atl_ToggleDisplay(b);atl_ToggleDisplay(a);return true}function atl_Go(a,b){if((b==null)||(b=="")){b="_self"}window.open(a,b)}function atl_PopHelp(a){var b=window.open(a,"spop","left=20,top=20,resizable=yes,scrollbars=yes,width=610,height=620")}function atl_PopUp(b,a,c){var d=window.open(b,a,c)}var atl_quickhelp_source;function atl_OnQuickHelpError(a){}function atl_GetQuickHelpContent(c,b,a,e){if(typeof(atl_GetQuickHelpUrl)!="undefined"){var d=atl_GetQuickHelpUrl();atl_quickhelp_source=e;$.ajax({type:"POST",url:d,data:"{'keyName':'"+c+"'}",contentType:"application/json; charset=utf-8",dataType:"json",success:b,error:a})}}function atl_ShowDivContent(a){if(a!=null&&!atl_HideInvoked){a.style.display="block";a.style.visibility="visible"}}function atl_ShowHelp(c){var b=c.offsetTop;var a=c.offsetParent;while(a){b+=a.offsetTop;a=a.offsetParent}return b}function atl_getOffsetLeft(c){var b=c.offsetLeft;var a=c.offsetParent;while(a){b+=a.offsetLeft;a=a.offsetParent}return b}function atl_getScrollY(){var a=0;if(typeof(window.pageYOffset)=="number"){a=window.pageYOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop}}}return a}function atl_ShowHelpById(g,d){if(d){var a=340;var f=atl_getOffsetLeft(g);var e=(window.innerWidth)?window.innerWidth-25:document.body.clientWidth;if((f+a)>e){f=e-a}newX=f;var b=d.offsetHeight;var c=atl_ShowHelp(g)+g.offsetHeight;var h=(window.innerHeight)?window.innerHeight-25:document.body.clientHeight;if((c+b)>h+atl_getScrollY()){c=atl_ShowHelp(g)-b}newY=c;d.style.top=newY+"px";d.style.left=newX+"px";d.left=newX+"px";d.left=newY+"px"}}function atl_SetQuickHelpDiv(a,c){c=atl_quickhelp_source;if(a!=null){a=a.d}var b=document.getElementById("atl_quickhelp");if(b!=null&&a!=null){b.innerHTML=a.Html;atl_ShowHelpById(c,b);atl_ShowDivContent(b);if(!$.jCache.hasItem(a.Name)){$.jCache.setItem(a.Name,a.Html)}}}function atl_ShowQuickHelp(c,a){atl_HideInvoked=false;var b=document.getElementById("atl_quickhelp");if(b==null){return}var d;if(c.target!=null){d=c.target}else{if(c.srcElement!=null){d=c.srcElement}else{return}}if(!$.jCache.hasItem(a)){atl_GetQuickHelpContent(a,atl_SetQuickHelpDiv,atl_OnQuickHelpError,d)}else{b.innerHTML=$.jCache.getItem(a);atl_ShowHelpById(d,b);atl_ShowDivContent(b)}}function atl_HideQuickHelp(){atl_HideInvoked=true;var a=document.getElementById("atl_quickhelp");if(a!=null){a.style.display="none";a.style.visibility="hidden"}}function atlCookieDomain(){var a=window.location.hostname;var c=a.lastIndexOf(".");if(c<0){return"."+a}else{var b="";if(a.lastIndexOf(".",c-1)>-1){b=a.substr(a.lastIndexOf(".",c-1))}else{b="."+a}return b}}function atlSetMemCookie(b,e,c){var d=new Date();var a=b+"="+e+"; path=/; domain="+atlCookieDomain();document.cookie=a}function atlSetCookie(c,f,d){var e=new Date();var a=new Date(Date.parse(e.getDay()+"/"+e.getMonth()+"/"+(e.getFullYear()+d)));var b=c+"="+f+"; expires="+a.toGMTString()+"; path=/; domain="+atlCookieDomain();document.cookie=b}function atlReadCookie(d){var c="";if(document.cookie.length>0){var b=d+"=";var a=document.cookie.indexOf(b);var e=0;if(a>-1){a+=b.length;e=document.cookie.indexOf(";",a);if(e<a){e=document.cookie.length}c=document.cookie.substring(a,e)}}return unescape(c)}Type.registerNamespace("Atlantis");Atlantis.DynamicForm=function(a){Atlantis.DynamicForm.initializeBase(this);this._formId=a;this._form=$get(this._formId)};Atlantis.DynamicForm.prototype={setFormValue:function(b,c){var a=this._getFormInput(b);a.value=c},_getFormInput:function(d){var a=null;for(var c=0;c<this._form.length;c++){if(this._form.elements[c].id==d){a=this._form.elements[c];break}}if(a==null){var b=document.createElement("input");b.setAttribute("id",d);b.setAttribute("type","hidden");b.name=d;a=b;this._form.appendChild(a)}return a},submit:function(){this._form.submit()},submitAction:function(a){this._form.action=a;this._form.submit()}};Atlantis.DynamicForm.registerClass("Atlantis.DynamicForm");function atl_isemailvalid(c){var a="@";var b=".";var f=c.indexOf(a);var d=c.length;var e=c.indexOf(b);if(c.indexOf(a)==-1){return false}if(c.indexOf(a)==-1||c.indexOf(a)==0||c.indexOf(a)==d){return false}if(c.indexOf(b)==-1||c.indexOf(b)==0||c.indexOf(b)==d){return false}if(c.indexOf(a,(f+1))!=-1){return false}if(c.substring(f-1,f)==b||c.substring(f+1,f+2)==b){return false}if(c.indexOf(b,(f+2))==-1){return false}if(c.indexOf(" ")!=-1){return false}return true}function atl_isnoscript(a){var b=/[<>]+/;if(b.test(a)){return false}return true}function atl_textarea_trim(b,a){if(b.value.length<=a){return}b.value=b.value.substr(0,a)}function atl_textarea_canaddchar(e,c){var d=null;if(typeof(e.onkeypress.arguments[0])!="undefined"){d=e.onkeypress.arguments[0].keyCode}else{if(document.selection.createRange().text.length!=0){return true}var d=event.keyCode}var b=[8,37,38,39,40,46];for(var a=0;a<b.length;a++){if(b[a]==d){return true}}if(e.value.length<c){return true}return false}(function(a){this.version="(beta)(0.0.1)";this.maxSize=10;this.keys=[];this.cache_length=0;this.items=[];this.setItem=function(c,b){if(typeof(b)!="undefined"){if(typeof(this.items[c])=="undefined"){this.cache_length++}this.keys.push(c);this.items[c]=b;if(this.cache_length>this.maxSize){this.removeOldestItem()}}return b};this.removeItem=function(c){var b;if(typeof(this.items[c])!="undefined"){this.cache_length--;var b=this.items[c];delete this.items[c]}return b};this.getItem=function(b){return this.items[b]};this.hasItem=function(b){return typeof(this.items[b])!="undefined"};this.removeOldestItem=function(){this.removeItem(this.keys.shift())};this.clear=function(){var b=this.cache_length;this.keys=[];this.cache_length=0;this.items=[];return b};a.jCache=this;return a})(jQuery);var stDivsLoadedList="";function piPositionDiv(c){var e=-1;var b=-1;if($(c).args().doCenterToScreen===true){$(c).centerToScreen()}else{var a=$(c).lockedMousePosition();if(a!==undefined&&a!==null){e=a.left-10;b=a.top-10}if($(c).args().overridePosition!==undefined&&$(c).args().overridePosition!==null){b=$(c).args().overridePosition.top;e=$(c).args().overridePosition.left}var d=document.body.clientWidth;if((e+$(c).width())>d){e=e-$(c).width()+20}if($(c).args().doOffsetFromBottom===true){b-=$(c).height()-20}if(e>0&&b>0){$(c).css({postion:"absolute",top:b,left:e})}}$(c).css({postion:"absolute","z-index":getMaxZ()+1})}function stHideElement(a,b){for(i=0;i<document.getElementsByTagName(a).length;i++){obj=document.getElementsByTagName(a)[i];if(!obj||!obj.offsetParent){continue}objLeft=obj.offsetLeft-b.offsetParent.offsetLeft;objTop=obj.offsetTop;objParent=obj.offsetParent;while((objParent.tagName.toUpperCase()!="BODY")&&(objParent.tagName.toUpperCase()!="HTML")){objLeft+=objParent.offsetLeft;objTop+=objParent.offsetTop;objParent=objParent.offsetParent}objHeight=obj.offsetHeight;objWidth=obj.offsetWidth;if((b.offsetLeft+b.offsetWidth)<=objLeft){}else{if((b.offsetParent.offsetTop+b.offsetHeight+20)<=objTop){}else{if(b.offsetParent.offsetTop>=objTop+objHeight){}else{if(b.offsetLeft>=objLeft+objWidth){}else{obj.style.visibility="hidden"}}}}}}function getJsonCallback(b,c){var a=document.getElementById(b.TargetDivID);if(jQuery.trim(b.Html)==""){$(a).trigger("popInLoadCompleteWithNoData",b)}$(a).html(b.Html);if($(a).args()==undefined&&$(a).doCacheContent===false){return}if(stDivsLoadedList.indexOf(b.TargetDivID+";")<0){stDivsLoadedList+=b.TargetDivID+";"}$(a).trigger("jsonCallbackComplete",b)}function stShowTarget(a){if(a!=null){$(a).show()}}function stContentIsLoaded(a){return stDivsLoadedList.indexOf(a.id+";")>=0}function stHideSiblings(a){if(a!=null){$(a).siblings().hide()}}function stShowInt(a){if(a!=null){stHideSiblings(a);stShowTarget(a)}}function stShow(b,a){var c=document.getElementById(a);stShowInt(c);if(b!=""&&!stContentIsLoaded(c)){$.ajax({url:b,dataType:"json",success:getJsonCallback,error:function(){var d=$("#"+a);$(d).html("<div style='width:100%; text-align:center; padding:14px;'>No Results Available.</div>");stShowTarget(d)}})}}function stTabActivate(b){var e=document.getElementById(b);var d=$(e).attr("src");var a=$(e).attr("targetdiv");$(e).parent().siblings(".simple_tab_active").addClass("simple_tab_inactive");$(e).parent().siblings(".simple_tab_active").removeClass("simple_tab_active");$(e).parent().addClass("simple_tab_active");$(e).parent().removeClass("simple_tab_inactive");var c=$("#"+a);stShow(d,a)}jQuery.fn.jsonGet=function(){var c=$(this).args();var d=c.cache!==false;var b=c.url;if(c.queryStringArguments!=undefined&&c.queryStringArguments!=null){var e;for(e in c.queryStringArguments){b+="&"+e+"="+escape(c.queryStringArguments[e])}}var a={url:b,dataType:"json",cache:c.doCacheContent,success:c.success,error:function(f,h,g){handleJsonError(h,c)}};$.ajax(a)};function jsonPost(b){var a={url:b.url,type:"POST",dataType:"json",data:b.postData,success:b.success,error:function(c,e,d){handleJsonError(e,b)}};$.ajax(a)}jQuery.fn.jsonPost=function(){jsonPost($(this).args())};function handleJsonError(b,a){if(b=="timeout"&&a.timeoutFunction!=undefined&&a.timeoutFunction!=null){a.timeoutFunction()}else{if(a.generalErrorFunction!=undefined&&a.generalErrorFunction!=null){a.generalErrorFunction()}else{}}}jQuery.fn.args=function(a){if(a!==null&&a!==undefined){this.data("args",a);this.data("lockedMousePosition",null)}else{a=this.data("args");if((a==null)||(a==undefined)){a={};this.data("args",a)}return a}};jQuery.fn.showAndSetVisible=function(){$(this).getJsonContainerDiv().show();this.css({visibility:"visible"});this.show()};jQuery.fn.piSetTimeout=function(){var b="piHidePopIn({targetDivId:'"+this[0].id+"'})";var a=setTimeout(b,2000);if($(this).args().timerIds==null&&$(this).args().timerIds==undefined){$(this).args().timerIds=[]}$(this).args().timerIds.push(a)};jQuery.fn.piClearMousedOverPopInTimeout=function(){if($(this).args().timerIds!=null){$.each($(this).args().timerIds,function(){clearTimeout(this)})}};function piJsonCallback(b,c){var a=$("#"+b.TargetDivID);getJsonCallback(b,c);if(jQuery.trim(b.Html)==""){return}else{$(a).piClearMousedOverPopInTimeout();$(a).trigger("popInLoadComplete")}}function piRenderPopIn(c){var a=$(c).args();if(a.showBeforeContentLoaded===true){$(c).getJsonContainerDiv().showAndSetVisible();piPositionDiv(c)}if(a.sourceUrl!=null&&a.sourceUrl!=""){var d="?";if(a.sourceUrl.indexOf("?")>=0){d="&"}var b=a.sourceUrl+d+"TargetDivID="+a.targetDivId;a.url=b;a.success=piJsonCallback;if(a.postData!=null&&a.postData!=undefined&&a.postData.length>0){$(c).jsonPost()}else{$(c).jsonGet()}}}jQuery.fn.hideSelectsForIE6PopIn=function(){if($.browser.msie&&$.browser.version.substr(0,1)<7){$("select:visible").each(function(){$(this).attr("hideForIE6PopIn",1);$(this).hide()});$(this).bind("popInHideComplete",function(){$(this).showSelectsForIE6PopIn()});$(this).bind("dialogclose",function(){$(this).showSelectsForIE6PopIn()})}};jQuery.fn.showSelectsForIE6PopIn=function(){$("select[hideForIE6PopIn=1]").each(function(){$(this).attr("hideForIE6PopIn","");$(this).show()})};function piShowPopIn(a){var b=$("#"+a.targetDivId);$(b).hideSelectsForIE6PopIn();$(b).args(a);if(a.doMoveToMousePosition==true){$(b).lockMousePosition();if(a.showBeforeContentLoaded===true){$(b).getJsonContainerDiv().showAndSetVisible();piPositionDiv(b)}}piRenderPopIn(b);if(a.doAutoHideOnMouseLeave){$(b).mouseover(function(){$(b).piClearMousedOverPopInTimeout()});$(b).mouseenter(function(){if($(b).is(":visible")){$(b).piClearMousedOverPopInTimeout()}});$(b).mouseleave(function(){if($(b).is(":visible")){$(b).piClearMousedOverPopInTimeout();$(b).piSetTimeout()}})}$(b).one("popInLoadComplete",function(c){if($(b).args().doCenterToScreen===true){$(b).centerToScreen();$(b).getJsonContainerDiv().showAndSetVisible()}else{piPositionDiv(b);$(b).getJsonContainerDiv().showAndSetVisible()}})}function piShowPopInWithStaticContent(a){var b=$("#"+a.targetDivId);piShowPopIn(a);piPositionDiv(b);$(b).getJsonContainerDiv().showAndSetVisible()}function piHidePopIn(a){var b=$("#"+a.targetDivId);$(b).piClearMousedOverPopInTimeout();$(b).getJsonContainerDiv().fadeOut("fast");$(".ui-widget-overlay").fadeOut("fast",function(){if(typeof $(b).dialog=="function"){$(b).dialog("close")}});if($(b).args().forcePageRefreshOnClose===true){document.location.replace(window.location)}$(b).args({});$(b).trigger("popInHideComplete",a)}function piShowPopInModal(b){var a=b.targetDivId;var c=$("#"+a);$(c).args(b);$(c).hideSelectsForIE6PopIn();$(c).showAndSetVisible();$(c).css("z-index",getMaxZ()+100);$(c).dialog({draggable:false,resizable:false,modal:true,position:"center",width:$(c).width()+10,closeOnEscape:false});$(c).bind("popInLoadComplete",function(d){piBindContainerDivToAutoHideOnClick(b);if($(c).args().doCenterToScreen===true){$(c).dialog("option","position",$(c).dialog("option","position"))}});$(c).dialog("open");piRenderPopIn(c);if(b.autoHideOnClickOutBeforeLoadComplete!==false){piBindContainerDivToAutoHideOnClick(b)}$(c).click=function(d){$(d).stopPropagation()}}function piBindContainerDivToAutoHideOnClick(a){var c=$(".ui-widget-overlay");var b=$(c).data("events");if(b==null||b.click==null){$(c).bind("click",function(){piHidePopIn(a)})}}jQuery.fn.centerToScreen=function(){return this.each(function(){var a=$(this).width();var k=$(this).height();var j=$(window).width();var g=j/2;var e=$(window).height();var f=e/2;var d=$(document).scrollLeft();var b=$(document).scrollTop();var h=f+b-(k/2);var c=g+d-(a/2);$(this).css({top:h+"px"});$(this).css({left:c+"px"})})};jQuery.fn.setAutoEllipseDomain=function(a){$(this).each(function(){var d=$(this).html().trim();$(this).html("");$(this).show();if(a==null||a==undefined){a=$(this).width()}var h=document.createElement("label");$(h).attr("title",d);var b=d.split(".",2)[1];if(b==undefined){b=""}$(h).html(d);$(this)[0].appendChild(h);var e=$(h).width();if(e>=a){var c=10;var g;$(h).html("");while(h.offsetWidth<a&&c<d.length){var f=d.substr(0,c)+"..."+b;$(h).html(f);c++;e=h.offsetWidth;if(e>a){break}g=f}$(h).html(g)}})};