var is=new BrowserCheck;if(typeof utility=="undefined")utility={};Object_weave_safe(utility,{math:{}});utility.math.intbgr2hexrgb=function(a){d2h=utility.math.dec2hex;pad=utility.math.zeroPad;return"#"+pad(d2h(a%256),2)+pad(d2h(a/256%256),2)+pad(d2h(a/65536%256),2)};utility.math.mozcolor2rgb=function(a){return a};utility.math.dec2hex=function(a){return Number(parseInt(a)).toString(16)};utility.math.hex2dec=function(a){return parseInt(a,16)};utility.math.zeroPad=function(a,c){a||(a="");for(a=a.toString();a.length<c;)a="0"+a;return a};utility.math.rgb2hexcolor=function(a){var c=[];if(c=a.match(/^rgb\(([0-9]+),\s*([0-9]+),\s*([0-9]+)\)/i)){a="";for(var d=1;d<4;d++){for(var e=utility.math.dec2hex(c[d]);e.length<2;)e="0"+e;a+=e}return"#"+a}else return a};Object_weave_safe(utility,{js:{}});utility.js.build=function(a,c){function d(){c&&c();a&&a()}return d};utility.js.empty_func=function(){};Object_weave_safe(utility,{debug:{}});utility.debug.dump=function(a,c){if(c==undefined)c="";tm="";if(typeof a=="object"){for(var d in a)tm+=c+d+":{\n"+utility.debug.dump(a[d],c+"  ")+"}\n";return tm}if(typeof a=="function")return c+typeof a+"\n";return c+a+"\n"};function al(a,c){alert(utility.debug.dumpone(a,c))}
utility.debug.dumpone=function(a,c,d){if(c==undefined)c=new RegExp("","");if(d==undefined)d="";tm="";if(typeof a=="object"&&a!=null){if(typeof a.push!="undefined"&&a.push.toString().indexOf("[native code]")>0)tm=d+"Array["+a.length+"]\n";else for(i in a)if(i.toUpperCase()!=i)if(c.test(i))try{if(typeof a[i]!="function")tm+=d+i+":{"+a[i]+"}\n"}catch(e){tm+=d+i+":ERROR{"+e.message+"}\n"}return tm}if(typeof a=="function")return d+typeof a+"\n";return d+a+"\n"};utility.debug.breakpoint=function(a,c,d){if(a==null)a=function(g){return eval(g)};if(c==null)c="";for(d=d||"1+2";1;){var e=prompt("BREAKPOINT: "+c+"\nEnter an expression to evaluate, or Cancel to continue.",d);if(e==null||e=="")return;try{d=a(e)}catch(f){d=f}}};Object_weave_safe(utility,{string:{}});utility.string.htmlspecialchars=function(a){Array_each([[">","&gt;"],["<","&lt;"],["\u00a0","&nbsp;"],['"',"&quot;"]],function(c,d){a=a.replace(new RegExp("["+c[0]+"]","g"),c[1])});return a};utility.string.getInnerText=function(a){if(typeof getInnerText_tmpDiv=="undefined")getInnerText_tmpDiv=document.createElement("div");var c=a;try{getInnerText_tmpDiv.innerHTML=a;a=is.safari?getInnerText_tmpDiv.innerHTML:getInnerText_tmpDiv.innerText;getInnerText_tmpDiv.innerHTML=""}catch(d){return c}if(typeof a=="undefined")return c;return a};utility.string.sprintf=function(){if(!(!arguments||arguments.length<1||!RegExp)){for(var a=arguments[0],c=arguments[0],d=/([^%]*)%('.|0|\x20)?(-)?(\d+)?(\.\d+)?(%|b|c|d|u|f|o|s|x|X)(.*)/,e=b=[],f=0,g=0;e=d.exec(a);){a=e[1];var j=e[2];j=e[3];j=e[4];j=e[5];j=e[6];e=e[7];g++;if(j=="%")h="%";else{f++;if(f>=arguments.length)return c;var k=arguments[f],h=k;if(j=="c")h=String.fromCharCode(parseInt(k));else if(j=="d")h=parseInt(k)?parseInt(k):0;else if(j=="s")h=k}a=a+h+e}return a}};Object_weave_safe(utility,{dom:{}});utility.dom.setUnselectable=function(a){if(is.ie)for(var c=0;c<a.all.length;c++)if(a.all[c].tagName!="INPUT"&&a.all[c].tagName!="TEXTAREA"){var d=utility.dom.getStyleProperty(a.all[c],"cursor");a.all[c].unselectable="On";if(d=="auto")a.all[c].style.cursor="default"}else{if(a.all[c].type=="text"||a.all[c].tagName=="TEXTAREA")a.all[c].style.cursor="text"}else{a=utility.dom.getElementsByTagName(a,"*");Array_each(a,function(e){var f=utility.dom.getStyleProperty(e,"cursor"),g=e.nodeType==1?true:false;g=e.nodeName.toLowerCase()=="input"&&e.getAttribute("type")&&e.getAttribute("type").toLowerCase()=="text"||e.getAttribute("type")&&e.getAttribute("type").toLowerCase()=="password"?true:false;var j=e.nodeName.toLowerCase()=="textarea"?true:false;if(!g&&!j){if(f=="auto")e.style.cursor="default";f=utility.dom.getElementsByTagName(e,"*").length?true:false;if(!f)e.style.MozUserSelect="none"}else e.style.cursor="text !important"})}};utility.dom.getPixels=function(a,c){a=utility.dom.getStyleProperty(a,c);a=a=="medium"?2:parseInt(a,10);return a=isNaN(a)?0:a};utility.dom.getBorderBox=function(a,c){c=c||document;if(typeof a=="string")a=c.getElementById(a);if(!a)return false;if(a.parentNode===null||utility.dom.getStyleProperty(a,"display")=="none")return false;var d={x:0,y:0,width:0,height:0},e=null;if(a.getBoundingClientRect){e=a.getBoundingClientRect();var f=c.documentElement.scrollTop||c.body.scrollTop;c=c.documentElement.scrollLeft||c.body.scrollLeft;d.x=e.left+c;d.y=e.top+f;d.width=e.right-e.left;d.height=e.bottom-e.top}else if(c.getBoxObjectFor){e=c.getBoxObjectFor(a);d.x=e.x;d.y=e.y;d.width=e.width;d.height=e.height;e=utility.dom.getPixels(a,"border-top-width");f=utility.dom.getPixels(a,"border-left-width");d.x-=f;d.y-=e}else{d.x=a.offsetLeft;d.y=a.offsetTop;d.width=a.offsetWidth;d.height=a.offsetHeight;e=a.offsetParent;if(e!=a)for(;e;){d.x+=e.offsetLeft;d.y+=e.offsetTop;e=e.offsetParent}f=utility.dom.getPixels(a,"border-left-width");e=utility.dom.getPixels(a,"border-top-width");d.x-=f;d.y-=e;e=navigator.userAgent.toLowerCase();if(is.opera||is.safari&&utility.dom.getStyleProperty(a,"position")=="absolute")d.y-=c.body.offsetTop}for(e=a.parentNode?a.parentNode:null;e&&e.tagName!="BODY"&&e.tagName!="HTML";){d.x-=e.scrollLeft;d.y-=e.scrollTop;e=e.parentNode?e.parentNode:null}return d};utility.dom.setBorderBox=function(a,c){var d=utility.dom.getBorderBox(a,a.ownerDocument);if(d===false)return false;var e={x:utility.dom.getPixels(a,"left"),y:utility.dom.getPixels(a,"top")},f={x:0,y:0};if(c.x!==null)f.x=c.x-d.x+e.x;if(c.y!==null)f.y=c.y-d.y+e.y;if(c.x!==null)a.style.left=f.x+"px";if(c.y!==null)a.style.top=f.y+"px";return true};utility.dom.bringIntoView=function(a){var c=utility.dom.getBorderBox(a,a.ownerDocument);if(c===false)return false;var d={x:utility.dom.getPixels(a,"left"),y:utility.dom.getPixels(a,"top")},e={x:0,y:0},f={x:0,y:0},g=a.ownerDocument.compatMode=="CSS1Compat";g=is.ie&&g||is.mozilla?a.ownerDocument.documentElement:a.ownerDocument.body;f.x=utility.dom.getPixels(g,"border-left-width");f.y=utility.dom.getPixels(g,"border-top-width");var j=g.scrollTop,k=g.clientHeight,h=c.y+(is.ie?-f.y:f.y),l=c.y+c.height+
(is.ie?-f.y:f.y);if(l-j>k){e.y=k-(l-j);if(h+e.y<j)e.y=j-h}else if(h<j)e.y=j-h;if(e.y!=0)a.style.top=d.y+e.y+"px";j=g.scrollLeft;g=g.clientWidth;k=c.x+(is.ie?-f.x:f.x);c=c.x+c.width+(is.ie?-f.x:f.x);if(c-j>g){e.x=g-(c-j);if(k+e.x<j)e.x=j-k}else if(k<j)e.x=j-k;if(e.x!=0)a.style.left=d.x+e.x+"px"};utility.dom.putElementAt=function(a,c,d,e,f){e=util_defaultValue(e,{x:0,y:0});f=util_defaultValue(f,true);var g=parseInt(d.charAt(0),10);d=parseInt(d.charAt(1),10);var j=utility.dom.getBorderBox(a,a.ownerDocument);c=utility.dom.getBorderBox(c,c.ownerDocument);c=["0","-source_box.width","-source_box.width","0","-source_box.width/2","-source_box.width","-source_box.width/2","0","-source_box.width/2"];j=["target_box.x","target_box.x+target_box.width","target_box.x+target_box.width","target_box.x","target_box.x+target_box.width/2","target_box.x+target_box.width","target_box.x+target_box.width/2","target_box.x","target_box.x+target_box.width/2"];var k=["0","0","-source_box.height","-source_box.height","0","-source_box.height/2","-source_box.height","-source_box.height/2","-source_box.height/2"],h=["target_box.y","target_box.y","target_box.y+target_box.height","target_box.y+target_box.height","target_box.y","target_box.y+target_box.height/2","target_box.y+target_box.height","target_box.y+target_box.height/2","target_box.y+target_box.height/2"],l={x:0,y:0};l.x=eval(c[g]+" + "+j[d])+e.x;l.y=eval(k[g]+" + "+h[d])+e.y;utility.dom.setBorderBox(a,l);f&&utility.dom.bringIntoView(a);return true};utility.dom.put=function(a,c,d){a.style.left=c+"px";a.style.top=d+"px"};utility.dom.resize=function(a,c,d){a.style.width=c+"px";a.style.height=d+"px"};utility.dom.focusElem=function(a){(a=this.getElem(a))&&a.focus&&a.focus()};utility.dom.hideElem=function(a){this.setCssProperty(a,"display","none")};utility.dom.showElem=function(a,c){var d={table:"table",tr:"table-row",td:"table-cell"};a=utility.dom.getElem(a);var e=a.tagName.toLowerCase();c=c?"force":typeof d[e]!="undefined"?d[e]:"block";try{this.setCssProperty(a,"display",c)}catch(f){this.setCssProperty(a,"display","block")}};utility.dom.toggleElem=function(a,c){a=utility.dom.getElem(a);try{!a.style.display||a.style.display=="none"?utility.dom.showElem(a,c):utility.dom.hideElem(a)}catch(d){}};utility.dom.selectOption=function(a,c){var d;if(a){for(d=0;d<a.options.length;d++)a.options[d].removeAttribute("selected");for(d=0;d<a.options.length;d++)if(a.options[d].value==c){a.options[d].setAttribute("selected","selected");a.options[d].selected=true;return}else a.options[d].removeAttribute("selected")}};utility.dom.getSelected=function(a){return a.options[a.selectedIndex].value};utility.dom.getPositionRelativeTo00=function(a,c,d,e){var f,g,j,k;if(is.mozilla){f=document.width;g=document.height;j=window.pageXOffset;k=window.pageYOffset}else{k=(f=document.compatMode=="CSS1Compat")?document.documentElement:document.body;f=k.offsetWidth-20;g=k.offsetHeight;j=k.scrollLeft;k=k.scrollTop}if(a+d>f+j)a=f+j-d;if(c+e>g+k)c=g+k-e;if(a<0)a=0;if(c<0)c=0;return{x:a,y:c}};utility.dom.setCssProperty=function(a,c,d){if(!(!a||!c||!d))if(a=this.getElem(a))a.style[c]=d};utility.dom.getElem=function(a){return a=typeof a=="string"?document.getElementById(a):a};utility.dom.getClassNames=function(a){a=utility.dom.getElem(a);if(!a)return false;a=typeof a.className=="undefined"?"":a.className;a=String_trim(String_normalize_space(a));if(a=="")return[];return a.split(" ")};utility.dom.classNameAdd=function(a,c){var d=utility.dom.getClassNames(a);if(typeof c=="string")c=c.split(",");Array_each(c,function(e,f){Array_indexOf(d,e)==-1&&Array_push(d,e)});d=String_trim(d.join(" "));c=typeof a.className=="undefined"?"":a.className;if(String_trim(c)!=d)a.className=d};utility.dom.classNameRemove=function(a,c){var d=utility.dom.getClassNames(a),e=[];if(typeof c=="string")c=c.split(",");Array_each(d,function(g,j){Array_indexOf(c,g)==-1&&Array_push(e,g)});d=String_trim(e.join(" "));var f=typeof a.className=="undefined"?"":a.className;if(String_trim(f)!=d)a.className=d};utility.dom.insertAfter=function(a,c){var d=c.nextSibling;c=c.parentNode;return a=d==null?c.appendChild(a):c.insertBefore(a,d)};utility.dom.getPreviousSiblingByTagName=function(a,c,d){if(a.nodeName.toLowerCase()==c.toLowerCase()&&!d)return a;for(;a.previousSibling&&a.previousSibling.nodeName.toLowerCase()!=c.toLowerCase();)a=a.previousSibling;return a.previousSibling&&a.previousSibling.nodeName.toLowerCase()==c.toLowerCase()?a.previousSibling:null};utility.dom.getNextSiblingByTagName=function(a,c,d){if(a.nodeName.toLowerCase()==c.toLowerCase()&&!d)return a;for(;a.nextSibling&&a.nextSibling.nodeName.toLowerCase()!=c.toLowerCase();)a=a.nextSibling;return a.nextSibling&&a.nextSibling.nodeName.toLowerCase()==c.toLowerCase()?a.nextSibling:null};utility.dom.getParentByTagName=function(a,c){if(a.nodeName.toLowerCase()==c.toLowerCase())return a;for(;a.parentNode&&a.parentNode.nodeName.toLowerCase()!=c.toLowerCase()&&a.parentNode.nodeName!="BODY";)a=a.parentNode;return a.parentNode&&a.parentNode.nodeName.toLowerCase()==c.toLowerCase()?a.parentNode:null};utility.dom.getElementsByTagName=function(a,c){a=typeof a=="undefined"?document:utility.dom.getElem(a);return a=c=="*"||typeof c=="undefined"?utility.dom.getAllChildren(a):a.getElementsByTagName(c.toLowerCase())};utility.dom.getElementsByClassName=function(a,c,d){var e=[];Array_each(utility.dom.getElementsByTagName(a,d),function(f,g){Array_indexOf(utility.dom.getClassNames(f),c)!=-1&&Array_push(e,f)});return e};utility.dom.getElementById=function(a,c,d){var e=[];Array_each(utility.dom.getElementsByTagName(a,d),function(f,g){typeof f.id!="undefined"&&f.id!=null&&f.id.toString()==c&&Array_push(e,f)});return e};utility.dom.getElementsByProps=function(a,c){var d=[];a=typeof a=="undefined"?document:utility.dom.getElem(o);a=o.all?o.all:o.getElementsByTagName("*");Array_each(a,function(e){var f=true;for(i in c){try{var g=e[i]}catch(j){g=null}f=f&&g==c[i]}f&&Array_push(d,e)});return d};utility.dom.getChildrenByTagName=function(a,c){var d=[],e;if(typeof c=="undefined")c="*";c=c.toLowerCase();if(!a.childNodes)return d;for(var f=0;f<a.childNodes.length;f++){e=a.childNodes[f];try{if(typeof e!="undefined"&&typeof e.tagName!="undefined"&&e.tagName.toLowerCase()==c||c=="*")Array_push(d,e)}catch(g){}}return d};utility.dom.getChildrenByClassName=function(a,c,d){var e=[];e=Array_each(utility.dom.getChildrenByTagName(d),function(f,g){Array_indexOf(utility.dom.getClassNames(item),c)!=-1&&Array_push(e,f)})};utility.dom.getAllChildren=function(a){return a.all?a.all:a.getElementsByTagName("*")};utility.dom.getElementsBySelector=function(a,c){if(typeof c=="undefined")c=document;if(!document.getElementsByTagName)return[];a=a.split(" ");var d=new Array(c);for(c=0;c<a.length;c++){token=a[c].replace(/^\s+/,"").replace(/\s+$/,"");if(token.indexOf("#")>-1){var e=token.split("#"),f=e[0];d=e[1];if((d=document.getElementById(d))&&f&&d.nodeName.toLowerCase()!=f)return[];d=new Array(d)}else if(token.indexOf(".")>-1){e=token.split(".");f=e[0];var g=e[1];f||(f="*");e=[];for(var j=0,k=0;k<d.length;k++){var h;h=f=="*"?utility.dom.getAllChildren(d[k]):d[k].getElementsByTagName(f);for(var l=0;l<h.length;l++)e[j++]=h[l]}d=[];for(j=f=0;j<e.length;j++)if((k=typeof e[j].className=="undefined"?"":e[j].className)&&k.match(new RegExp("\\b"+g+"\\b")))d[f++]=e[j]}else if(token.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)){f=RegExp.$1;var m=RegExp.$2;g=RegExp.$3;var p=RegExp.$4;f||(f="*");e=[];for(k=j=0;k<d.length;k++){h=f=="*"?utility.dom.getAllChildren(d[k]):d[k].getElementsByTagName(f);for(l=0;l<h.length;l++)e[j++]=h[l]}d=[];f=0;switch(g){case"=":g=function(n){try{return n.getAttribute(m).toString()==p}catch(q){}};break;case"~":g=function(n){try{return n.getAttribute(m).toString().match(new RegExp(p))}catch(q){return false}};break;case"|":g=function(n){return n.getAttribute(m).toString().match(new RegExp("^"+p+"-?"))};break;case"^":g=function(n){return n.getAttribute(m).toString().indexOf(p)==0};break;case"$":g=function(n){return n.getAttribute(m).toString().lastIndexOf(p)==n.getAttribute(m).length-p.length};break;case"*":g=function(n){return n.getAttribute(m).toString().indexOf(p)>-1};break;default:g=function(n){return n.getAttribute(m)}}d=[];for(j=f=0;j<e.length;j++)if(g(e[j]))d[f++]=e[j]}else{f=token;e=[];for(k=j=0;k<d.length;k++)if(d[k]!=null){h=d[k].getElementsByTagName(f);for(l=0;l<h.length;l++)e[j++]=h[l]}d=e}}return d};utility.dom.createForm=function(a,c,d){if(typeof a=="undefined")a={};if(typeof c=="undefined")c=[];if(typeof d=="undefined")d=document;var e={name:"",id:"",action:"",method:"POST",target:""};a=Object_weave_safe(a,e);var f=utility.dom.createElement("FORM",{name:a.name,id:a.id,action:a.action,method:a.method,style:"display: none"});Array_each(c,function(g,j){f.appendChild(utility.dom.createElement("INPUT",{type:"hidden",id:g[0],name:g[0],value:g[1]}))});f=d.body.appendChild(f);f.target=a.target;return f};utility.dom.createIframe=function(a,c){if(typeof a=="undefined")a={};if(typeof c=="undefined")c=document;var d={name:"",id:"",src:a.src};a=Object_weave_safe(a,d);if(is.mozilla){d=utility.dom.createElement("iframe",{id:a.id,name:a.name,style:"display: none;"});d.src=a.src;d=c.body.appendChild(d);d.name=a.name;d.id=a.id}else if(is.ie){d='<iframe name="'+a.name+'" src="'+a.src+'" id="'+a.id+'" style="display: none;"></iframe>';var e=c.createElement("div");c.body.appendChild(e);e.innerHTML=d}return d=c.getElementById(a.id)};utility.dom.addIframeLoad=function(a,c){if(is.mozilla)a.onload=function(){c()};else a.onreadystatechange=function(){a.readyState=="complete"&&c()}};utility.dom.removeIframeLoad=function(a){if(is.ie)a.onreadystatechange=function(){};if(is.mozilla)a.onload=function(){}};utility.dom.buildUrl=function(){};utility.dom.stripAttributes=function(a,c){var d=["onload","data","onmouseover","onmouseout","onmousedown","onmouseup","ondblclick","onclick","onselectstart","oncontextmenu","onkeydown","onkeypress","onkeyup","onblur","onfocus","onbeforedeactivate","onchange"];if(typeof a=="undefined"||a==null)return true;for(var e=d.length;e--;)a[d[e]]=null;if(typeof c!="undefined")for(e=c.length;e--;)a[c[e]]=null};utility.dom.attachEvent2=function(a,c,d,e){utility.dom.attachEvent_base(a,c,d,e,1)};utility.dom.attachEvent=function(a,c,d,e){utility.dom.attachEvent_base(a,c,d,e,0)};utility.dom.attachEvent_base=function(a,c,d,e,f){if(typeof e=="undefined")e=1;e=c.match(/unload$/i);f=c.match(/^on/)?c:"on"+c;var g=c.replace(/^on/,"");if(typeof a.__eventHandlers=="undefined")a.__eventHandlers={};c=null;if(typeof a.__eventHandlers[g]=="undefined"){a.__eventHandlers[g]=[];c=a.__eventHandlers[g];f=function(k){if(!k&&window.event)k=window.event;for(var h=0;h<a.__eventHandlers[g].length;h++){var l=a.__eventHandlers[g][h];if(typeof l=="function"){l.apply(a,[k]);l=null}}};if(a.addEventListener)a.addEventListener(g,f,false);else if(a.attachEvent)a.attachEvent("on"+g,f);else a["on"+g]=f;!(is.ie&&is.mac)&&!e&&EventCache.add(a,g,f,1)}else c=a.__eventHandlers[g];for(e=0;e<c.length;e++){if(c[e]==d)return;try{if(c[e]&&d&&c[e].toString()==d.toString())return}catch(j){}}c[c.length]=d};var EventCache=function(){var a=[];return{listEvents:a,add:function(c,d,e,f){Array_push(a,arguments)},flush:function(){var c,d;for(c=a.length-1;c>=0;c-=1)if(d=a[c]){d[0].removeEventListener&&d[0].removeEventListener(d[1],d[2],d[3]);var e="";if(d[1].substring(0,2)!="on"){e=d[1];d[1]="on"+d[1]}else e=d[1].substring(2,event_name_without_on.length);if(typeof d[0].__eventHandlers!="undefined"&&typeof d[0].__eventHandlers[e]!="undefined")d[0].__eventHandlers[e]=null;d[0].detachEvent&&d[0].detachEvent(d[1],d[2]);d[0][d[1]]=null}a=null}}}();utility.dom.getStyleProperty=function(a,c){try{var d=a.style[c]}catch(e){return""}if(!d)if(a.ownerDocument.defaultView&&typeof a.ownerDocument.defaultView.getComputedStyle=="function")d=a.ownerDocument.defaultView.getComputedStyle(a,"").getPropertyValue(c);else if(a.currentStyle){d=c.split(/-/);if(d.length>0){c=d[0];for(var f=1;f<d.length;f++)c+=d[f].charAt(0).toUpperCase()+d[f].substring(1)}d=a.currentStyle[c]}else if(a.style)d=a.style[c];return d};utility.dom.getLink=function(a){return href=is.ie?is.mac?a.getAttribute("href"):a.outerHTML.toString().replace(/.*href="([^"]*)".*/,"$1"):a.getAttribute("href")};utility.dom.getDisplay=function(a){return utility.dom.getStyleProperty(a,"display")};utility.dom.getVisibility=function(a){return utility.dom.getStyleProperty(a,"visibility")};var first_getAbsolutePos_caller_element=null;utility.dom.getAbsolutePos=function(a){var c=0,d=0,e=a.tagName.toUpperCase();if(utility.dom.getAbsolutePos.caller!=utility.dom.getAbsolutePos)first_getAbsolutePos_caller_element=a;if(Array_indexOf(["BODY","HTML"],e)==-1&&first_getAbsolutePos_caller_element!=a){if(a.scrollLeft)c=a.scrollLeft;if(a.scrollTop)d=a.scrollTop}c={x:a.offsetLeft-c,y:a.offsetTop-d};if(a.offsetParent&&e!="BODY"){a=utility.dom.getAbsolutePos(a.offsetParent);c.x+=a.x;c.y+=a.y}return c};utility.dom.setEventVars=function(a){var c,d,e=0,f=0;if(!a)a=window.event;if(!a)return{e:null,relTarg:null,targ:null,posx:0,posy:0,leftclick:false,middleclick:false,rightclick:false,type:""};if(a.relatedTarget)d=a.relatedTarget;else if(a.fromElement)d=a.fromElement;if(a.target)c=a.target;else if(a.srcElement)c=a.srcElement;var g=utility.dom.getPageScroll();if(a.pageX||a.pageY){e=a.pageX;f=a.pageY}else if(a.clientX||a.clientY){e=a.clientX+g.x;f=a.clientY+g.y}if(window.event){g=a.button==1;var j=a.button==4,k=a.button==2}else{g=a.button==0;j=a.button==1;k=a.button==2||a.button==0&&is.mac&&a.ctrlKey}c={e:a,relTarg:d,targ:c,posx:e,posy:f,leftclick:g,middleclick:j,rightclick:k};try{c.type=a.type}catch(h){c.type=""}return c};utility.dom.stopEvent=function(a){if(typeof is=="undefined")is=new BrowserCheck;if(typeof a!="undefined"&&a!=null){if(is.ie)a.cancelBubble=true;a.stopPropagation&&a.stopPropagation();if(is.ie)a.returnValue=false;a.preventDefault&&a.preventDefault()}return false};utility.dom.toggleSpecialTags=function(a,c,d,e,f){var g=["select"];if(d==1)var j=utility.dom.getBox(a);for(a=0;a<g.length;a++){var k=null;if(e&&e.nodeType&&e.nodeType==9){k=e;utility.dom.toggleSpecialTags._saved_DOC=e}else k=e&&utility.dom.toggleSpecialTags._saved_DOC&&utility.dom.toggleSpecialTags._saved_DOC.nodeType&&utility.dom.toggleSpecialTags._saved_DOC.nodeType==9?utility.dom.toggleSpecialTags._saved_DOC:document;for(var h=k.getElementsByTagName(g[a]),l=0;l<h.length;l++)if(c!=h[l])if(d==1){var m=utility.dom.getVisibility(h[l]),p=utility.dom.getDisplay(h[l]);if(!(p=="none"||m=="hidden")){p=utility.dom.getBox(h[l]);if(f){var n=utility.dom.getBox(f);p.x+=n.x;p.y+=n.y}if(p=utility.dom.boxOverlap(j,p))if(e&&f){if(!h[l].oldPosition){m=utility.dom.getStyleProperty(h[l],"position");h[l].oldPosition=m}if(!h[l].oldLeft){m=utility.dom.getStyleProperty(h[l],"left");h[l].oldLeft=m}h[l].style.position="relative";h[l].style.left="-1000px"}else{if(!h[l].oldvisibility)h[l].oldvisibility=m;h[l].style.visibility="hidden"}}}else if(e&&f){if(h[l].oldPosition){h[l].style.position=h[l].oldPosition;h[l].removeAttribute("oldPosition")}if(h[l].oldLeft){h[l].style.left=h[l].oldLeft;h[l].removeAttribute("oldLeft")}}else if(h[l].oldvisibility)h[l].style.visibility=h[l].oldvisibility}};utility.dom.boxOverlap=function(a,c){if(a.x+a.width<c.x||a.x>c.x+c.width||a.y+a.height<c.y||a.y>c.y+c.height||0)return false;return true};utility.dom.getBox=function(a){var c={x:0,y:0,width:0,height:0,scrollTop:0,scrollLeft:0},d=a.ownerDocument.compatMode=="CSS1Compat";if(a.ownerDocument.getBoxObjectFor){var e=a.ownerDocument.getBoxObjectFor(a);c.x=e.x-a.parentNode.scrollLeft;c.y=e.y-a.parentNode.scrollTop;c.width=e.width;c.height=e.height;c.scrollLeft=(d?a.ownerDocument.documentElement:a.ownerDocument.body).scrollLeft;c.scrollTop=(d?a.ownerDocument.documentElement:a.ownerDocument.body).scrollTop}else if(a.getBoundingClientRect){e=a.getBoundingClientRect();c.x=e.left;c.y=e.top;c.width=e.right-e.left;c.height=e.bottom-e.top;c.scrollLeft=0;c.scrollTop=0}else{d=utility.dom.getAbsolutePos(a);c.x=d.x-a.parentNode.scrollLeft;c.y=d.y-a.parentNode.scrollTop;c.width=utility.dom.getStyleProperty(a,"width");c.height=utility.dom.getStyleProperty(a,"height");c.scrollLeft=a.ownerDocument.body.scrollLeft;c.scrollTop=a.ownerDocument.body.scrollTop}return c};utility.dom.getBBox=function(a){var c={x:0,y:0,width:0,height:0,scrollTop:0,scrollLeft:0},d=a.ownerDocument.compatMode=="CSS1Compat";if(a.ownerDocument.getBoxObjectFor){d=d?a.ownerDocument.documentElement:document;d=parseInt(utility.dom.getStyleProperty(a,"border-top-width"));var e=parseInt(utility.dom.getStyleProperty(a,"border-left-width")),f=parseInt(utility.dom.getStyleProperty(a,"border-right-width"));f=parseInt(utility.dom.getStyleProperty(a,"border-bottom-width"));f=a.ownerDocument.getBoxObjectFor(a);for(var g=0,j=0;a.parentNode;){if(a.scrollTop)j+=a.scrollTop;if(a.scrollLeft)g+=a.scrollLeft;a=a.parentNode}c.scrollLeft=g;c.scrollTop=j;c.x=f.x-e-g;c.y=f.y-d-j;c.width=f.width;c.height=f.height}else if(a.getBoundingClientRect){var k=d?a.ownerDocument.documentElement:document.body;d=parseInt(utility.dom.getStyleProperty(a,"border-top-width"))||0;e=parseInt(utility.dom.getStyleProperty(a,"border-left-width"))||0;f=a.getBoundingClientRect();c.x=f.left-e;c.y=f.top-d;c.width=f.right-f.left;c.height=f.bottom-
f.top;c.scrollLeft=0;c.scrollTop=0}else{k=a.ownerDocument.documentElement;f=parseInt(utility.dom.getStyleProperty(k,"margin-top"));g=parseInt(utility.dom.getStyleProperty(k,"margin-left"));d=parseInt(utility.dom.getStyleProperty(k,"border-top-width"));e=parseInt(utility.dom.getStyleProperty(k,"border-left-width"));j=parseInt(utility.dom.getStyleProperty(k,"padding-top"));var h=parseInt(utility.dom.getStyleProperty(k,"padding-left"));k=a.offsetParent;var l=parseInt(utility.dom.getStyleProperty(k,"margin-top"));k=parseInt(utility.dom.getStyleProperty(k,"margin-left"));var m=0;m=m=m=0;m=utility.dom.getAbsolutePos(a);c.x=m.x;c.y=m.y;c.width=parseInt(utility.dom.getStyleProperty(a,"width"));c.height=parseInt(utility.dom.getStyleProperty(a,"height"));c.scrollLeft=a.ownerDocument.body.scrollLeft;c.scrollTop=a.ownerDocument.body.scrollTop;if(is.opera){c.x-=g+e+h+k;c.y-=f+d+j+l}}return c};utility.dom.getPageInnerSize=function(){var a,c;if(typeof self.innerHeight!="undefined"){a=self.innerWidth;c=self.innerHeight}else if(typeof document.compatMode!="undefined"&&document.compatMode=="CSS1Compat"){a=document.documentElement.clientWidth;c=document.documentElement.clientHeight}else if(document.body){a=document.body.clientWidth;c=document.body.clientHeight}return{x:a,y:c}};utility.dom.getPageScroll=function(){var a,c;if(typeof self.pageYOffset!="undefined"){a=self.pageXOffset;c=self.pageYOffset}else if(typeof document.compatMode!="undefined"&&document.compatMode=="CSS1Compat"){a=document.documentElement.scrollLeft;c=document.documentElement.scrollTop}else if(document.body){a=document.body.scrollLeft;c=document.body.scrollTop}return{x:a,y:c}};utility.dom.createElement=function(a,c,d){if(typeof is=="undefined")is=new BrowserCheck;d=typeof d!="undefined"?d.document.createElement(a):document.createElement(a);if(typeof c!="undefined")for(var e in c)switch(true){case e=="text":d.appendChild(document.createTextNode(c[e]));break;case e=="class":d.className=c[e];break;case e=="id":d.id=c[e];break;case e=="type":if(a.toLowerCase()=="input"&&is.ie&&is.mac){var f=document.createElement("SPAN");document.body.appendChild(f);f.style.display="none";f.innerHTML=d.outerHTML.replace(/<input/i,'<input type="'+c[e]+'"');d=f.firstChild;document.body.removeChild(f)}else if(a.toLowerCase()=="input"&&is.mac&&is.safari)d.setAttribute("type",c[e]);else d.type=c[e];break;case e=="style":d.style.cssText=c[e];break;default:try{d.setAttribute(e,c[e]);d[e]=c[e]}catch(g){}}if(c.value)d.value=c.value;return d};utility.dom.getImports=function(a){try{if(is.ie)return a.imports;else{for(var c=[],d=0;d<a.cssRules.length;d++)if(is.safari)typeof a.cssRules[d].href!="undefined"&&Array_push(c,a.cssRules[d].styleSheet);else a.cssRules[d].toString().match("CSSImportRule")&&Array_push(c,a.cssRules[d].styleSheet);return c}}catch(e){return[]}};utility.dom.getRuleBySelector=function(a,c){try{var d=[];d=is.ie?a.rules:a.cssRules;a=[];for(var e=0;e<d.length;e++){var f=d[e];f.selectorText.toString().match(c)&&Array_push(a,f)}return a}catch(g){return[]}};utility.dom.createStyleSheet=function(a,c){if(is.ie)return a.createStyleSheet(c);else if(is.mozilla){var d=a.getElementsByTagName("head")[0],e=a.createElement("style");e.type="text/css";e.rules=[];d.appendChild(e);if(c!=""){d=new XMLHttpRequest;try{d.open("GET",c,false);d.send(null)}catch(f){alert('Cannot load a stylesheet from a server other than the current server.\r\nThe current server is "'+a.location.hostname+'".\r\nThe requested stylesheet URL is "'+c+'".');return null}if(d.status==404){prompt("Stylesheet was not found:",c);return null}a=a.createTextNode(d.responseText);e.appendChild(a);a=/\s*\{([^\}]*)\}\s*/;nameList=d.responseText.split(a);for(d=0;d<nameList.length;d+=2){a={};a.selectorText=nameList[d];a.cssText=nameList[d+1];e.rules.push(a)}}else{a=a.createTextNode("u");e.appendChild(a)}return e}};Object_weave_safe(utility,{date:{}});$UNI_DATETIME_MASK_SEPARATORS=["-","/","[","]","(",")","*","+",".","s",":"];$UNI_DATETIME_MASK_REGEXP="[";for(var zi=0;zi<$UNI_DATETIME_MASK_SEPARATORS.length;zi++)$UNI_DATETIME_MASK_REGEXP+="\\"+$UNI_DATETIME_MASK_SEPARATORS[zi]+"|";$UNI_DATETIME_MASK_REGEXP+="]";$UNI_DATETIME_MASK_REGEXP=new RegExp($UNI_DATETIME_MASK_REGEXP,"g");utility.date.date2regexp=function(a){a=a.replace(/[\/\-\.]/g,"DATESEPARATOR");a=a.replace(/([-\/\[\]\(\)\*\+\.\:])/g,"\\$1");a=a.replace(/DATESEPARATOR/g,"[\\/\\-\\.]");a=a.replace(/(\\s)/g,"s");a=a.replace(/yyyy/gi,"([0-9]{1,4})");a=a.replace(/yy/gi,"([0-9]{1,4})");a=a.replace(/y/gi,"([0-9]{1,4})");a=a.replace(/mm/g,"([0-9]{1,2})");a=a.replace(/m/g,"([0-9]{1,2})");a=a.replace(/dd/g,"([0-9]{1,2})");a=a.replace(/d/g,"([0-9]{1,2})");a=a.replace(/HH/g,"([0-9]{1,2})*");a=a.replace(/H/g,"([0-9]{1,2})*");a=a.replace(/hh/g,"([0-9]{1,2})*");a=a.replace(/h/g,"([0-9]{1,2})*");a=a.replace(/ii/g,"([0-9]{1,2})*");a=a.replace(/i/g,"([0-9]{1,2})*");a=a.replace(/ss/g,"([0-9]{1,2})*");a=a.replace(/s/g,"([0-9]{1,2})*");a=a.replace(/tt/g,"(AM|PM|am|pm|A|P|a|p)*");a=a.replace(/t/g,"(AM|PM|am|pm|A|P|a|p)*");a=a.replace(/ /g," *");a=a.replace(/:/g,":*");return a=new RegExp("^"+a+"$")};utility.date.parse_date=function(a,c){var d=vMonth=vDay=null,e=vHour12h=vHour24H=vMinutes=vSeconds=vTimeMarker1C=vTimeMarker2C=null;e=c.split($UNI_DATETIME_MASK_REGEXP);for(var f=0,g=0,j=0;j<e.length;j++){var k=e[j];f++;var h=a[f];if(Array_indexOf("HH,H,ii,i,ss,s".split(","),k)>=0)if(h==""||typeof h=="undefined")h="0";if(Array_indexOf("hh,h".split(","),k)>=0){var l=parseInt(h,10);if(h==""||typeof h=="undefined")h="12";else if(l>12&&l<24){var m=Array_indexOf(e,"t")>=0?Array_indexOf(e,"t")+1:Array_indexOf(e,"tt")+1;if(a[m]==""){h=l-12;g=1}}}if(Array_indexOf("tt,t".split(","),k)>=0)if(h=="")h=[["A","AM"],["P","PM"]][g][k.length-1];switch(k){case"yyyy":case"YYYY":d=parseInt(h,10);break;case"yy":case"YY":case"y":d=parseInt(h,10);if(d<1000)d=d<10?2000+d:d<70?2000+d:1900+d;break;case"mm":case"m":vMonth=parseInt(h,10);break;case"dd":case"d":vDay=parseInt(h,10);break;case"HH":case"H":vHour24H=parseInt(h,10);break;case"hh":case"h":vHour12h=parseInt(h,10);break;case"ii":case"i":vMinutes=parseInt(h,10);break;case"ss":case"s":vSeconds=parseInt(h,10);break;case"t":vTimeMarker1C=h;break;case"tt":vTimeMarker2C=h;break}}d=d==null?1900:d;vMonth=vMonth==null?0:vMonth;vDay=vDay==null?1:vDay;vMinutes=vMinutes==null?0:vMinutes;vSeconds=vSeconds==null?0:vSeconds;a=0;if(vHour12h!=null)if(vHour12h>=1&&vHour12h<=12){e=vHour12h;if((vTimeMarker1C||vTimeMarker2C||"").charAt(0)=="P"){if(vHour12h<12)e=vHour12h+12}else if(vHour12h==12)e=0}else e=-1000;else e=vHour24H!=null?vHour24H:0;d={year:d,month:vMonth,day:vDay,hour:e,minutes:vMinutes,seconds:vSeconds};if(c.indexOf("y")<0&&c.indexOf("m")<0&&c.indexOf("d")<0){d.year="1900";d.month="1";d.day=1}return d};Object_weave_safe(utility,{window:{}});utility.window.openWindow=function(a,c,d,e){var f=(screen.width-d)/2,g=(screen.height-e)/2;d="width="+d+",height="+e+",resizable=No,scrollbars=No,status=Yes,modal=yes,dependent=yes,dialog=yes,left="+f+",top="+g;if(a=window.open(c,a,d)){utility.window.reference=a;if(c=document.getElementById("modalBlocker"))c.style.display="block";else{c=utility.dom.createElement("DIV",{id:"modalBlocker",style:"display: block"});d=utility.dom.getPageInnerSize();c.style.zIndex=999;c.style.width=d.x+"px";c.style.height=d.y+"px";prepfixieinsertnodescrollup();c=document.body.insertBefore(c,document.body.firstChild);utility.dom.attachEvent(c,"onmousedown",function(){return utility.window.focusmodal()});utility.dom.attachEvent(c,"ondblclick",function(){return utility.window.focusmodal()});utility.dom.attachEvent(c,is.ie?"onbeforeactivate":"onfocus",function(){return utility.window.focusmodal()});utility.dom.attachEvent(is.mozilla?window.document.body:window,is.ie?"onbeforeactivate":"focus",function(){return utility.window.focusmodal()});fixieinsertnodescrollup()}a.focus()}a||alert(translate("Cannot open dialog. Please allow site popups."));return a};function prepfixieinsertnodescrollup(){if(is.ie&&typeof ktmls!="undefined"){prepfixieinsertnodescrollup.scrolls=[];for(var a=0;a<ktmls.length;a++)if(!ktmls[a].destroyed)prepfixieinsertnodescrollup.scrolls[a]=ktmls[a].edit.body.scrollTop}}function fixieinsertnodescrollup(){window.setTimeout("fixieinsertnodescrollup_late()",1)}
function fixieinsertnodescrollup_late(){if(is.ie&&typeof ktmls!="undefined")for(var a=ktmls.length-1;a>=0;a--)if(!ktmls[a].destroyed)ktmls[a].edit.body.scrollTop=prepfixieinsertnodescrollup.scrolls[a]}utility.window.focusmodal=function(){utility.window.reference&&!utility.window.reference.closed?utility.window.reference.focus():utility.window.hideModalBlocker()};utility.window.hideModalBlocker=function(a){a||(a=window);utility.window.reference=null;if(!a.closed)if(a=a.document.getElementById("modalBlocker"))a.style.display="none"};utility.window.close=function(){window.close()};utility.popup={};utility.popup.stiva=[];utility.popup.makeModal=function(a,c,d){if(typeof d=="undefined")d=true;utility.popup.stiva.push({element:c,callback:a,stopEvents:d})};utility.popup.removeModal=function(a){if(utility.popup.stiva.length!=0){if(utility.popup.force||a){var c=utility.popup.stiva[utility.popup.stiva.length-1];if(a){var d=utility.dom.setEventVars(a);for(d=d.targ;d;){if(c.element&&d==c.element)break;if(d.mi&&d.mi.action_event!="mousedown")break;d=d.parentNode}if(d)return}c.callback&&c.callback();utility.popup.stiva.pop();utility.popup.removeModal(a)}utility.dom.toggleSpecialTags(null,false,0,true,true)}};utility.popup.escapeModal=function(a){if(utility.popup.stiva.length>0){if(!utility.popup.stiva[utility.popup.stiva.length-1].stopEvents)return true;var c=utility.dom.setEventVars(a);if(a.keyCode==27){utility.popup.force=true;utility.popup.removeModal(c.e);utility.popup.force=false}if(is.ie&&!c.e.ctrlKey)try{c.e.keyCode=90909090}catch(d){}utility.dom.stopEvent(c.e);return false}return true};utility.window.blockInterface=function(a,c,d){if(typeof a=="undefined")a="wait";var e=utility.dom.createElement("div",{});e.className="interfaceBlocker";e.id=d||"interfaceBlocker";prepfixieinsertnodescrollup();e=document.body.appendChild(e);fixieinsertnodescrollup();e.style.cursor=a;if(c){a=utility.dom.getBox(c);e.style.top=a.y+"px";e.style.left=a.x+"px";e.style.width=a.width+"px";e.style.height=a.height+"px"}else{a=utility.dom.getPageInnerSize();e.style.width=a.x+"px";e.style.height=a.y+"px"}};utility.window.unblockInterface=function(){var a=document.getElementById("interfaceBlocker");a&&document.body.removeChild(a)};utility.window.setModal=function(a){if(typeof a=="undefined")a=true;window.isloading=false;window.focus();if(window.dialogArguments)window.opener=dialogArguments;else{window.onbeforeunload=function(){window.opener.closed||utility.window.hideModalBlocker(window.opener)};a&&utility.dom.setUnselectable(window.document.body)}if(window.opener){window.topOpener=window.opener.topOpener?window.opener.topOpener:window.opener;utility.dom.attachEvent(is.ie?window.document.body:window,"keydown",function(c){var d=utility.popup.escapeModal(c);d&&c.keyCode==27&&utility.window.close()});utility.dom.attachEvent2(window.document.body,"mousedown",utility.popup.removeModal)}else document.body.innerHTML='<center>Invalid context! No opener.</center><div style="display:none !important">'+document.body.innerHTML+"</div>"};Object_weave_safe(utility,{cookie:{}});utility.cookie.set=function(a,c,d,e){a=a+"="+escape(c);if(d!=null){c=new Date;c.setTime(c.getTime()+86400000*d);a+="; expires="+c.toGMTString()}if(e!=null)a+="; path="+e;document.cookie=a;return null};utility.cookie.get=function(a){a=a+"=";for(var c=document.cookie.split(";"),d=0;d<c.length;d++){for(var e=c[d];e.charAt(0)==" ";)e=e.substring(1,e.length);if(e.indexOf(a)==0)return unescape(e.substring(a.length,e.length))}return null};utility.cookie.del=function(a,c){utility.cookie.set(a,"",-1,c)};UIDGenerator=function(a){if(typeof a=="undefined")a="iaktuid_"+Math.random().toString().substring(2,6)+"_";this.name=a;this.counter=1};UIDGenerator.prototype.generate=function(a){if(typeof a=="undefined")a="";return this.name+a+this.counter+++"_"};ObjectStorage=function(a){this.storage={};this.gen=new UIDGenerator(a+"_reference_by_id_")};ObjectStorage.prototype.add=ObjectStorage.prototype.storeObject=function(a){var c=a.constructor.toString().match(/^\s*function\s*([^\s\(]*)\s*\(/i);c=c?c[1]:"unknown_contructor";c=this.gen.generate(c);a.id=c;this.storage[c]=a};ObjectStorage.prototype.get=ObjectStorage.prototype.getObject=function(a){return this.storage[a]};ObjectStorage.prototype.deleteObject=function(a){delete this.storage[a]};ObjectStorage.prototype.dispose=function(){this.storage=null};QueryString=function(a){if(typeof a=="undefined")a=window.location.search.toString();this.keys=[];this.values=[];var c=a;if(a.indexOf("?")==0)c=a.substring(1);c=c.replace(/&amp;/g,"&");a=c.split("&");for(c=0;c<a.length;c++){var d=a[c].indexOf("=");if(d>=0){var e=a[c].substring(0,d);d=a[c].substring(d+1);this.keys[this.keys.length]=e;this.values[this.values.length]=d}}};QueryString.prototype.find=function(a){for(var c=null,d=0;d<this.keys.length;d++)if(this.keys[d]==a){c=this.values[d];break}return c};KT_Tooltips={cname:"kt_add_tooltips",worked:[],cancel:false,gen:new UIDGenerator,show:function(a,c,d){if(a=document.getElementById(a)){a.style.left="-1000px";a.style.top="-1000px";a.style.display="block";var e=utility.dom.getBBox(a);c=utility.dom.getPositionRelativeTo00(c,d,e.width+2,e.height+2);a.style.left=c.x+"px";a.style.top=c.y+"px"}},hide:function(a){if(a=document.getElementById(a))a.style.display="none"},clear_timeout:function(a,c){a=a+c+"timeout";typeof window[a]!="undefined"&&clearTimeout(window[a])},clear_showtimeout:function(a){KT_Tooltips.clear_timeout(a,"show")},clear_hidetimeout:function(a){KT_Tooltips.clear_timeout(a,"hide")},set_timeout:function(a,c,d){var e="";e=[];if(arguments.length>3)for(var f=3;f<arguments.length;f++)Array_push(e,arguments[f]);e=e.join(", ");if(e!="")e=", "+e;e="KT_Tooltips."+c+"('"+a+"'"+e+")";f=a+c+"timeout";window[f]=setTimeout(e,d)},set_showtimeout:function(a,c){KT_Tooltips.set_timeout(a,"show",1000,c.x,c.y)},set_hidetimeout:function(a){KT_Tooltips.set_timeout(a,"hide",250)},attach_single:function(a){if(!(is.ie||is.safari)){var c=a.title,d=null;if(a.getAttribute("divid")){(d=document.getElementById(a.getAttribute("divid")))&&document.body.removeChild(d);a.removeAttribute("divid")}if(/[\r\n]/.test(c)){c=KT_Tooltips.gen.generate("tooltip");var e=utility.dom.createElement("div",{"class":"tooltip_div",id:c});e.innerHTML=a.getAttribute("title").toString().replace(/\r\n/g,"<br />").replace(/[\r|\n]/g,"<br />");a.divid=c;e=document.body.appendChild(e);a.removeAttribute("title");a.setAttribute("divid",c);if(!d){utility.dom.attachEvent(a,"mouseover",function(f){var g=a.getAttribute("divid"),j=utility.dom.getBBox(a),k=utility.dom.setEventVars(f);KT_Tooltips.clear_hidetimeout(g);j={x:j.x+Math.round(j.width/2),y:j.y+Math.round(j.height/2)+10};KT_Tooltips.set_showtimeout(g,j);utility.dom.stopEvent(f)});utility.dom.attachEvent(a,"mouseout",function(f){var g=a.getAttribute("divid");KT_Tooltips.clear_showtimeout(g);KT_Tooltips.set_hidetimeout(g);utility.dom.stopEvent(f)})}}}},attach:function(){KT_Tooltips.worked=[];is.ie||is.safari||Array_each(utility.dom.getElementsByClassName(document.body,KT_Tooltips.cname),function(a){Array_each(a.getElementsByTagName("a"),KT_Tooltips.attach_single)})}};utility.dom.attachEvent(window,"load",KT_Tooltips.attach);function getDomDocumentPrefix(){if(getDomDocumentPrefix.prefix)return getDomDocumentPrefix.prefix;for(var a=["MSXML2","Microsoft","MSXML","MSXML3"],c,d=0;d<a.length;d++)try{c=new ActiveXObject(a[d]+".DomDocument");return getDomDocumentPrefix.prefix=a[d]}catch(e){}throw new Error("Could not find an installed XML parser");}
function getXmlHttpPrefix(){if(getXmlHttpPrefix.prefix)return getXmlHttpPrefix.prefix;for(var a=["MSXML2","Microsoft","MSXML","MSXML3"],c,d=0;d<a.length;d++)try{c=new ActiveXObject(a[d]+".XmlHttp");return getXmlHttpPrefix.prefix=a[d]}catch(e){}throw new Error("Could not find an installed XML parser");}function XmlHttp(){}
XmlHttp.create=function(){try{if(window.XMLHttpRequest){var a=new XMLHttpRequest;if(a.readyState==null){a.readyState=1;a.addEventListener("load",function(){a.readyState=4;typeof a.onreadystatechange=="function"&&a.onreadystatechange()},false)}return a}if(window.ActiveXObject){var c=new ActiveXObject(getXmlHttpPrefix()+".XmlHttp");return c}}catch(d){}throw new Error("Your browser does not support XmlHttp objects");};XmlHttp.post=function(a,c,d){try{a.open("POST",c,false);a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a.send(d)}catch(e){return false}return a};XmlHttp.get=function(a,c,d){try{a.open("GET",d,false);a.send(null)}catch(e){return false}return a};function XmlDocument(){}
XmlDocument.create=function(){try{if(document.implementation&&document.implementation.createDocument){var a=document.implementation.createDocument("","",null);if(a.readyState==null){a.readyState=1;a.addEventListener("load",function(){a.readyState=4;typeof a.onreadystatechange=="function"&&a.onreadystatechange()},false)}return a}if(window.ActiveXObject)return new ActiveXObject(getDomDocumentPrefix()+".DomDocument")}catch(c){}throw new Error("Your browser does not support XmlDocument objects");};if(window.DOMParser&&window.XMLSerializer&&window.Node&&Node.prototype&&Node.prototype.__defineGetter__){Document.prototype.loadXML=function(a){for(a=(new DOMParser).parseFromString(a,"text/xml");this.hasChildNodes();)this.removeChild(this.lastChild);for(var c=false,d=0;d<a.childNodes.length;d++){this.appendChild(this.importNode(a.childNodes[d],true));c=true}return c};var documentProto=Document.prototype,documentGrandProto=documentProto.__proto__={__proto__:documentProto.__proto__};documentGrandProto&&documentGrandProto.__defineGetter__("xml",function(){return(new XMLSerializer).serializeToString(this)});var elementProto=Element.prototype,elementGrandProto=elementProto.__proto__={__proto__:elementProto.__proto__};if(elementGrandProto){elementGrandProto.__defineGetter__("text",function(){return this.textContent});elementGrandProto.__defineGetter__("innerText",function(){return this.textContent});elementGrandProto.__defineSetter__("innerText",function(a){a=this.ownerDocument.createTextNode(a);this.innerHTML="";this.appendChild(a)})}}function evaluateXPath(a,c){var d=[];if(is.mozilla){if(typeof evaluateXPath.xpe=="undefined")evaluateXPath.xpe=new XPathEvaluator;for(a=evaluateXPath.xpe.evaluate(c,a,null,XPathResult.ANY_TYPE,null);res=a.iterateNext();)d.push(res)}else if(is.ie){a=a.selectNodes(c);for(c=0;c<a.length;c++)d.push(a[c])}if(d.length==0)d=false;return d}
function BrowserCheck(){var a=navigator.appName.toString();a=navigator.platform.toString();a=navigator.userAgent.toString();this.mozilla=this.ie=this.opera=r=false;var c=/Opera.([0-9\.]*)/i,d=/MSIE.([0-9\.]*)/i,e=/gecko/i,f=/safari\/([\d\.]*)/i;if(a.match(c)){r=a.match(c);this.opera=true;this.version=parseFloat(r[1])}else if(a.match(d)){r=a.match(d);this.ie=true;this.version=parseFloat(r[1])}else if(a.match(f)){this.safari=this.mozilla=true;this.version=1.4}else if(a.match(e)){c=/rv:\s*([0-9\.]+)/i;r=a.match(c);this.mozilla=true;this.version=parseFloat(r[1])}this.windows=this.mac=this.linux=false;this.Platform=a.match(/windows/i)?"windows":a.match(/linux/i)?"linux":a.match(/mac/i)?"mac":a.match(/unix/i)?"unix":"unknown";this[this.Platform]=true;this.v=this.version;this.valid=this.ie&&this.v>=6||this.mozilla&&this.v>=1.4;if(this.safari&&this.mac&&this.mozilla)this.mozilla=false}
function sortFormHandlers(a){for(var c=0;c<a.length;c++)for(var d=a[c],e=c+1;e<a.length;e++){var f=a[e];if(f[0]<d[0]){var g=d;a[c]=f;a[e]=g}}}
function GLOBAL_registerFormSubmitEventHandler(a,c){for(var d=document.getElementsByTagName("form"),e=0;e<d.length;e++){var f=d[e];if(typeof f.onsubmit!="undefined"&&f.onsubmit!=null){var g=f.form_handlers;if(g){g[g.length]=[c,a];sortFormHandlers(g)}else{f.__kt_onsubmit=f.onsubmit;f.onsubmit=new Function("e","if (!KT_formSubmittalHandler(e)) return false;");g=[];g[g.length]=[c,a]}}else{f.onsubmit=new Function("e","return KT_formSubmittalHandler(e);");g=[];g[g.length]=[c,a]}f.form_handlers=g}}
var fire_starter=null,global_form_submit_lock=false;function KT_formSubmittalHandler(a){var c=null;a=utility.dom.setEventVars(a);if(!a.e)return true;try{if(global_form_submit_lock){utility.dom.stopEvent(a.e);return false}c=a.targ;if(!c)return true;if(!c.tagName)return true;if(c.tagName.toLowerCase()!="form")c=c.form}catch(d){}c||(c=fire_starter);if(!c)return true;typeof UNI_disableButtons!="undefined"&&UNI_disableButtons(c,/.*/,true);var e=true,f=c.form_handlers;if(f)for(var g=0;g<f.length;g++){var j=f[g];eval("ret = "+j[1]+"(o.e);");if(!e)break}is.ie&&is.mac&&typeof UNI_disableButtons!="undefined"&&UNI_disableButtons(c,/.*/,false);if(e){if(c.__kt_onsubmit){e=c.__kt_onsubmit(a.e);return typeof e=="undefined"||e?true:false}return true}else{try{utility.dom.stopEvent(a.e)}catch(k){}!global_form_submit_lock&&typeof UNI_disableButtons!="undefined"&&UNI_disableButtons(c,/.*/,false);return false}}utility.dom.attachEvent(window,"unload",EventCache.flush);
