var gDropDowns=[];function InArray(c,e){var d=false;for(i=0;i=0)String.prototype.localeCompare=function(c){a=Normalize(this);b=Normalize(c);return ab?1:0}; function Normalize(c){c=c;c=c.replace(/[\u221a\u00c4\u221a\u0086\u221a\u00c5\u221a\u00b0\u221a\u00c9\u221a\u00a3\u221a\u00d1\u221a\u00a7\u221a\u00d6\u221a\u0095\u221a\u00dc\u221a\u00b6]/,"a");c=c.replace(/[\u221a\u00e1\u221a\u00df]/,"c");c=c.replace(/[\u221a\u00ea\u221a\u221e]/,"d");c=c.replace(/[\u221a\u00e0\u221a(R)\u221a\u00e2\u221a(c)\u221a\u00e4\u221aTM\u221a\u00e3\u221a\u00b4]/,"e");c=c.replace(/[\u221a\u00e5\u221a\u00a8\u221a\u00e7\u221a\u2260\u221a\u00e9\u221a\u00c6\u221a\u00e8\u221a\u00d8]/, "i");c=c.replace(/[\u221a\u00ed\u221a\u2264\u221a\u00ec\u221a\u2265\u221a\u00ee\u221a\u00a5\u221a\u00f1\u221a\u2202\u00ac\u00e5\u00ac\u00fa\u221a\u00f2\u221a\u220f]/,"o");c=c.replace(/[\u221a\u00f4\u221a\u03c0\u221a\u00f6\u221a\u222b\u221a\u00f5\u221a\u00aa\u221a\u00fa\u221a\u00ba]/,"u");c=c.replace(/[\u221a\u00f9\u221a\u03a9\u00ac\u00fc\u221a\u00f8]/,"y");return c=c.replace(/\u221a\u00fc/,"s")}function LocaleSort(c,e){return c.localeCompare(e)} function AddEvent(c,e,d){if(c.attachEvent){c["e"+e+d]=d;c[e+d]=function(){c["e"+e+d](window.event)};return c.attachEvent("on"+e,c[e+d])}else return c.addEventListener(e,d,false)}function RemoveEvent(c,e,d){if(c.detachEvent){var f=c.detachEvent("on"+e,c[e+d]);c[e+d]=null;return f}else return c.removeEventListener(e,d,false)}function DropDownMouseOut(c){if(gDropDowns[c].AutoHideDuration>0)return DropDownHandler(c,gDropDowns[c].AutoHideDuration,false);return false} function SetDropDown(c,e){return DropDownHandler(c,gDropDowns[c].AutoHideDuration,e)}function ToggleDropDown(c){return DropDownHandler(c,0,gDropDowns[c]==null||!gDropDowns[c].Hovering)}function GoToDropDown(c,e){if(!c)c=window.event;if(c){c=c.keyCode?c.keyCode:c.which;c=String.fromCharCode(c);document.getElementById(e+"-"+c)&&document.getElementById(e+"-"+c).scrollIntoView()}} function DropDownHandler(c,e,d){if(gDropDowns[c]==null)gDropDowns[c]={Hovering:false,TimeoutID:null};if(gDropDowns[c].Hovering!=d){var f=document.getElementById(c+"-List");if(d){for(DropDownIdentifier in gDropDowns)if(DropDownIdentifier!=c)if(e=document.getElementById(DropDownIdentifier+"-List")){if(e.style.display!="none"){document.onkeypress=null;e.style.display="none"}if(gDropDowns[DropDownIdentifier].TimeoutID!=null){clearTimeout(gDropDowns[DropDownIdentifier].TimeoutID);gDropDowns[DropDownIdentifier].TimeoutID= null}gDropDowns[DropDownIdentifier].Hovering=false}f.style.display="block";if(gDropDowns[c].TimeoutID!=null){clearTimeout(gDropDowns[c].TimeoutID);gDropDowns[c].TimeoutID=null}AddEvent(document,"keydown",gDropDowns[c].KeyHandler)}else if(e>0)gDropDowns[c].TimeoutID=setTimeout('HideDropDown("'+c+'")',e);else{RemoveEvent(document,"keydown",gDropDowns[c].KeyHandler);f.style.display="none";if(gDropDowns[c].TimeoutID!=null){clearTimeout(gDropDowns[c].TimeoutID);gDropDowns[c].TimeoutID=null}}gDropDowns[c].Hovering= d}}function HideDropDown(c){if(!gDropDowns[c].Hovering){var e=document.getElementById(c+"-List");document.onkeypress=null;e.style.display="none"}gDropDowns[c].TimeoutID=null}function DropDownIsActive(c){return gDropDowns[c]!=null&&gDropDowns[c].TimeoutID!=null} function CreateDropDown(c,e,d,f,g,h,j){for(var l=[],k=0;k');document.writeln('");BuildDropDownList(c)}function BuildDropDownLists(c,e){e==null&&BuildDropDownList(c);var d=gDropDowns[c].ChainedDropDowns;if(d!=null)for(var f=0;f";d="";for(f=0;f0?h.charAt(0):"";if(j!=d){j=' id="'+c+"-"+j+'" ';d=h.charAt(0)}else j="";e+="
  • '+ g[f]+"
  • "}e+="";d=document.getElementById(c+"-List");d.style.height=g.length>8?"160px":"auto";d.innerHTML=e;g=document.getElementById(c);g.value="";g=document.getElementById(c+"-Value");g.innerHTML=gDropDowns[c].Title} function SelectOption(c,e){var d;d=document.getElementById(c);d.value=e;d=document.getElementById(c+"-Value");d.innerHTML=e;if(gDropDowns[c].IsSubmittable){if(document.getElementById(gDropDowns[c].FormName)){d=document.getElementById(gDropDowns[c].FormName).childNodes;for(var f=false,g=0;g