
var brIE=(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent));function is(){var agent=navigator.userAgent.toLowerCase();this.major=parseInt(navigator.appVersion);this.minor=parseFloat(navigator.appVersion);this.ns=((agent.indexOf('mozilla')!=-1)&&((agent.indexOf('spoofer')==-1)&&(agent.indexOf('compatible')==-1)));this.ns2=(this.ns&&(this.major==3));this.ns3=(this.ns&&(this.major==3));this.ns4b=(this.ns&&(this.minor<4.04));this.ns4=(this.ns&&(this.major==4));this.ns6=(this.ns&&(this.major>=5));this.opera=(agent.indexOf("opera")!=-1);this.ie=((agent.indexOf("msie")!=-1)&&!this.opera);this.ie3=(this.ie&&(this.major==2));this.ie4=(this.ie&&(this.major==4));this.ie5=(this.ie&&(this.major>=5));this.moz=(agent.indexOf('Gecko')!=-1);this.win=(agent.indexOf("win")!=-1);this.mac=(agent.indexOf("mac")!=-1);this.unix=(agent.indexOf("x11")!=-1);}
var br=new is();function go(link,target,w,h){if(target=='_blank'){if(!w)w=700;if(!h)h=500;popup(link,w,h);}else{if(!target){target=document;}
target.location=link;}}
function popup(link,width,height){var left=(screen.width-width-20)/2;var top=(screen.height-height-30)/2;var date=new Date();var sName='win'+date.getHours()+date.getMinutes()+date.getSeconds();window.open(link,sName,'width='+width+',height='+height+',left='+left+',top='+top+',toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes');return false;}
var load={funcs:new Array(),register:function(f,pr){if(typeof(f)!='function')return;if(pr)load.funcs.unshift(f);else load.funcs.push(f);},execute:function(){for(var i=0;i<load.funcs.length;i++){load.funcs[i]();}}};Array.prototype.toString=function(){var s='['+"";for(var i in this){if(typeof(this[i])!='function')s+=i+': '+this[i]+' - ';}
s+=']';return s;}
var $objToStr=0,$objToStrPre='';Object.prototype.toString=function(){if(window.$objToStr>=4)
{return'{object}';}
window.$objToStr++;var s=window.$objToStrPre+'{'+"\n";window.$objToStrPre+='  ';for(var i in this){if(typeof(this[i])!='function')s+=window.$objToStrPre+i+': '+this[i]+'\n';}
window.$objToStrPre=window.$objToStrPre.substring(2);s+=window.$objToStrPre+'}';window.$objToStr--;return s;}
function findPos(obj){var curleft=curtop=0;if(obj.offsetParent){curleft=obj.offsetLeft;curtop=obj.offsetTop;while((obj=obj.offsetParent)&&(obj.tagName.toLowerCase()!='html')){curleft+=obj.offsetLeft;curtop+=obj.offsetTop;}}
return[curleft,curtop];}
function checkAll(prefix,check,f){f=f||'name';$('input[@type=checkbox][@'+f+'^='+prefix+']').each(function(){this.checked=check;});}