if(typeof Function.prototype.bind=='undefined'){Function.prototype.bind=function(obj){var __method=this;return function(){return __method.apply(obj,arguments);}};}if(typeof Array.prototype.push=='undefined'){Array.prototype.push=function(){for(var i=0;i<arguments.length;++i){this[this.length]=arguments[i];}return this.length;}}if(typeof Array.prototype.shift=='undefined'){Array.prototype.shift=function(){var ret=this[0];for(var i=0;i<this.length-1;++i){this[i]=this[i+1];}this.length--;return ret;}}var antElements=new Array();function antEl(el){return(typeof el=='string'?antFetchElement(el):el);}function antFetchElement(id){if(typeof id!='string')return null;if(antElements[id])return antElements[id];if(document.getElementById)antElements[id]=document.getElementById(id);else if(document.all)antElements[id]=document.all[id];else if(document.layers)antElements[id]=document.layers[id];return antElements[id]||null;}function antGetLocation(el){if(typeof el=='string')el=antFetchElement(el);var pos=antGetPosition(el);var dim=antGetDimension(el);return{x:pos.x,y:pos.y,w:dim.w,h:dim.h};}function antGetPosition(el){if(!el)return null;if(typeof el=='string')el=antFetchElement(el);var c={x:0,y:0};if(el.offsetParent){var t=(/Konqueror|Safari|KHTML/.test(navigator.userAgent)&&el.style&&el.style.position&&el.style.position=='absolute');while(el){c.x	+=el.offsetLeft||0;c.y	+=el.offsetTop||0;if(t&&el.offsetParent==document.body)break;el=el.offsetParent||null;}}else if(el.x&&el.y){c.x	+=el.x;c.y	+=el.y;}else if(el.pageX&&el.pageY){c.x	+=el.pageX;c.y	+=el.pageY;}return c;}function antSetPosition(el,x,y){if(!el)return null;if(typeof el=='string')el=antFetchElement(el);if(!el.style)return;var s=el.style;if(s.position!='absolute')s.position='absolute';if(s.display!='none'){s.left='0px';s.top='0px';var rel=antGetPosition(el);}else{var o={d:'none',v:s.visibility};s.visibility='hidden';s.display='inline';s.left='0px';s.top='0px';var rel=antGetPosition(el);s.visibility=o.v;s.display=o.d;}s.left=Math.floor(x-rel.x)+'px';s.top=Math.floor(y-rel.y)+'px';}function antGetDimension(el){if(!el)return null;if(typeof el=='string')el=antFetchElement(el);var s=el.style;if(!s)return{w:-1,h:-1};if(s.display!='none'){return{w:el.offsetWidth||-1,h:el.offsetHeight||-1};}else{var o={d:'none',v:s.visibility,p:s.position};s.visibility='hidden';s.position='absolute';s.display='inline';var r={w:el.offsetWidth||-1,h:el.offsetHeight||-1};s.display=o.d;s.visibility=o.v;s.position=o.p;return r;}}function antGetBodyViewport(){var body=(document.documentElement?document.documentElement:document.body);return{w:body.clientWidth||0,h:body.clientHeight||0};}function antGetEventTarget(event){if(typeof event.target=='undefined'){return window.event.srcElement;}else{event.target;}}function antGetEventPosition(event){var c={x:0,y:0};if(window.event){c.x=window.event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;c.y=window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop;}else{c.x=event.clientX+window.scrollX
c.y=event.clientY+window.scrollY}return c;}function antSetCss(el,class_name){if(!el)return;antEl(el).className=class_name;}function antGetCss(el){if(!el)return null;el=antEl(el);return el.getAttribute('className')||el.getAttribute('class')||'';}function antHide(el){if(!el)return;el=antEl(el);if(el.style&&el.style.display!='none')el.style.display='none';}function antShow(el){if(!el)return;el=antEl(el);if(el.style&&el.style.display!='')el.style.display='';}function antScrollTo(el){if(!el)return;el=antEl(el);var p={x:el.x?el.x:el.offsetLeft,y:el.y?el.y:el.offsetTop};window.scrollTo(p.x,p.y);}function antReplace(search,replace,str){if(!search||!str)return str;var pos=0;while((pos=str.indexOf(search))>0){str=str.substr(0,pos)+replace+str.substr(pos+search.length,str.length-pos)}return str;}function trim(str){return str.replace(/^\s+/,'').replace(/\s+$/,'');}function antVerifyEmailaddress(email){if(!email.match(/^[\w]{1}[\w\.\-_]*@[\w]{1}[\w\-_\.]*\.[\w]{2,6}$/i))return false;else return true;}var antActivePopup=null;function antOpenWindow(url,name,features){antCloseWindow();antActivePopup=window.open(url,name,features);antActivePopup.focus();}function antCloseWindow(){if(antActivePopup!=null){antActivePopup.close();antActivePopup=null;}}function antPopup(url,name,width,height){var popup=window.open(url,name,'width='+width+',height='+height+',dependent=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');popup.focus();}function checkSelectboxOverlap(callback,x,y,w,h){if(typeof callback!='function')return;var f,i,i_cnt,j,j_cnt,el,el_loc;var f=document.forms;var str='';for(i=0,i_cnt=f.length;i<i_cnt;i++){for(j=0,j_cnt=f[i].elements.length;j<j_cnt;j++){el=f[i].elements[j];if(el.type&&el.type.toLowerCase().indexOf('select')>=0){el_loc=antGetLocation(el);if(isWithinRange(x,w,el_loc.x,el_loc.w)&&isWithinRange(y,h,el_loc.y,el_loc.h)){callback(el);}}}}}function isWithinRange(r1_start,r1_length,r2_start,r2_length){return((r1_start<=r2_start&&r2_start<=r1_start+r1_length)||(r2_start<=r1_start&&r1_start<=r2_start+r2_length));}function antGetStyle(el,style){el=antEl(el);if(!el)return null;var val=el.style[style];if(!val){if(document.defaultView&&document.defaultView.getComputedStyle){var css=document.defaultView.getComputedStyle(el,null);if(css)val=css.getPropertyValue(style);}else if(el.currentStyle){try{val=el.currentStyle(style);}catch(e){val=null;}}}return(!val||val=='auto'?'':val);}function antSetStyle(el,style){el=antEl(el);if(!el)return false;for(var s in style){el.style[s]=style[s];}}function antGetOpacity(el){el=antEl(el);if(!el)return 100;var opacity;opacity=antGetStyle(el,'opacity');if(opacity!=''&&!isNaN(opacity))return parseInt(100*opacity);opacity=antGetStyle(el,'MozOpacity');if(opacity!=''&&!isNaN(opacity))return parseInt(100*opacity);opacity=antGetStyle(el,'KhtmlOpacity');if(opacity!=''&&!isNaN(opacity))return parseInt(100*opacity);var filter=antGetStyle(el,'filter')||'';if((opacity=filter.match(/alpha\(opacity=(.*)\)/))&&opacity[1]&&!isNaN(opacity[1]))return parseInt(opacity[1]);return 100;}function antSetOpacity(el,opacity){el=antEl(el);if(!el)return null;if(opacity==''||isNaN(opacity))opacity=100;else if(opacity<0.01)opacity=0;else if(opacity>99.99)opacity=100;antSetStyle(el,{opacity:opacity/100});antSetStyle(el,{MozOpacity:opacity/100});antSetStyle(el,{KhtmlOpacity:opacity/100});if(/MSIE/.test(navigator.userAgent)){antSetStyle(el,{filter:antGetStyle(el,'filter').replace(/alpha\([^\)]*\)/gi,'')+'alpha(opacity='+opacity+')'});}}function antDisableSelection(el){el=antEl(el);if(!el)return null;antSetStyle(el,{MozUserSelect:'none'});antSetStyle(el,{KhtmlUserSelect:'none'});el.unselectable='on';}function antEnableSelection(el){el=antEl(el);if(!el)return null;antSetStyle(el,{MozUserSelect:''});antSetStyle(el,{KhtmlUserSelect:''});el.unselectable='off';}function antSwapImgRestore(){var i,x,a=document.FIN_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}function antPreloadImages(){var d=document;if(d.images){if(!d.FIN_p)d.FIN_p=new Array();var i,j=d.FIN_p.length,a=antPreloadImages.arguments;for(i=0;i<a.length;i++)if(a[i].indexOf("#")!=0){d.FIN_p[j]=new Image;d.FIN_p[j++].src=a[i];}}}function antFindObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=antFindObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}function antSwapImage(){var i,j=0,x,a=antSwapImage.arguments;document.FIN_sr=new Array;for(i=0;i<(a.length-2);i+=3)if((x=antFindObj(a[i]))!=null){document.FIN_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}