Util._deprecatedBecause={extend:"extend() has been renamed copy_properties() to avoid confusion with Function.extend(). Use Function.extend() or subclass() to establish classinheritence, and copy_properties() to copy properties between objects.",ajaxrequest:"AjaxRequest has been renamed AsyncRequest. The interface has not changed.",ajaxresponse:"AjaxResponse has been renamed AsyncResponse. The interface has not changed.",ajax:'The `Ajax\' class has been deprecated for sucking. Use AsyncRequest and AsyncResponse to make remote HTTP requests. Prefer JSON to XML as a transport encoding, but never say "AJAJ". AND WRITE ERROR HANDLERS! ',ajaxloadindicator:"No ajaxLoadIndicator element is ever generated, so this code is apparently never used.",toggleinlineflyer:"This function is not used anywhere.",checkagree:"This function is marked as deprecated and not used anywhere.",dynamicdialog:"Dynamicdialog is deprecated in favor of dialogpro."};function extend(b,a){Util.deprecated("extend");return copy_properties(b,a)
}function checkAgree(){Util.deprecated("checkagree");if(document.frm.pic.value){if(document.frm.agree.checked){document.frm.submit()}else{show("error")}}}function toggleInlineFlyer(a){Util.deprecated("toggleinlineflyer");if(a.innerHTML=="hide flyer"){a.innerHTML="show flyer"}else{a.innerHTML="hide flyer"}toggle("inline_flyer_content")}var ajaxLoadIndicatorRefCount=0;function ajaxShowLoadIndicator(){Util.deprecated("ajaxloadindicator");indicatorDiv=ge("ajaxLoadIndicator");if(!indicatorDiv){indicatorDiv=document.createElement("div");indicatorDiv.id="ajaxLoadIndicator";indicatorDiv.innerHTML="Loading";indicatorDiv.className="ajaxLoadIndicator";document.body.appendChild(indicatorDiv)}indicatorDiv.style.top=(5+pageScrollY())+"px";indicatorDiv.style.left=(5+pageScrollX())+"px";indicatorDiv.style.display="block";ajaxLoadIndicatorRefCount++}function ajaxHideLoadIndicator(){ajaxLoadIndicatorRefCount--;if(ajaxLoadIndicatorRefCount==0){ge("ajaxLoadIndicator").style.display=""}}function XnAjax(b,a){if(location.href.indexOf("intern/data")==-1){Util.deprecated("ajax")
}newAjax=this;this.onDone=b;this.onFail=a;this.transport=this.getTransport();this.transport.onreadystatechange=ajaxTrampoline(this)}XnAjax.prototype.get=function(a,c,b){b=b||false;if(c&&(typeof c!="string")){c=URI.implodeQuery(c)}fullURI=a+(c?("?"+c):"");this.transport.open("GET",fullURI,!b);this.transport.send("")};XnAjax.prototype.post=function(b,d,c,a){c=c||false;a=a||false;if(d&&(typeof d!="string")){d=URI.implodeQuery(d)}if(!a){var e=ge("post_form_id");if(e){d+="&post_form_id="+e.value}}this.transport.open("POST",b,!c);this.transport.setRequestHeader("Content-Type","application/x-www-form-urlencoded");this.transport.send(d)};XnAjax.prototype.stateDispatch=function(){try{if(this.transport.readyState==1&&this.showLoad){ajaxShowLoadIndicator()}if(this.transport.readyState==4){if(this.showLoad){ajaxHideLoadIndicator()}if(this.transport.status>=200&&this.transport.status<300&&this.transport.responseText.length>0){try{if(this.onDone){this.onDone(this,this.transport.responseText)}}catch(a){console?console.error(a):false
}}else{try{if(this.onFail){this.onFail(this)}}catch(a){console?console.error(a):false}}}}catch(b){if(this.onFail){this.onFail(this)}}};XnAjax.prototype.getTransport=function(){var a=null;try{a=new XMLHttpRequest()}catch(b){a=null}try{if(!a){a=new ActiveXObject("Msxml2.XMLHTTP")}}catch(b){a=null}try{if(!a){a=new ActiveXObject("Microsoft.XMLHTTP")}}catch(b){a=null}return a};function ajaxTrampoline(a){return function(){a.stateDispatch()}}function toggle_dynamic_dialog_custom(f,g){Util.deprecated("dynamicdialog");var e;e='<div id="ie_iframe_holder"></div>';e+='<div style="position: absolute; z-index: 100;">';g=e+g+"</div>";var c=ge("dynamic_dialog");if(c){if(shown(c)&&same_place(f,c)){hide(c)}else{move_here(f,c);c.innerHTML=g;show("dynamic_dialog")}}else{var c=document.createElement("div");c.id="dynamic_dialog";c.innerHTML=g;move_here(f,c);ge("content").appendChild(c)}var a,d,b;a=ge("dialog").offsetHeight;d=ge("dialog").offsetWidth;b='<iframe width="'+d+' "height='+a+'" ';b+='style="position: absolute; z-index: 99; border: none;"></iframe>';
ge("ie_iframe_holder").innerHTML=b;return false}function same_place(b,a){Util.deprecated("dynamicdialog");if(b=ge(b)){if(elementY(b)+20==elementY(a)){return true}}return false}function move_here(c,b){Util.deprecated("dynamicdialog");var a=getViewportWidth()/2-120;var d=elementY(c)+20;b.style.left=a+"px";b.style.top=d+"px"}function toggle_dynamic_dialog_post(g,c,a,f,d,h){Util.deprecated("dynamicdialog");var i=(ge("post_form_id")?('<input type="hidden" name="post_form_id" value="'+ge("post_form_id").value+'"/>'):"");var j="";for(var b in h){j+='<input type="hidden" name="'+b+'" value="'+h[b]+'"/>'}var e='<table id="dialog" border="0" cellspacing="0" width="360"><tr><td class="dialog"><h4>'+c+"</h4><p>"+a+'</p><div class="buttons"><form action="'+d+'" method="post">'+i+j+'<input type="hidden" name="next" value="'+window.location+'"/><input type="submit" id="confirm" name="confirm" class="inputsubmit" value="'+f+'"/>&nbsp;<input type="button" id="cancel" name="cancel" onclick="hide(\'dynamic_dialog\');" class="inputbutton" value="Cancel" /></form></div></td></tr></table>';
return toggle_dynamic_dialog_custom(g,e)}function toggle_dynamic_dialog(e,d,c,f,b){Util.deprecated("dynamicdialog");var a=(ge("post_form_id")?('<input type="hidden" name="post_form_id" value="'+ge("post_form_id").value+'"/>'):"");var g='<form action="'+b+'" method="post">\n<table id="dialog" border="0" cellspacing="0" width="360"><tr>\n<td class="dialog">\n<h4>'+d+"</h4>\n<p>"+c+'</p><div class="buttons">\n'+a+'<input type="hidden" name="next" value="'+window.location+'"/>\n<input type="submit" id="confirm" name="confirm" class="inputsubmit" value="'+f+'"/>&nbsp;<input type="button" id="cancel" name="cancel" onclick="hide(\'dynamic_dialog\');" class="inputbutton" value="Cancel" />\n</div>\n</td>\n</tr>\n</table>\n</form>\n';return toggle_dynamic_dialog_custom(e,g)}function toggle_dynamic_dialog_js(e,c,b,f,d,a){Util.deprecated("dynamicdialog");var g='<table id="dialog" border="0" cellspacing="0" width="360"><tr>\n<td class="dialog">\n<h4>'+c+"</h4>\n<p>"+b+'</p><div class="buttons">\n<input type="button" id="confirm" name="confirm" class="inputsubmit"  value="'+f+'" onclick="'+d+'"/>&nbsp;';
if(!a){g+='<input type="button" id="cancel" name="cancel" onclick="hide(\'dynamic_dialog\');" class="inputbutton" value="Cancel" />\n'}g+="</div>\n</td>\n</tr>\n</table>\n";return toggle_dynamic_dialog_custom(e,g)};