/*
** Copyright (c) 2005-2010 TreKnowledge Technologies Inc., All Rights Reserved.
** DO NOT EDIT THIS FILE - IT WAS AUTOMATICALLY GENERATED (build 2.2.13352)
*/
if(!window.Tk){var Tk={build:"2.2.13352",literals:{},uid:1};}if(!window.TkConfig){var TkConfig={debug:false};
}(function(){var c=navigator.userAgent.toLowerCase();var a={opera:/opera/.test(c),msie:/msie/.test(c)&&!/opera/.test(c),mozilla:/mozilla/.test(c)&&!/compatible|webkit/.test(c),webkit:/webkit/.test(c),version:(c.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],secure:(window.location.href.toLowerCase().indexOf("https")===0)};
a.msie6=(a.msie&&/msie 6/.test(c));Tk.useShims=a.msie6||(a.mozilla&&a.mac);Tk.defaultIframeSrc=(a.msie?"about:blank":"javascript:;");
if(a.msie6){try{document.execCommand("BackgroundImageCache",false,true);}catch(b){}}Tk.browser=a;})();
(function(){Tk.support={};var g=document,c=g.documentElement,d=g.createElement("script"),i=g.createElement("div"),h="script"+(new Date).getTime();
i.style.display="none";i.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
var f=i.getElementsByTagName("*"),b=i.getElementsByTagName("a")[0];if(!f||!f.length||!b){return;}Tk.support={leadingWhitespace:i.firstChild.nodeType==3,tbody:!i.getElementsByTagName("tbody").length,objectAll:!!i.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!i.getElementsByTagName("link").length,style:/red/.test(b.getAttribute("style")),hrefNormalized:b.getAttribute("href")==="/a",opacity:b.style.opacity==="0.5",cssFloat:!!b.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};
d.type="text/javascript";try{d.appendChild(g.createTextNode("window."+h+"=1;"));}catch(e){}c.insertBefore(d,c.firstChild);
if(window[h]){Tk.support.scriptEval=true;delete window[h];}c.removeChild(d);if(i.attachEvent&&i.fireEvent){i.attachEvent("onclick",function(){Tk.support.noCloneEvent=false;
i.detachEvent("onclick",arguments.callee);});i.cloneNode(true).fireEvent("onclick");}var i=g.createElement("div");
i.style.width=i.style.paddingLeft="1px";g.body.appendChild(i);Tk.support.boxModel=i.offsetWidth===2;g.body.removeChild(i).style.display="none";
})();window.extend=document.extend=function(a){for(var b in a){this[b]=a[b];}return this;};function TkStatic(a){a=a||{};
a.extend=document.extend;if(typeof a.initialize==="function"){a.initialize.apply(a);}return a;}var $array=function(a,b){a=Array.prototype.slice.call(a);
if(b){b.push.apply(b,a);return b;}return a;};try{Array.prototype.slice.call(document.documentElement.childNodes);
}catch(ex){$array=function(c,d){d=d||[];if(Object.prototype.toString.call(c)==="[object Array]"){d.push.apply(d,c);
}else{if(typeof c.length==="number"){for(var b=0,a=c.length;b<a;b++){d.push(c[b]);}}else{for(var b=0;
c[b]!==undefined;b++){d.push(c[b]);}}}return d;};}function $check(a){return !!(a||a===0);}function $clearTimer(a){clearTimeout(a);
clearInterval(a);return null;}function $defined(a){return a!==undefined;}function $doNothing(){}function $exec(b){if(b){var a=document.createElement("script");
a.setAttribute("language","javascript");if(Tk.support.scriptEval){a.appendChild(document.createTextNode(b));
}else{a.text=b;}var c=document.head;c.insertBefore(a,c.firstChild);c.removeChild(a);}return b;}function $extend(d,c){var h=($type(d)==="array"),b=(h?d:[d]);
for(var f=0,a=b.length;f<a;f++){var g=b[f];for(var e in (c||{})){g[e]=c[e];}}return(h?b:d);}function $L(a,b){a=""+a;
if(b===undefined){b=Tk.literals[a];if(b===undefined){b=Tk.literals[a]="{"+a+"}";}}else{Tk.literals[a]=b;
}return b;}function $lambda(a){return(typeof a==="function")?a:function(){return a;};}function $length(c){switch($type(c)){case"arguments":case"array":case"nodelist":return c.length;
case"object":var b=0;for(var a in c){if(c.hasOwnProperty(a)){b++;}}return b;default:return 0;}}function $merge(){var d={};
for(var c=0,a=arguments.length;c<a;c++){var g=arguments[c];if($type(g)!="object"){continue;}for(var b in g){var f=g[b],e=d[b];
d[b]=(e&&$type(f)==="object"&&$type(e)==="object")?$merge(e,f):$unlink(f);}}return d;}function $openWindow(d,f,c,b,a,h,g){c=Math.round(c?(c<=1?screen.width*c:c):screen.width);
b=Math.round(b?(b<=1?screen.height*b:b):screen.height);h=Math.round(h||(screen.width-c)/2);g=Math.round(g||(screen.height-b)/2);
f=f||"tkWindow";a=a||"";var e=window.open(d,f,a+",width="+c+",height="+b+",top="+g+",left="+h);if(e){e.focus();
}return e;}function $pick(){for(var b=0,a=arguments.length;b<a;b++){if(arguments[b]!==undefined){return arguments[b];
}}return null;}function $setConfigDefaults(a){for(var b in a){if(TkConfig[b]===undefined){TkConfig[b]=a[b];
}}}$setConfigDefaults({imagePath:"img/",clearPixelImage:"img/clear_pixel.gif"});function $splat(b){var a=$type(b);
return a?(a==="array"||a==="arguments"?b:[b]):[];}var $time=Date.now||function(){return +new Date;};function $toQueryString(c){var a=[];
for(var b in c){a.push(b+"="+encodeURIComponent(c[b]));}return a.join("&");}function $try(){for(var c=0,a=arguments.length;
c<a;c++){try{return arguments[c]();}catch(b){}}return null;}function $tryOrNotify(b){try{return b();}catch(a){if(window.TkErrorLogger){TkErrorLogger.send(a);
}else{throw a;}}return null;}function $type(a){if(a===undefined||a===null){return false;}if(a._type_){return(a._type_==="number"&&!isFinite(a))?false:a._type_;
}if(a.nodeName){switch(a.nodeType){case 1:return"element";case 3:return/\S/.test(a.nodeValue)?"textnode":"whitespace";
}}else{if(typeof a.length==="number"){if(a.callee){return"arguments";}else{if(a.item){return"nodelist";
}}}}return typeof a;}function $uid(a){if(!a){return Tk.uid++;}if(!a._uid_){a._uid_=Tk.uid++;}return a._uid_;
}function $unlink(e){var b=null;switch($type(e)){case"object":b={};for(var d in e){b[d]=$unlink(e[d]);
}break;case"array":b=[];for(var c=0,a=e.length;c<a;c++){b[c]=$unlink(e[c]);}break;default:return e;}return b;
}(function(){var c=function(d){return function(e){return this.prototype[d].apply(e,Array.prototype.slice.call(arguments,1));
};};for(var b=0,a=arguments.length;b<a;b++){arguments[b].extend=function(d){for(var e in d){if(!this.prototype[e]){this.prototype[e]=d[e];
}if(!this[e]){this[e]=c(e);}}};}})(Array,Date,Function,Number,String);(function(a){for(var b in a){var c=a[b];
c._type_="native";c.prototype._type_=b.toLowerCase();}})({Array:Array,Boolean:Boolean,Date:Date,Function:Function,Number:Number,RegExp:RegExp,String:String});
$uid(window);window.extend({_type_:"window",getDocument:function(){return this.document;},getWindow:function(){return this;
}});$uid(document);document.extend({_type_:"document",head:document.getElementsByTagName("head")[0],html:document.getElementsByTagName("html")[0],getDocument:function(){return this;
},getWindow:function(){return this.defaultView||this.parentWindow;}});if(window.attachEvent){window.attachEvent("onunload",function(){window.detachEvent("onunload",arguments.callee);
document.head=document.html=null;if(window.CollectGarbage){window.CollectGarbage();}});}Array.extend({contains:function(b,a){return this.indexOf(b,a||0)>-1;
},copy:function(){return[].concat(this);},each:function(c,b){for(var d=0,a=this.length;d<a;d++){c.call(b,this[d],d,this);
}},empty:function(){this.length=0;return this;},extend:function(b){for(var c=0,a=b.length;c<a;c++){this.push(b[c]);
}return this;},filter:function(c,b){var e=[];for(var d=0,a=this.length;d<a;d++){var f=this[d];if(c.call(b,f,d,this)){e.push(f);
}}return e;},first:function(){return this[0];},indexOf:function(d,c){for(var b=(c<0?Math.max(0,a+c):c||0),a=this.length;
b<a;b++){if(this[b]===d){return b;}}return -1;},last:function(){return this[this.length-1];},remove:function(b){var a=0;
while(a<this.length){if(this[a]==b){this.splice(a,1);}else{a++;}}return this;},some:function(c,b){for(var d=0,a=this.length;
d<a;d++){if(c.call(b,this[d],d,this)){return true;}}return false;}});if(Array.prototype.forEach){Array.prototype.each=Array.prototype.forEach;
}Function.extend({bind:function(a,b){return this.closure({scope:a,arguments:b});},bindWithEvent:function(a,b){return this.closure({scope:a,arguments:b,event:true});
},closure:function(b){var a=this;b=b||{};if(b.arguments!==undefined){b.arguments=$splat(b.arguments);
}b.scope=b.scope||null;return function(d){var c=b.arguments;if(c===undefined){c=$array(arguments);c=b.event?c.slice(1):c;
}if(b.event){c=[d||window.event].extend(c);}var e=function(){return a.apply(b.scope,c);};if(b.delay){return setTimeout(e,b.delay);
}if(b.interval){return setInterval(e,b.interval);}return e();};},delay:function(a,b,c){return this.closure({scope:b,arguments:c,delay:a})();
},periodic:function(b,a,c){return this.closure({scope:a,arguments:c,interval:b})();},run:function(b,a){return this.closure({scope:a,arguments:b});
}});Number.extend({format:function(f,m,l,e,i){f=(f==undefined?2:f);m=m||"";l=l||".";e=e||"-";i=i||"";
var k,j,h,g;k=(this*Math.pow(10,f)).round();j=""+Math.abs(k);j="000000".substring(0,1+f-j.length)+j;h=j.split("");
g=h.length-f;h.splice(g,0,l);while(g>3){g-=3;h.splice(g,0,m);}return k<0?e+h.join("")+i:h.join("");},limit:function(a,b){return Math.min(b,Math.max(a,this));
},pad:function(b,a){return(""+this).pad(b,a);},round:function(a){a=Math.pow(10,a||0);return Math.round(this*a)/a;
},times:function(c,e,b){var a=this+(e||0);for(var d=(e||0);d<a;d++){c.call(b,d);}},toFloat:function(){return parseFloat(this);
},toInt:function(){return parseInt(this,10);}});String.extend({camelize:function(){return this.replace(/\-([a-z])/g,function(a,b){return b.toUpperCase();
});},capitalize:function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase();},clean:function(){return this.replace(/\s+/g," ").trim();
},contains:function(b,a){return a?(a+this+a).indexOf(a+b+a)>-1:this.indexOf(b)>-1;},escapeRegExp:function(){return this.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1");
},hyphenate:function(){return this.replace(/[A-Z]/g,function(a){return("-"+a.charAt(0).toLowerCase());
});},merge:function(){var d=$type(arguments[0])==="array"?arguments[0]:arguments;var b=this;for(var e=0,c=d.length;
e<c;e++){b=b.replace(new RegExp("%"+e,"g"),d[e]);}return b;},pad:function(c,b){var a=this;c=c>1?c:2;b=b!==undefined?b:"0";
while(a.length<c){a=b+a;}return a;},stripScripts:function(b){var a="";var c=this.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi,function(){a+=arguments[1]+"\n";
return"";});if(b&&a){$exec(a);}return c;},stripTags:function(){return this.replace(/<\/?[^>]+>/gi,"");
},test:function(b,a){return this.match(typeof b==="string"?new RegExp(b,a):b);},toFloat:function(){return parseFloat(this);
},toInt:function(a){return parseInt(this,a||10);},trim:function(){return this.replace(/^\s*|\s*$/g,"");
}});Array.extend({hex2Rgb:function(d){if(this.length!=3){return false;}var a=[];for(var b=0;b<3;b++){var c=this[b];
a.push(parseInt((this[b].length===1?c+c:c),16));}return d?a:"rgb("+a.join(",")+")";},rgb2Hex:function(c){if(this.length<3){return false;
}if(this.length===4&&this[3]==="0"){return"transparent";}var b=[];for(var a=0;a<3;a++){b.push(this[a].toHex());
}return c?b:"#"+b.join("");}});Number.extend({toHex:function(){var b=Math.round(this);if(b<0){return"00";
}if(b>255){return"FF";}var a=(b-0).toString(16).toUpperCase();return a.pad();}});String.extend({hex2Rgb:function(b){var a=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);
return a?a.slice(1).hex2Rgb(b):false;},rgb2Hex:function(b){var a=this.match(/\d{1,3}/g);return a?a.rgb2Hex(b):false;
},toHex:function(){var a=this.toInt();return a!="NaN"?a.toHex():a;}});function $hexColor(c){if(typeof c==="string"){if(c===""||c==="transparent"){return"transparent";
}if(Tk.HEX_REGX.exec(c)){if(c.length===7){return c;}var e=c.charAt(1),d=c.charAt(2),a=c.charAt(3);return"#"+e+e+d+d+a+a;
}if(Tk.RGB_REGX.exec(c)){return c.rgb2Hex();}}return null;}Tk.HEX_REGX=/^\#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
Tk.RGB_REGX=/^rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i;Date.DAY_NAMES=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
Date.SHORT_DAY_NAMES=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];Date.MONTH_NAMES=["January","February","March","April","May","June","July","August","September","October","November","December"];
Date.SHORT_MONTH_NAMES=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Date.MONTH_LENGTHS=[31,28,31,30,31,30,31,31,30,31,30,31];
Date.MS_IN_DAY=86400000;Date.ISO_DATE_REGX=/^(\d{4})-?(\d{2})-?(\d{2})/;Date.TIMEZONE_REGX=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,Date.TIMEZONE_CLIP_REGX=/[^-+\dA-Z]/g,Date.ISO_DATE="%Y-%0M-%0D";
Date.ISO_TIME="%0H:%0I:%0S";Date.ISO_DATE_TIME=Date.ISO_DATE+"T"+Date.ISO_TIME;Date.DATE_TIME_ZONE=Date.ISO_DATE+" "+Date.ISO_TIME+" %o";
Date.extend({add:function(a,e){var c=this.copy();if(e!==0){switch(a){case"y":c.setFullYear(this.getFullYear()+e);
break;case"mo":var d=c.getMonth()+e,b=0;while(d<0){d+=12;b-=1;}while(d>11){d-=12;b+=1;}c.setMonth(d);
if(b!==0){c.setFullYear(this.getFullYear()+b);}break;case"d":c.setDate(this.getDate()+e);break;case"h":c.setHours(this.getHours()+e);
break;case"mi":c.setMinutes(this.getMinutes()+e);break;case"s":c.setSeconds(this.getSeconds()+e);break;
case"ms":c.setMilliseconds(this.getMilliseconds()+e);break;}}return c;},addDays:function(a){return this.add("d",$type(a)==="number"?a:1);
},addMonths:function(a){return this.add("mo",$type(a)==="number"?a:1);},addYears:function(a){return this.add("y",$type(a)==="number"?a:1);
},clearTime:function(){this.setHours(0,0,0,0);return this;},copy:function(){return new Date(this.getTime());
},compareTo:function(c,d){var b=this,a=c;if(d){b=b.copy();a=a.copy();switch(d){case"d":case 1:b.setHours(0,0,0,0);
a.setHours(0,0,0,0);break;case"t":case 2:b.setFullYear(2000,1,1);a.setFullYear(2000,1,1);break;}}return b>a?1:(b<a?-1:0);
},eq:function(a,b){return this.compareTo(a,b)==0;},ge:function(a,b){return this.compareTo(a,b)>=0;},gt:function(a,b){return this.compareTo(a,b)>0;
},le:function(a,b){return this.compareTo(a,b)<=0;},lt:function(a,b){return this.compareTo(a,b)<0;},format:function(g){var p=""+this.getFullYear(),o=this.getMonth(),c=this.getDate(),n=this.getDay(),h=this.getHours(),f=this.getMinutes(),a=this.getSeconds(),m=this.getTimezoneOffset(),r=g.split("%"),b=g;
for(var j=0,e=r.length;j<e;j++){var q=null,k=null,d=r[j].substr(0,2);switch(d){case"0D":q=c.pad();break;
case"0H":q=h.pad();break;case"0h":q=(h>12||h==0?Math.abs(h-12):h).pad();break;case"0I":q=f.pad();break;
case"0M":q=(o+1).pad();break;case"0S":q=a.pad();break;case"0Y":q=p.substring(2);break;case"M3":q=Date.SHORT_MONTH_NAMES[o].capitalize();
break;case"m3":q=Date.SHORT_MONTH_NAMES[o].toLowerCase();break;case"MM":q=Date.MONTH_NAMES[o].capitalize();
break;case"mm":q=Date.MONTH_NAMES[o].toLowerCase();break;case"W3":q=Date.SHORT_DAY_NAMES[n].capitalize();
break;case"w3":q=Date.SHORT_DAY_NAMES[n].toLowerCase();break;case"WW":q=Date.DAY_NAMES[n].capitalize();
break;case"ww":q=Date.DAY_NAMES[n].toLowerCase();break;default:k=r[j].substr(0,1);switch(k){case"A":q=(h<12?"AM":"PM");
break;case"a":q=(h<12?"am":"pm");break;case"D":q=c;break;case"H":q=h;break;case"h":q=(h>12||h==0)?Math.abs(h-12):h;
break;case"I":q=f;break;case"M":q=o+1;break;case"o":q=(m>0?"-":"+")+(Math.floor(Math.abs(m)/60)*100+Math.abs(m)%60).pad(4);
break;case"S":q=a;break;case"W":q=n;break;case"Y":q=p;break;case"Z":q=(this.toString().match(Date.TIMEZONE_REGX)||[""]).pop().replace(Date.TIMEZONE_CLIP_REGX,"");
break;}}if(q!==null){b=b.replace(new RegExp("%"+(k||d)),q);}}return b;},getMonthEnd:function(){var a=this.getMonth(),b=Date.MONTH_LENGTHS[a];
if(a==1&&this.isLeapYear()){b=29;}return new Date(this.getFullYear(),a,b);},getMonthStart:function(){return new Date(this.getFullYear(),this.getMonth(),1);
},isLeapYear:function(){var a=this.getFullYear();return a%400==0||(a%4==0&&a%100);}});String.extend({toDate:function(){var e=/^(\d{4})([-\/])(\d{2})(\2)(\d{2})/.exec(this);
if(e!==null){var b=parseInt(e[1],10);var c=parseInt(e[3],10);var f=parseInt(e[5],10);if(!isNaN(b)&&!isNaN(c)&&!isNaN(f)&&c>=1&&c<=12&&f>=1&&f<=31){var a=new Date(b,c-1,f);
if(a.getFullYear()==b&&a.getMonth()==c-1&&a.getDate()==f){return a;}}}return null;}});Number.CURRENCY_SYMBOLS={CAD:"$",EUR:"&euro;",GBP:"&pound;",JPY:"&yen;",USD:"$"};
Number.extend({formatMoney:function(a,b){var d="",c=Number.CURRENCY_SYMBOLS[a];if(!b){switch(a){case"CAD":d="CA&nbsp;";
break;case"USD":d="US&nbsp;";break;}}return d+(c||a+"&nbsp;")+this.format(2,",",".");}});
