function pI(){if(document.images){var a=pI.arguments;var c=new Array();for(var b=0;b<a.length;b++){c[b]=new Image;c[b].src=a[b]}}}function sI(){var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;for(i=0;i<(sI.arguments.length-2);i+=3){objStr=sI.arguments[(navigator.appName=="Netscape")?i:i+1];if((objStr.indexOf("document.layers[")==0&&document.layers==null)||(objStr.indexOf("document.all[")==0&&document.all==null)){objStr="document"+objStr.substring(objStr.lastIndexOf("."),objStr.length)}obj=eval(objStr);if(obj!=null){swapArray[j++]=obj;swapArray[j++]=(oldArray==null||oldArray[j-1]!=obj)?obj.src:oldArray[j];obj.src=sI.arguments[i+2]}}document.MM_swapImgData=swapArray}function rI(){if(document.MM_swapImgData!=null){for(var a=0;a<(document.MM_swapImgData.length-1);a+=2){document.MM_swapImgData[a].src=document.MM_swapImgData[a+1]}}}function obfuscate(b,a){document.write('<a href="mailto:'+a+"@"+b+'">'+a+"@"+b+"</a>")}function tooltip(c,b,a){domTT_activate(c,b,"content",a,"styleClass","niceTitle","fade","both","fadeMax",87,"offsetY",-8,"width",80)}var domLib_userAgent=navigator.userAgent.toLowerCase();var domLib_isMac=navigator.appVersion.indexOf("Mac")!=-1;var domLib_isWin=domLib_userAgent.indexOf("windows")!=-1;var domLib_isOpera=domLib_userAgent.indexOf("opera")!=-1;var domLib_isOpera7up=domLib_userAgent.match(/opera.(7|8)/i);var domLib_isSafari=domLib_userAgent.indexOf("safari")!=-1;var domLib_isKonq=domLib_userAgent.indexOf("konqueror")!=-1;var domLib_isKHTML=(domLib_isKonq||domLib_isSafari||domLib_userAgent.indexOf("khtml")!=-1);var domLib_isIE=(!domLib_isKHTML&&!domLib_isOpera&&(domLib_userAgent.indexOf("msie 5")!=-1||domLib_userAgent.indexOf("msie 6")!=-1||domLib_userAgent.indexOf("msie 7")!=-1));var domLib_isIE5up=domLib_isIE;var domLib_isIE50=(domLib_isIE&&domLib_userAgent.indexOf("msie 5.0")!=-1);var domLib_isIE55=(domLib_isIE&&domLib_userAgent.indexOf("msie 5.5")!=-1);var domLib_isIE5=(domLib_isIE50||domLib_isIE55);var domLib_isGecko=domLib_userAgent.indexOf("gecko/")!=-1;var domLib_isMacIE=(domLib_isIE&&domLib_isMac);var domLib_isIE55up=domLib_isIE5up&&!domLib_isIE50&&!domLib_isMacIE;var domLib_isIE6up=domLib_isIE55up&&!domLib_isIE55;var domLib_standardsMode=(document.compatMode&&document.compatMode=="CSS1Compat");var domLib_useLibrary=(domLib_isOpera7up||domLib_isKHTML||domLib_isIE5up||domLib_isGecko||domLib_isMacIE||document.defaultView);var domLib_hasBrokenTimeout=(domLib_isMacIE||(domLib_isKonq&&domLib_userAgent.match(/konqueror\/3.([2-9])/)==null));var domLib_canFade=(domLib_isGecko||domLib_isIE||domLib_isSafari||domLib_isOpera);var domLib_canDrawOverSelect=(domLib_isMac||domLib_isOpera||domLib_isGecko);var domLib_canDrawOverFlash=(domLib_isMac||domLib_isWin);var domLib_eventTarget=domLib_isIE?"srcElement":"currentTarget";var domLib_eventButton=domLib_isIE?"button":"which";var domLib_eventTo=domLib_isIE?"toElement":"relatedTarget";var domLib_stylePointer=domLib_isIE?"hand":"pointer";var domLib_styleNoMaxWidth=domLib_isOpera?"10000px":"none";var domLib_hidePosition="-1000px";var domLib_scrollbarWidth=14;var domLib_autoId=1;var domLib_zIndex=100;var domLib_collisionElements;var domLib_collisionsCached=false;var domLib_timeoutStateId=0;var domLib_timeoutStates=new Hash();if(!document.ELEMENT_NODE){document.ELEMENT_NODE=1;document.ATTRIBUTE_NODE=2;document.TEXT_NODE=3;document.DOCUMENT_NODE=9;document.DOCUMENT_FRAGMENT_NODE=11}function domLib_clone(d){var f={};for(var a in d){var b=d[a];try{if(b!=null&&typeof(b)=="object"&&b!=window&&!b.nodeType){f[a]=domLib_clone(b)}else{f[a]=b}}catch(c){f[a]=b}}return f}function Hash(){this.length=0;this.numericLength=0;this.elementData=[];for(var a=0;a<arguments.length;a+=2){if(typeof(arguments[a+1])!="undefined"){this.elementData[arguments[a]]=arguments[a+1];this.length++;if(arguments[a]==parseInt(arguments[a])){this.numericLength++}}}}Hash.prototype.get=function(a){if(typeof(this.elementData[a])!="undefined"){return this.elementData[a]}return null};Hash.prototype.set=function(a,b){if(typeof(b)!="undefined"){if(typeof(this.elementData[a])=="undefined"){this.length++;if(a==parseInt(a)){this.numericLength++}}return this.elementData[a]=b}return false};Hash.prototype.remove=function(b){var a;if(typeof(this.elementData[b])!="undefined"){this.length--;if(b==parseInt(b)){this.numericLength--}a=this.elementData[b];delete this.elementData[b]}return a};Hash.prototype.size=function(){return this.length};Hash.prototype.has=function(a){return typeof(this.elementData[a])!="undefined"};Hash.prototype.find=function(a){for(var b in this.elementData){if(this.elementData[b]==a){return b}}return null};Hash.prototype.merge=function(b){for(var a in b.elementData){if(typeof(this.elementData[a])=="undefined"){this.length++;if(a==parseInt(a)){this.numericLength++}}this.elementData[a]=b.elementData[a]}};Hash.prototype.compare=function(b){if(this.length!=b.length){return false}for(var a in this.elementData){if(this.elementData[a]!=b.elementData[a]){return false}}return true};function domLib_isDescendantOf(b,a,c){if(b==null){return false}if(b==a){return true}if(typeof(c)!="undefined"&&(","+c.join(",")+",").indexOf(","+b.tagName+",")!=-1){return false}while(b!=document.documentElement){try{if((tmp_object=b.offsetParent)&&tmp_object==a){return true}else{if((tmp_object=b.parentNode)==a){return true}else{b=tmp_object}}}catch(d){return false}}return false}function domLib_detectCollisions(f,e,h){if(!domLib_collisionsCached){var k=[];if(!domLib_canDrawOverFlash){k[k.length]="object"}if(!domLib_canDrawOverSelect){k[k.length]="select"}domLib_collisionElements=domLib_getElementsByTagNames(k,true);domLib_collisionsCached=h}if(e){for(var b=0;b<domLib_collisionElements.length;b++){var a=domLib_collisionElements[b];if(!a.hideList){a.hideList=new Hash()}a.hideList.remove(f.id);if(!a.hideList.length){domLib_collisionElements[b].style.visibility="visible";if(domLib_isKonq){domLib_collisionElements[b].style.display=""}}}return}else{if(domLib_collisionElements.length==0){return}}var d=domLib_getOffsets(f);for(var b=0;b<domLib_collisionElements.length;b++){var a=domLib_collisionElements[b];if(domLib_isDescendantOf(a,f)){continue}if(domLib_isKonq&&a.tagName=="SELECT"&&(a.size<=1&&!a.multiple)){continue}if(!a.hideList){a.hideList=new Hash()}var c=domLib_getOffsets(a);var j=Math.sqrt(Math.pow(c.get("leftCenter")-d.get("leftCenter"),2)+Math.pow(c.get("topCenter")-d.get("topCenter"),2));var g=c.get("radius")+d.get("radius");if(j<g){if((d.get("leftCenter")<=c.get("leftCenter")&&d.get("right")<c.get("left"))||(d.get("leftCenter")>c.get("leftCenter")&&d.get("left")>c.get("right"))||(d.get("topCenter")<=c.get("topCenter")&&d.get("bottom")<c.get("top"))||(d.get("topCenter")>c.get("topCenter")&&d.get("top")>c.get("bottom"))){a.hideList.remove(f.id);if(!a.hideList.length){a.style.visibility="visible";if(domLib_isKonq){a.style.display=""}}}else{a.hideList.set(f.id,true);a.style.visibility="hidden";if(domLib_isKonq){a.style.display="none"}}}}}function domLib_getOffsets(b,a){if(typeof(a)=="undefined"){a=false}var g=b;var f=b.offsetWidth;var e=b.offsetHeight;var d=0;var c=0;while(b){d+=b.offsetLeft;c+=b.offsetTop;b=b.offsetParent;if(b&&!a){d-=b.scrollLeft;c-=b.scrollTop}}if(domLib_isMacIE){d+=10;c+=10}return new Hash("left",d,"top",c,"right",d+f,"bottom",c+e,"leftCenter",d+f/2,"topCenter",c+e/2,"radius",Math.max(f,e))}function domLib_setTimeout(a,d,b){if(typeof(b)=="undefined"){b=[]}if(d==-1){return 0}else{if(d==0){a(b);return 0}}var c=domLib_clone(b);if(!domLib_hasBrokenTimeout){return setTimeout(function(){a(c)},d)}else{var f=domLib_timeoutStateId++;var e=new Hash();e.set("function",a);e.set("args",c);domLib_timeoutStates.set(f,e);e.set("timeoutId",setTimeout("domLib_timeoutStates.get("+f+").get('function')(domLib_timeoutStates.get("+f+").get('args')); domLib_timeoutStates.remove("+f+");",d));return f}}function domLib_clearTimeout(a){if(!domLib_hasBrokenTimeout){if(a>0){clearTimeout(a)}}else{if(domLib_timeoutStates.has(a)){clearTimeout(domLib_timeoutStates.get(a).get("timeoutId"));domLib_timeoutStates.remove(a)}}}function domLib_getEventPosition(b){var a=new Hash("x",0,"y",0,"scrollX",0,"scrollY",0);if(domLib_isIE){var c=(domLib_standardsMode?document.documentElement:document.body);if(c){a.set("x",b.clientX+c.scrollLeft);a.set("y",b.clientY+c.scrollTop);a.set("scrollX",c.scrollLeft);a.set("scrollY",c.scrollTop)}}else{a.set("x",b.pageX);a.set("y",b.pageY);a.set("scrollX",b.pageX-b.clientX);a.set("scrollY",b.pageY-b.clientY)}return a}function domLib_cancelBubble(b){var a=b?b:window.event;a.cancelBubble=true}function domLib_getIFrameReference(d){if(domLib_isGecko||domLib_isIE){return d.frameElement}else{var a=d.name;if(!a||!d.parent){return null}var c=d.parent.document.getElementsByTagName("iframe");for(var b=0;b<c.length;b++){if(c[b].name==a){return c[b]}}return null}}function domLib_getElementsByClass(e){var d=domLib_isIE5?document.all:document.getElementsByTagName("*");var c=[];var b=0;for(var a=0;a<d.length;a++){if((" "+d[a].className+" ").indexOf(" "+e+" ")!=-1){c[b++]=d[a]}}return c}function domLib_getElementsByTagNames(l,g){var a=[];for(var e=0;e<l.length;e++){var f=document.getElementsByTagName(l[e]);for(var d=0;d<f.length;d++){if(f[d].tagName=="OBJECT"&&domLib_isGecko){var b=f[d].childNodes;var h=false;for(var c=0;c<b.length;c++){if(b[c].tagName=="EMBED"){h=true;break}}if(h){continue}}if(g&&domLib_getComputedStyle(f[d],"visibility")=="hidden"){continue}a[a.length]=f[d]}}return a}function domLib_getComputedStyle(in_obj,in_property){if(domLib_isIE){var humpBackProp=in_property.replace(/-(.)/,function(a,b){return b.toUpperCase()});return eval("in_obj.currentStyle."+humpBackProp)}else{if(domLib_isKonq){return eval("in_obj.style."+in_property)}else{return document.defaultView.getComputedStyle(in_obj,null).getPropertyValue(in_property)}}}function makeTrue(){return true}function makeFalse(){return false}Fadomatic.INTERVAL_MILLIS=50;function Fadomatic(b,c,a,f,e){this._element=b;this._intervalId=null;this._rate=c;this._isFadeOut=true;this._minOpacity=0;this._maxOpacity=99;this._opacity=99;if(typeof f!="undefined"){if(f<0){this._minOpacity=0}else{if(f>99){this._minOpacity=99}else{this._minOpacity=f}}}if(typeof e!="undefined"){if(e<0){this._maxOpacity=0}else{if(e>99){this._maxOpacity=99}else{this._maxOpacity=e}}if(this._maxOpacity<this._minOpacity){this._maxOpacity=this._minOpacity}}if(typeof a!="undefined"){if(a>this._maxOpacity){this._opacity=this._maxOpacity}else{if(a<this._minOpacity){this._opacity=this._minOpacity}else{this._opacity=a}}}if(typeof b.style.opacity!="undefined"){this._updateOpacity=this._updateOpacityW3c}else{if(typeof b.style.filter!="undefined"){if(b.style.filter.indexOf("alpha")==-1){var d="";if(b.style.filter){d=b.style.filter+" "}b.style.filter=d+"alpha(opacity="+this._opacity+")"}this._updateOpacity=this._updateOpacityMSIE}else{this._updateOpacity=this._updateVisibility}}this._updateOpacity()}Fadomatic.prototype.fadeOut=function(){this._isFadeOut=true;this._beginFade()};Fadomatic.prototype.fadeIn=function(){this._isFadeOut=false;this._beginFade()};Fadomatic.prototype.show=function(){this.haltFade();this._opacity=this._maxOpacity;this._updateOpacity()};Fadomatic.prototype.hide=function(){this.haltFade();this._opacity=0;this._updateOpacity()};Fadomatic.prototype.haltFade=function(){clearInterval(this._intervalId)};Fadomatic.prototype.resumeFade=function(){this._beginFade()};Fadomatic.prototype._beginFade=function(){this.haltFade();var a=this;this._intervalId=setInterval(function(){a._tickFade()},Fadomatic.INTERVAL_MILLIS)};Fadomatic.prototype._tickFade=function(){if(this._isFadeOut){this._opacity-=this._rate;if(this._opacity<this._minOpacity){this._opacity=this._minOpacity;this.haltFade()}}else{this._opacity+=this._rate;if(this._opacity>this._maxOpacity){this._opacity=this._maxOpacity;this.haltFade()}}this._updateOpacity()};Fadomatic.prototype._updateVisibility=function(){if(this._opacity>0){this._element.style.visibility="visible"}else{this._element.style.visibility="hidden"}};Fadomatic.prototype._updateOpacityW3c=function(){this._element.style.opacity=this._opacity/100;this._updateVisibility()};Fadomatic.prototype._updateOpacityMSIE=function(){this._element.filters.alpha.opacity=this._opacity;this._updateVisibility()};Fadomatic.prototype._updateOpacity=null;var domTT_offsetX=(domLib_isIE?-2:0);var domTT_offsetY=(domLib_isIE?4:2);var domTT_direction="southeast";var domTT_mouseHeight=domLib_isIE?13:19;var domTT_closeLink="X";var domTT_closeAction="hide";var domTT_activateDelay=500;var domTT_maxWidth=false;var domTT_styleClass="domTT";var domTT_fade="neither";var domTT_lifetime=0;var domTT_grid=0;var domTT_trailDelay=200;var domTT_useGlobalMousePosition=true;var domTT_postponeActivation=false;var domTT_tooltipIdPrefix="[domTT]";var domTT_screenEdgeDetection=true;var domTT_screenEdgePadding=4;var domTT_oneOnly=false;var domTT_cloneNodes=false;var domTT_detectCollisions=true;var domTT_bannedTags=["OPTION"];var domTT_draggable=false;if(typeof(domTT_dragEnabled)=="undefined"){domTT_dragEnabled=false}var domTT_predefined=new Hash();var domTT_tooltips=new Hash();var domTT_lastOpened=0;var domTT_documentLoaded=false;var domTT_mousePosition=null;if(domLib_useLibrary&&domTT_useGlobalMousePosition){document.onmousemove=function(a){if(typeof(a)=="undefined"){a=window.event}domTT_mousePosition=domLib_getEventPosition(a);if(domTT_dragEnabled&&domTT_dragMouseDown){domTT_dragUpdate(a)}}}function domTT_activate(b,l){if(!domLib_useLibrary||(domTT_postponeActivation&&!domTT_documentLoaded)){return false}if(typeof(l)=="undefined"){l=window.event}if(l!=null){var h=l.srcElement?l.srcElement:l.target;if(h!=null&&(","+domTT_bannedTags.join(",")+",").indexOf(","+h.tagName+",")!=-1){return false}}var a=document.body;if(l!=null&&l.type.match(/key|mouse|click|contextmenu/i)){if(b.nodeType&&b.nodeType!=document.DOCUMENT_NODE){a=b}}else{if(typeof(b)!="object"&&!(a=domTT_tooltips.get(b))){var k=document.createElement("div");a=document.body.appendChild(k);a.style.display="none";a.id=b}}if(!a.id){a.id="__autoId"+domLib_autoId++}if(domTT_oneOnly&&domTT_lastOpened){domTT_deactivate(domTT_lastOpened)}domTT_lastOpened=a.id;var m=domTT_tooltips.get(a.id);if(m){if(m.get("eventType")!=l.type){if(m.get("type")=="greasy"){m.set("closeAction","destroy");domTT_deactivate(a.id)}else{if(m.get("status")!="inactive"){return a.id}}}else{if(m.get("status")=="inactive"){m.set("status","pending");m.set("activateTimeout",domLib_setTimeout(domTT_runShow,m.get("delay"),[a.id,l]));return a.id}else{return a.id}}}var n=new Hash("caption","","content","","clearMouse",true,"closeAction",domTT_closeAction,"closeLink",domTT_closeLink,"delay",domTT_activateDelay,"direction",domTT_direction,"draggable",domTT_draggable,"fade",domTT_fade,"fadeMax",100,"grid",domTT_grid,"id",domTT_tooltipIdPrefix+a.id,"inframe",false,"lifetime",domTT_lifetime,"offsetX",domTT_offsetX,"offsetY",domTT_offsetY,"parent",document.body,"position","absolute","styleClass",domTT_styleClass,"type","greasy","trail",false,"lazy",false);for(var d=2;d<arguments.length;d+=2){if(arguments[d]=="predefined"){var f=domTT_predefined.get(arguments[d+1]);for(var c in f.elementData){n.set(c,f.get(c))}}else{n.set(arguments[d],arguments[d+1])}}n.set("eventType",l!=null?l.type:null);if(n.has("statusText")){try{window.status=n.get("statusText")}catch(g){}}if(!n.has("content")||n.get("content")==""||n.get("content")==null){if(typeof(a.onmouseout)!="function"){a.onmouseout=function(e){domTT_mouseout(this,e)}}return a.id}n.set("owner",a);domTT_create(n);n.set("delay",(l!=null&&l.type.match(/click|mousedown|contextmenu/i))?0:parseInt(n.get("delay")));domTT_tooltips.set(a.id,n);domTT_tooltips.set(n.get("id"),n);n.set("status","pending");n.set("activateTimeout",domLib_setTimeout(domTT_runShow,n.get("delay"),[a.id,l]));return a.id}function domTT_create(n){var e=n.get("owner");var j=n.get("parent");var w=j.ownerDocument||j.document;var b=w.createElement("div");var q=j.appendChild(b);q.style.position="absolute";q.style.left="0px";q.style.top="0px";q.style.visibility="hidden";q.id=n.get("id");q.className=n.get("styleClass");var k;var v=false;if(n.get("caption")||(n.get("type")=="sticky"&&n.get("caption")!==false)){v=true;var c=q.appendChild(w.createElement("table"));c.style.borderCollapse="collapse";if(domLib_isKHTML){c.cellSpacing=0}var h=c.appendChild(w.createElement("tbody"));var u=0;var m=h.appendChild(w.createElement("tr"));var d=m.appendChild(w.createElement("td"));d.style.padding="0px";var A=d.appendChild(w.createElement("div"));A.className="caption";if(domLib_isIE50){A.style.height="100%"}if(n.get("caption").nodeType){A.appendChild(domTT_cloneNodes?n.get("caption").cloneNode(1):n.get("caption"))}else{A.innerHTML=n.get("caption")}if(n.get("type")=="sticky"){var u=2;var o=m.appendChild(w.createElement("td"));o.style.padding="0px";var C=o.appendChild(w.createElement("div"));C.className="caption";if(domLib_isIE50){C.style.height="100%"}C.style.textAlign="right";C.style.cursor=domLib_stylePointer;C.style.borderLeftWidth=A.style.borderRightWidth="0px";C.style.paddingLeft=A.style.paddingRight="0px";C.style.marginLeft=A.style.marginRight="0px";if(n.get("closeLink").nodeType){C.appendChild(n.get("closeLink").cloneNode(1))}else{C.innerHTML=n.get("closeLink")}C.onclick=function(){domTT_deactivate(e.id)};C.onmousedown=function(D){if(typeof(D)=="undefined"){D=window.event}D.cancelBubble=true};if(domLib_isMacIE){o.appendChild(w.createTextNode("\n"))}}if(domLib_isMacIE){d.appendChild(w.createTextNode("\n"))}var l=h.appendChild(w.createElement("tr"));var t=l.appendChild(w.createElement("td"));t.style.padding="0px";if(u){if(domLib_isIE||domLib_isOpera){t.colSpan=u}else{t.setAttribute("colspan",u)}}k=t.appendChild(w.createElement("div"));if(domLib_isIE50){k.style.height="100%"}}else{k=q.appendChild(w.createElement("div"))}k.className="contents";var s=n.get("content");if(typeof(s)=="function"){s=s(n.get("id"))}if(s!=null&&s.nodeType){k.appendChild(domTT_cloneNodes?s.cloneNode(1):s)}else{k.innerHTML=s}if(n.has("width")){q.style.width=parseInt(n.get("width"))+"px"}var y=domTT_maxWidth;if(n.has("maxWidth")){if((y=n.get("maxWidth"))===false){q.style.maxWidth=domLib_styleNoMaxWidth}else{y=parseInt(n.get("maxWidth"));q.style.maxWidth=y+"px"}}if(y!==false&&(domLib_isIE||domLib_isKHTML)&&q.offsetWidth>y){q.style.width=y+"px"}n.set("offsetWidth",q.offsetWidth);n.set("offsetHeight",q.offsetHeight);if(domLib_isKonq&&v&&!q.style.width){var f=document.defaultView.getComputedStyle(q,"").getPropertyValue("border-left-width");var B=document.defaultView.getComputedStyle(q,"").getPropertyValue("border-right-width");f=f.substring(f.indexOf(":")+2,f.indexOf(";"));B=B.substring(B.indexOf(":")+2,B.indexOf(";"));var r=2*((f?parseInt(f):0)+(B?parseInt(B):0));q.style.width=(q.offsetWidth-r)+"px"}if(domLib_isIE||domLib_isOpera){if(!q.style.width){q.style.width=(q.offsetWidth-2)+"px"}q.style.height=(q.offsetHeight-2)+"px"}var z,x;if(n.get("position")=="absolute"&&!(n.has("x")&&n.has("y"))){switch(n.get("direction")){case"northeast":z=n.get("offsetX");x=0-q.offsetHeight-n.get("offsetY");break;case"northwest":z=0-q.offsetWidth-n.get("offsetX");x=0-q.offsetHeight-n.get("offsetY");break;case"north":z=0-parseInt(q.offsetWidth/2);x=0-q.offsetHeight-n.get("offsetY");break;case"southwest":z=0-q.offsetWidth-n.get("offsetX");x=n.get("offsetY");break;case"southeast":z=n.get("offsetX");x=n.get("offsetY");break;case"south":z=0-parseInt(q.offsetWidth/2);x=n.get("offsetY");break}if(n.get("inframe")){var a=domLib_getIFrameReference(window);if(a){var g=domLib_getOffsets(a);z+=g.get("left");x+=g.get("top")}}}else{z=0;x=0;n.set("trail",false)}n.set("offsetX",z);n.set("offsetY",x);if(n.get("clearMouse")&&n.get("direction").indexOf("south")!=-1){n.set("mouseOffset",domTT_mouseHeight)}else{n.set("mouseOffset",0)}if(domLib_canFade&&typeof(Fadomatic)=="function"){if(n.get("fade")!="neither"){var p=new Fadomatic(q,10,0,0,n.get("fadeMax"));n.set("fadeHandler",p)}}else{n.set("fade","neither")}if(n.get("trail")&&typeof(e.onmousemove)!="function"){e.onmousemove=function(D){domTT_mousemove(this,D)}}if(typeof(e.onmouseout)!="function"){e.onmouseout=function(D){domTT_mouseout(this,D)}}if(n.get("type")=="sticky"){if(n.get("position")=="absolute"&&domTT_dragEnabled&&n.get("draggable")){if(domLib_isIE){m.onselectstart=function(){return false}}m.onmousedown=function(D){domTT_dragStart(q,D)};m.onmousemove=function(D){domTT_dragUpdate(D)};m.onmouseup=function(){domTT_dragStop()}}}else{if(n.get("type")=="velcro"){q.onmouseout=function(D){if(typeof(D)=="undefined"){D=window.event}if(!domLib_isDescendantOf(D[domLib_eventTo],q,domTT_bannedTags)){domTT_deactivate(e.id)}};q.onclick=function(D){domTT_deactivate(e.id)}}}if(n.get("position")=="relative"){q.style.position="relative"}n.set("node",q);n.set("status","inactive")}function domTT_show(n,m){var o=domTT_tooltips.get(n);var h=o.get("status");var j=o.get("node");if(o.get("position")=="absolute"){var g,d;if(o.has("x")&&o.has("y")){g=o.get("x");d=o.get("y")}else{if(!domTT_useGlobalMousePosition||domTT_mousePosition==null||h=="active"||o.get("delay")==0){var f=domLib_getEventPosition(m);var c=f.get("x");var b=f.get("y");if(o.get("inframe")){c-=f.get("scrollX");b-=f.get("scrollY")}if(h=="active"&&o.get("trail")!==true){var a=o.get("trail");if(a=="x"){g=c;d=o.get("mouseY")}else{if(a=="y"){g=o.get("mouseX");d=b}}}else{g=c;d=b}}else{g=domTT_mousePosition.get("x");d=domTT_mousePosition.get("y");if(o.get("inframe")){g-=domTT_mousePosition.get("scrollX");d-=domTT_mousePosition.get("scrollY")}}}if(o.get("grid")){if(m.type!="mousemove"||(h=="active"&&(Math.abs(o.get("lastX")-g)>o.get("grid")||Math.abs(o.get("lastY")-d)>o.get("grid")))){o.set("lastX",g);o.set("lastY",d)}else{return false}}o.set("mouseX",g);o.set("mouseY",d);var l;if(domTT_screenEdgeDetection){l=domTT_correctEdgeBleed(o.get("offsetWidth"),o.get("offsetHeight"),g,d,o.get("offsetX"),o.get("offsetY"),o.get("mouseOffset"),o.get("inframe")?window.parent:window)}else{l={x:g+o.get("offsetX"),y:d+o.get("offsetY")+o.get("mouseOffset")}}j.style.left=l.x+"px";j.style.top=l.y+"px";j.style.zIndex=domLib_zIndex++}if(h=="pending"){o.set("status","active");j.style.display="";j.style.visibility="visible";var e=o.get("fade");if(e!="neither"){var k=o.get("fadeHandler");if(e=="out"||e=="both"){k.haltFade();if(e=="out"){k.halt()}}if(e=="in"||e=="both"){k.fadeIn()}}if(o.get("type")=="greasy"&&o.get("lifetime")!=0){o.set("lifetimeTimeout",domLib_setTimeout(domTT_runDeactivate,o.get("lifetime"),[j.id]))}}if(o.get("position")=="absolute"&&domTT_detectCollisions){domLib_detectCollisions(j,false,true)}}function domTT_close(b){var c;if(typeof(b)=="object"&&b.nodeType){var a=b;while(!a.id||!domTT_tooltips.get(a.id)){a=a.parentNode;if(a.nodeType!=document.ELEMENT_NODE){return}}c=a.id}else{c=b}domTT_deactivate(c)}function domTT_closeAll(){for(var a in domTT_tooltips.elementData){domTT_close(a)}}function domTT_deactivate(d){var c=domTT_tooltips.get(d);if(c){var a=c.get("status");if(a=="pending"){domLib_clearTimeout(c.get("activateTimeout"));c.set("status","inactive")}else{if(a=="active"){if(c.get("lifetime")){domLib_clearTimeout(c.get("lifetimeTimeout"))}var e=c.get("node");if(c.get("closeAction")=="hide"){var f=c.get("fade");if(f!="neither"){var b=c.get("fadeHandler");if(f=="out"||f=="both"){b.fadeOut()}else{b.hide()}}else{e.style.display="none"}}else{c.get("parent").removeChild(e);domTT_tooltips.remove(c.get("owner").id);domTT_tooltips.remove(c.get("id"))}c.set("status","inactive");if(domTT_detectCollisions){domLib_detectCollisions(e,true,true)}}}}}function domTT_mouseout(a,d){if(!domLib_useLibrary){return false}if(typeof(d)=="undefined"){d=window.event}var b=domLib_isDescendantOf(d[domLib_eventTo],a,domTT_bannedTags);var c=domTT_tooltips.get(a.id);if(c&&(c.get("type")=="greasy"||c.get("status")!="active")){if(!b){domTT_deactivate(a.id);try{window.status=window.defaultStatus}catch(f){}}}else{if(!b){try{window.status=window.defaultStatus}catch(f){}}}}function domTT_mousemove(a,c){if(!domLib_useLibrary){return false}if(typeof(c)=="undefined"){c=window.event}var b=domTT_tooltips.get(a.id);if(b&&b.get("trail")&&b.get("status")=="active"){if(b.get("lazy")){domLib_setTimeout(domTT_runShow,domTT_trailDelay,[a.id,c])}else{domTT_show(a.id,c)}}}function domTT_addPredefined(c){var a=new Hash();for(var b=1;b<arguments.length;b+=2){a.set(arguments[b],arguments[b+1])}domTT_predefined.set(c,a)}function domTT_correctEdgeBleed(a,k,j,h,e,c,o,f){var g,s;var p,r;var m,q,b,d;var n=j+e;var l=h+c+o;g=(typeof(f)=="undefined"?window:f);s=((domLib_standardsMode&&(domLib_isIE||domLib_isGecko))?g.document.documentElement:g.document.body);if(domLib_isIE){m=s.clientHeight;q=s.clientWidth;b=s.scrollTop;d=s.scrollLeft}else{m=s.clientHeight;q=s.clientWidth;if(domLib_isKHTML){m=g.innerHeight}b=g.pageYOffset;d=g.pageXOffset}if((p=(n-d)+a-(q-domTT_screenEdgePadding))>0){n-=p}if((n-d)<domTT_screenEdgePadding){n=domTT_screenEdgePadding+d}if((r=(l-b)+k-(m-domTT_screenEdgePadding))>0){l=h-k-c}if((l-b)<domTT_screenEdgePadding){l=h+domTT_mouseHeight+c}return{x:n,y:l}}function domTT_isActive(b){var a=domTT_tooltips.get(b);if(!a||a.get("status")!="active"){return false}else{return true}}function domTT_runDeactivate(a){domTT_deactivate(a[0])}function domTT_runShow(a){domTT_show(a[0],a[1])}function domTT_replaceTitles(d){var c=domLib_getElementsByClass("tooltip");for(var a=0;a<c.length;a++){if(c[a].title){var b;if(typeof(d)=="function"){b=d(c[a])}else{b=c[a].title}b=b.replace(new RegExp("'","g"),"\\'");c[a].onmouseover=new Function("in_event","domTT_activate(this, in_event, 'content', '"+b+"')");c[a].title=""}}}function domTT_update(e,c,b){if(typeof(b)=="undefined"){b="content"}var d=domTT_tooltips.get(e);if(!d){return}var f=d.get("node");var a;if(b=="content"){a=f.firstChild;if(a.className!="contents"){a=a.firstChild.firstChild.nextSibling.firstChild.firstChild}}else{a=f.firstChild;if(a.className=="contents"){return}a=a.firstChild.firstChild.firstChild.firstChild}a.innerHTML=c}if(!window.RepetitionElement||(document.implementation&&document.implementation.hasFeature&&!document.implementation.hasFeature("WebForms","2.0"))){var RepetitionElement={_version:"0.8.3",REPETITION_NONE:0,REPETITION_TEMPLATE:1,REPETITION_BLOCK:2,_initialized:false,_repetitionTemplates:[],_init_document:function(){if(RepetitionElement._initialized){return}RepetitionElement._initialized=true;RepetitionElement.__createMiscFunctions();if(window.Element&&Element.prototype){Element.prototype.REPETITION_NONE=RepetitionElement.REPETITION_NONE;Element.prototype.REPETITION_TEMPLATE=RepetitionElement.REPETITION_TEMPLATE;Element.prototype.REPETITION_BLOCK=RepetitionElement.REPETITION_BLOCK;Element.prototype.repetitionType=RepetitionElement.REPETITION_NONE;Element.prototype.repetitionIndex=0;Element.prototype.repetitionTemplate=null;Element.prototype.repetitionBlocks=null;Element.prototype.repeatStart=1;Element.prototype.repeatMin=0;Element.prototype.repeatMax=Infinity;Element.prototype.addRepetitionBlock=RepetitionElement.addRepetitionBlock;Element.prototype.addRepetitionBlockByIndex=RepetitionElement.addRepetitionBlockByIndex;Element.prototype.moveRepetitionBlock=RepetitionElement.moveRepetitionBlock;Element.prototype.removeRepetitionBlock=RepetitionElement.removeRepetitionBlock}RepetitionElement._init_repetitionBlocks();RepetitionElement._init_repetitionTemplates();RepetitionElement._init_repetitionButtons("add");RepetitionElement._init_repetitionButtons("remove");RepetitionElement._init_repetitionButtons("move-up");RepetitionElement._init_repetitionButtons("move-down");RepetitionElement.__updateAddButtons();RepetitionElement.__updateMoveButtons()},_repetitionTemplate_constructor:function(){if(this._initialized){return}this._initialized=true;this.style.display="none";this.repetitionType=RepetitionElement.REPETITION_TEMPLATE;this.repetitionIndex=0;this.repetitionTemplate=null;this.repetitionBlocks=[];var f;this.repeatStart=/^\d+$/.test(f=this.getAttribute("repeat-start"))?parseInt(f):1;this.repeatMin=/^\d+$/.test(f=this.getAttribute("repeat-min"))?parseInt(f):0;this.repeatMax=/^\d+$/.test(f=this.getAttribute("repeat-max"))?parseInt(f):Infinity;if(!this.addRepetitionBlock){this.addRepetitionBlock=function(g,h){return RepetitionElement.addRepetitionBlock.apply(this,[g,h])}}if(!this.addRepetitionBlockByIndex){this.addRepetitionBlockByIndex=this.addRepetitionBlock}var e=this;while(e=e.parentNode){if(e.nodeName.toLowerCase()=="form"){break}}var a;if(e&&(a=RepetitionElement.__getElementsByTagNames.apply(this,["button","input","select","textarea","isindex"])).length){for(var d,b=0;d=a[b];b++){d.disabled=true}}var c=this;while(c=c.previousSibling){if(c.repetitionType==RepetitionElement.REPETITION_BLOCK&&!c.getAttribute("repeat-template")){c.repetitionTemplate=this;c.setAttribute("repeat-template",this.id);this.repetitionBlocks.unshift(c)}}for(var b=0;b<Math.max(this.repeatStart,this.repeatMin);b++){this.addRepetitionBlock()}RepetitionElement._repetitionTemplates.push(this);this._initialized=true},_init_repetitionTemplates:function(a){var d=RepetitionElement.__getElementsByNameAndAttribute.apply((a||document.body),["*","repeat","template"]);for(var c=0,b;c<d.length;c++){RepetitionElement._repetitionTemplate_constructor.apply(d[c])}},_repetitionBlock_constructor:function(){if(this._initialized){return}this.style.display="";this.repetitionType=RepetitionElement.REPETITION_BLOCK;var b;this.repetitionIndex=/^\d+$/.test(b=this.getAttribute("repeat"))?parseInt(b):0;this.repetitionBlocks=null;this.repetitionTemplate=null;var a;if((a=document.getElementById(this.getAttribute("repeat-template")))&&a.repetitionType==RepetitionElement.REPETITION_TEMPLATE){this.repetitionTemplate=a}else{a=this;while(a=a.nextSibling){if(a.repetitionType==RepetitionElement.REPETITION_TEMPLATE){this.repetitionTemplate=a;break}}}if(!this.removeRepetitionBlock){this.removeRepetitionBlock=function(){return RepetitionElement.removeRepetitionBlock.apply(this)}}if(!this.moveRepetitionBlock){this.moveRepetitionBlock=function(c){return RepetitionElement.moveRepetitionBlock.apply(this,[c])}}this._initialized=true},_init_repetitionBlocks:function(a){var b=RepetitionElement.__getElementsByNameAndAttribute.apply((a||document.body),["*","repeat","template",true]);for(var c=0;c<b.length;c++){RepetitionElement._repetitionBlock_constructor.apply(b[c])}},_repetitionButtonDefaultLabels:{add:"Add",remove:"Remove","move-up":"Move-up","move-down":"Move-down"},_repetitionButton_constructor:function(a){if(this._initialized){return}this.htmlTemplate=RepetitionElement.__getHtmlTemplate(this);if(!this.firstChild){this.appendChild(document.createTextNode(RepetitionElement._repetitionButtonDefaultLabels[a]))}if(a!="add"){this.disabled=!RepetitionElement.__getRepetitionBlock(this)}else{var b;this.disabled=!(((b=RepetitionElement.__getRepetitionBlock(this))&&b.repetitionTemplate)||this.htmlTemplate)}if(this.addEventListener){this.addEventListener("click",RepetitionElement._repetitionButton_click,false)}else{if(this.attachEvent){this.attachEvent("onclick",RepetitionElement._repetitionButton_click)}else{this.onclick=RepetitionElement._repetitionButton_click}}this._initialized=true},_init_repetitionButtons:function(d,b){var g;if(!b){b=document.body}var c=RepetitionElement.__getElementsByNameAndAttribute.apply(b,["input","type",d]);for(g=0;g<c.length;g++){var f=document.createElement("button");for(var e=0,a;a=c[g].attributes[e];e++){f.setAttribute(a.nodeName,a.nodeValue)}c[g].parentNode.replaceChild(f,c[g]);f=null}var h=RepetitionElement.__getElementsByNameAndAttribute.apply(b,["button","type",d]);for(var g=0;g<h.length;g++){RepetitionElement._repetitionButton_constructor.apply(h[g],[d])}},_repetitionButton_click:function(d){if(d&&d.preventDefault){d.preventDefault()}var c;if(d&&d.target){c=d.target}else{if(window.event){c=window.event.srcElement}else{if(this.nodeName.toLowerCase()=="button"){c=this}}}var b=c.getAttribute("type");if(c.returnValue!==undefined&&!c.returnValue){c.returnValue=undefined;return false}if(c.onclick){c._onclick=c.onclick;c.onclick=null}if(c._onclick&&c.returnValue===undefined){c.returnValue=c._onclick(d);if(c.returnValue!==undefined&&!c.returnValue){c.returnValue=undefined;return false}}c.returnValue=undefined;var f;if(b!="add"){f=RepetitionElement.__getRepetitionBlock(c);this.disabled=!f;if(f){if(b.indexOf("move")===0){f._clickedMoveBtn=c;f.moveRepetitionBlock(b=="move-up"?-1:1)}else{if(b=="remove"){f.removeRepetitionBlock()}}}}else{var a;if(c.htmlTemplate){a=c.htmlTemplate}else{f=RepetitionElement.__getRepetitionBlock(c);if(f&&f.repetitionTemplate){a=f.repetitionTemplate}}if(a){a.addRepetitionBlock()}else{c.disabled=true}}return false},_init_addButtons:function(a){RepetitionElement._init_repetitionButtons("add",a)},_init_removeButtons:function(a){RepetitionElement._init_repetitionButtons("remove",a)},_init_moveUpButtons:function(a){RepetitionElement._init_repetitionButtons("move-up",a)},_init_moveDownButtons:function(a){RepetitionElement._init_repetitionButtons("move-down",a)},addRepetitionBlock:function(g,f){if(g&&!g.nodeType){throw Error("Exception: WRONG_ARGUMENTS_ERR")}if(this.repetitionType!=RepetitionElement.REPETITION_TEMPLATE){throw Error("DOMException: NOT_SUPPORTED_ERR")}if(this.parentNode==null){return null}var n=this;while(n=n.parentNode){if(n.repetitionType==RepetitionElement.REPETITION_TEMPLATE){return false}}var s=this.previousSibling;var r=0;while(s!=null){if(s.repetitionType==RepetitionElement.REPETITION_BLOCK&&s.repetitionTemplate==this){this.repetitionIndex=Math.max(this.repetitionIndex,s.repetitionIndex+1);r++}s=s.previousSibling}if(this.repeatMax<=r){return null}if(f!==undefined&&f>this.repetitionIndex){this.repetitionIndex=f}var h=this.getAttribute("id")?"id":this.getAttribute("name")?"name":"";var q=this.getAttribute(h);var p=/\u005B|\u02D1|\u005D|\u00B7/.test(q);var c=q&&!p;var k;var a=this.repetitionIndex;var m=new RegExp("(\\[|\u02D1)"+q+"(\\]|\u00B7)","g");function e(u){if(!u){return u}u=u.toString();if(u.indexOf("\uFEFF")===0){return u.replace(/^\uFEFF/,"")}return u.replace(m,a)}var o={type:1,template:1,repeat:1,"repeat-template":1,"repeat-min":1,"repeat-max":1,"repeat-start":1,value:1,"class":1,required:1,pattern:1,form:1,autocomplete:1,autofocus:1,inputmode:1};var t={name:1,"class":1,"for":1,style:1,onadd:1,onremove:1,onmove:1,onmoved:1,onadded:1,onremoved:1,addRepetitionBlock:1,addRepetitionBlockByIndex:1,moveRepetitionBlock:1,removeRepetitionBlock:1,repetitionBlocks:1,_initialized:1};function l(y){var B,v,u,x;if(y.nodeType==1){B=y.name?RepetitionElement.__createElementWithName(y.nodeName,(c?e(y.name):y.name)):document.createElement(y.nodeName);for(v=0;u=y.attributes[v];v++){if((u.specified||o[u.name])&&!t[u.name]){if((u.name.indexOf("on")===0)&&(typeof y[u.name]=="function")){var w=e(y[u.name].toString().match(/{((?:.|\n)+)}/)[1]);w=e(w);B[u.name]=new Function("event",w)}else{var A=y.getAttribute(u.name);A=(c?e(A):A);B.setAttribute(u.name,A)}}}if(y.className){var z=(c?e(y.className):y.className);if(B.getAttributeNode("class")){for(v=0;v<B.attributes.length;v++){if(B.attributes[v].name=="class"){B.attributes[v].value=z}}}else{B.setAttribute("class",z)}}if(!/\bdisabled\b/.test(y.className)){B.disabled=false}if(y.style){B.style.cssText=e(y.style.cssText)}if(y.nodeName.toLowerCase()=="label"&&y.htmlFor){B.htmlFor=(c?e(y.htmlFor):y.htmlFor)}for(v=0;x=y.childNodes[v];v++){B.appendChild(l(x))}}else{B=y.cloneNode(true)}return B}k=l(this);k._initialized=false;k.setAttribute("repeat",this.repetitionIndex);k.removeAttribute("repeat-min");k.removeAttribute("repeat-max");k.removeAttribute("repeat-start");if(h){k.setAttribute("repeat-template",q);k.removeAttribute(h)}if(!g){g=this;while(g.previousSibling&&g.previousSibling.repetitionType!=RepetitionElement.REPETITION_BLOCK){g=g.previousSibling}this.parentNode.insertBefore(k,g);this.repetitionBlocks.push(k)}else{g.parentNode.insertBefore(k,g.nextSibling);this.repetitionBlocks.push(k);if(this.repetitionBlocks[0].sourceIndex){this.repetitionBlocks.sort(function(v,u){return v.sourceIndex-u.sourceIndex})}else{if(this.repetitionBlocks[0].compareDocumentPosition){this.repetitionBlocks.sort(function(v,u){return 3-(v.compareDocumentPosition(u)&6)})}}}this.repetitionIndex++;RepetitionElement._repetitionBlock_constructor.apply(k);RepetitionElement._init_repetitionTemplates(k);RepetitionElement._init_repetitionButtons("add",k);RepetitionElement._init_repetitionButtons("remove",k);RepetitionElement._init_repetitionButtons("move-up",k);RepetitionElement._init_repetitionButtons("move-down",k);if(RepetitionElement._initialized){RepetitionElement.__updateAddButtons(this);RepetitionElement.__updateMoveButtons(this.parentNode)}var d;try{if(document.createEvent){d=document.createEvent("UIEvents")}else{if(document.createEventObject){d=document.createEventObject()}}RepetitionEvent._upgradeEvent.apply(d);d.initRepetitionEvent("added",true,false,k);if(this.dispatchEvent){this.dispatchEvent(d)}else{if(this.fireEvent){}}}catch(b){d=new Object();RepetitionEvent._upgradeEvent.apply(d);d.initRepetitionEvent("added",true,false,k)}var j=this.getAttribute("onadd")||this.getAttribute("onadded");if(j&&(!this.onadd||typeof this.onadd!="function")){this.onadd=new Function("event",j)}if(this.onadd){this.onadd(d)}else{if(this.onadded){this.onadded(d)}}return k},addRepetitionBlockByIndex:function(a,b){RepetitionElement.addRepetitionBlock.apply(this,[a,b])},removeRepetitionBlock:function(){if(this.repetitionType!=RepetitionElement.REPETITION_BLOCK){throw Error("DOMException: NOT_SUPPORTED_ERR")}var a=this.parentNode;var g=a.removeChild(this);RepetitionElement.__updateMoveButtons(a);if(this.repetitionTemplate!=null){for(var d=0;d<this.repetitionTemplate.repetitionBlocks.length;d++){if(this.repetitionTemplate.repetitionBlocks[d]==this){this.repetitionTemplate.repetitionBlocks.splice(d,1);break}}}if(this.repetitionTemplate!=null){var b;try{if(document.createEvent){b=document.createEvent("UIEvents")}else{if(document.createEventObject){b=document.createEventObject()}}RepetitionEvent._upgradeEvent.apply(b);b.initRepetitionEvent("removed",true,false,this);if(this.repetitionTemplate.dispatchEvent){this.repetitionTemplate.dispatchEvent(b)}else{if(this.repetitionTemplate.fireEvent){}}}catch(e){b=new Object();RepetitionEvent._upgradeEvent.apply(b);b.initRepetitionEvent("removed",true,false,this)}var c=this.repetitionTemplate.getAttribute("onremove")||this.repetitionTemplate.getAttribute("onremoved");if(c&&(!this.repetitionTemplate.onremove||typeof this.repetitionTemplate.onremove!="function")){this.repetitionTemplate.onremove=new Function("event",c)}if(this.repetitionTemplate.onremove){this.repetitionTemplate.onremove(b)}else{if(this.repetitionTemplate.onremoved){this.repetitionTemplate.onremoved(b)}}}if(this.repetitionTemplate!=null){if(this.repetitionTemplate.repetitionBlocks.length<this.repetitionTemplate.repeatMin&&this.repetitionTemplate.repetitionBlocks.length<this.repetitionTemplate.repeatMax){this.repetitionTemplate.addRepetitionBlock()}if(this.repetitionTemplate.repetitionBlocks.length<this.repetitionTemplate.repeatMax){var f=RepetitionElement.__getElementsByNameAndAttribute.apply(document.body,["button","type","add"]);for(d=0;d<f.length;d++){if(f[d].htmlTemplate==this.repetitionTemplate){f[d].disabled=false}}}}},moveRepetitionBlock:function(h){if(this.repetitionType!=RepetitionElement.REPETITION_BLOCK){throw Error("DOMException: NOT_SUPPORTED_ERR")}if(h==0||this.parentNode==null){return}var f=this;if(this.repetitionTemplate){var g=0;var a=this.repetitionTemplate.repetitionBlocks;while(g<a.length&&a[g]!=this){g++}a.splice(g,1);a.splice(h<0?Math.max(g+h,0):Math.min(g+h,a.length),0,this)}if(h<0){while(h!=0&&f.previousSibling&&f.previousSibling.repetitionType!=RepetitionElement.REPETITION_TEMPLATE){f=f.previousSibling;if(f.repetitionType==RepetitionElement.REPETITION_BLOCK){h++}}}else{while(h!=0&&f.nextSibling&&f.nextSibling.repetitionType!=RepetitionElement.REPETITION_TEMPLATE){f=f.nextSibling;if(f.repetitionType==RepetitionElement.REPETITION_BLOCK){h--}}f=f.nextSibling}this.parentNode.insertBefore(this,f);if(this._clickedMoveBtn){this._clickedMoveBtn.focus();this._clickedMoveBtn=null}if(this.repetitionTemplate!=null){var e;try{if(document.createEvent){e=document.createEvent("UIEvents")}else{if(document.createEventObject){e=document.createEventObject()}}RepetitionEvent._upgradeEvent.apply(e);e.initRepetitionEvent("moved",true,false,this);if(this.repetitionTemplate.dispatchEvent){this.repetitionTemplate.dispatchEvent(e)}else{if(this.repetitionTemplate.fireEvent){}}}catch(c){e=new Object();RepetitionEvent._upgradeEvent.apply(e);e.initRepetitionEvent("moved",true,false,this)}var b=this.repetitionTemplate.getAttribute("onmove")||this.repetitionTemplate.getAttribute("onmoved");var d;if(typeof b=="function"&&(d=b.toString().match(/^\s*function\s+anonymous\(\s*\)\s*\{((?:.|\n)+)\}\s*$/))){this.repetitionTemplate.onmove=new Function("event",d[1])}if(b&&!this.repetitionTemplate.onmove){this.repetitionTemplate.onmove=new Function("event",b)}if(this.repetitionTemplate.onmove){this.repetitionTemplate.onmove(e)}else{if(this.repetitionTemplate.onmoved){this.repetitionTemplate.onmoved(e)}}}RepetitionElement.__updateMoveButtons(this.parentNode)},__getRepetitionBlock:function(a){while(a=a.parentNode){if(a.repetitionType==RepetitionElement.REPETITION_BLOCK){return a}}return null},__getHtmlTemplate:function(b){var a=b.getAttribute("template");var c;if(a&&(c=document.getElementById(a))&&c.repetitionType==RepetitionElement.REPETITION_TEMPLATE){return c}return null},__updateAddButtons:function(a){var f=a?[a]:RepetitionElement._repetitionTemplates;var e=RepetitionElement.__getElementsByNameAndAttribute.apply(document.body,["button","type","add"]);for(var d=0;d<e.length;d++){for(var c,b=0;c=f[b];b++){if(e[d].htmlTemplate==c&&c.repetitionBlocks.length>=c.repeatMax){e[d].disabled=true}}}},__updateMoveButtons:function(g){var f;var k=[];if(!g){var l=[];var k=RepetitionElement.__getElementsByNameAndAttribute.apply(document.body,["*","repeat","template",true]);for(f=0;d=k[f];f++){if(!l.some(function(j){return j==d.parentNode})){RepetitionElement.__updateMoveButtons(d.parentNode);l.push(d.parentNode)}}return}var e,b,d;var a=g.firstChild;while(a){if(a.repetitionType==RepetitionElement.REPETITION_BLOCK){k.push(a)}a=a.nextSibling}for(f=0;d=k[f];f++){var h=RepetitionElement.__getElementsByNameAndAttribute.apply(d,["button","type","move-up"]);for(e=0;b=h[e];e++){b.disabled=!(rb=RepetitionElement.__getRepetitionBlock(b))||(f==0)}var c=RepetitionElement.__getElementsByNameAndAttribute.apply(d,["button","type","move-down"]);for(e=0;b=c[e];e++){b.disabled=!(rb=RepetitionElement.__getRepetitionBlock(b))||(f==k.length-1)}}},__getElementsByTagNames:function(){var e,d,c=[];if(document.evaluate){var a=[];for(d=0;d<arguments.length;d++){a.push(".//"+arguments[d])}e=document.evaluate(a.join("|"),this,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(d=0;d<e.snapshotLength;d++){c.push(e.snapshotItem(d))}}else{for(d=0;d<arguments.length;d++){e=this.getElementsByTagName(arguments[d]);for(var b=0;b<e.length;b++){c.push(e[b])}}if(!c.length){return[]}if(RepetitionElement.__sortNodes){c.sort(RepetitionElement.__sortNodes)}}return c},__getElementsByNameAndAttribute:function(a,g,f,b){var c,d,e=[];if(document.evaluate){c=document.evaluate(".//"+a+"[@"+g+(f?(b?"!=":"=")+'"'+f+'"':"")+"]",this,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(d=0;d<c.snapshotLength;d++){e.push(c.snapshotItem(d))}}else{c=this.getElementsByTagName(a);for(d=0;d<c.length;d++){var h=c[d].getAttributeNode(g);var j=c[d].getAttribute(g);if(h&&(f===undefined||(b?j!=f:j==f))){e.push(c[d])}}}return e},__createMiscFunctions:function(){var a;try{a=document.createElement('<div name="foo">');if(a.tagName.toLowerCase()=="div"||a.name!="foo"){throw"create element error"}RepetitionElement.__createElementWithName=function(d,e){return document.createElement("<"+d+' name="'+e+'"></'+d+">")}}catch(b){a=null;RepetitionElement.__createElementWithName=function(d,e){var f=document.createElement(d);f.setAttribute("name",e);return f}}var c=document.body.firstChild;if(c.sourceIndex){RepetitionElement.__sortNodes=function(e,d){return e.sourceIndex-d.sourceIndex}}else{if(c.compareDocumentPosition){RepetitionElement.__sortNodes=function(e,d){return 3-(e.compareDocumentPosition(d)&6)}}}}};var RepetitionEvent={};RepetitionEvent._upgradeEvent=function(){this.initRepetitionEvent=RepetitionEvent.initRepetitionEvent;this.initRepetitionEventNS=RepetitionEvent.initRepetitionEventNS};RepetitionEvent.initRepetitionEvent=function(a,d,c,b){if(this.initEvent){this.initEvent(a,d,c)}else{this.type=a;if(!this.preventDefault){this.preventDefault=function(){this.returnValue=false}}if(!this.stopPropagation){this.stopPropagation=function(){this.cancelBubble=true}}}this.element=b;this.relatedNode=b};RepetitionEvent.initRepetitionEventNS=function(e,a,d,c,b){throw Error("NOT IMPLEMENTED: RepetitionEvent.initRepetitionEventNS")};if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){RepetitionElement._init_document()},false);window.addEventListener("load",function(){RepetitionElement._init_document()},false)}else{if(window.onload){var oldonload=window.onload;window.onload=function(){RepetitionElement._init_document();oldonload()}}else{window.onload=function(){RepetitionElement._init_document()}}}if(/WebKit/i.test(navigator.userAgent)){var _timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(_timer);delete _timer;RepetitionElement._init_document()}},10)}else{if(/MSIE/i.test(navigator.userAgent)&&!document.addEventListener&&window.attachEvent){window.attachEvent("onload",function(){RepetitionElement._init_document()});var match,dirname="";var scripts=document.getElementsByTagName("head")[0].getElementsByTagName("script");for(var i=0;i<scripts.length;i++){if(match=scripts[i].src.match(/^(.*)repetition-model[^\/]+$/)){dirname=match[1]}}document.write("<script defer src='"+dirname+"repetition-model-msie_init.js'><\/script>");document.write("<script id='__wf2_ie_onload' defer src='//:'><\/script>");var script=document.getElementById("__wf2_ie_onload");script.onreadystatechange=function(){if(this.readyState=="complete"){this.parentNode.removeChild(this);RepetitionElement._init_document();if(RepetitionElement._repetitionTemplates.length==0){RepetitionElement._initialized=false}}};script=null}}}else{if(document.addEventListener&&(RepetitionElement.oldEventModelEnabled===undefined||RepetitionElement.oldEventModelEnabled)){RepetitionElement.oldEventModelEnabled=true;(function(){var a={added:"add",removed:"remove",moved:"move"};function b(e){if(!RepetitionElement.oldEventModelEnabled){return}if(!e.element&&e.relatedNode){e.element=e.relatedNode}if(!e.element||!e.element.repetitionTemplate){return}var d=e.element.repetitionTemplate;var f="on"+a[e.type];var g="on"+e.type;var c=d.getAttribute(f)||d.getAttribute(g);if(c&&(!d[f]||typeof d[f]!="function")){d[f]=new Function("event",c)}if(e.element.repetitionTemplate[f]){e.element.repetitionTemplate[f](e)}else{if(e.element.repetitionTemplate[g]){e.element.repetitionTemplate[g](e)}}}document.addEventListener("added",b,false);document.addEventListener("removed",b,false);document.addEventListener("moved",b,false)})()}}if(!Array.prototype.some){Array.prototype.some=function(d,e){var c=e||window;for(var b=0,a=this.length;b<a;++b){if(d.call(c,this[b],b,this)){return true}}return false}}function blockEnter(b){b=(b)?b:event;var a=(b.charCode)?b.charCode:((b.which)?b.which:b.keyCode);if(a==13||a==3){return false}return true}function submitOnEnter(b){b=(b)?b:event;var a=(b.charCode)?b.charCode:((b.which)?b.which:b.keyCode);if(a==13||a==3){document.forms[0].submit();return false}return true}function showOrHideCustomRange(a){document.getElementById("custdate").style.visibility=a}function isCustomRangeHidden(){return(document.getElementById("custdate").style.visibility!="visible")}function toggleCustomRange(){if(isCustomRangeHidden()){showOrHideCustomRange("visible")}else{showOrHideCustomRange("hidden")}};
