function isAlien(b){return isObject(b)&&typeof b.constructor!="function"}function isArray(b){return isObject(b)&&b.constructor==Array}function isBoolean(b){return typeof b=="boolean"}function isEmpty(c){var b,a;if(isObject(c)){for(b in c){a=c[b];if(isUndefined(a)&&isFunction(a)){return false}}}return true}function isFunction(b){return typeof b=="function"}function isNull(b){return typeof b=="object"&&!b}function isNumber(b){return typeof b=="number"&&isFinite(b)}function isObject(b){return(b&&typeof b=="object")||isFunction(b)}function isString(b){return typeof b=="string"}function isUndefined(b){return typeof b=="undefined"}function defaultBool(b,c){c=isUndefined(c)?false:true;if(isUndefined(b)){b=c}return b}function printProperties(a){var b="";for(prop in a){b+=prop+" value :"+a[prop]+"<br><br>"}return b}function clearForm(c,a){a=defaultBool(a,true);var d=c.elements;for(var b=0;b<d.length;b++){if(d[b].tagName=="INPUT"){if(d[b].type=="text"){d[b].value=""}else{if(d[b].type=="checkbox"||d[b].type=="radio"){d[b].checked=false}}}else{if(d[b].tagName=="TEXTAREA"){d[b].value=""}else{if(d[b].tagName=="SELECT"){if(a){if(d[b].options[0].value==""||d[b].options[0].value=="0"||d[b].options[0].value==0){d[b].selectedIndex=0}}else{d[b].selectedIndex=-1}}}}}}function stripTags(a){return a.replace(/<.*?>/g,"")}function inArray(d,c,a){if(!c){return true}if(!a){a=false}for(var b=0;b<c.length;b++){if(!a){if(c[b]==d){return true}}else{if(c[b]===d){return true}}}return false}function isEnter(a){return a.keyCode==13}function sure(a){if(isUndefined(a)){return confirm("Are you sure?")}else{return confirm(a)}}function reallySure(){if(confirm("Are you sure (first confirmation)?")){return confirm("Are you really sure you want to do this (second confirmation)?")}else{return false}}function setFocus(b,a){b.focus();if(a){b.className=a}}function setDefaultFocus(c){var b;if(c){b=c}else{b=document.forms.theForm}for(var a=0;a<b.elements.length;a++){if(b.elements[a].type!="hidden"){b.elements[a].focus();break}}}function errorString(a){if(!a){return true}else{alert(a);return false}}function runRemoteJS(a){var b=document.createElement("script");b.src=a;b.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(b)}function getCheckedRadioChoice(b){for(var a=0;a<b.length;a++){if(b[a].checked){return b[a]}}return false}function getCheckedCheckboxChoices(c){var b=new Array();for(var a=0;a<c.length;a++){if(c[a].checked){b.push(c[a])}}return b}function getSelectedSelectChoice(a){for(var b=0;b<a.length;b++){if(a[b].selected){return a[b]}}return false}function getSelectedSelectChoices(a){var c=new Array();for(var b=0;b<a.length;b++){if(a[b].selected){c.push(a[b])}}return c}function getSingleValue(a){if(a.value){value=a.value}else{if(_x=getSelectedSelectChoice(a)){value=_x.text}else{if(_x=getCheckedRadioChoice(a)){value=_x.value}else{value=""}}}return value}function getMultipleValues(c,d){var b=new Array();if(_x=getCheckedCheckboxChoices(c)){for(var a=0;a<_x.length;a++){b.push(_x[a].value)}}else{if(_x=getSelectedSelectChoices(c)){var b=new Array();for(var a=0;a<_x.length;a++){b.push(_x[a].text)}}}if(d){if(b.length){return b.join(d)}else{return""}}else{return b}}function setSelectedSelectChoice(a,c){for(var b=0;b<a.length;b++){if(a[b].value==c){a[b].selected=true;return true}}return false}function URLencode(a){return escape(a).replace(/\+/g,"%2C").replace(/\"/g,"%22").replace(/\'/g,"%27")}function setPointer(a,b){if(typeof(a.style)=="undefined"){return false}a.className=b}function insertAtCursor(b,a){if(document.selection){b.focus();sel=document.selection.createRange();sel.text=a}else{if(b.selectionStart||b.selectionStart=="0"){replaceSelection(b,a)}else{b.value+=a}}}function getSelectionParts(a){if(document.selection){var c=[a.value,"","",""];var d="#$%^%$#";var b=document.selection.createRange();if(b.parentElement()!=a){return null}c[2]=b.text;b.text=d;splitMarker=a.value.split(d);b.moveStart("character",-d.length);b.text=c[2];c[1]=splitMarker[0];c[3]=splitMarker[1]}else{if(a.selectionStart==a.selectionEnd){return null}c=(new RegExp("([\x00-\xff]{"+a.selectionStart+"})([\x00-\xff]{"+(a.selectionEnd-a.selectionStart)+"})([\x00-\xff]*)")).exec(a.value)}return c}function moveCursor(b,e){if(document.selection){var a=document.selection.createRange();if(a.parentElement()==b){a.moveStart("character",e);a.moveEnd("character",e);a.select()}}else{if(b.setSelectionRange){var c=b.selectionStart;var d=b.selectionEnd;setSelectionRange(b,c+e,c+e)}}}function insertTag(b,c,d,f,e,a){if(!d){d=c}if(a){a=true}else{a=false}if(!f){f="{"}if(!e){e="}"}selectionParts=getSelectionParts(b);endTag=d?d:c;if(!selectionParts){insertAtCursor(b,f+c+e+""+(!a?(f+"/"+endTag+e):""));if(!a){moveCursor(b,-endTag.length-3)}}else{replaceSelection(b,f+c+e+selectionParts[2]+(!a?(f+"/"+endTag+e):""))}}function setSelectionRange(b,c,d){if(b.setSelectionRange){b.focus();b.setSelectionRange(c,d)}else{if(b.createTextRange){var a=b.createTextRange();a.collapse(true);a.moveEnd("character",d);a.moveStart("character",c);a.select()}}}function getSelectionText(b){if(b.setSelectionRange){var c=b.selectionStart;var d=b.selectionEnd;if(c&&d){return b.value.substring(c,d)}else{return""}}else{var a=document.selection.createRange();if(a.parentElement()==b){return a.text}else{return""}}}function replaceSelection(d,a){if(d.setSelectionRange){var e=d.selectionStart;var f=d.selectionEnd;d.value=d.value.substring(0,e)+a+d.value.substring(f);if(e!=f){setSelectionRange(d,e,e+a.length)}else{setSelectionRange(d,e+a.length,e+a.length)}}else{if(document.selection){var c=document.selection.createRange();if(c.parentElement()==d){var b=c.text=="";c.text=a;if(!b){c.moveStart("character",-a.length);c.select()}}}}}function processTabs(a,c){var b=9;if(a.keyCode==b){replaceSelection(c,String.fromCharCode(b));setTimeout("document.getElementById('"+c.id+"').focus();",0);return false}}function hideWindow(a){document.getElementById(a).style.visibility="hidden"}function showWindow(a){document.getElementById(a).style.visibility="visible"}function dd(a){if(!ddEnabled){return}whichDog.style.left=isIE?nowX+event.clientX-offsetx:nowX+a.clientX-offsetx;whichDog.style.top=isIE?nowY+event.clientY-offsety:nowY+a.clientY-offsety;return false}function removeHandler(c,a,b){if(c.removeEventListener){c.removeEventListener(a,b,false)}else{if(c.detachEvent){c.detachEvent("on"+a,b)}else{return false}}}function addHandler(c,a,b){if(c.addEventListener){c.addEventListener(a,b,false)}else{if(c.attachEvent){c.attachEvent("on"+a,b)}else{return false}}}function getValue(a,b){if(isUndefined(b)){b=""}return prompt(a,b)}function hidePseudoHTMLAll(a){document.getElementById("__"+a+"_preview").style.visibility="hidden";document.getElementById("__"+a+"_code").style.visibility="hidden";document.getElementById("__"+a+"_edit").style.visibility="hidden";document.getElementById("__"+a+"_spell").style.visibility="hidden"}function goClick(f,d,e){var a=document.getElementById("__"+f).form;var c=a.target;var b=a.action;a.target=e;a.action=d;a.submit();a.target=c;a.action=b}function showPseudoHTMLPreview(b,a){hidePseudoHTMLAll(b);goClick(b,"./preview.php?action=preview&text="+escape(b)+(a?"&"+a:""),"__"+b+"_iframe_preview");document.getElementById("__"+b+"_preview").style.visibility="visible";document.getElementById("__"+b+"_iframe_preview").style.width=document.getElementById("__"+b+"_container").offsetWidth;document.getElementById("__"+b+"_iframe_preview").style.height=document.getElementById("__"+b+"_container").offsetHeight}function showPseudoHTMLCode(a){hidePseudoHTMLAll(a);goClick(a,"./preview.php?action=code&text="+escape(a),"__"+a+"_iframe_code");document.getElementById("__"+a+"_code").style.visibility="visible";document.getElementById("__"+a+"_iframe_code").style.width=document.getElementById("__"+a+"_container").offsetWidth;document.getElementById("__"+a+"_iframe_code").style.height=document.getElementById("__"+a+"_container").offsetHeight}function showSpellCheck(b,a){hidePseudoHTMLAll(b);goClick(b,"./spell_check.php?action=code&text="+escape(b)+"&tab_select_counter="+a,"__"+b+"_iframe_spell");document.getElementById("__"+b+"_spell").style.visibility="visible";document.getElementById("__"+b+"_iframe_spell").style.width=document.getElementById("__"+b+"_container").offsetWidth;document.getElementById("__"+b+"_iframe_spell").style.height=document.getElementById("__"+b+"_container").offsetHeight}function showPseudoHTMLEdit(a){hidePseudoHTMLAll(a);document.getElementById("__"+a+"_edit").style.visibility="visible"}function setHTMLEdit(c,b,a){document.getElementById("__"+c).value=b}function changeTabSelectMenu(b,a){for(x=0;document[("ts_left"+x)+"_"+a];x++){document[("ts_left"+x)+"_"+a].src="/shared_dir/editor/pics/tabselect/tab_left.gif";document[("ts_right"+x)+"_"+a].src="/shared_dir/editor/pics/tabselect/tab_right.gif";document.getElementById(("ts_middle"+x)+"_"+a).style.backgroundImage="url(/shared_dir/editor/pics/tabselect/tab_middle.gif)";document.getElementById(("ts_tab"+x)+"_"+a).style.color="#000000"}document[("ts_left"+b)+"_"+a].src="/shared_dir/editor/pics/tabselect/tab_left_blue.gif";document[("ts_right"+b)+"_"+a].src="/shared_dir/editor/pics/tabselect/tab_right_blue.gif";document.getElementById(("ts_middle"+b)+"_"+a).style.backgroundImage="url(/shared_dir/editor/pics/tabselect/tab_middle_blue.gif)";document.getElementById(("ts_tab"+b)+"_"+a).style.color="#ffffff"}function setFileControlDelete(b,a){document.getElementById(b).disabled=a}var __tmp_search=new Array();var __search_timer=null;var __search_tmp_array=new Array();function searchPulldownSearch(b,c,a){__search_name=b;__search_query=c;__search_options=a;if(__search_timer){clearTimeout(__search_timer)}__search_timer=setTimeout("_searchPulldownSearch(__search_name, __search_query, __search_options);",900)}function getSearchPulldownQuery(a){return document.getElementById("____"+a).value}function _searchPulldownSearch(a,k){var l=$(document.getElementById("____tmp_search["+a+"]")).find("option").clone().get();var b=l.length;var c=k.toLowerCase();var e="__"+a;var d=document.getElementById(e);var f=$(d).val();var j=(d.type=="select-multiple");if(j){var h=d.options.length;if(isUndefined(__search_tmp_array[a])){__search_tmp_array[a]=new Array()}for(var g=0;g<h;++g){if(d.options[g].selected){__search_tmp_array[a].push(d.options[g].value)}}d.selectedIndex=-1}d.options.length=0;for(var g=0;g<b;++g){if(l[g].text.toLowerCase().indexOf(c)!=-1){if(j){d.options[d.options.length]=new Option(l[g].text,l[g].value,inArray(l[g].value,__search_tmp_array[a]),inArray(l[g].value,__search_tmp_array[a]))}else{$(d).append(l[g])}}}$(d).val(f);if(k==""&&j){__search_tmp_array[a]=new Array()}}var __checkboxlist_tmp_search=new Array();var __checkboxlist_search_timer=null;var __checkboxlist_search_tmp_array=new Array();function searchCheckboxListSearch(b,c,a){__checkboxlist_search_name=b;__checkboxlist_search_query=c;__checkboxlist_search_options=a;if(__checkboxlist_search_timer){clearTimeout(__checkboxlist_search_timer)}__checkboxlist_search_timer=setTimeout("_searchCheckboxListSearch(__checkboxlist_search_name, __checkboxlist_search_query, __checkboxlist_search_options);",900)}function _searchCheckboxListSearch(b,f){var a=f.toLowerCase();var g=document.getElementsByName("______"+b);var d=g.length;for(var c=0;c<d;c++){var e=g[c].innerHTML.toLowerCase().replace(/<.*?>\s*/g," ");if(e.indexOf(a)==-1){g[c].style.display="none"}else{g[c].style.display="block"}}}function searchCheckboxListCheckAllDisplayed(a){var d=document.getElementsByName("______"+a);var c=d.length;for(var b=0;b<c;b++){if(d[b].style.display!="none"&&d[b].childNodes.item(1).disabled!=true){d[b].childNodes.item(1).checked=true}}}function searchCheckboxListUncheckAllDisplayed(a){var d=document.getElementsByName("______"+a);var c=d.length;for(var b=0;b<c;b++){if(d[b].style.display!="none"){d[b].childNodes.item(1).checked=false}}}function searchCheckboxListTableSearch(b,c,a){__checkboxlist_search_name=b;__checkboxlist_search_query=c;__checkboxlist_search_options=a;if(__checkboxlist_search_timer){clearTimeout(__checkboxlist_search_timer)}__checkboxlist_search_timer=setTimeout("_searchCheckboxListTableSearch(__checkboxlist_search_name, __checkboxlist_search_query, __checkboxlist_search_options);",900)}function _searchCheckboxListTableSearch(d,j){var f=j.toLowerCase();var h=document.getElementsByName("______"+d);var e=h.length;var b=(document.getElementsByName("______display_checked_"+d));if(!b.length||b[0].checked){display_checked=true}else{display_checked=false}var c=(document.getElementsByName("______display_unchecked_"+d));if(!c.length||c[0].checked){display_unchecked=true}else{display_unchecked=false}if(!display_checked&&!display_unchecked){b[0].checked=display_checked=c[0].checked=display_unchecked=true}for(var g=0;g<e;g++){var a=h[g].innerHTML.toLowerCase().replace(/<.*?>\s*/g," ");if(a.indexOf(f)==-1||(h[g].childNodes[0].childNodes[0].checked&&!display_checked)||(!h[g].childNodes[0].childNodes[0].checked&&!display_unchecked)){h[g].style.display="none"}else{h[g].style.display=""}}}function searchCheckboxListTableDisplayChecked(a){var d=document.getElementsByName("______"+a);var c=d.length;for(var b=0;b<c;b++){if(d[b].style.display!="none"&&d[b].childNodes[0].childNodes[0].disabled!=true){if(d[b].childNodes[0].childNodes[0].checked){d[b].childNodes[0].childNodes[0].checked=false}else{d[b].childNodes[0].childNodes[0].checked=true}}}}function searchCheckboxListTableCheckAllDisplayed(a){var d=document.getElementsByName("______"+a);var c=d.length;for(var b=0;b<c;b++){if(d[b].style.display!="none"&&d[b].childNodes[0].childNodes[0].disabled!=true){d[b].childNodes[0].childNodes[0].checked=true}}}function searchCheckboxListTableUncheckAllDisplayed(a){var d=document.getElementsByName("______"+a);var c=d.length;for(var b=0;b<c;b++){if(d[b].style.display!="none"&&d[b].childNodes[0].childNodes[0].disabled!=true){d[b].childNodes[0].childNodes[0].checked=false}}}function searchCheckboxListTableToggleAllDisplayed(a){var d=document.getElementsByName("______"+a);var c=d.length;for(var b=0;b<c;b++){if(d[b].style.display!="none"&&d[b].childNodes[0].childNodes[0].disabled!=true){if(d[b].childNodes[0].childNodes[0].checked){d[b].childNodes[0].childNodes[0].checked=false}else{d[b].childNodes[0].childNodes[0].checked=true}}}}function openPopupWindow(c,d,a,h,g,f,b){if(!h&&!g){h=0;g=0;h=(screen.width/2)-(d/2);g=(screen.height/2)-(a/2)}if(!f){f="toolbar=no,menubar=no,resizable=yes,scrollbars=no,status=no,location=no"}if(isUndefined(b)){b=true}var e="";if(f){e+=f+","}e+="left="+h+",top="+g+",width="+d+",height="+a;newWindow=window.open(c,"_blank",e);if(b){newWindow.focus()}}function resizeWindow(b,a){window.resizeTo(b,a)}function closeWindow(){self.close()}function isLeapYear(a){return(a%4==0||a%100==0)}function getDaysInMonth(a,b){if(inArray(b,new Array(4,6,9,11))){return 30}else{if(b==2){if(isLeapYear(a)){return 29}else{return 28}}else{return 31}}}function getPageInternalLink(a){if(!a){a=document.location.href}return a.match(/#(.*)/)?a.match(/#(.*)/)[1]:null}function updateSimpleDate(a){var f=document.getElementById("_"+a+"_year").value;var e=document.getElementById("_"+a+"_month").value;f=(f?f:"0");e=(e?e:"0");if(document.getElementById("_"+a+"_day")){var g=document.getElementById("_"+a+"_day").value;g=(g?g:"0");var c=getDaysInMonth(f,e);var b=document.getElementById("_"+a+"_day");var j=b.options[0].text=="";var h=b.value;b.options.length=0;if(j){b.options[b.options.length]=new Option("","")}for(var d=1;d<=c;d++){b.options[b.options.length]=new Option(d,d)}b.value=h;document.getElementById("_"+a).value=f+"-"+e+"-"+g}else{document.getElementById("_"+a).value=f+"-"+e}}var xmlHttp;function getXMLHttpObject(){if(!isUndefined(xmlHttp)){return true}xmlHttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
	try {
	  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
	  try {
	    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	  } catch (e2) {
	    xmlHttp = false;
	  }
	}
	@end @*/
if(!xmlHttp&&typeof XMLHttpRequest!="undefined"){xmlHttp=new XMLHttpRequest()}}function sendXMLRequest(a,c,d,b){if(!d){d="GET"}if(isUndefined(b)){b=true}xmlHttp.open(d,a,b);xmlHttp.onreadystatechange=c;xmlHttp.send(null)}function getXMLResponseText(){if(xmlHttp.readyState==4){return xmlHttp.responseText}else{return""}}function getXMLResponseHeaders(){if(xmlHttp.readyState==4){return xmlHttp.getAllResponseHeaders()}else{return""}}function getXMLResponseStatus(){return xmlHttp.status}function runXMLResponseText(){if(xmlHttp.readyState==4){xmlHttp.responseText.eval();return true}else{return false}}function MM_swapImgRestore(){var d,b,c=document.MM_sr;for(d=0;c&&d<c.length&&(b=c[d])&&b.oSrc;d++){b.src=b.oSrc}}function MM_preloadImages(){var f=document;if(f.images){if(!f.MM_p){f.MM_p=new Array()}var e,c=f.MM_p.length,b=MM_preloadImages.arguments;for(e=0;e<b.length;e++){if(b[e].indexOf("#")!=0){f.MM_p[c]=new Image;f.MM_p[c++].src=b[e]}}}}function MM_findObj(f,e){var c,b,a;if(!e){e=document}if((c=f.indexOf("?"))>0&&parent.frames.length){e=parent.frames[f.substring(c+1)].document;f=f.substring(0,c)}if(!(a=e[f])&&e.all){a=e.all[f]}for(b=0;!a&&b<e.forms.length;b++){a=e.forms[b][f]}for(b=0;!a&&e.layers&&b<e.layers.length;b++){a=MM_findObj(f,e.layers[b].document)}if(!a&&e.getElementById){a=e.getElementById(f)}return a}function MM_swapImage(){var e,d=0,b,c=MM_swapImage.arguments;document.MM_sr=new Array;for(e=0;e<(c.length-2);e+=3){if((b=MM_findObj(c[e]))!=null){document.MM_sr[d++]=b;if(!b.oSrc){b.oSrc=b.src}b.src=c[e+2]}}}var dropList_active_id=null;var dropList_active_id_i=null;var dropList_visible=false;var dropList_mouse_disabled=false;var __DL_timer=null;function containsDOM(a,c){var b=false;do{if((b=a==c)){break}if(isUndefined(c)||isUndefined(c.parentNode)){c=null}else{c=c.parentNode}}while(c!=null);return b}function checkMouseEnter(b,a){if(b.contains&&a.fromElement){return !b.contains(a.fromElement)}else{if(a.relatedTarget){return !containsDOM(b,a.relatedTarget)}}}function checkMouseLeave(b,a){if(b.contains&&a.toElement){return !b.contains(a.toElement)}else{if(a.relatedTarget){return !containsDOM(b,a.relatedTarget)}}}function setDLIDOut(b,a){if(checkMouseLeave(document.getElementById(dropList_active_id),b)){if(a){__DL_timer=setTimeout("hideDL()",isBoolean(a)?1000:a)}}}function setActiveDL(a){if(a!=dropList_active_id){hideDL()}dropList_active_id=a;dropList_active_id_i=null}function hideDL(){if(document.getElementById(dropList_active_id)){document.getElementById(dropList_active_id).style.display="none";dropList_visible=false}dropList_active_id_i=null}function clickHideDL(a){var b=!isUndefined(a.target)?a.target:window.event.srcElement;if(!containsDOM(document.getElementById(dropList_active_id),b)){hideDL()}}function cancelTimer(){clearTimeout(__DL_timer)}function setDLID(b,d){d=defaultBool(d);if(d&&dropList_mouse_disabled){return}if(document.getElementById(dropList_active_id+"_"+b)){if(dropList_active_id!=null&&dropList_active_id_i!=null){setPointer(document.getElementById(dropList_active_id+"_"+dropList_active_id_i),"dropList_off")}setPointer(document.getElementById(dropList_active_id+"_"+b),"dropList_on");dropList_active_id_i=b;if(!d){var g=document.getElementById(dropList_active_id).style.height.replace(/px/,"");var a=document.getElementById(dropList_active_id).scrollTop;var f=(document.getElementById(dropList_active_id+"_"+b).offsetTop);var e=(document.getElementById(dropList_active_id+"_"+b).offsetHeight);if(a<f-g+e){var c=f-g+e;c=c>0?c:0;document.getElementById(dropList_active_id).scrollTop=c}else{if(f<a){var c=f;document.getElementById(dropList_active_id).scrollTop=c}}if(b==0){document.getElementById(dropList_active_id).scrollTop=0}}}cancelTimer()}function clickDLID(a){if(document.getElementById(dropList_active_id+"_"+a)){document.getElementById(dropList_active_id+"_"+a).onclick()}}function dropList(o,p,q,m,d,v,b,r,n,e,l){var k="";var f=q?" width:"+q+"px; ":"";var z=!isUndefined(m)?" padding:"+m+"px; ":" ";var s=!isUndefined(d)?" margin:"+d+"px; ":" ";var c=p?" id='"+p+"' ":" ";var w=n?" height:"+n+"px; overflow:auto; ":" ";b=!isUndefined(b)?b:false;v=!isUndefined(v)&&v;e=!isUndefined(e)?e:"";l=defaultBool(l);if(l&&n&&e){var t=findPosY(document.getElementById(e))+document.getElementById(e).clientHeight;var y=document.body.scrollTop;var g=document.body.clientHeight;l=((t+n)>(g+y))}else{l=false}if(l){var j=findPosY(document.getElementById(e));var y=document.body.scrollTop;if((j-y)>n){var a="position: relative; top:-"+(n+document.getElementById(e).clientHeight+4)+"px;"}else{var a=""}}else{var a=""}k+="<div class='dropList'"+c+'style="'+w+f+a+'" onMouseMove="dropList_mouse_disabled = false" onMouseOut="setDLIDOut(event, '+v+')">';if(!isUndefined(r)){k+="<div>"+r+"</div>"}for(var u=0;u<o.length;u++){var h=p?" id='"+p+"_"+u+"'":" ";if(b){link_code='onClick="'+o[u][0]+'"'}else{link_code="onClick=\"location.href='"+o[u][0]+"'\""}k+="<div "+link_code+' class="dropList_off"'+h+'style="'+z+s+'"  onmouseover="setDLID('+u+', true);">'+o[u][1]+"</div>"}k+="</div>";dropList_visible=true;return k}function getDropListItem(c,a){var b=document.getElementById(c+"_"+a);_y=String(b.onclick).match(/"(.*?)"/);return new Array((_y?_y[1]:""),stripTags(b.innerHTML))}function auto_complete(d,f,h,e,c,b,g,a){dropList_mouse_disabled=true;c=defaultBool(c);g=defaultBool(g);a=defaultBool(a)?1:0;b=!isUndefined(b)?b:"";if(c&&b&&g&&dropList_active_id_i!=null&&d.keyCode==39){document.getElementById(b).value=getDropListItem(h,dropList_active_id_i)[1];hideDL();return false}if(!c){if(d.keyCode==38){if(!dropList_visible){runRemoteJS(e+"?q="+URLencode(f)+"&select="+d.keyCode+"&id="+h+"&textboxid="+b+"&ontop="+a)}else{if(dropList_active_id_i==0){hideDL()}else{setDLID(dropList_active_id_i-1)}}return false}else{if(d.keyCode==40){if(!dropList_visible){runRemoteJS(e+"?q="+URLencode(f)+"&select="+d.keyCode+"&id="+h+"&textboxid="+b+"&ontop="+a)}else{if(dropList_active_id_i==null){setDLID(0)}else{setDLID(dropList_active_id_i+1)}}return false}else{if(d.keyCode==13){if(dropList_active_id_i!=null){clickDLID(dropList_active_id_i);return false}else{return true}}else{if(d.keyCode==27){hideDL();return false}else{if(d.keyCode==37){return true}else{if(d.keyCode==39){return true}}}}}}}else{if(window.event&&navigator.userAgent.indexOf("Opera")==-1&&navigator.appName!="Safari"){if(d.keyCode==38){if(dropList_active_id_i==0){hideDL()}else{setDLID(dropList_active_id_i-1)}return false}else{if(d.keyCode==40){if(!dropList_visible){runRemoteJS(e+"?q="+URLencode(f)+"&select="+d.keyCode+"&id="+h+"&textboxid="+b+"&ontop="+a)}else{if(dropList_active_id_i==null){setDLID(0)}else{setDLID(dropList_active_id_i+1)}}return false}}}if(!inArray(d.keyCode,[38,40,13,27,37,39])){runRemoteJS(e+"?q="+URLencode(f)+"&select="+d.keyCode+"&id="+h+"&textboxid="+b+"&ontop="+a)}}}function getPageX(){return(document.all)?document.body.scrollLeft:window.pageXOffset}function getPageY(){return(document.all)?document.body.scrollTop:window.pageYOffset}function setPagePosition(a,b){scroll(a,b)}function getPageHeight(){if(document.body.scrollHeight>document.body.offsetHeight){return document.body.scrollHeight}else{return document.body.offsetHeight}}function setProgressBarAjax(a,b){document.getElementById(a+"_percent").style.width=b+"%";document.getElementById(a+"_percent_number").innerHTML=document.getElementById(a+"_percent").style.width}function showUploadProgressBar(b,a){if(isUndefined(a)){a=""}window.setTimeout('_showUploadProgressBar("'+b+'", "'+a+'")',1000)}function _showUploadProgressBar(b,a){document.getElementById("_file_upload_div").innerHTML='<iframe frameborder="0" scrolling="no" style="border:0px" width="100%" src="/shared_dir/scripts/file_progress_bar.php?UPLOAD_IDENTIFIER='+b+"&"+a+'"></iframe>'}function setClipboardFF(text){var url=["data:text/html;charset=utf-8;base64,PGJvZHk+PC9ib2","R5PjxzY3JpcHQgdHlwZT0idGV4dC9qYXZhc2NyaXB0Ij4KKGZ1","bmN0aW9uKGVuY29kZWQpe3ZhciBzd2ZfZGF0YSA9IFsKICdkYX","RhOmFwcGxpY2F0aW9uL3gtc2hvY2t3YXZlLWZsYXNoO2Jhc2U2","NCxRMWRUQjJ3JywKICdBQUFCNG5EUGdZbGpBd01qSTRNejAlMk","YlMkY5JTJGZTJaZkJnYUdhV3dNRE1uNUthJywKICdrTU10TjRH","ZGdaZ1NJTXdaWEZKYW01UUFFJTJCQm9iaTFCTG5uTXlDcFB6RW","9oU0dJJywKICdQRnAlMkZBeHNEREJRa3BGWkRGUUZGQ2d1eVM4","QXlqSTRBRVVCaXkwVndBJTNEJTNEJwpdLmpvaW4oIiIpOwpkb2","N1bWVudC5ib2R5LmlubmVySFRNTCA9IFsKICc8ZW1iZWQgc3Jj","PSInLHN3Zl9kYXRhLCciICcsCiAnRmxhc2hWYXJzPSJjb2RlPS","csZW5jb2RlZCwnIj4nLAogJzwvZW1iZWQ+JwpdLmpvaW4oIiIp","Owp9KSgi",btoa(encodeURIComponent(text)+'")<\/script>')].join("");var tmp=document.createElement("div");tmp.innerHTML='<iframe src="'+url+'" width="0" height="0"></iframe>';with(tmp.style){position="absolute";left="-10px";top="-10px";visibility="hidden"}document.body.appendChild(tmp);setTimeout(function(){document.body.removeChild(tmp)},1000)}function setClipboardIE(b){var a=document.createElement("textarea");a.innerText=b;Copied=a.createTextRange();Copied.execCommand("RemoveFormat");Copied.execCommand("Copy")}function setClipboard(a){if(window.event){setClipboardIE(a)}else{setClipboardFF(a)}}function setClipboardFlash(c){if(!FlashDetect.installed){setClipboard(c)}else{var b="flashcopier";if(!document.getElementById(b)){var d=document.createElement("div");d.id=b;document.body.appendChild(d)}document.getElementById(b).innerHTML="";var a='<embed src="/_clipboard.swf" FlashVars="clipboard='+encodeURIComponent(c)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';document.getElementById(b).innerHTML=a}}function findPosX(a){var b=0;if(a.offsetParent){while(a.offsetParent){b+=a.offsetLeft;a=a.offsetParent}}else{if(a.x){b+=a.x}}return b}function findPosY(b){var a=0;if(b.offsetParent){while(b.offsetParent){a+=b.offsetTop;b=b.offsetParent}}else{if(b.y){a+=b.y}}return a}function padNumber(b,a){var c=""+b;while(c.length<a){c="0"+c}return c}function cloneMe(a){if($(a).hasClass("clone_trigger")){$theObj=$(a).prev()}else{$theObj=$(a)}$clonedObj=$theObj.clone().css({marginTop:"<?=$margin?>",opacity:0}).find("input[type=text], textarea").attr("value","").end().find("option").removeAttr("selected").filter(":first").attr("selected","selected").end().end();if($theObj.siblings("span").length==0){$clonedObj.prepend('<div style="height:5px;"><br></div>')}$theObj.after($clonedObj);$clonedObj.animate({opacity:1},1000).contents().filter("input, select").eq(0).focus()}function removeClone(b,a){if($(b).hasClass("clone_remove_trigger")){$theObj=$(b).parent()}else{$theObj=$(b)}$siblings=$theObj.siblings($theObj.attr("nodeName"));if($siblings.length>0){if(a){$theObj.fadeOut("slow",function(){$theObj.remove();$siblings.eq(0).children().eq(0).remove("div")})}else{if(sure("Are you sure you want to remove this?")){$theObj.fadeOut("slow",function(){$theObj.remove();$siblings.eq(0).children().eq(0).remove("div")})}}}}function getCCType(d,a,f,b,c,e){var a=(a||"AMEX"),f=(f||"MASTERCARD"),b=(b||"DISCOVER"),c=(c||"VISA"),e=(e||"OTHER");d=d.replace("#[^0-9]#","");if(d.substr(0,1)=="3"){cardtype=a}else{if(d.substr(0,1)=="6"){cardtype=b}else{if(d.substr(0,1)=="5"){cardtype=f}else{if(d.substr(0,1)=="4"){cardtype=c}else{cardtype=e}}}}return cardtype}function html_entity_decode(c){var b=$('<div style="display:none;"><textarea style="display:none;">'+c+"</textarea></div>").appendTo("body");var a=b.find("textarea").val();b.remove();return a};
var _r;var _s;var _u;function auto_complete_search(c,d,e,b,a){return auto_complete(c,d,e,"/get-page.php",b,a,true,true)}function _t(d,b){var a=document.getElementById("n_"+d+"_n");var c=document.getElementById("n_"+d+"_f");if(b){a.className="display_block";c.className="display_none"}else{a.className="display_none";c.className="display_block"}}function _g(a){window.location.href=a}function goToMiniForm(){setPagePosition(0,getPageHeight());setFocus(document.forms.mini_intake["info[name]"],"focus_box");return false}function _e_open(a){a=defaultBool(a);if(a){document.getElementById("e_open").style.visibility="visible"}else{document.getElementById("e_open").style.visibility="hidden"}}(function(){var a;(a=function(){while(!document.location.href.match("www.lawyerseek.com")&&!document.location.href.match("lawyerseek.secureporte.com")){setTimeout(a,100)}})()})();