function fValConfig(){
this.code="alt";
this.emsg="emsg";
this.pattern="pattern";
this.errorClass="errHilite";
this.useSingleClassNames=false;
this.clearEvent="change";
this.eventOverride=false;
this.confirmMsg=fvalidate.i18n.config.confirmMsg;
this.confirmAbortMsg=fvalidate.i18n.config.confirmAbortMsg;
this.submitButton=["Submit","Submit2"];
this.resetButton="Reset";
this.ccType="Credit_Card_Type";
this.ccTypeObj="form1.Credit_Card_Type";
this.boxError="errors";
this.boxErrorPrefix="fv_error_";
}
if(typeof fvalidate=="undefined"){
var fvalidate=new Object();
}
fvalidate.addEvent=function(_1,_2,fn,_4){
if(typeof _1.attachEvent!="undefined"){
_1.attachEvent("on"+_2,fn);
}else{
if(typeof _1.attachEventListener!="undefined"){
_1.addEventListener(_2,fn,Boolean(_4));
}
}
};
fvalidate.addEvents=function(_5,_6,fn,_8){
var i=0,_a;
while(_a=_6[i++]){
this.addEvent(_5,_a,fn,Boolean(_8));
}
};
function validateForm(f,_c,_d,_e,_f,_10){
_c=Boolean(_c);
_d=Boolean(_d);
_e=Boolean(_e);
_f=Boolean(_f);
_10=(typeof _10!="undefined")?parseInt(_10,10):0;
var _11,_12,_13;
if(typeof f.fv=="undefined"){
f.fv=new fValidate(f,_10,_f);
}else{
f.fv._reset();
f.fv.errorMode=_10;
}
var _14,i=0,_16=f.fv.config.code;
while(_14=f.elements[i++]){
if(_14.nodeName=="FIELDSET"){
continue;
}
_12=(_14[_16])?_14[_16]:_14.getAttribute(_16);
if(!(typeof _12=="undefined"||_12==null||_12=="")){
_11=_12.split("|");
_13=_11[0];
_14.validated=true;
if(typeof f.fv[_13]=="undefined"){
f.fv.devError([_13,_14.name],"notFound");
return false;
}
switch(_11.last()){
case "bok":
_11=_11.reduce(1,1);
_14.bok=true;
break;
case "if":
_11=_11.reduce(1,1);
_14._if_=true;
break;
case "then":
_11=_11.reduce(1,1);
_14._then_=true;
break;
default:
_11=_11.reduce(1,0);
}
if(/radio|checkbox/.test(_14.type)){
_14.group=f.elements[_14.name];
}
if(typeof _14.fName=="undefined"){
if(typeof _14.group!="undefined"){
for(var j=0;j<_14.group.length;j++){
if(f.fv.config.clearEvent!=null){
addEvent(_14.group.item(j),f.fv.config.clearEvent,f.fv,"revertError",false);
}
}
}else{
addEvent(_14,f.fv.config.clearEvent,f.fv,"revertError",false);
}
}
_14.fName=_14.name.format();
f.fv.elem=_14;
f.fv.type=_13;
var _18=new Function("obj","method","obj[method]( "+_11.toArgString()+" );");
_18(f.fv,_13);
if(_14.validated==false&&_f==false){
return false;
}
if(_14.validated==true){
f.fv.revertError();
}
}
}
if(_f){
f.fv.showGroupError();
}
if(f.fv.errors.length>0){
return false;
}
if(_c&&!confirm(f.fv.config.confirmMsg)){
if(f.fv.config.confirmAbortMsg!=""){
alert(f.fv.config.confirmAbortMsg);
}
return false;
}
if(_d){
if(typeof f.fv.config.submitButton=="object"){
var sb,j=0;
while(sb=f.fv.config.submitButton[j++]){
if(f.fv.elementExists(sb)){
f.elements[sb].disabled=true;
}
}
}else{
if(f.fv.elementExists(f.fv.config.submitButton)){
f.elements[f.fv.config.submitButton].disabled=true;
}
}
}
if(_e&&f.fv.elementExists(f.fv.config.resetButton)){
f.elements[f.fv.config.resetButton].disabled=true;
}
return true;
function addEvent(_1a,evt,obj,_1d,_1e){
var _1f=_1a;
if(typeof _1a.attachEvent!="undefined"){
_1a.attachEvent("on"+evt,function(){
obj[_1d](_1f);
});
}else{
if(typeof _1a.addEventListener!="undefined"){
_1a.addEventListener(evt,function(){
obj[_1d](_1f);
},_1e);
}else{
if(f.fv.config.eventOverride){
eleme["on"+evt]=function(){
obj[_1d](_1f);
};
}
}
}
}
}
function fValidate(f,_21,_22){
var _23=this;
this.form=f;
this.errorMode=_21;
this.groupError=_22;
this.errors=new Array();
this.validated=true;
this.config=new fValConfig();
this.i18n=fvalidate.i18n;
f.onreset=function(){
var _24,i=0;
while(_24=this.elements[i++]){
_23.revertError(_24);
}
};
addLabelProperties();
function addLabelProperties(){
if(typeof f.getElementsByTagName=="undefined"){
return;
}
var _26=f.getElementsByTagName("label");
var _27,i=j=0;
var _29;
while(_27=_26[i++]){
if(typeof _27.htmlFor=="undefined"){
return;
}
_29=f.elements[_27.htmlFor];
if(typeof _29=="undefined"){
_23.devError([_27.htmlFor],"noLabel");
}else{
if(typeof _29.label!="undefined"){
continue;
}else{
if(typeof _29.length!="undefined"&&_29.length>1&&_29.nodeName!="SELECT"){
for(j=0;j<_29.length;j++){
_29.item(j).label=_27;
}
}
}
}
_29.label=_27;
}
}
}
fValidate.prototype._reset=function(){
this.errors=new Array();
this.showErrors=new Array();
};
fValidate.prototype.elementExists=function(_2a){
return Boolean(typeof this.form.elements[_2a]!="undefined");
};
fValidate.prototype.throwError=function(_2b,_2c){
var _2d=this.elem;
if(typeof _2d.name=="undefined"){
_2d=_2d[0];
}
if(_2d.bok&&this.isBlank()){
_2d.validated=true;
return;
}
if(_2d.cv){
return;
}
_2d.validated=false;
_2c=this.setArg(_2c,0);
_2b=this.setArg(_2b,[]);
emsgElem=(typeof this.elem.getAttribute=="undefined")?this.elem[0]:this.elem;
if(emsgElem.getAttribute(this.config.emsg)){
var _2e=emsgElem.getAttribute(this.config.emsg);
}
var _2e=this.translateMessage(_2b,this.i18n.errors[this.type][_2c]);
if(this.groupError){
this.errors.push({"elem":_2d,"msg":_2e});
}else{
this.showError(_2e,false,emsgElem);
var _2f=(typeof _2d.fields!="undefined")?_2d.fields[0]:_2d;
this.selectFocus(_2f);
}
};
fValidate.prototype.showError=function(_30,_31,_32){
var _33=this,_32=this.setArg(_32,this.elem),_34=Boolean(_32.type=="hidden"),_35=(_34)?null:_32.label||null,_30=(_32.getAttribute(this.config.emsg))?_32.getAttribute(this.config.emsg).replace(/\\n/g,"\n"):_30,_36=this.config.errorClass,_37=this.config.useSingleClassNames;
if(typeof this.showErrors=="undefined"){
this.showErrors=new Array();
}
switch(this.errorMode){
case 0:
alertError();
break;
case 1:
inputError();
break;
case 2:
labelError();
break;
case 3:
appendError();
break;
case 4:
boxError();
break;
case 5:
inputError();
labelError();
break;
case 6:
inputError();
appendError();
break;
case 7:
inputError();
boxError();
break;
case 8:
inputError();
alertError();
break;
case 9:
labelError();
appendError();
break;
case 10:
labelError();
boxError();
break;
case 11:
labelError();
alertError();
break;
case 12:
appendError();
boxError();
break;
case 13:
appendError();
alertError();
break;
case 14:
boxError();
alertError();
break;
case 15:
inputError();
labelError();
appendError();
break;
case 16:
inputError();
labelError();
boxError();
break;
case 17:
inputError();
labelError();
alertError();
break;
case 18:
inputError();
appendError();
boxError();
break;
case 19:
inputError();
appendError();
alertError();
break;
case 20:
inputError();
boxError();
alertError();
break;
case 21:
labelError();
appendError();
boxError();
break;
case 22:
labelError();
appendError();
alertError();
break;
case 23:
appendError();
boxError();
alertError();
break;
case 24:
inputError();
labelError();
appendError();
boxError();
break;
case 25:
inputError();
labelError();
appendError();
alertError();
break;
case 26:
inputError();
appendError();
boxError();
alertError();
break;
case 27:
labelError();
appendError();
boxError();
alertError();
break;
case 28:
inputError();
labelError();
appendError();
boxError();
alertError();
break;
}
function alertError(){
if(_33.groupError){
_33.showErrors.push(_30);
}else{
alert(_30);
}
if(_31){
alert(_33.i18n.groupAlert+_33.showErrors.join("\n\n- "));
}
}
function inputError(){
if((typeof _32.length!="undefined"&&_32.length>1&&_32.nodeName!="SELECT")||_34){
var _38,i=0;
while(_38=(_34)?_32.fields[i++]:_32.item(i++)){
if(_38.className!=""&&_37){
_38.revertClass=_38.className;
_38.className=_36;
}else{
_33.addCSSClass(_38,_36);
}
}
}else{
if(_37){
_32.revertClass=_32.className;
_32.className=_36;
}else{
_33.addCSSClass(_32,_36);
}
}
}
function labelError(){
if(_35==null){
return;
}
if(_33.config.useSingleClassNames){
_35.className=_36;
}else{
_33.addCSSClass(_35,_36);
}
}
function appendError(){
if(_35==null||typeof _35.innerHTML=="undefined"){
return;
}
if(typeof _35.original=="undefined"){
_35.original=_35.innerHTML;
}
_35.innerHTML=_35.original+" - "+_30.toHTML();
}
function boxError(){
if(typeof _33.boxError=="undefined"){
_33.boxError=document.getElementById(_33.config.boxError);
}
if(_33.boxError==null){
_33.devError([_33.config.boxError],"noBox");
return;
}
if(typeof _33.elem.name=="undefined"||_33.elem.name==""){
_33.devError([_33.elem[_33.config.code]],"missingName");
return;
}
var _3a=_33.config.boxErrorPrefix+_33.elem.name,_3b;
if(_3b=document.getElementById(_3a)){
_3b.firstChild.nodeValue=_30.toHTML();
}else{
_3b=document.createHTMLElement("li",{id:_3a,"innerHTML":_30.toHTML(),title:_33.i18n.boxToolTip});
_33.boxError.appendChild(_3b);
_3b.onclick=function(){
var _3c=_33.form.elements[this.id.replace(_33.config.boxErrorPrefix,"")];
if(typeof _3c.fields!="undefined"){
_3c=_3c.fields[0];
}
if(typeof _3c.select!="undefined"){
_3c.select();
}
if(typeof _3c.focus!="undefined"){
_3c.focus();
}
};
}
_33.boxError.style.display="block";
}
};
fValidate.prototype.removeCSSClass=function(_3d,_3e){
_3d.className=_3d.className.replace(_3e,"").trim();
};
fValidate.prototype.addCSSClass=function(_3f,_40){
this.removeCSSClass(_3f,_40);
_3f.className=(_3f.className+" "+_40).trim();
};
fValidate.prototype.showGroupError=function(){
for(var _41,_42,i=0;(_41=this.errors[i]);i++){
if(i==0){
_42=_41.elem;
}
this.elem=_41.elem;
this.showError(_41.msg,Boolean(i==(this.errors.length-1)));
}
var _44=(typeof _42.fields!="undefined")?_42.fields[0]:_42;
this.selectFocus(_44);
};
fValidate.prototype.revertError=function(_45){
_45=this.setArg(_45,this.elem);
var _46=Boolean(_45.type=="hidden"),_47=this.config.errorClass,i=0,_49,_4a;
if((typeof _45.length!="undefined"&&_45.length>1&&_45.nodeName!="SELECT")||_46){
if(_46&&typeof _45.fields!="undefined"){
while(_4a=(_46)?_45.fields[i++]:_45.item(i++)){
if(typeof _4a.revertClass!="undefined"){
_4a.className=_4a.revertClass;
}
}
}
}else{
if(this.config.useSingleClassNames){
if(typeof subElement.revertClass!="undefined"){
_45.className=_45.revertClass;
}
}else{
this.removeCSSClass(_45,_47);
}
}
if(typeof _45.label!="undefined"){
if(this.config.useSingleClassNames){
_45.label.className="";
}else{
this.removeCSSClass(_45.label,_47);
}
_45.label.innerHTML=(_45.label.original||_45.label.innerHTML);
}
if(typeof this.boxError!="undefined"){
if(typeof this.boxError.normalize!="undefined"){
this.boxError.normalize();
}
if(_49=document.getElementById(this.config.boxErrorPrefix+_45.name)){
this.boxError.removeChild(_49);
}
if(this.boxError.childNodes.length==0){
this.boxError.style.display="none";
}
}
};
fValidate.prototype.selectFocus=function(_4b){
if(typeof _4b.select!="undefined"){
_4b.select();
}
if(typeof _4b.focus!="undefined"){
_4b.focus();
}
};
fValidate.prototype.typeMismatch=function(){
var _4c={"text":"text|password|textarea","ta":"textarea","hidden":"hidden","s1":"select-one","sm":"select-multiple","select":"select-one|select-multiple","rg":"radio","radio":"radio","cb":"checkbox","file":"file"};
var _4d=false,_4e=new Array(),_4f=key=type=regex="";
for(var i=0;i<arguments.length;i++){
type=_4c[arguments[i]];
regex=new RegExp(type);
_4f+=(regex.test(this.elem.type))?"1":"0";
key+="0";
_4e.push(type);
}
if(key^_4f==0){
this.devError([this.elem.fName,this.elem.type,_4e.join("|").replace(/\|/g,this.i18n.or)],"mismatch");
this.elem.validated=false;
return true;
}
return false;
};
fValidate.prototype.getValue=function(_51){
switch(_51.type){
case "text":
case "password":
case "textarea":
case "hidden":
case "file":
return _51.value;
case "radio":
case "select-single":
if(typeof _51.length=="undefined"){
return _51.value;
}else{
for(var i=0;i<_51.length;i++){
choice=(_51.type=="radio")?"checked":"selected";
if(_51[i][choice]){
return _51[i].value;
}
}
}
case "select-multiple":
case "checkbox":
if(typeof _51.length=="undefined"){
return _51.value;
}else{
var _53=new Array();
for(var i=0;i<_51.length;i++){
choice=(_51.type=="checkbox")?"checked":"selected";
if(_51[i][choice]){
_53.push(_51[i].value);
}
}
return _53;
}
default:
return null;
}
};
fValidate.prototype.setArg=function(arg,def){
return (typeof arg=="undefined"||arg==""||arg==null)?def:arg;
};
fValidate.prototype.isBlank=function(el){
var _57=this.form.elements[el]||this.elem;
return Boolean(/^\s*$/.test(_57.value));
};
fValidate.prototype.translateMessage=function(_58,_59){
var msg="";
for(var i=0;i<_59.length;i++){
msg+=(typeof _59[i]=="number")?_58[_59[i]]:_59[i];
}
return msg;
};
fValidate.prototype.devError=function(_5c,_5d){
if(typeof _5c=="string"){
_5d=_5c;
_5c=[];
}
_5d=this.setArg(_5d,this.type);
var _5e=this.i18n.devErrors[_5d];
var a=[this.i18n.devErrors.lines[0],"----------------------------------------------------------------------------------------------",this.translateMessage(_5c,_5e),"----------------------------------------------------------------------------------------------",this.i18n.devErrors.lines[1]];
alert(a.join("\n"));
};
fValidate.prototype.paramError=function(_60,_61){
_61=this.setArg(_61,this.elem.name);
this.devError([_60,this.type,_61],"paramError");
};
document.createHTMLElement=function(_62,_63){
if(typeof document.createElement=="undefined"){
return;
}
var _64=document.createElement(_62);
if(typeof _63!="undefined"){
for(var i in _63){
switch(true){
case (i=="text"):
_64.appendChild(document.createTextNode(_63[i]));
break;
case (i=="class"):
_64.className=_63[i];
break;
default:
_64.setAttribute(i,"");
_64[i]=_63[i];
}
}
}
return _64;
};
Array.prototype.reduce=function(b,e){
var a=new Array();
var _69=0;
for(var i=b;i<this.length-e;i++){
a[_69++]=this[i];
}
return a;
};
Array.prototype.toArgString=function(){
var a=new Array();
for(var i=0;i<this.length;i++){
a.push("'"+this[i]+"'");
}
return a.toString();
};
if(typeof Array.push=="undefined"){
Array.prototype.push=function(){
var arg,i=0;
while(arg=arguments[i++]){
this[this.length]=arg;
}
return this.length;
};
}
Array.prototype.last=function(){
return this[this.length-1];
};
String.prototype.format=function(){
return this.replace(/\_/g," ").replace(/\[|\]/g,"");
};
String.prototype.toHTML=function(){
return this.replace(/\n/g,"<br />").replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;");
};
String.prototype.trim=function(){
return this.replace(/^\s+|\s+$/,"");
};
String.prototype.toPattern=function(){
return this.replace(/([\.\*\+\{\}\(\)\<\>\^\$\\])/g,"\\$1");
};
fValidate.prototype.select=function(){
if(this.typeMismatch("s1")){
return;
}
if(this.elem.selectedIndex==0){
this.throwError([this.elem.fName]);
}
};
fValidate.prototype.selectm=function(_6f,_70){
if(this.typeMismatch("sm")){
return;
}
if(typeof _6f=="undefined"){
this.paramError("minS");
}
if(_70==999||_70=="*"||typeof _70=="undefined"||_70>this.elem.length){
_70=this.elem.length;
}
var _71=0;
for(var opt,i=0;(opt=this.elem.options[i]);i++){
if(opt.selected){
_71++;
}
}
if(_71<_6f||_71>_70){
this.throwError([_6f,_70,this.elem.fName,_71]);
}
};
fValidate.prototype.selecti=function(_74){
if(this.typeMismatch("s1")){
return;
}
if(typeof _74=="undefined"){
this.paramError("indexes");
return;
}
_74=_74.split(",");
var _75=true;
for(var i=0;i<_74.length;i++){
if(this.elem.options[_74[i]].selected){
_75=false;
break;
}
}
if(!_75){
this.throwError([this.elem.fName]);
}
};
fValidate.prototype.checkbox=function(_77,_78){
if(this.typeMismatch("cb")){
return;
}
if(typeof _77=="undefined"){
this.paramError("minC");
return;
}
if(this.elem==this.form.elements[this.elem.name]&&!this.elem.checked){
this.throwError([this.elem.fName]);
}else{
this.elem=this.form.elements[this.elem.name];
var len=this.elem.length;
var _7a=0;
if(_78==999||_78=="*"||typeof _78=="undefined"||_78>this.elem.length){
_78==len;
}
var i=len;
while(i-->0){
if(this.elem[i].checked){
_7a++;
}
}
if(_7a<_77||_7a>_78){
this.throwError([_77,_78,this.elem[0].fName,_7a]);
}
}
};
fValidate.prototype.radio=function(){
if(this.typeMismatch("rg")){
return;
}
if(this.elem==this.form.elements[this.elem.name]&&!this.elem.checked){
this.throwError([this.elem.fName]);
}else{
this.elem=this.form.elements[this.elem.name];
for(var i=0;i<this.elem.length;i++){
if(this.elem.item(i).checked){
return;
}
}
this.throwError([this.elem[0].fName]);
}
};
fValidate.prototype.file=function(_7d,_7e){
if(this.typeMismatch("file")){
return;
}
if(typeof _7d=="undefined"){
this.paramError("extensions");
return;
}
_7e=Boolean(_7e)?"":"i";
var _7f=new RegExp("^.+\\.("+_7d.replace(/,/g,"|")+")$",_7e);
if(!_7f.test(this.elem.value)){
this.throwError([_7d.replace(/,/g,"\n")]);
}
};
if(typeof fvalidate=="undefined"){
var fvalidate=new Object();
}
fvalidate.i18n={errors:{blank:[["Please enter ",0]],length:[[0," must be at least ",1," characters long"],[0," must be no more than ",1," characters long.\nThe current text is ",2," characters long."]],equalto:[[0," must be equal to ",1]],number:[["The number you entered for ",0," is not valid"]],numeric:[["Only numeric values are valid for the ",0],["A minimum of ",0," numeric values are required for the ",1]],alnum:[["The data you entered, \"",0,"\", does not match the requested format for ",1,"\nMinimum Length: ",2,"\nCase: ",3,"\nNumbers allowed: ",4,"\nSpaces allowed: ",5,"\nPunctuation characters allowed: ",6,"\n"]],decimal:[["The data you entered,",0," is not valid.  Please re-enter the ",1]],decimalr:[[0," is not a valid. Please re-enter."]],ip:[["Please enter a valid IP"],["The port number you specified, ",0,",  is out of range.\nIt must be between ",1," and ",2]],ssn:[["You need to enter a valid Social Security Number.\nYour SSN must be entered in 'XXX-XX-XXXX' format."]],money:[[0," does not match the required format of ",1]],cc:[["The ",0," you entered is not valid. Please check again and re-enter."]],ccDate:[["You credit card has expired! Please use a different card."]],zip:[["Please enter a valid 5 or 9 digit Zip code."]],phone:[["Please enter a valid phone number plus Area Code."],["Please enter a valid phone number - seven or ten digits."]],email:[["Please enter a valid email address"]],url:[[0," is not a valid domain"]],date:[["The data entered for ",0," is not a valid date\nPlease enter a date using the following format: ",1],["Date must be before ",0],["Date must be on or before ",0],["Date must be after ",0],["Date must be on or after ",0]],select:[["Please select a valid option for ",0]],selectm:[["Please select between ",0," and ",1," options for ",2,".\nYou currently have ",3," selected"]],selecti:[["Please select a valid option for ",0]],checkbox:[["Please check ",0," before continuing"],["Please select between ",0," and ",1," options for ",2,".\nYou currently have ",3," selected"]],radio:[["Please check ",0," before continuing"],["Please select an option for ",0]],comparison:[[0," must be ",1," ",2]],eitheror:[["One and only one of the following fields must be entered:\n\t-",0,"\n"]],atleast:[["At least ",0," of the following fields must be entered:\n\t-",1,"\n\nYou have only ",2," filled in.\n"]],allornone:[["All or none of the following fields must be entered and accurate:\n\t-",0,"\nYou have only ",1," accurate field entered.\n"]],file:[["The file must be one of the following types:\n",0,"\nNote: File extension may be case-sensitive."]],custom:[[0," is invalid."]],cazip:[["Please enter a valid postal code."]],ukpost:[["Please enter a valid postcode."]],germanpost:[["Please enter a valid postcode."]],swisspost:[["Please enter a valid postcode."]]},comparison:{gt:"greater than",lt:"less than",gte:"greater than or equal to",lte:"less than or equal to",eq:"equal to",neq:"not equal to"},devErrors:{number:["The lower-bound (",0,") is greater than the upper-bound (",1,") on this element: ",2],length:["The minimum length (",0,") is greater than the maxiumum legnth (",1,") on this element: ",2],cc:["Credit Card type (",0,") not found."],lines:["! WARNING ! -- fValidate developer-assist error\n","\nIf you are not the developer, please contact the website administrator regarding this error."],paramError:["You must include the '",0,"' parameter for the '",1,"' validator type on this field: ",2],notFound:["The validator '",0,"' was not found.\nRequested by: ",1],noLabel:["No element found for label: ",0],noBox:["An element with the requested id '",0,"' was not found for the 'boxError' config value."],missingName:["The hidden input calling the following logical validator must have a valid name\nattribute when used in conjunction with the 'box' error-type.\n\t",0],mismatch:["Validator/Element type mismatch.\n\nElement: ",0,"\nElement type: ",1,"\nType required by validator: ",2],noCCType:["You must include a SELECT item with Credit Card type choices!"]},config:{confirmMsg:"Your data is about to be sent.\nPlease click 'Ok' to proceed or 'Cancel' to abort.",confirmAbortMsg:"Submission cancelled.  Data has not been sent."},boxToolTip:"Click to target field",groupAlert:"The following errors occured:\n\n- ",or:" or "};
fValidate.prototype.blank=function(){
if(this.typeMismatch("text")){
return;
}
if(this.isBlank()){
this.throwError([this.elem.fName]);
}
};
fValidate.prototype.number=function(_80,lb,ub){
if(this.typeMismatch("text")){
return;
}
var num=(_80==0)?parseInt(this.elem.value,10):parseFloat(this.elem.value);
lb=this.setArg(lb,0);
ub=this.setArg(ub,Number.infinity);
if(lb>ub){
this.devError([lb,ub,this.elem.name]);
return;
}
var _84=Boolean(isNaN(num)||num!=this.elem.value);
if(!_84){
switch(true){
case (lb!=false&&ub!=false):
_84=!Boolean(lb<=num&&num<=ub);
break;
case (lb!=false):
_84=Boolean(num<lb);
break;
case (ub!=false):
_84=Boolean(num>ub);
break;
}
}
if(_84){
this.throwError([this.elem.fName]);
return;
}
this.elemPass=true;
};
fValidate.prototype.numeric=function(len){
if(this.typeMismatch("text")){
return;
}
len=this.setArg(len,"*");
var _86=new RegExp((len=="*")?"^\\d+$":"^\\d{"+parseInt(len,10)+"}\\d*$");
if(!_86.test(this.elem.value)){
if(len=="*"){
this.throwError([this.elem.fName]);
}else{
this.throwError([len,this.elem.fName],1);
}
}
};
fValidate.prototype.length=function(len,_88){
if(this.typeMismatch("text")){
return;
}
var _89=this.elem.value.length;
len=Math.abs(len);
_88=Math.abs(this.setArg(_88,Number.infinity));
if(len>_88){
this.devError([len,_88,this.elem.name]);
return;
}
if(len>parseInt(_89,10)){
this.throwError([this.elem.fName,len]);
}
if(_89>_88){
this.throwError([this.elem.fName,_88,_89],1);
}
};
fValidate.prototype.alnum=function(_8a,_8b,_8c,_8d,_8e){
if(this.typeMismatch("text")){
return;
}
_8b=this.setArg(_8b,"a");
_8c=(_8c=="true"||_8c=="1");
_8d=(_8d=="true"||_8d=="1");
var _8f="",_90=["None","Any","No","No","Any"];
if(_8a!="*"){
_8a=parseInt(_8a,10);
_90[0]=_8a;
}else{
_8a=0;
}
switch(_8b.toUpperCase()){
case "U":
_8f+="A-Z";
_90[1]="UPPER";
break;
case "L":
_8f+="a-z";
_90[1]="lower";
break;
case "C":
_8f+="A-Z][a-z";
_90[1]="Intial capital";
_8a--;
break;
default:
_8f+="a-zA-Z";
break;
}
if(_8c==true){
_8f+="0-9";
_90[2]="Yes";
}
if(_8d==true){
_8f+=" ";
_90[3]="Yes";
}
if(_8e=="any"){
_90[4]="Any";
}else{
if(_8e=="none"){
_90[4]="None";
}else{
_8e=_8e.replace(/pipe/g,"|");
_8f+=_8e;
_90[4]=_8e;
}
}
var _91=(_8a!="*")?"{"+_8a+",}":"+";
var _92=(_8e=="any")?new RegExp("^(["+_8f+"]|[^a-zA-Z0-9\\s])"+_91+"$"):new RegExp("^["+_8f+"]"+_91+"$");
if(!_92.test(this.elem.value)){
this.throwError([this.elem.value,this.elem.fName,_90[0],_90[1],_90[2],_90[3],_90[4]]);
}
};
fValidate.prototype.equalto=function(_93){
if(this.typeMismatch("text")){
return;
}
if(typeof _93=="undefined"){
this.paramError("oName");
}
var _94=this.form.elements[_93];
if(this.elem.value!=_94.value){
this.throwError([this.elem.fName,_94.fName]);
}
};
fValidate.prototype.ssn=function(){
if(this.typeMismatch("text")){
return;
}
if(!(/^\d{3}\-\d{2}\-\d{4}$/.test(this.elem.value))){
this.throwError();
}
};
fValidate.prototype.select=function(){
if(this.typeMismatch("s1")){
return;
}
if(this.elem.selectedIndex==0){
this.throwError([this.elem.fName]);
}
};
fValidate.prototype.selectm=function(_95,_96){
if(this.typeMismatch("sm")){
return;
}
if(typeof _95=="undefined"){
this.paramError("minS");
}
if(_96==999||_96=="*"||typeof _96=="undefined"||_96>this.elem.length){
_96=this.elem.length;
}
var _97=0;
for(var opt,i=0;(opt=this.elem.options[i]);i++){
if(opt.selected){
_97++;
}
}
if(_97<_95||_97>_96){
this.throwError([_95,_96,this.elem.fName,_97]);
}
};
fValidate.prototype.selecti=function(_9a){
if(this.typeMismatch("s1")){
return;
}
if(typeof _9a=="undefined"){
this.paramError("indexes");
return;
}
_9a=_9a.split(",");
var _9b=true;
for(var i=0;i<_9a.length;i++){
if(this.elem.options[_9a[i]].selected){
_9b=false;
break;
}
}
if(!_9b){
this.throwError([this.elem.fName]);
}
};
fValidate.prototype.cazip=function(){
var _9d=this.elem;
if(this.typeMismatch("text")){
return;
}
_9d.value=_9d.value.toUpperCase();
if(!(/^[A-Z][0-9][A-Z] [0-9][A-Z][0-9]$/.test(_9d.value))){
this.throwError();
}
};
fValidate.prototype.capost=fValidate.prototype.cazip;
fValidate.prototype.ukpost=function(){
var _9e=this.elem;
if(this.typeMismatch("text")){
return;
}
_9e.value=_9e.value.toUpperCase();
if(!(/^[A-Z]{1,2}\d[\dA-Z] ?\d[A-Z]{2}$/.test(_9e.value))){
this.throwError();
}
};
fValidate.prototype.germanpost=function(){
var _9f=this.elem;
if(this.typeMismatch("text")){
return;
}
_9f.value=_9f.value.toUpperCase();
if(!(/^(?:CH\-)\d{4}$/.test(_9f.value))){
this.throwError();
}
};
fValidate.prototype.swisspost=function(){
var _a0=this.elem;
if(this.typeMismatch("text")){
return;
}
_a0.value=_a0.value.toUpperCase();
if(!(/^(?:D\-)\d{5}$/.test(this.elem.value))){
this.throwError();
}
};
fValidate.prototype.email=function(_a1){
if(this.typeMismatch("text")){
return;
}
if(typeof _a1=="undefined"){
_a1=0;
}
var _a2=[/.+@.+\..+$/i,/^\w.+@\w.+\.[a-z]+$/i,/^\w[-_a-z~.]+@\w[-_a-z~.]+\.[a-z]{2}[a-z]*$/i,/^\w[\w\d]+(\.[\w\d]+)*@\w[\w\d]+(\.[\w\d]+)*\.[a-z]{2,7}$/i];
if(!_a2[_a1].test(this.elem.value)){
this.throwError();
}
};
fValidate.prototype.url=function(_a3,_a4,_a5){
if(this.typeMismatch("text")){
return;
}
this.setArg(_a3,"http");
var _a6="^(?:("+_a3.replace(/\,/g,"|")+")\\:\\/\\/)";
var end=(Boolean(_a5)==true)?"(\\?.*)?$":"$";
if(Boolean(_a4)==true){
_a6+="?";
}
var _a8=new RegExp(_a6+"([\\w\\d-]+\\.?)+"+end);
if(!_a8.test(this.elem.value)){
this.throwError([this.elem.fName]);
}
};
fValidate.prototype.ip=function(_a9,_aa){
if(this.typeMismatch("text")){
return;
}
_a9=this.setArg(_a9,0);
_aa=this.setArg(_aa,99999);
if(!(/^\d{1,3}(\.\d{1,3}){3}(:\d+)?$/.test(this.elem.value))){
this.throwError();
}else{
var _ab,i=0,_ad=this.elem.value.split(/[.:]/);
while(_ab=_ad[i++]){
if(i==5){
if(_ab<_a9||_ab>_aa){
this.throwError([_ab,_a9,_aa],1);
}
}else{
if(_ab<0||_ab>255){
this.throwError();
}
}
}
}
};
fValidate.prototype.decimal=function(_ae,_af){
if(this.typeMismatch("text")){
return;
}
var _b0="",_b1=this.elem;
if(_ae!="*"){
_ae=parseInt(_ae,10);
}
if(_af!="*"){
_af=parseInt(_af,10);
}
if(_ae==0){
_b0="^\\.[0-9]{"+_af+"}$";
}else{
if(_ae=="*"){
_b0="^[0-9]*\\.[0-9]{"+_af+"}$";
}else{
if(_af=="*"){
_b0="^[0-9]{"+_ae+"}\\.[0-9]+$";
}else{
_b0="^[0-9]{"+_ae+"}\\.[0-9]{"+_af+"}$";
}
}
}
_b0=new RegExp(_b0);
if(!_b0.test(_b1.value)){
this.throwError([_b1.value,_b1.fName]);
}
};
fValidate.prototype.decimalr=function(_b2,_b3,_b4,_b5){
if(this.typeMismatch("text")){
return;
}
_b2=(_b2=="*")?0:parseInt(_b2,10);
_b3=(_b3=="*")?"":parseInt(_b3,10);
_b4=(_b4=="*")?0:parseInt(_b4,10);
_b5=(_b5=="*")?"":parseInt(_b5,10);
var _b6="^[0-9]{"+_b2+","+_b3+"}\\.[0-9]{"+_b4+","+_b5+"}$";
var _b7=new RegExp(_b6);
if(!_b7.test(this.elem.value)){
this.throwError([this.elem.fName]);
}
return true;
};
fValidate.prototype.zip=function(sep){
if(this.typeMismatch("text")){
return;
}
sep=this.setArg(sep,"- ");
var _b9=new RegExp("^[0-9]{5}(|["+sep.toPattern()+"][0-9]{4})?$");
if(!_b9.test(this.elem.value)){
this.throwError();
}
};
fValidate.prototype.phone=function(_ba){
if(this.typeMismatch("text")){
return;
}
_ba=this.setArg(_ba,0);
var _bb=[/^(\(?\d\d\d\)?)?[ -]?\d\d\d[ -]?\d\d\d\d$/,/^(\(\d\d\d\) )?\d\d\d[ -]\d\d\d\d$/];
if(!_bb[_ba].test(this.elem.value)){
if(_ba==1){
this.throwError();
}else{
this.throwError([],1);
}
}
};
fValidate.prototype.date=function(_bc,_bd,_be,_bf){
if(this.typeMismatch("text")){
return;
}
if(typeof _bc=="undefined"){
this.paramError("formatStr");
return;
}
_bd=this.setArg(_bd,"/");
var _c0=[this.elem.fName,_bc.replace(/\//g,_bd)];
var _c1=_bc.split("/");
var _c2=this.elem.value.split(_bd);
var _c3=new Object();
for(var i=0;i<_c1.length;i++){
switch(_c1[i].charAt(0).toLowerCase()){
case "m":
_c3.months=i;
break;
case "d":
_c3.days=i;
break;
case "y":
_c3.years=i;
break;
}
}
var _c5=new Date(_c2[_c3.years],_c2[_c3.months]-1,_c2[_c3.days]);
if(isNaN(_c5)||_c5.getDate()!=_c2[_c3.days]||_c5.getMonth()!=_c2[_c3.months]-1||_c5.getFullYear().toString().length!=_bc.match(/y/g).length){
this.throwError(_c0);
return;
}
var _c6=this.form.elements[_bf];
if(typeof _c6!="undefined"){
_bf=_c6.validDate||_c6.value;
}
var _c7=(_bf=="today")?new Date():new Date(_bf);
_c7.setHours(0);
_c7.setMinutes(0);
_c7.setSeconds(0);
_c7.setMilliseconds(0);
var _c8=_c7.getTime()-_c5.getTime();
var _c9=false;
switch(parseInt(_be)){
case 1:
_c9=Boolean(_c8>0);
_c0=1;
break;
case 2:
_c9=Boolean((_c8+86400000)>0);
_c0=2;
break;
case 3:
_c9=Boolean(_c8<0);
_c0=3;
break;
case 4:
_c9=Boolean((_c8-86400000)<0);
_c0=4;
break;
default:
_c9=true;
}
if(!_c9){
this.throwError([_bf],_c0);
}
this.elem.validDate=_c5.toString();
};
fValidate.prototype.money=function(ds,grp,dml){
if(this.typeMismatch("text")){
return;
}
ds=(ds==" ")?false:ds.toPattern();
grp=(grp==" ")?false:grp.toPattern();
dml=(dml==" ")?false:dml.toPattern();
var _cd,_ce;
switch(true){
case Boolean(ds&&grp&&dml):
_ce="^"+ds+"(?:(?:[0-9]{1,3}"+grp+")(?:[0-9]{3}"+grp+")*[0-9]{3}|[0-9]{1,3})("+dml+"[0-9]{2})$";
_cd=ds+"XX"+grp+"XXX"+dml+"XX";
break;
case Boolean(ds&&grp&&!dml):
_ce="^"+ds+"(?:(?:[0-9]{1,3}"+grp+")(?:[0-9]{3}"+grp+")*[0-9]{3}|[0-9]{1,3})$";
_cd=""+ds+"XX"+grp+"XXX";
break;
case Boolean(ds&&!grp&&dml):
_ce="^"+ds+"[0-9]*(\\.[0-9]{2})$";
_cd=""+ds+"XXXXX"+dml+"XX";
break;
case Boolean(!ds&&grp&&dml):
_ce="^(?:(?:[0-9]{1,3}"+grp+")(?:[0-9]{3}"+grp+")*[0-9]{3}|[0-9]{1,3})("+dml+"[0-9]{2})?$";
_cd="XX"+grp+"XXX"+dml+"XX";
break;
case Boolean(ds&&!grp&&!dml):
_ce="^"+ds+"[0-9]*$";
_cd=""+ds+"XXXXX";
break;
case Boolean(!ds&&grp&&!dml):
_ce="^(?:(?:[0-9]{1,3}"+grp+")(?:[0-9]{3}"+grp+")*[0-9]{3}|[0-9]{1,3})$";
_cd="XX"+grp+"XXX";
break;
case Boolean(!ds&&!grp&&dml):
_ce="^[0-9]*("+dml+"[0-9]{2})$";
_cd="XXXXX"+dml+"XX";
break;
case Boolean(!ds&&!grp&&!dml):
_ce="^.?(?:(?:[0-9]{1,3}.?)(?:[0-9]{3}.?)*[0-9]{3}|[0-9]{1,3})(.[0-9]{2})?$";
_cd="[?]XX[?]XXX[?XX]";
}
var _cf=new RegExp(_ce);
if(!_cf.test(this.elem.value)){
this.throwError([this.elem.fName,_cd.replace(/\\/g,"")]);
}
};
fValidate.prototype.checkbox=function(_d0,_d1){
if(this.typeMismatch("cb")){
return;
}
if(typeof _d0=="undefined"){
this.paramError("minC");
return;
}
if(this.elem==this.form.elements[this.elem.name]&&!this.elem.checked){
this.throwError([this.elem.fName]);
}else{
this.elem=this.form.elements[this.elem.name];
var len=this.elem.length;
var _d3=0;
if(_d1==999||_d1=="*"||typeof _d1=="undefined"||_d1>this.elem.length){
_d1==len;
}
var i=len;
while(i-->0){
if(this.elem[i].checked){
_d3++;
}
}
if(_d3<_d0||_d3>_d1){
this.throwError([_d0,_d1,this.elem[0].fName,_d3]);
}
}
};
fValidate.prototype.radio=function(){
if(this.typeMismatch("rg")){
return;
}
if(this.elem==this.form.elements[this.elem.name]&&!this.elem.checked){
this.throwError([this.elem.fName]);
}else{
this.elem=this.form.elements[this.elem.name];
for(var i=0;i<this.elem.length;i++){
if(this.elem.item(i).checked){
return;
}
}
this.throwError([this.elem[0].fName]);
}
};
fValidate.prototype.eitheror=function(){
if(this.typeMismatch("hidden")){
return;
}
if(typeof arguments[0]=="undefined"){
this.paramError("delim");
return;
}
if(typeof arguments[1]=="undefined"){
this.paramError("fields");
return;
}
var arg,i=0,_d8=new Array(),_d9,_da=0,_db=arguments[1].split(arguments[0]);
this.elem.fields=new Array();
while(arg=_db[i++]){
_d9=this.form.elements[arg];
_d8.push(_d9.fName);
this.elem.fields.push(_d9);
if(!this.isBlank(arg)){
_da++;
}
}
if(_da!=1){
this.throwError([_d8.join("\n\t-")]);
}
};
fValidate.prototype.atleast=function(){
if(this.typeMismatch("hidden")){
return;
}
if(typeof arguments[0]==undefined){
this.paramError("qty");
return;
}
if(typeof arguments[1]==undefined){
this.paramError("delim");
return;
}
if(typeof arguments[2]==undefined){
this.paramError("fields");
return;
}
var arg,i=0,_de=new Array(),_df,_e0=0,_e1=arguments[2].split(arguments[1]);
this.elem.fields=new Array();
while(arg=_e1[i++]){
_df=this.form.elements[arg];
_de.push(_df.fName);
this.elem.fields.push(_df);
if(!this.isBlank(arg)){
_e0++;
}
}
if(_e0<arguments[0]){
this.throwError([arguments[0],_de.join("\n\t-"),_e0]);
}
};
fValidate.prototype.allornone=function(){
if(this.typeMismatch("hidden")){
return;
}
if(typeof arguments[0]=="undefined"){
this.paramError("delim");
return;
}
if(typeof arguments[1]=="undefined"){
this.paramError("fields");
return;
}
var arg,i=0,_e4=new Array(),_e5,_e6=0,_e7=arguments[1].split(arguments[0]);
this.elem.fields=new Array();
while(arg=_e7[i++]){
_e5=this.form.elements[arg];
_e4.push(_e5.fName);
this.elem.fields.push(_e5);
if(!this.isBlank(arg)){
_e6++;
}
}
if(_e6>0&&_e6<_e7.length){
this.throwError([_e4.join("\n\t-"),_e6]);
}
};
fValidate.prototype.comparison=function(_e8,_e9,_ea){
if(this.typeMismatch("hidden")){
return;
}
var _eb=this.form.elements[_e8],_ec=this.form.elements[_ea],_ed=this.getValue(_eb),_ee=this.getValue(_ec);
i18n=this.i18n.comparison;
i=-1;
var _ef=[[">",i18n.gt],["<",i18n.lt],[">=",i18n.gte],["<=",i18n.lte],["==",i18n.eq],["!=",i18n.neq]];
while(_ef[++i][0]!=_e9){
}
this.elem.fields=[_eb,_ec];
if(!eval(_ed+_e9+_ee)){
this.throwError([_eb.fName,_ef[i][1],_ec.fName]);
}
};
fValidate.prototype.file=function(_f0,_f1){
if(this.typeMismatch("file")){
return;
}
if(typeof _f0=="undefined"){
this.paramError("extensions");
return;
}
_f1=Boolean(_f1)?"":"i";
var _f2=new RegExp("^.+\\.("+_f0.replace(/,/g,"|")+")$",_f1);
if(!_f2.test(this.elem.value)){
this.throwError([_f0.replace(/,/g,"\n")]);
}
};
fValidate.prototype.custom=function(_f3,_f4){
if(this.typeMismatch("text")){
return;
}
_f3=(_f3)?_f3.replace(/[^gim]/ig):"";
var _f5=new RegExp(this.elem.getAttribute(this.config.pattern),_f3);
if(!_f5.test(this.elem.value)){
this.throwError([this.elem.fName]);
}
};
fValidate.prototype.cc=function(){
if(this.typeMismatch("text")){
return;
}
var _f6=this.form.elements[this.config.ccType];
if(!_f6){
this.devError("noCCType");
return;
}
var _f7=_f6.options[_f6.selectedIndex].value.toUpperCase();
var _f8={"VISA":/^4\d{12}(\d{3})?$/,"MC":/^5[1-5]\d{14}$/,"DISC":/^6011\d{12}$/,"AMEX":/^3[4|7]\d{13}$/,"DINERS":/^3[0|6|8]\d{12}$/,"ENROUTE":/^2[014|149]\d{11}$/,"JCB":/^3[088|096|112|158|337|528]\d{12}$/,"SWITCH":/^(49030[2-9]|49033[5-9]|49110[1-2]|4911(7[4-9]|8[1-2])|4936[0-9]{2}|564182|6333[0-4][0-9]|6759[0-9]{2})\d{10}(\d{2,3})?$/,"DELTA":/^4(1373[3-7]|462[0-9]{2}|5397[8|9]|54313|5443[2-5]|54742|567(2[5-9]|3[0-9]|4[0-5])|658[3-7][0-9]|659(0[1-9]|[1-4][0-9]|50)|844[09|10]|909[6-7][0-9]|9218[1|2]|98824)\d{10}$/,"SOLO":/^(6334[5-9][0-9]|6767[0-9]{2})\d{10}(\d{2,3})?$/};
if(_f6.validated==false&&this.groupError==true){
return;
}
if(typeof _f8[_f7]=="undefined"&&_f6.validated==false&&this.groupError==false){
this.devError([_f7]);
return;
}
this.elem.value=this.elem.value.replace(/[^\d]/g,"");
if(!_f8[_f7].test(this.elem.value)||!this.elem.value.luhn()){
this.throwError([this.elem.fName]);
}
};
String.prototype.luhn=function(){
var i=this.length;
var _fa="",_fb;
while(_fb=this.charAt(--i)){
_fa+=(i%2==0)?_fb*2:_fb;
}
_fa=eval(_fa.split("").join("+"));
return (_fa%10==0);
};
fValidate.prototype.ccDate=function(_fc,_fd){
if(this.typeMismatch("s1")){
return;
}
_fd=parseInt(this.getValue(this.form.elements[_fd]),10)+2000;
_fc=parseInt(this.getValue(this.form.elements[_fc]),10);
var _fe=new Date();
var _ff=new Date(_fd,_fc);
if(_ff<_fe){
alert(["Card Expired",_fe,_ff].join("\n"));
}
};
function nRand(_100){
today=new Date();
seed=today.getTime();
seed=(seed*9301+49297)%233280;
seed=seed/(233280);
return Math.ceil(seed*_100);
}
function popUp(path,w,h){
var t=(screen.height/2)-(h/2)-50;
var l=(screen.width/2)-(w/2);
var _106="location=no,scrollbars=no,menubars=no,toolbars=no,resizable=no, left="+l+",top="+t+",width="+w+",height="+h;
popwin=window.open(path,"pop"+nRand(100),_106);
popwin.focus();
}
function popUpScroll(path,w,h){
var t=(screen.height/2)-(h/2)-50;
var l=(screen.width/2)-(w/2);
var _10c="location=no,scrollbars=yes,menubars=no,toolbars=no,resizable=yes, left="+l+",top="+t+",width="+w+",height="+h;
popwin=window.open(path,"pop"+nRand(100),_10c);
popwin.focus();
}
function refreshParent(){
if(window.opener){
window.opener.location.reload();
}
}
function confirmationMessage(_10d,_10e,_10f){
isConfirmed=window.confirm(_10d);
if(isConfirmed){
if(_10e==""){
return;
}else{
window.location.href=_10e;
return;
}
}else{
if(_10f==""){
return;
}else{
window.location.href=_10f;
return;
}
}
}
function openImageWindow(_110){
popup_url="pop_image.jsp?imageID="+_110;
var t=20;
var l=20;
var _113="location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes, left="+l+",top="+t+",width=320,height=200";
popwin=window.open(popup_url,"pop"+nRand(100),_113);
popwin.focus();
}
function shortLabels(_114){
var _115=document.getElementById(_114);
for(var i=0;i<_115.childNodes.length;i++){
var _117=_115.childNodes[i];
if(_117.nodeName=="DIV"){
_117=_117.childNodes[1];
try{
var idx=_117.innerHTML.indexOf(" -",0);
_117.innerHTML=_117.innerHTML.substring(idx+2);
}
catch(slip){
}
}
}
}
function scrollslow(){
mrq=document.getElementById("mrq");
mrq.scrollAmount=1;
}
function scrollfast(){
mrq=document.getElementById("mrq");
mrq.scrollAmount=4;
}
function MM_openBrWindow(_119,_11a,_11b){
window.open(_119,_11a,_11b);
}
function redirectToCommentPage(_11c,_11d,sa){
window.location="/web/jsp/blog.jsp?articleID="+_11c+"&blogID="+_11d+"&sa="+sa+"#commStartList";
}
var imgclose="/web/img/imgclose.gif";
var maxImages=19;
function findTopParent(){
var _11f=64;
var p=window;
while((p.parent!=p)&&(p.parent!=null)&&(--_11f>0)){
try{
var l=p.parent.document.location;
}
catch(e){
break;
}
p=p.parent;
}
return p;
}
function getEventPos(ev){
var posx=0;
var posy=0;
if(!ev){
var e=window.event;
}
if(!ev){
return [0,0];
}
if(ev.pageX||ev.pageY){
posx=ev.pageX;
posy=ev.pageY;
}else{
if(ev.clientX||ev.clientY){
posx=ev.clientX+document.body.scrollLeft;
posy=ev.clientY+document.body.scrollTop;
}
}
return [posx,posy];
}
function getWindowSize(){
var _126=0;
var _127=0;
if(typeof (window.innerWidth)=="number"){
_126=window.innerWidth;
_127=window.innerHeight;
}else{
if(window.document.body&&typeof (window.document.body.clientWidth)=="number"){
_126=window.document.body.clientWidth;
_127=window.document.body.clientHeight;
}
}
return [_126,_127];
}
if(document.all){
xbGetElementById=function(id,_129){
if(!_129){
_129=window;
}
var elm=_129.document.all[id];
if(!elm){
elm=null;
}
return elm;
};
}else{
if(document.getElementById){
xbGetElementById=function(id,_12c){
if(!_12c){
_12c=window;
}
return _12c.document.getElementById(id);
};
}else{
xbGetElementById=function(id,_12e){
return null;
};
}
}
var iwinCtrl=null;
function baseInit(){
iwinCtrl=new ImageWinCtrl();
}
function ImageWinCtrl(){
this.handles=new Array();
this.urls=new Array();
this.imgBin=xbGetElementById("iwincontainer");
if(this.imgBin==null){
var el=document.createElement("span");
el.setAttribute("id","iwincontainer");
document.body.appendChild(el);
this.imgBin=el;
}
this.activeWin=null;
this.zIndex=20;
this.winCount=0;
var html="";
var i=0;
while(i<maxImages){
html=html+"<div class=\"iwinpop\" id=\"iwin_"+i+"\"></div>";
i++;
}
this.imgBin.innerHTML=html;
}
ImageWinCtrl.prototype.createWin=function(url,pos){
var id=this.winCount;
if(this.urls[url]!=null){
this.urls[url].show();
return;
}
if(id==maxImages){
alert("This script is configured for a maxium of "+maxImages+" images.\nPlease adjust maxImages in imgwin.js");
}
var div=xbGetElementById("iwin_"+id);
var iw=new ImageWin(div,id,url,pos);
this.handles[id]=iw;
this.urls[url]=iw;
this.winCount++;
};
ImageWinCtrl.prototype.getZ=function(){
return ++this.zIndex;
};
ImageWinCtrl.prototype.getWin=function(id){
return this.handles[id];
};
function _mup(ev){
return mup(ev);
}
function _mmove(ev){
return mmove(ev);
}
function mup(ev){
if(iwinCtrl.activeWin!=null){
iwinCtrl.activeWin.passivate();
}
document.onmouseup=null;
document.onmousemove=null;
return false;
}
var evskip=0;
function mmove(ev){
if((++evskip%3)!=0){
return false;
}
if(!ev){
var ev=window.event;
}
var iwin=iwinCtrl.activeWin;
if(iwin==null){
return false;
}
iwin.didMove=1;
if(iwin.resizing==1){
var _13d=getEventPos(ev);
iwinresize(iwin.img,Math.max(_13d[0]-iwin.x,20),Math.max(_13d[1]-iwin.y,20));
}else{
iwin.x=iwin.x+ev.screenX-iwin.lastX;
iwin.y=iwin.y+ev.screenY-iwin.lastY;
iwin.css.left=iwin.x;
iwin.css.top=iwin.y;
iwin.lastX=ev.screenX;
iwin.lastY=ev.screenY;
}
return false;
}
function mdown(ev){
if(!ev){
var ev=window.event;
}
this.iwin.activate(ev);
document.onmousemove=_mmove;
document.onmouseup=_mup;
return false;
}
function iwinresize(i,neww,newh){
var r=newh/neww;
var h=0;
var w=0;
if(r<i.iwin.ratio){
h=newh;
w=newh/i.iwin.ratio;
}else{
w=neww;
h=neww*i.iwin.ratio;
}
i.iwin.css.width=Math.max(w,neww)+2;
i.iwin.css.height=Math.max(h,newh)+20;
i.width=w;
i.height=h;
i.iwin.width=w;
i.iwin.height=h;
}
function iwinimgloaded(i){
if(i.iwin.loaded==1){
return;
}else{
i.iwin.loaded=1;
}
var h=i.height;
var w=i.width;
i.iwin.ratio=h/w;
var _148=getWindowSize();
if(w>(_148[0]*0.9)){
w=_148[0]*0.9;
h=i.iwin.ratio*w;
}
if(h>(_148[1]*0.9)){
h=_148[1]*0.9;
w=h/i.iwin.ratio;
}
i.width=w;
i.height=h;
i.iwin.width=w;
i.iwin.height=h;
i.iwin.css.width=w+4;
i.iwin.x=Math.max(i.iwin.x-w/2,10);
i.iwin.y=Math.max(i.iwin.y-h/2,10);
i.iwin.css.left=i.iwin.x;
i.iwin.css.top=i.iwin.y;
i.iwin.css.zIndex=iwinCtrl.getZ();
}
function ImageWin(div,id,iurl,pos){
this.url=iurl;
this.div=div;
this.css=div.style;
this.div.iwin=this;
this.x=pos[0];
this.y=pos[1];
this.imageId=id;
this.divId="iwin"+id;
this.imgId="iwinimg"+id;
this.width=0;
this.height=0;
this.ratio=0;
this.loaded=0;
this.active=0;
this.didMove=0;
this.lastX=0;
this.lastY=0;
this.resizing=0;
var _14d="<div class=\"iwinclosebar\"><img alt=\"\" onClick=\"hideimg("+this.imageId+")\" class=\"iwinclose\" src=\""+imgclose+"\"></div>";
var _14e="<img alt=\"\" onClick=\"hideimg("+this.imageId+")\" onLoad=\"iwinimgloaded(this)\" id=\""+this.imgId+"\" class=\"iwinimg\" src=\""+this.url+"\">";
this.div.innerHTML=_14d+_14e;
this.img=xbGetElementById(this.imgId);
this.img.iwin=this;
this.help=xbGetElementById("help_"+this.imgId);
this.css.left=this.x;
this.css.top=this.y;
this.css.zIndex=-50;
this.div.onmousedown=mdown;
this.css.visibility="inherit";
}
ImageWin.prototype.activate=function(ev){
iwinCtrl.activeWin=this;
this.active=1;
this.didMove=0;
this.lastX=ev.screenX;
this.lastY=ev.screenY;
var maxx=this.x+this.width+2;
var maxy=this.y+this.height+20;
var _152=getEventPos(ev);
if((_152[0]-10<maxx)&&(_152[0]+10>maxx)&&(_152[1]-10<maxy)&&(_152[1]+12>maxy)){
this.resizing=1;
}
this.css.zIndex=iwinCtrl.getZ();
};
ImageWin.prototype.passivate=function(){
iwinCtrl.activeWin=null;
this.active=0;
if(this.resizing==1){
this.css.width=this.width+2;
this.css.height=this.height+20;
}
this.resizing=0;
};
ImageWin.prototype.show=function(){
this.css.visibility="inherit";
this.css.zIndex=iwinCtrl.getZ();
};
ImageWin.prototype.hide=function(){
if(this.didMove){
this.didMove=0;
return;
}
this.css.visibility="hidden";
};
function popimg(url,ev){
if(iwinCtrl==null){
iwinCtrl=new ImageWinCtrl();
}
iwinCtrl.createWin(url,getEventPos(ev));
}
function hideimg(id){
iwinCtrl.getWin(id).hide();
}
var ttAbove=false;
var ttBgColor="#FFFFFF";
var ttBgImg="";
var ttBorderColor="FF6600";
var ttBorderWidth=1;
var ttDelay=500;
var ttFontColor="FF6600";
var ttFontFace="arial,helvetica,sans-serif";
var ttFontSize="11px";
var ttFontWeight="normal";
var ttLeft=false;
var ttOffsetX=12;
var ttOffsetY=15;
var ttOpacity=100;
var ttPadding=5;
var ttShadowColor="";
var ttShadowWidth=0;
var ttStatic=false;
var ttSticky=false;
var ttTemp=0;
var ttTextAlign="left";
var ttTitleColor="#ffffff";
var ttWidth=300;
var tt_tags=new Array("a","area","b","big","caption","center","code","dd","div","dl","dt","em","h1","h2","h3","h4","h5","h6","i","img","input","li","map","ol","p","pre","s","select","small","span","strike","strong","sub","sup","table","td","th","tr","tt","u","var","ul","layer");
var tt_obj=null,tt_ifrm=null,tt_objW=0,tt_objH=0,tt_objX=0,tt_objY=0,tt_offX=0,tt_offY=0,xlim=0,ylim=0,tt_sup=false,tt_sticky=false,tt_wait=false,tt_act=false,tt_sub=false,tt_u="undefined",tt_mf=null,tt_tag=null;
var tt_db=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body?document.body:null,tt_n=navigator.userAgent.toLowerCase(),tt_nv=navigator.appVersion;
var tt_op=!!(window.opera&&document.getElementById),tt_op6=tt_op&&!document.defaultView,tt_op7=tt_op&&!tt_op6,tt_ie=tt_n.indexOf("msie")!=-1&&document.all&&tt_db&&!tt_op,tt_ie6=tt_ie&&parseFloat(tt_nv.substring(tt_nv.indexOf("MSIE")+5))>=5.5,tt_n4=(document.layers&&typeof document.classes!=tt_u),tt_n6=(!tt_op&&document.defaultView&&typeof document.defaultView.getComputedStyle!=tt_u),tt_w3c=!tt_ie&&!tt_n6&&!tt_op&&document.getElementById;
function tt_Int(t_x){
var t_y;
return isNaN(t_y=parseInt(t_x))?0:t_y;
}
function wzReplace(t_x,t_y){
var _15a="",_15b=this,t_xI;
while((t_xI=_15b.indexOf(t_x))!=-1){
_15a+=_15b.substring(0,t_xI)+t_y;
_15b=_15b.substring(t_xI+t_x.length);
}
return _15a+_15b;
}
String.prototype.wzReplace=wzReplace;
function tt_N4Tags(_15d,t_d,t_y){
t_d=t_d||document;
t_y=t_y||new Array();
var t_x=(_15d=="a")?t_d.links:t_d.layers;
for(var z=t_x.length;z--;){
t_y[t_y.length]=t_x[z];
}
for(z=t_d.layers.length;z--;){
t_y=tt_N4Tags(_15d,t_d.layers[z].document,t_y);
}
return t_y;
}
function tt_Htm(tt,t_id,txt){
var _165=(typeof tt.T_BGCOLOR!=tt_u)?tt.T_BGCOLOR:ttBgColor,_166=(typeof tt.T_BGIMG!=tt_u)?tt.T_BGIMG:ttBgImg,t_bc=(typeof tt.T_BORDERCOLOR!=tt_u)?tt.T_BORDERCOLOR:ttBorderColor,t_bw=(typeof tt.T_BORDERWIDTH!=tt_u)?tt.T_BORDERWIDTH:ttBorderWidth,t_ff=(typeof tt.T_FONTFACE!=tt_u)?tt.T_FONTFACE:ttFontFace,t_fc=(typeof tt.T_FONTCOLOR!=tt_u)?tt.T_FONTCOLOR:ttFontColor,_16b=(typeof tt.T_FONTSIZE!=tt_u)?tt.T_FONTSIZE:ttFontSize,_16c=(typeof tt.T_FONTWEIGHT!=tt_u)?tt.T_FONTWEIGHT:ttFontWeight,_16d=(typeof tt.T_OPACITY!=tt_u)?tt.T_OPACITY:ttOpacity,_16e=(typeof tt.T_PADDING!=tt_u)?tt.T_PADDING:ttPadding,_16f=(typeof tt.T_SHADOWCOLOR!=tt_u)?tt.T_SHADOWCOLOR:(ttShadowColor||0),_170=(typeof tt.T_SHADOWWIDTH!=tt_u)?tt.T_SHADOWWIDTH:(ttShadowWidth||0),_171=(typeof tt.T_TEXTALIGN!=tt_u)?tt.T_TEXTALIGN:ttTextAlign,_172=(typeof tt.T_TITLE!=tt_u)?tt.T_TITLE:"",_173=(typeof tt.T_TITLECOLOR!=tt_u)?tt.T_TITLECOLOR:ttTitleColor,t_w=(typeof tt.T_WIDTH!=tt_u)?tt.T_WIDTH:ttWidth;
if(_16f||_170){
_16f=_16f||"#cccccc";
_170=_170||5;
}
if(tt_n4&&(_16b=="10px"||_16b=="11px")){
_16b="12px";
}
var _175=(tt_n4?"":tt_n6?("-moz-opacity:"+(_16d/100)):tt_ie?("filter:Alpha(opacity="+_16d+")"):("opacity:"+(_16d/100)))+";";
var t_y="<div id=\""+t_id+"\" style=\"position:absolute;z-index:1010;";
t_y+="left:0px;top:0px;width:"+(t_w+_170)+"px;visibility:"+(tt_n4?"hide":"hidden")+";"+_175+"\">"+"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\""+(t_bc?(" bgcolor=\""+t_bc+"\" style=\"background:"+t_bc+";\""):"")+" width=\""+t_w+"\">";
if(_172){
t_y+="<tr><td style=\"padding-left:3px;padding-right:3px;\" align=\""+_171+"\"><font color=\""+_173+"\" face=\""+t_ff+"\" "+"style=\"color:"+_173+";font-family:"+t_ff+";font-size:"+_16b+";\"><b>"+(tt_n4?"&nbsp;":"")+_172+"</b></font></td></tr>";
}
t_y+="<tr><td><table border=\"0\" cellpadding=\""+_16e+"\" cellspacing=\""+t_bw+"\" width=\"100%\">"+"<tr><td"+(_165?(" bgcolor=\""+_165+"\""):"")+(_166?" background=\""+_166+"\"":"")+" style=\"text-align:"+_171+";";
if(tt_n6){
t_y+="padding:"+_16e+"px;";
}
t_y+="\" align=\""+_171+"\"><font color=\""+t_fc+"\" face=\""+t_ff+"\""+" style=\"color:"+t_fc+";font-family:"+t_ff+";font-size:"+_16b+";font-weight:"+_16c+";\">";
if(_16c=="bold"){
t_y+="<b>";
}
t_y+=txt;
if(_16c=="bold"){
t_y+="</b>";
}
t_y+="</font></td></tr></table></td></tr></table>";
if(_170){
var _177=Math.round(_170*1.3);
if(tt_n4){
t_y+="<layer bgcolor=\""+_16f+"\" left=\""+t_w+"\" top=\""+_177+"\" width=\""+_170+"\" height=\"0\"></layer>"+"<layer bgcolor=\""+_16f+"\" left=\""+_177+"\" align=\"bottom\" width=\""+(t_w-_177)+"\" height=\""+_170+"\"></layer>";
}else{
_175=tt_n6?"-moz-opacity:0.85;":tt_ie?"filter:Alpha(opacity=85);":"opacity:0.85;";
t_y+="<div id=\""+t_id+"R\" style=\"position:absolute;background:"+_16f+";left:"+t_w+"px;top:"+_177+"px;width:"+_170+"px;height:1px;overflow:hidden;"+_175+"\"></div>"+"<div style=\"position:relative;background:"+_16f+";left:"+_177+"px;top:0px;width:"+(t_w-_177)+"px;height:"+_170+"px;overflow:hidden;"+_175+"\"></div>";
}
}
return (t_y+"</div>"+(tt_ie6?"<iframe id=\"TTiEiFrM\" src=\"javascript:false\" scrolling=\"no\" frameborder=\"0\" style=\"filter:Alpha(opacity=0);position:absolute;top:0px;left:0px;display:none;\"></iframe>":""));
}
function tt_EvX(t_e){
var t_y=tt_Int(t_e.pageX||t_e.clientX||0)+tt_Int(tt_ie?tt_db.scrollLeft:0)+tt_offX;
if(t_y>xlim){
t_y=xlim;
}
var _17a=tt_Int(window.pageXOffset||(tt_db?tt_db.scrollLeft:0)||0);
if(t_y<_17a){
t_y=_17a;
}
return t_y;
}
function tt_EvY(t_e){
var t_y=tt_Int(t_e.pageY||t_e.clientY||0)+tt_Int(tt_ie?tt_db.scrollTop:0);
if(tt_sup){
t_y-=(tt_objH+tt_offY-15);
}else{
if(t_y>ylim||!tt_sub&&t_y>ylim-24){
t_y-=(tt_objH+5);
tt_sub=false;
}else{
t_y+=tt_offY;
tt_sub=true;
}
}
return t_y;
}
function tt_ReleasMov(){
if(document.onmousemove==tt_Move){
if(!tt_mf&&document.releaseEvents){
document.releaseEvents(Event.MOUSEMOVE);
}
document.onmousemove=tt_mf;
}
}
function tt_ShowIfrm(t_x){
if(!tt_obj||!tt_ifrm){
return;
}
if(t_x){
tt_ifrm.style.width=tt_objW+"px";
tt_ifrm.style.height=tt_objH+"px";
tt_ifrm.style.display="block";
}else{
tt_ifrm.style.display="none";
}
}
function tt_GetDiv(t_id){
return (tt_n4?(document.layers[t_id]||null):tt_ie?(document.all[t_id]||null):(document.getElementById(t_id)||null));
}
function tt_GetDivW(){
return tt_Int(tt_n4?tt_obj.clip.width:(tt_obj.style.pixelWidth||tt_obj.offsetWidth));
}
function tt_GetDivH(){
return tt_Int(tt_n4?tt_obj.clip.height:(tt_obj.style.pixelHeight||tt_obj.offsetHeight));
}
function tt_SetDivZ(){
var t_i=tt_obj.style||tt_obj;
if(t_i){
if(window.dd&&dd.z){
t_i.zIndex=Math.max(dd.z+1,t_i.zIndex);
}
if(tt_ifrm){
tt_ifrm.style.zIndex=t_i.zIndex-1;
}
}
}
function tt_SetDivPos(t_x,t_y){
var t_i=tt_obj.style||tt_obj;
var t_px=(tt_op6||tt_n4)?"":"px";
t_i.left=(tt_objX=t_x)+t_px;
t_i.top=(tt_objY=t_y)+t_px;
if(tt_ifrm){
tt_ifrm.style.left=t_i.left;
tt_ifrm.style.top=t_i.top;
}
}
function tt_ShowDiv(t_x){
tt_ShowIfrm(t_x);
if(tt_n4){
tt_obj.visibility=t_x?"show":"hide";
}else{
tt_obj.style.visibility=t_x?"visible":"hidden";
}
tt_act=t_x;
}
function tt_OpDeHref(t_e){
var _186;
if(t_e){
_186=t_e.target;
while(_186){
if(_186.hasAttribute("href")){
tt_tag=_186;
tt_tag.t_href=tt_tag.getAttribute("href");
tt_tag.removeAttribute("href");
tt_tag.style.cursor="hand";
tt_tag.onmousedown=tt_OpReHref;
tt_tag.stats=window.status;
window.status=tt_tag.t_href;
break;
}
_186=_186.parentElement;
}
}
}
function tt_OpReHref(){
if(tt_tag){
tt_tag.setAttribute("href",tt_tag.t_href);
window.status=tt_tag.stats;
tt_tag=null;
}
}
function tt_Show(t_e,t_id,_189,_18a,_18b,_18c,_18d,_18e,_18f,_190,_191){
if(tt_obj){
tt_Hide();
}
tt_mf=document.onmousemove||null;
if(window.dd&&(window.DRAG&&tt_mf==DRAG||window.RESIZE&&tt_mf==RESIZE)){
return;
}
var t_sh,t_h;
tt_obj=tt_GetDiv(t_id);
if(tt_obj){
t_e=t_e||window.event;
tt_sub=!(tt_sup=_189);
tt_sticky=_190;
tt_objW=tt_GetDivW();
tt_objH=tt_GetDivH();
tt_offX=_18c?-(tt_objW+_18d):_18d;
tt_offY=_18e;
if(tt_op7){
tt_OpDeHref(t_e);
}
if(tt_n4){
if(tt_obj.document.layers.length){
t_sh=tt_obj.document.layers[0];
t_sh.clip.height=tt_objH-Math.round(t_sh.clip.width*1.3);
}
}else{
t_sh=tt_GetDiv(t_id+"R");
if(t_sh){
t_h=tt_objH-tt_Int(t_sh.style.pixelTop||t_sh.style.top||0);
if(typeof t_sh.style.pixelHeight!=tt_u){
t_sh.style.pixelHeight=t_h;
}else{
t_sh.style.height=t_h+"px";
}
}
}
xlim=tt_Int((tt_db&&tt_db.clientWidth)?tt_db.clientWidth:window.innerWidth)+tt_Int(window.pageXOffset||(tt_db?tt_db.scrollLeft:0)||0)-tt_objW-(tt_n4?21:0);
ylim=tt_Int(window.innerHeight||tt_db.clientHeight)+tt_Int(window.pageYOffset||(tt_db?tt_db.scrollTop:0)||0)-tt_objH-tt_offY;
tt_SetDivZ();
if(_18b){
tt_SetDivPos(tt_Int((_18b=_18b.split(","))[0]),tt_Int(_18b[1]));
}else{
tt_SetDivPos(tt_EvX(t_e),tt_EvY(t_e));
}
var _194="tt_ShowDiv('true');";
if(_190){
_194+="{"+"tt_ReleasMov();"+"window.tt_upFunc = document.onmouseup || null;"+"if(document.captureEvents) document.captureEvents(Event.MOUSEUP);"+"document.onmouseup = new Function(\"window.setTimeout('tt_Hide();', 10);\");"+"}";
}else{
if(_18f){
_194+="tt_ReleasMov();";
}
}
if(_191>0){
_194+="window.tt_rtm = window.setTimeout('tt_sticky = false; tt_Hide();',"+_191+");";
}
window.tt_rdl=window.setTimeout(_194,_18a);
if(!_18b){
if(document.captureEvents){
document.captureEvents(Event.MOUSEMOVE);
}
document.onmousemove=tt_Move;
}
}
}
var tt_area=false;
function tt_Move(t_ev){
if(!tt_obj){
return;
}
if(tt_n6||tt_w3c){
if(tt_wait){
return;
}
tt_wait=true;
setTimeout("tt_wait = false;",5);
}
var t_e=t_ev||window.event;
tt_SetDivPos(tt_EvX(t_e),tt_EvY(t_e));
if(tt_op6){
if(tt_area&&t_e.target.tagName!="AREA"){
tt_Hide();
}else{
if(t_e.target.tagName=="AREA"){
tt_area=true;
}
}
}
}
function tt_Hide(){
if(window.tt_obj){
if(window.tt_rdl){
window.clearTimeout(tt_rdl);
}
if(!tt_sticky||!tt_act){
if(window.tt_rtm){
window.clearTimeout(tt_rtm);
}
tt_ShowDiv(false);
tt_SetDivPos(-tt_objW,-tt_objH);
tt_obj=null;
if(typeof window.tt_upFunc!=tt_u){
document.onmouseup=window.tt_upFunc;
}
}
tt_sticky=false;
if(tt_op6&&tt_area){
tt_area=false;
}
tt_ReleasMov();
if(tt_op7){
tt_OpReHref();
}
}
}
function tt_Init(){
if(!(tt_op||tt_n4||tt_n6||tt_ie||tt_w3c)){
return;
}
var htm=tt_n4?"<div style=\"position:absolute;\"></div>":"",tags,t_tj,over,esc="return escape(";
var i=tt_tags.length;
while(i--){
tags=tt_ie?(document.all.tags(tt_tags[i])||1):document.getElementsByTagName?(document.getElementsByTagName(tt_tags[i])||1):(!tt_n4&&tt_tags[i]=="a")?document.links:1;
if(tt_n4&&(tt_tags[i]=="a"||tt_tags[i]=="layer")){
tags=tt_N4Tags(tt_tags[i]);
}
var j=tags.length;
while(j--){
if(typeof (t_tj=tags[j]).onmouseover=="function"&&t_tj.onmouseover.toString().indexOf(esc)!=-1&&!tt_n6||tt_n6&&(over=t_tj.getAttribute("onmouseover"))&&over.indexOf(esc)!=-1){
if(over){
t_tj.onmouseover=new Function(over);
}
var txt=unescape(t_tj.onmouseover());
htm+=tt_Htm(t_tj,"tOoLtIp"+i+""+j,txt.wzReplace("& ","&"));
t_tj.onmouseover=new Function("e","tt_Show(e,"+"\"tOoLtIp"+i+""+j+"\","+((typeof t_tj.T_ABOVE!=tt_u)?t_tj.T_ABOVE:ttAbove)+","+((typeof t_tj.T_DELAY!=tt_u)?t_tj.T_DELAY:ttDelay)+","+((typeof t_tj.T_FIX!=tt_u)?"\""+t_tj.T_FIX+"\"":"\"\"")+","+((typeof t_tj.T_LEFT!=tt_u)?t_tj.T_LEFT:ttLeft)+","+((typeof t_tj.T_OFFSETX!=tt_u)?t_tj.T_OFFSETX:ttOffsetX)+","+((typeof t_tj.T_OFFSETY!=tt_u)?t_tj.T_OFFSETY:ttOffsetY)+","+((typeof t_tj.T_STATIC!=tt_u)?t_tj.T_STATIC:ttStatic)+","+((typeof t_tj.T_STICKY!=tt_u)?t_tj.T_STICKY:ttSticky)+","+((typeof t_tj.T_TEMP!=tt_u)?t_tj.T_TEMP:ttTemp)+");");
t_tj.onmouseout=tt_Hide;
if(t_tj.alt){
t_tj.alt="";
}
if(t_tj.title){
t_tj.title="";
}
}
}
}
document.write(htm);
if(document.getElementById){
tt_ifrm=document.getElementById("TTiEiFrM");
}
}
tt_Init();
(function(){
var _19f=window.jQuery,_$=window.$;
var _1a1=window.jQuery=window.$=function(_1a2,_1a3){
return new _1a1.fn.init(_1a2,_1a3);
};
var _1a4=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,_1a5=/^.[^:#\[\.]*$/,_1a6;
_1a1.fn=_1a1.prototype={init:function(_1a7,_1a8){
_1a7=_1a7||document;
if(_1a7.nodeType){
this[0]=_1a7;
this.length=1;
return this;
}
if(typeof _1a7=="string"){
var _1a9=_1a4.exec(_1a7);
if(_1a9&&(_1a9[1]||!_1a8)){
if(_1a9[1]){
_1a7=_1a1.clean([_1a9[1]],_1a8);
}else{
var elem=document.getElementById(_1a9[3]);
if(elem){
if(elem.id!=_1a9[3]){
return _1a1().find(_1a7);
}
return _1a1(elem);
}
_1a7=[];
}
}else{
return _1a1(_1a8).find(_1a7);
}
}else{
if(_1a1.isFunction(_1a7)){
return _1a1(document)[_1a1.fn.ready?"ready":"load"](_1a7);
}
}
return this.setArray(_1a1.makeArray(_1a7));
},jquery:"1.2.6",size:function(){
return this.length;
},length:0,get:function(num){
return num==_1a6?_1a1.makeArray(this):this[num];
},pushStack:function(_1ac){
var ret=_1a1(_1ac);
ret.prevObject=this;
return ret;
},setArray:function(_1ae){
this.length=0;
Array.prototype.push.apply(this,_1ae);
return this;
},each:function(_1af,args){
return _1a1.each(this,_1af,args);
},index:function(elem){
var ret=-1;
return _1a1.inArray(elem&&elem.jquery?elem[0]:elem,this);
},attr:function(name,_1b4,type){
var _1b6=name;
if(name.constructor==String){
if(_1b4===_1a6){
return this[0]&&_1a1[type||"attr"](this[0],name);
}else{
_1b6={};
_1b6[name]=_1b4;
}
}
return this.each(function(i){
for(name in _1b6){
_1a1.attr(type?this.style:this,name,_1a1.prop(this,_1b6[name],type,i,name));
}
});
},css:function(key,_1b9){
if((key=="width"||key=="height")&&parseFloat(_1b9)<0){
_1b9=_1a6;
}
return this.attr(key,_1b9,"curCSS");
},text:function(text){
if(typeof text!="object"&&text!=null){
return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));
}
var ret="";
_1a1.each(text||this,function(){
_1a1.each(this.childNodes,function(){
if(this.nodeType!=8){
ret+=this.nodeType!=1?this.nodeValue:_1a1.fn.text([this]);
}
});
});
return ret;
},wrapAll:function(html){
if(this[0]){
_1a1(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){
var elem=this;
while(elem.firstChild){
elem=elem.firstChild;
}
return elem;
}).append(this);
}
return this;
},wrapInner:function(html){
return this.each(function(){
_1a1(this).contents().wrapAll(html);
});
},wrap:function(html){
return this.each(function(){
_1a1(this).wrapAll(html);
});
},append:function(){
return this.domManip(arguments,true,false,function(elem){
if(this.nodeType==1){
this.appendChild(elem);
}
});
},prepend:function(){
return this.domManip(arguments,true,true,function(elem){
if(this.nodeType==1){
this.insertBefore(elem,this.firstChild);
}
});
},before:function(){
return this.domManip(arguments,false,false,function(elem){
this.parentNode.insertBefore(elem,this);
});
},after:function(){
return this.domManip(arguments,false,true,function(elem){
this.parentNode.insertBefore(elem,this.nextSibling);
});
},end:function(){
return this.prevObject||_1a1([]);
},find:function(_1c4){
var _1c5=_1a1.map(this,function(elem){
return _1a1.find(_1c4,elem);
});
return this.pushStack(/[^+>] [^+>]/.test(_1c4)||_1c4.indexOf("..")>-1?_1a1.unique(_1c5):_1c5);
},clone:function(_1c7){
var ret=this.map(function(){
if(_1a1.browser.msie&&!_1a1.isXMLDoc(this)){
var _1c9=this.cloneNode(true),_1ca=document.createElement("div");
_1ca.appendChild(_1c9);
return _1a1.clean([_1ca.innerHTML])[0];
}else{
return this.cloneNode(true);
}
});
var _1cb=ret.find("*").andSelf().each(function(){
if(this[expando]!=_1a6){
this[expando]=null;
}
});
if(_1c7===true){
this.find("*").andSelf().each(function(i){
if(this.nodeType==3){
return;
}
var _1cd=_1a1.data(this,"events");
for(var type in _1cd){
for(var _1cf in _1cd[type]){
_1a1.event.add(_1cb[i],type,_1cd[type][_1cf],_1cd[type][_1cf].data);
}
}
});
}
return ret;
},filter:function(_1d0){
return this.pushStack(_1a1.isFunction(_1d0)&&_1a1.grep(this,function(elem,i){
return _1d0.call(elem,i);
})||_1a1.multiFilter(_1d0,this));
},not:function(_1d3){
if(_1d3.constructor==String){
if(_1a5.test(_1d3)){
return this.pushStack(_1a1.multiFilter(_1d3,this,true));
}else{
_1d3=_1a1.multiFilter(_1d3,this);
}
}
var _1d4=_1d3.length&&_1d3[_1d3.length-1]!==_1a6&&!_1d3.nodeType;
return this.filter(function(){
return _1d4?_1a1.inArray(this,_1d3)<0:this!=_1d3;
});
},add:function(_1d5){
return this.pushStack(_1a1.unique(_1a1.merge(this.get(),typeof _1d5=="string"?_1a1(_1d5):_1a1.makeArray(_1d5))));
},is:function(_1d6){
return !!_1d6&&_1a1.multiFilter(_1d6,this).length>0;
},hasClass:function(_1d7){
return this.is("."+_1d7);
},val:function(_1d8){
if(_1d8==_1a6){
if(this.length){
var elem=this[0];
if(_1a1.nodeName(elem,"select")){
var _1da=elem.selectedIndex,_1db=[],_1dc=elem.options,one=elem.type=="select-one";
if(_1da<0){
return null;
}
for(var i=one?_1da:0,max=one?_1da+1:_1dc.length;i<max;i++){
var _1e0=_1dc[i];
if(_1e0.selected){
_1d8=_1a1.browser.msie&&!_1e0.attributes.value.specified?_1e0.text:_1e0.value;
if(one){
return _1d8;
}
_1db.push(_1d8);
}
}
return _1db;
}else{
return (this[0].value||"").replace(/\r/g,"");
}
}
return _1a6;
}
if(_1d8.constructor==Number){
_1d8+="";
}
return this.each(function(){
if(this.nodeType!=1){
return;
}
if(_1d8.constructor==Array&&/radio|checkbox/.test(this.type)){
this.checked=(_1a1.inArray(this.value,_1d8)>=0||_1a1.inArray(this.name,_1d8)>=0);
}else{
if(_1a1.nodeName(this,"select")){
var _1e1=_1a1.makeArray(_1d8);
_1a1("option",this).each(function(){
this.selected=(_1a1.inArray(this.value,_1e1)>=0||_1a1.inArray(this.text,_1e1)>=0);
});
if(!_1e1.length){
this.selectedIndex=-1;
}
}else{
this.value=_1d8;
}
}
});
},html:function(_1e2){
return _1e2==_1a6?(this[0]?this[0].innerHTML:null):this.empty().append(_1e2);
},replaceWith:function(_1e3){
return this.after(_1e3).remove();
},eq:function(i){
return this.slice(i,i+1);
},slice:function(){
return this.pushStack(Array.prototype.slice.apply(this,arguments));
},map:function(_1e5){
return this.pushStack(_1a1.map(this,function(elem,i){
return _1e5.call(elem,i,elem);
}));
},andSelf:function(){
return this.add(this.prevObject);
},data:function(key,_1e9){
var _1ea=key.split(".");
_1ea[1]=_1ea[1]?"."+_1ea[1]:"";
if(_1e9===_1a6){
var data=this.triggerHandler("getData"+_1ea[1]+"!",[_1ea[0]]);
if(data===_1a6&&this.length){
data=_1a1.data(this[0],key);
}
return data===_1a6&&_1ea[1]?this.data(_1ea[0]):data;
}else{
return this.trigger("setData"+_1ea[1]+"!",[_1ea[0],_1e9]).each(function(){
_1a1.data(this,key,_1e9);
});
}
},removeData:function(key){
return this.each(function(){
_1a1.removeData(this,key);
});
},domManip:function(args,_1ee,_1ef,_1f0){
var _1f1=this.length>1,_1f2;
return this.each(function(){
if(!_1f2){
_1f2=_1a1.clean(args,this.ownerDocument);
if(_1ef){
_1f2.reverse();
}
}
var obj=this;
if(_1ee&&_1a1.nodeName(this,"table")&&_1a1.nodeName(_1f2[0],"tr")){
obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));
}
var _1f4=_1a1([]);
_1a1.each(_1f2,function(){
var elem=_1f1?_1a1(this).clone(true)[0]:this;
if(_1a1.nodeName(elem,"script")){
_1f4=_1f4.add(elem);
}else{
if(elem.nodeType==1){
_1f4=_1f4.add(_1a1("script",elem).remove());
}
_1f0.call(obj,elem);
}
});
_1f4.each(evalScript);
});
}};
_1a1.fn.init.prototype=_1a1.fn;
function evalScript(i,elem){
if(elem.src){
_1a1.ajax({url:elem.src,async:false,dataType:"script"});
}else{
_1a1.globalEval(elem.text||elem.textContent||elem.innerHTML||"");
}
if(elem.parentNode){
elem.parentNode.removeChild(elem);
}
}
function now(){
return +new Date;
}
_1a1.extend=_1a1.fn.extend=function(){
var _1f8=arguments[0]||{},i=1,_1fa=arguments.length,deep=false,_1fc;
if(_1f8.constructor==Boolean){
deep=_1f8;
_1f8=arguments[1]||{};
i=2;
}
if(typeof _1f8!="object"&&typeof _1f8!="function"){
_1f8={};
}
if(_1fa==i){
_1f8=this;
--i;
}
for(;i<_1fa;i++){
if((_1fc=arguments[i])!=null){
for(var name in _1fc){
var src=_1f8[name],copy=_1fc[name];
if(_1f8===copy){
continue;
}
if(deep&&copy&&typeof copy=="object"&&!copy.nodeType){
_1f8[name]=_1a1.extend(deep,src||(copy.length!=null?[]:{}),copy);
}else{
if(copy!==_1a6){
_1f8[name]=copy;
}
}
}
}
}
return _1f8;
};
var _200="jQuery"+now(),uuid=0,_202={},_203=/z-?index|font-?weight|opacity|zoom|line-?height/i,_204=document.defaultView||{};
_1a1.extend({noConflict:function(deep){
window.$=_$;
if(deep){
window.jQuery=_19f;
}
return _1a1;
},isFunction:function(fn){
return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"");
},isXMLDoc:function(elem){
return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body;
},globalEval:function(data){
data=_1a1.trim(data);
if(data){
var head=document.getElementsByTagName("head")[0]||document.documentElement,_20a=document.createElement("script");
_20a.type="text/javascript";
if(_1a1.browser.msie){
_20a.text=data;
}else{
_20a.appendChild(document.createTextNode(data));
}
head.insertBefore(_20a,head.firstChild);
head.removeChild(_20a);
}
},nodeName:function(elem,name){
return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();
},cache:{},data:function(elem,name,data){
elem=elem==window?_202:elem;
var id=elem[_200];
if(!id){
id=elem[_200]=++uuid;
}
if(name&&!_1a1.cache[id]){
_1a1.cache[id]={};
}
if(data!==_1a6){
_1a1.cache[id][name]=data;
}
return name?_1a1.cache[id][name]:id;
},removeData:function(elem,name){
elem=elem==window?_202:elem;
var id=elem[_200];
if(name){
if(_1a1.cache[id]){
delete _1a1.cache[id][name];
name="";
for(name in _1a1.cache[id]){
break;
}
if(!name){
_1a1.removeData(elem);
}
}
}else{
try{
delete elem[_200];
}
catch(e){
if(elem.removeAttribute){
elem.removeAttribute(_200);
}
}
delete _1a1.cache[id];
}
},each:function(_214,_215,args){
var name,i=0,_219=_214.length;
if(args){
if(_219==_1a6){
for(name in _214){
if(_215.apply(_214[name],args)===false){
break;
}
}
}else{
for(;i<_219;){
if(_215.apply(_214[i++],args)===false){
break;
}
}
}
}else{
if(_219==_1a6){
for(name in _214){
if(_215.call(_214[name],name,_214[name])===false){
break;
}
}
}else{
for(var _21a=_214[0];i<_219&&_215.call(_21a,i,_21a)!==false;_21a=_214[++i]){
}
}
}
return _214;
},prop:function(elem,_21c,type,i,name){
if(_1a1.isFunction(_21c)){
_21c=_21c.call(elem,i);
}
return _21c&&_21c.constructor==Number&&type=="curCSS"&&!_203.test(name)?_21c+"px":_21c;
},className:{add:function(elem,_221){
_1a1.each((_221||"").split(/\s+/),function(i,_223){
if(elem.nodeType==1&&!_1a1.className.has(elem.className,_223)){
elem.className+=(elem.className?" ":"")+_223;
}
});
},remove:function(elem,_225){
if(elem.nodeType==1){
elem.className=_225!=_1a6?_1a1.grep(elem.className.split(/\s+/),function(_226){
return !_1a1.className.has(_225,_226);
}).join(" "):"";
}
},has:function(elem,_228){
return _1a1.inArray(_228,(elem.className||elem).toString().split(/\s+/))>-1;
}},swap:function(elem,_22a,_22b){
var old={};
for(var name in _22a){
old[name]=elem.style[name];
elem.style[name]=_22a[name];
}
_22b.call(elem);
for(var name in _22a){
elem.style[name]=old[name];
}
},css:function(elem,name,_230){
if(name=="width"||name=="height"){
var val,_232={position:"absolute",visibility:"hidden",display:"block"},_233=name=="width"?["Left","Right"]:["Top","Bottom"];
function getWH(){
val=name=="width"?elem.offsetWidth:elem.offsetHeight;
var _234=0,_235=0;
_1a1.each(_233,function(){
_234+=parseFloat(_1a1.curCSS(elem,"padding"+this,true))||0;
_235+=parseFloat(_1a1.curCSS(elem,"border"+this+"Width",true))||0;
});
val-=Math.round(_234+_235);
}
if(_1a1(elem).is(":visible")){
getWH();
}else{
_1a1.swap(elem,_232,getWH);
}
return Math.max(0,val);
}
return _1a1.curCSS(elem,name,_230);
},curCSS:function(elem,name,_238){
var ret,_23a=elem.style;
function color(elem){
if(!_1a1.browser.safari){
return false;
}
var ret=_204.getComputedStyle(elem,null);
return !ret||ret.getPropertyValue("color")=="";
}
if(name=="opacity"&&_1a1.browser.msie){
ret=_1a1.attr(_23a,"opacity");
return ret==""?"1":ret;
}
if(_1a1.browser.opera&&name=="display"){
var save=_23a.outline;
_23a.outline="0 solid black";
_23a.outline=save;
}
if(name.match(/float/i)){
name=styleFloat;
}
if(!_238&&_23a&&_23a[name]){
ret=_23a[name];
}else{
if(_204.getComputedStyle){
if(name.match(/float/i)){
name="float";
}
name=name.replace(/([A-Z])/g,"-$1").toLowerCase();
var _23e=_204.getComputedStyle(elem,null);
if(_23e&&!color(elem)){
ret=_23e.getPropertyValue(name);
}else{
var swap=[],_240=[],a=elem,i=0;
for(;a&&color(a);a=a.parentNode){
_240.unshift(a);
}
for(;i<_240.length;i++){
if(color(_240[i])){
swap[i]=_240[i].style.display;
_240[i].style.display="block";
}
}
ret=name=="display"&&swap[_240.length-1]!=null?"none":(_23e&&_23e.getPropertyValue(name))||"";
for(i=0;i<swap.length;i++){
if(swap[i]!=null){
_240[i].style.display=swap[i];
}
}
}
if(name=="opacity"&&ret==""){
ret="1";
}
}else{
if(elem.currentStyle){
var _243=name.replace(/\-(\w)/g,function(all,_245){
return _245.toUpperCase();
});
ret=elem.currentStyle[name]||elem.currentStyle[_243];
if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){
var left=_23a.left,_247=elem.runtimeStyle.left;
elem.runtimeStyle.left=elem.currentStyle.left;
_23a.left=ret||0;
ret=_23a.pixelLeft+"px";
_23a.left=left;
elem.runtimeStyle.left=_247;
}
}
}
}
return ret;
},clean:function(_248,_249){
var ret=[];
_249=_249||document;
if(typeof _249.createElement=="undefined"){
_249=_249.ownerDocument||_249[0]&&_249[0].ownerDocument||document;
}
_1a1.each(_248,function(i,elem){
if(!elem){
return;
}
if(elem.constructor==Number){
elem+="";
}
if(typeof elem=="string"){
elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,_24e,tag){
return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:_24e+"></"+tag+">";
});
var tags=_1a1.trim(elem).toLowerCase(),div=_249.createElement("div");
var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||_1a1.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];
div.innerHTML=wrap[1]+elem+wrap[2];
while(wrap[0]--){
div=div.lastChild;
}
if(_1a1.browser.msie){
var _253=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];
for(var j=_253.length-1;j>=0;--j){
if(_1a1.nodeName(_253[j],"tbody")&&!_253[j].childNodes.length){
_253[j].parentNode.removeChild(_253[j]);
}
}
if(/^\s/.test(elem)){
div.insertBefore(_249.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);
}
}
elem=_1a1.makeArray(div.childNodes);
}
if(elem.length===0&&(!_1a1.nodeName(elem,"form")&&!_1a1.nodeName(elem,"select"))){
return;
}
if(elem[0]==_1a6||_1a1.nodeName(elem,"form")||elem.options){
ret.push(elem);
}else{
ret=_1a1.merge(ret,elem);
}
});
return ret;
},attr:function(elem,name,_257){
if(!elem||elem.nodeType==3||elem.nodeType==8){
return _1a6;
}
var _258=!_1a1.isXMLDoc(elem),set=_257!==_1a6,msie=_1a1.browser.msie;
name=_258&&_1a1.props[name]||name;
if(elem.tagName){
var _25b=/href|src|style/.test(name);
if(name=="selected"&&_1a1.browser.safari){
elem.parentNode.selectedIndex;
}
if(name in elem&&_258&&!_25b){
if(set){
if(name=="type"&&_1a1.nodeName(elem,"input")&&elem.parentNode){
throw "type property can't be changed";
}
elem[name]=_257;
}
if(_1a1.nodeName(elem,"form")&&elem.getAttributeNode(name)){
return elem.getAttributeNode(name).nodeValue;
}
return elem[name];
}
if(msie&&_258&&name=="style"){
return _1a1.attr(elem.style,"cssText",_257);
}
if(set){
elem.setAttribute(name,""+_257);
}
var attr=msie&&_258&&_25b?elem.getAttribute(name,2):elem.getAttribute(name);
return attr===null?_1a6:attr;
}
if(msie&&name=="opacity"){
if(set){
elem.zoom=1;
elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(_257)+""=="NaN"?"":"alpha(opacity="+_257*100+")");
}
return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+"":"";
}
name=name.replace(/-([a-z])/ig,function(all,_25e){
return _25e.toUpperCase();
});
if(set){
elem[name]=_257;
}
return elem[name];
},trim:function(text){
return (text||"").replace(/^\s+|\s+$/g,"");
},makeArray:function(_260){
var ret=[];
if(_260!=null){
var i=_260.length;
if(i==null||_260.split||_260.setInterval||_260.call){
ret[0]=_260;
}else{
while(i){
ret[--i]=_260[i];
}
}
}
return ret;
},inArray:function(elem,_264){
for(var i=0,_266=_264.length;i<_266;i++){
if(_264[i]===elem){
return i;
}
}
return -1;
},merge:function(_267,_268){
var i=0,elem,pos=_267.length;
if(_1a1.browser.msie){
while(elem=_268[i++]){
if(elem.nodeType!=8){
_267[pos++]=elem;
}
}
}else{
while(elem=_268[i++]){
_267[pos++]=elem;
}
}
return _267;
},unique:function(_26c){
var ret=[],done={};
try{
for(var i=0,_270=_26c.length;i<_270;i++){
var id=_1a1.data(_26c[i]);
if(!done[id]){
done[id]=true;
ret.push(_26c[i]);
}
}
}
catch(e){
ret=_26c;
}
return ret;
},grep:function(_272,_273,inv){
var ret=[];
for(var i=0,_277=_272.length;i<_277;i++){
if(!inv!=!_273(_272[i],i)){
ret.push(_272[i]);
}
}
return ret;
},map:function(_278,_279){
var ret=[];
for(var i=0,_27c=_278.length;i<_27c;i++){
var _27d=_279(_278[i],i);
if(_27d!=null){
ret[ret.length]=_27d;
}
}
return ret.concat.apply([],ret);
}});
var _27e=navigator.userAgent.toLowerCase();
_1a1.browser={version:(_27e.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(_27e),opera:/opera/.test(_27e),msie:/msie/.test(_27e)&&!/opera/.test(_27e),mozilla:/mozilla/.test(_27e)&&!/(compatible|webkit)/.test(_27e)};
var _27f=_1a1.browser.msie?"styleFloat":"cssFloat";
_1a1.extend({boxModel:!_1a1.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":_27f,cssFloat:_27f,styleFloat:_27f,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});
_1a1.each({parent:function(elem){
return elem.parentNode;
},parents:function(elem){
return _1a1.dir(elem,"parentNode");
},next:function(elem){
return _1a1.nth(elem,2,"nextSibling");
},prev:function(elem){
return _1a1.nth(elem,2,"previousSibling");
},nextAll:function(elem){
return _1a1.dir(elem,"nextSibling");
},prevAll:function(elem){
return _1a1.dir(elem,"previousSibling");
},siblings:function(elem){
return _1a1.sibling(elem.parentNode.firstChild,elem);
},children:function(elem){
return _1a1.sibling(elem.firstChild);
},contents:function(elem){
return _1a1.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:_1a1.makeArray(elem.childNodes);
}},function(name,fn){
_1a1.fn[name]=function(_28b){
var ret=_1a1.map(this,fn);
if(_28b&&typeof _28b=="string"){
ret=_1a1.multiFilter(_28b,ret);
}
return this.pushStack(_1a1.unique(ret));
};
});
_1a1.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,_28e){
_1a1.fn[name]=function(){
var args=arguments;
return this.each(function(){
for(var i=0,_291=args.length;i<_291;i++){
_1a1(args[i])[_28e](this);
}
});
};
});
_1a1.each({removeAttr:function(name){
_1a1.attr(this,name,"");
if(this.nodeType==1){
this.removeAttribute(name);
}
},addClass:function(_293){
_1a1.className.add(this,_293);
},removeClass:function(_294){
_1a1.className.remove(this,_294);
},toggleClass:function(_295){
_1a1.className[_1a1.className.has(this,_295)?"remove":"add"](this,_295);
},remove:function(_296){
if(!_296||_1a1.filter(_296,[this]).r.length){
_1a1("*",this).add(this).each(function(){
_1a1.event.remove(this);
_1a1.removeData(this);
});
if(this.parentNode){
this.parentNode.removeChild(this);
}
}
},empty:function(){
_1a1(">*",this).remove();
while(this.firstChild){
this.removeChild(this.firstChild);
}
}},function(name,fn){
_1a1.fn[name]=function(){
return this.each(fn,arguments);
};
});
_1a1.each(["Height","Width"],function(i,name){
var type=name.toLowerCase();
_1a1.fn[type]=function(size){
return this[0]==window?_1a1.browser.opera&&document.body["client"+name]||_1a1.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==_1a6?(this.length?_1a1.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");
};
});
function num(elem,prop){
return elem[0]&&parseInt(_1a1.curCSS(elem[0],prop,true),10)||0;
}
var _29f=_1a1.browser.safari&&parseInt(_1a1.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uffff*_-]|\\\\.)",_2a0=new RegExp("^>\\s*("+_29f+"+)"),_2a1=new RegExp("^("+_29f+"+)(#)("+_29f+"+)"),_2a2=new RegExp("^([#.]?)("+_29f+"*)");
_1a1.extend({expr:{"":function(a,i,m){
return m[2]=="*"||_1a1.nodeName(a,m[2]);
},"#":function(a,i,m){
return a.getAttribute("id")==m[2];
},":":{lt:function(a,i,m){
return i<m[3]-0;
},gt:function(a,i,m){
return i>m[3]-0;
},nth:function(a,i,m){
return m[3]-0==i;
},eq:function(a,i,m){
return m[3]-0==i;
},first:function(a,i){
return i==0;
},last:function(a,i,m,r){
return i==r.length-1;
},even:function(a,i){
return i%2==0;
},odd:function(a,i){
return i%2;
},"first-child":function(a){
return a.parentNode.getElementsByTagName("*")[0]==a;
},"last-child":function(a){
return _1a1.nth(a.parentNode.lastChild,1,"previousSibling")==a;
},"only-child":function(a){
return !_1a1.nth(a.parentNode.lastChild,2,"previousSibling");
},parent:function(a){
return a.firstChild;
},empty:function(a){
return !a.firstChild;
},contains:function(a,i,m){
return (a.textContent||a.innerText||_1a1(a).text()||"").indexOf(m[3])>=0;
},visible:function(a){
return "hidden"!=a.type&&_1a1.css(a,"display")!="none"&&_1a1.css(a,"visibility")!="hidden";
},hidden:function(a){
return "hidden"==a.type||_1a1.css(a,"display")=="none"||_1a1.css(a,"visibility")=="hidden";
},enabled:function(a){
return !a.disabled;
},disabled:function(a){
return a.disabled;
},checked:function(a){
return a.checked;
},selected:function(a){
return a.selected||_1a1.attr(a,"selected");
},text:function(a){
return "text"==a.type;
},radio:function(a){
return "radio"==a.type;
},checkbox:function(a){
return "checkbox"==a.type;
},file:function(a){
return "file"==a.type;
},password:function(a){
return "password"==a.type;
},submit:function(a){
return "submit"==a.type;
},image:function(a){
return "image"==a.type;
},reset:function(a){
return "reset"==a.type;
},button:function(a){
return "button"==a.type||_1a1.nodeName(a,"button");
},input:function(a){
return /input|select|textarea|button/i.test(a.nodeName);
},has:function(a,i,m){
return _1a1.find(m[3],a).length;
},header:function(a){
return /h\d/i.test(a.nodeName);
},animated:function(a){
return _1a1.grep(_1a1.timers,function(fn){
return a==fn.elem;
}).length;
}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+_29f+"+)")],multiFilter:function(expr,_2de,not){
var old,cur=[];
while(expr&&expr!=old){
old=expr;
var f=_1a1.filter(expr,_2de,not);
expr=f.t.replace(/^\s*,\s*/,"");
cur=not?_2de=f.r:_1a1.merge(cur,f.r);
}
return cur;
},find:function(t,_2e4){
if(typeof t!="string"){
return [t];
}
if(_2e4&&_2e4.nodeType!=1&&_2e4.nodeType!=9){
return [];
}
_2e4=_2e4||document;
var ret=[_2e4],done=[],last,_2e8;
while(t&&last!=t){
var r=[];
last=t;
t=_1a1.trim(t);
var _2ea=false,re=_2a0,m=re.exec(t);
if(m){
_2e8=m[1].toUpperCase();
for(var i=0;ret[i];i++){
for(var c=ret[i].firstChild;c;c=c.nextSibling){
if(c.nodeType==1&&(_2e8=="*"||c.nodeName.toUpperCase()==_2e8)){
r.push(c);
}
}
}
ret=r;
t=t.replace(re,"");
if(t.indexOf(" ")==0){
continue;
}
_2ea=true;
}else{
re=/^([>+~])\s*(\w*)/i;
if((m=re.exec(t))!=null){
r=[];
var _2ef={};
_2e8=m[2].toUpperCase();
m=m[1];
for(var j=0,rl=ret.length;j<rl;j++){
var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;
for(;n;n=n.nextSibling){
if(n.nodeType==1){
var id=_1a1.data(n);
if(m=="~"&&_2ef[id]){
break;
}
if(!_2e8||n.nodeName.toUpperCase()==_2e8){
if(m=="~"){
_2ef[id]=true;
}
r.push(n);
}
if(m=="+"){
break;
}
}
}
}
ret=r;
t=_1a1.trim(t.replace(re,""));
_2ea=true;
}
}
if(t&&!_2ea){
if(!t.indexOf(",")){
if(_2e4==ret[0]){
ret.shift();
}
done=_1a1.merge(done,ret);
r=ret=[_2e4];
t=" "+t.substr(1,t.length);
}else{
var re2=_2a1;
var m=re2.exec(t);
if(m){
m=[0,m[2],m[3],m[1]];
}else{
re2=_2a2;
m=re2.exec(t);
}
m[2]=m[2].replace(/\\/g,"");
var elem=ret[ret.length-1];
if(m[1]=="#"&&elem&&elem.getElementById&&!_1a1.isXMLDoc(elem)){
var oid=elem.getElementById(m[2]);
if((_1a1.browser.msie||_1a1.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){
oid=_1a1("[@id=\""+m[2]+"\"]",elem)[0];
}
ret=r=oid&&(!m[3]||_1a1.nodeName(oid,m[3]))?[oid]:[];
}else{
for(var i=0;ret[i];i++){
var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];
if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){
tag="param";
}
r=_1a1.merge(r,ret[i].getElementsByTagName(tag));
}
if(m[1]=="."){
r=_1a1.classFilter(r,m[2]);
}
if(m[1]=="#"){
var tmp=[];
for(var i=0;r[i];i++){
if(r[i].getAttribute("id")==m[2]){
tmp=[r[i]];
break;
}
}
r=tmp;
}
ret=r;
}
t=t.replace(re2,"");
}
}
if(t){
var val=_1a1.filter(t,r);
ret=r=val.r;
t=_1a1.trim(val.t);
}
}
if(t){
ret=[];
}
if(ret&&_2e4==ret[0]){
ret.shift();
}
done=_1a1.merge(done,ret);
return done;
},classFilter:function(r,m,not){
m=" "+m+" ";
var tmp=[];
for(var i=0;r[i];i++){
var pass=(" "+r[i].className+" ").indexOf(m)>=0;
if(!not&&pass||not&&!pass){
tmp.push(r[i]);
}
}
return tmp;
},filter:function(t,r,not){
var last;
while(t&&t!=last){
last=t;
var p=_1a1.parse,m;
for(var i=0;p[i];i++){
m=p[i].exec(t);
if(m){
t=t.substring(m[0].length);
m[2]=m[2].replace(/\\/g,"");
break;
}
}
if(!m){
break;
}
if(m[1]==":"&&m[2]=="not"){
r=_1a5.test(m[3])?_1a1.filter(m[3],r,true).r:_1a1(r).not(m[3]);
}else{
if(m[1]=="."){
r=_1a1.classFilter(r,m[2],not);
}else{
if(m[1]=="["){
var tmp=[],type=m[3];
for(var i=0,rl=r.length;i<rl;i++){
var a=r[i],z=a[_1a1.props[m[2]]||m[2]];
if(z==null||/href|src|selected/.test(m[2])){
z=_1a1.attr(a,m[2])||"";
}
if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){
tmp.push(a);
}
}
r=tmp;
}else{
if(m[1]==":"&&m[2]=="nth-child"){
var _30c={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),_30e=(test[1]+(test[2]||1))-0,last=test[3]-0;
for(var i=0,rl=r.length;i<rl;i++){
var node=r[i],_310=node.parentNode,id=_1a1.data(_310);
if(!_30c[id]){
var c=1;
for(var n=_310.firstChild;n;n=n.nextSibling){
if(n.nodeType==1){
n.nodeIndex=c++;
}
}
_30c[id]=true;
}
var add=false;
if(_30e==0){
if(node.nodeIndex==last){
add=true;
}
}else{
if((node.nodeIndex-last)%_30e==0&&(node.nodeIndex-last)/_30e>=0){
add=true;
}
}
if(add^not){
tmp.push(node);
}
}
r=tmp;
}else{
var fn=_1a1.expr[m[1]];
if(typeof fn=="object"){
fn=fn[m[2]];
}
if(typeof fn=="string"){
fn=eval("false||function(a,i){return "+fn+";}");
}
r=_1a1.grep(r,function(elem,i){
return fn(elem,i,m,r);
},not);
}
}
}
}
}
return {r:r,t:t};
},dir:function(elem,dir){
var _31a=[],cur=elem[dir];
while(cur&&cur!=document){
if(cur.nodeType==1){
_31a.push(cur);
}
cur=cur[dir];
}
return _31a;
},nth:function(cur,_31d,dir,elem){
_31d=_31d||1;
var num=0;
for(;cur;cur=cur[dir]){
if(cur.nodeType==1&&++num==_31d){
break;
}
}
return cur;
},sibling:function(n,elem){
var r=[];
for(;n;n=n.nextSibling){
if(n.nodeType==1&&n!=elem){
r.push(n);
}
}
return r;
}});
_1a1.event={add:function(elem,_325,_326,data){
if(elem.nodeType==3||elem.nodeType==8){
return;
}
if(_1a1.browser.msie&&elem.setInterval){
elem=window;
}
if(!_326.guid){
_326.guid=this.guid++;
}
if(data!=_1a6){
var fn=_326;
_326=this.proxy(fn,function(){
return fn.apply(this,arguments);
});
_326.data=data;
}
var _329=_1a1.data(elem,"events")||_1a1.data(elem,"events",{}),_32a=_1a1.data(elem,"handle")||_1a1.data(elem,"handle",function(){
if(typeof _1a1!="undefined"&&!_1a1.event.triggered){
return _1a1.event.handle.apply(arguments.callee.elem,arguments);
}
});
_32a.elem=elem;
_1a1.each(_325.split(/\s+/),function(_32b,type){
var _32d=type.split(".");
type=_32d[0];
_326.type=_32d[1];
var _32e=_329[type];
if(!_32e){
_32e=_329[type]={};
if(!_1a1.event.special[type]||_1a1.event.special[type].setup.call(elem)===false){
if(elem.addEventListener){
elem.addEventListener(type,_32a,false);
}else{
if(elem.attachEvent){
elem.attachEvent("on"+type,_32a);
}
}
}
}
_32e[_326.guid]=_326;
_1a1.event.global[type]=true;
});
elem=null;
},guid:1,global:{},remove:function(elem,_330,_331){
if(elem.nodeType==3||elem.nodeType==8){
return;
}
var _332=_1a1.data(elem,"events"),ret,_334;
if(_332){
if(_330==_1a6||(typeof _330=="string"&&_330.charAt(0)==".")){
for(var type in _332){
this.remove(elem,type+(_330||""));
}
}else{
if(_330.type){
_331=_330.handler;
_330=_330.type;
}
_1a1.each(_330.split(/\s+/),function(_336,type){
var _338=type.split(".");
type=_338[0];
if(_332[type]){
if(_331){
delete _332[type][_331.guid];
}else{
for(_331 in _332[type]){
if(!_338[1]||_332[type][_331].type==_338[1]){
delete _332[type][_331];
}
}
}
for(ret in _332[type]){
break;
}
if(!ret){
if(!_1a1.event.special[type]||_1a1.event.special[type].teardown.call(elem)===false){
if(elem.removeEventListener){
elem.removeEventListener(type,_1a1.data(elem,"handle"),false);
}else{
if(elem.detachEvent){
elem.detachEvent("on"+type,_1a1.data(elem,"handle"));
}
}
}
ret=null;
delete _332[type];
}
}
});
}
for(ret in _332){
break;
}
if(!ret){
var _339=_1a1.data(elem,"handle");
if(_339){
_339.elem=null;
}
_1a1.removeData(elem,"events");
_1a1.removeData(elem,"handle");
}
}
},trigger:function(type,data,elem,_33d,_33e){
data=_1a1.makeArray(data);
if(type.indexOf("!")>=0){
type=type.slice(0,-1);
var _33f=true;
}
if(!elem){
if(this.global[type]){
_1a1("*").add([window,document]).trigger(type,data);
}
}else{
if(elem.nodeType==3||elem.nodeType==8){
return _1a6;
}
var val,ret,fn=_1a1.isFunction(elem[type]||null),_343=!data[0]||!data[0].preventDefault;
if(_343){
data.unshift({type:type,target:elem,preventDefault:function(){
},stopPropagation:function(){
},timeStamp:now()});
data[0][_200]=true;
}
data[0].type=type;
if(_33f){
data[0].exclusive=true;
}
var _344=_1a1.data(elem,"handle");
if(_344){
val=_344.apply(elem,data);
}
if((!fn||(_1a1.nodeName(elem,"a")&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){
val=false;
}
if(_343){
data.shift();
}
if(_33e&&_1a1.isFunction(_33e)){
ret=_33e.apply(elem,val==null?data:data.concat(val));
if(ret!==_1a6){
val=ret;
}
}
if(fn&&_33d!==false&&val!==false&&!(_1a1.nodeName(elem,"a")&&type=="click")){
this.triggered=true;
try{
elem[type]();
}
catch(e){
}
}
this.triggered=false;
}
return val;
},handle:function(_345){
var val,ret,_348,all,_34a;
_345=arguments[0]=_1a1.event.fix(_345||window.event);
_348=_345.type.split(".");
_345.type=_348[0];
_348=_348[1];
all=!_348&&!_345.exclusive;
_34a=(_1a1.data(this,"events")||{})[_345.type];
for(var j in _34a){
var _34c=_34a[j];
if(all||_34c.type==_348){
_345.handler=_34c;
_345.data=_34c.data;
ret=_34c.apply(this,arguments);
if(val!==false){
val=ret;
}
if(ret===false){
_345.preventDefault();
_345.stopPropagation();
}
}
}
return val;
},fix:function(_34d){
if(_34d[_200]==true){
return _34d;
}
var _34e=_34d;
_34d={originalEvent:_34e};
var _34f="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");
for(var i=_34f.length;i;i--){
_34d[_34f[i]]=_34e[_34f[i]];
}
_34d[_200]=true;
_34d.preventDefault=function(){
if(_34e.preventDefault){
_34e.preventDefault();
}
_34e.returnValue=false;
};
_34d.stopPropagation=function(){
if(_34e.stopPropagation){
_34e.stopPropagation();
}
_34e.cancelBubble=true;
};
_34d.timeStamp=_34d.timeStamp||now();
if(!_34d.target){
_34d.target=_34d.srcElement||document;
}
if(_34d.target.nodeType==3){
_34d.target=_34d.target.parentNode;
}
if(!_34d.relatedTarget&&_34d.fromElement){
_34d.relatedTarget=_34d.fromElement==_34d.target?_34d.toElement:_34d.fromElement;
}
if(_34d.pageX==null&&_34d.clientX!=null){
var doc=document.documentElement,body=document.body;
_34d.pageX=_34d.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);
_34d.pageY=_34d.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);
}
if(!_34d.which&&((_34d.charCode||_34d.charCode===0)?_34d.charCode:_34d.keyCode)){
_34d.which=_34d.charCode||_34d.keyCode;
}
if(!_34d.metaKey&&_34d.ctrlKey){
_34d.metaKey=_34d.ctrlKey;
}
if(!_34d.which&&_34d.button){
_34d.which=(_34d.button&1?1:(_34d.button&2?3:(_34d.button&4?2:0)));
}
return _34d;
},proxy:function(fn,_354){
_354.guid=fn.guid=fn.guid||_354.guid||this.guid++;
return _354;
},special:{ready:{setup:function(){
bindReady();
return;
},teardown:function(){
return;
}},mouseenter:{setup:function(){
if(_1a1.browser.msie){
return false;
}
_1a1(this).bind("mouseover",_1a1.event.special.mouseenter.handler);
return true;
},teardown:function(){
if(_1a1.browser.msie){
return false;
}
_1a1(this).unbind("mouseover",_1a1.event.special.mouseenter.handler);
return true;
},handler:function(_355){
if(_356(_355,this)){
return true;
}
_355.type="mouseenter";
return _1a1.event.handle.apply(this,arguments);
}},mouseleave:{setup:function(){
if(_1a1.browser.msie){
return false;
}
_1a1(this).bind("mouseout",_1a1.event.special.mouseleave.handler);
return true;
},teardown:function(){
if(_1a1.browser.msie){
return false;
}
_1a1(this).unbind("mouseout",_1a1.event.special.mouseleave.handler);
return true;
},handler:function(_357){
if(_356(_357,this)){
return true;
}
_357.type="mouseleave";
return _1a1.event.handle.apply(this,arguments);
}}}};
_1a1.fn.extend({bind:function(type,data,fn){
return type=="unload"?this.one(type,data,fn):this.each(function(){
_1a1.event.add(this,type,fn||data,fn&&data);
});
},one:function(type,data,fn){
var one=_1a1.event.proxy(fn||data,function(_35f){
_1a1(this).unbind(_35f,one);
return (fn||data).apply(this,arguments);
});
return this.each(function(){
_1a1.event.add(this,type,one,fn&&data);
});
},unbind:function(type,fn){
return this.each(function(){
_1a1.event.remove(this,type,fn);
});
},trigger:function(type,data,fn){
return this.each(function(){
_1a1.event.trigger(type,data,this,true,fn);
});
},triggerHandler:function(type,data,fn){
return this[0]&&_1a1.event.trigger(type,data,this[0],false,fn);
},toggle:function(fn){
var args=arguments,i=1;
while(i<args.length){
_1a1.event.proxy(fn,args[i++]);
}
return this.click(_1a1.event.proxy(fn,function(_36b){
this.lastToggle=(this.lastToggle||0)%i;
_36b.preventDefault();
return args[this.lastToggle++].apply(this,arguments)||false;
}));
},hover:function(_36c,_36d){
return this.bind("mouseenter",_36c).bind("mouseleave",_36d);
},ready:function(fn){
bindReady();
if(_1a1.isReady){
fn.call(document,_1a1);
}else{
_1a1.readyList.push(function(){
return fn.call(this,_1a1);
});
}
return this;
}});
_1a1.extend({isReady:false,readyList:[],ready:function(){
if(!_1a1.isReady){
_1a1.isReady=true;
if(_1a1.readyList){
_1a1.each(_1a1.readyList,function(){
this.call(document);
});
_1a1.readyList=null;
}
_1a1(document).triggerHandler("ready");
}
}});
var _36f=false;
function bindReady(){
if(_36f){
return;
}
_36f=true;
if(document.addEventListener&&!_1a1.browser.opera){
document.addEventListener("DOMContentLoaded",_1a1.ready,false);
}
if(_1a1.browser.msie&&window==top){
(function(){
if(_1a1.isReady){
return;
}
try{
document.documentElement.doScroll("left");
}
catch(error){
setTimeout(arguments.callee,0);
return;
}
_1a1.ready();
})();
}
if(_1a1.browser.opera){
document.addEventListener("DOMContentLoaded",function(){
if(_1a1.isReady){
return;
}
for(var i=0;i<document.styleSheets.length;i++){
if(document.styleSheets[i].disabled){
setTimeout(arguments.callee,0);
return;
}
}
_1a1.ready();
},false);
}
if(_1a1.browser.safari){
var _371;
(function(){
if(_1a1.isReady){
return;
}
if(document.readyState!="loaded"&&document.readyState!="complete"){
setTimeout(arguments.callee,0);
return;
}
if(_371===_1a6){
_371=_1a1("style, link[rel=stylesheet]").length;
}
if(document.styleSheets.length!=_371){
setTimeout(arguments.callee,0);
return;
}
_1a1.ready();
})();
}
_1a1.event.add(window,"load",_1a1.ready);
}
_1a1.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,name){
_1a1.fn[name]=function(fn){
return fn?this.bind(name,fn):this.trigger(name);
};
});
var _356=function(_375,elem){
var _377=_375.relatedTarget;
while(_377&&_377!=elem){
try{
_377=_377.parentNode;
}
catch(error){
_377=elem;
}
}
return _377==elem;
};
_1a1(window).bind("unload",function(){
_1a1("*").add(document).unbind();
});
_1a1.fn.extend({_load:_1a1.fn.load,load:function(url,_379,_37a){
if(typeof url!="string"){
return this._load(url);
}
var off=url.indexOf(" ");
if(off>=0){
var _37c=url.slice(off,url.length);
url=url.slice(0,off);
}
_37a=_37a||function(){
};
var type="GET";
if(_379){
if(_1a1.isFunction(_379)){
_37a=_379;
_379=null;
}else{
_379=_1a1.param(_379);
type="POST";
}
}
var self=this;
_1a1.ajax({url:url,type:type,dataType:"html",data:_379,complete:function(res,_380){
if(_380=="success"||_380=="notmodified"){
self.html(_37c?_1a1("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(_37c):res.responseText);
}
self.each(_37a,[res.responseText,_380,res]);
}});
return this;
},serialize:function(){
return _1a1.param(this.serializeArray());
},serializeArray:function(){
return this.map(function(){
return _1a1.nodeName(this,"form")?_1a1.makeArray(this.elements):this;
}).filter(function(){
return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type));
}).map(function(i,elem){
var val=_1a1(this).val();
return val==null?null:val.constructor==Array?_1a1.map(val,function(val,i){
return {name:elem.name,value:val};
}):{name:elem.name,value:val};
}).get();
}});
_1a1.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){
_1a1.fn[o]=function(f){
return this.bind(o,f);
};
});
var jsc=now();
_1a1.extend({get:function(url,data,_38c,type){
if(_1a1.isFunction(data)){
_38c=data;
data=null;
}
return _1a1.ajax({type:"GET",url:url,data:data,success:_38c,dataType:type});
},getScript:function(url,_38f){
return _1a1.get(url,null,_38f,"script");
},getJSON:function(url,data,_392){
return _1a1.get(url,data,_392,"json");
},post:function(url,data,_395,type){
if(_1a1.isFunction(data)){
_395=data;
data={};
}
return _1a1.ajax({type:"POST",url:url,data:data,success:_395,dataType:type});
},ajaxSetup:function(_397){
_1a1.extend(_1a1.ajaxSettings,_397);
},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){
s=_1a1.extend(true,s,_1a1.extend(true,{},_1a1.ajaxSettings,s));
var _399,jsre=/=\?(&|$)/g,_39b,data,type=s.type.toUpperCase();
if(s.data&&s.processData&&typeof s.data!="string"){
s.data=_1a1.param(s.data);
}
if(s.dataType=="jsonp"){
if(type=="GET"){
if(!s.url.match(jsre)){
s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";
}
}else{
if(!s.data||!s.data.match(jsre)){
s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";
}
}
s.dataType="json";
}
if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){
_399="jsonp"+jsc++;
if(s.data){
s.data=(s.data+"").replace(jsre,"="+_399+"$1");
}
s.url=s.url.replace(jsre,"="+_399+"$1");
s.dataType="script";
window[_399]=function(tmp){
data=tmp;
success();
complete();
window[_399]=_1a6;
try{
delete window[_399];
}
catch(e){
}
if(head){
head.removeChild(_3a0);
}
};
}
if(s.dataType=="script"&&s.cache==null){
s.cache=false;
}
if(s.cache===false&&type=="GET"){
var ts=now();
var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");
s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");
}
if(s.data&&type=="GET"){
s.url+=(s.url.match(/\?/)?"&":"?")+s.data;
s.data=null;
}
if(s.global&&!_1a1.active++){
_1a1.event.trigger("ajaxStart");
}
var _3a3=/^(?:\w+:)?\/\/([^\/?#]+)/;
if(s.dataType=="script"&&type=="GET"&&_3a3.test(s.url)&&_3a3.exec(s.url)[1]!=location.host){
var head=document.getElementsByTagName("head")[0];
var _3a0=document.createElement("script");
_3a0.src=s.url;
if(s.scriptCharset){
_3a0.charset=s.scriptCharset;
}
if(!_399){
var done=false;
_3a0.onload=_3a0.onreadystatechange=function(){
if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){
done=true;
success();
complete();
head.removeChild(_3a0);
}
};
}
head.appendChild(_3a0);
return _1a6;
}
var _3a5=false;
var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();
if(s.username){
xhr.open(type,s.url,s.async,s.username,s.password);
}else{
xhr.open(type,s.url,s.async);
}
try{
if(s.data){
xhr.setRequestHeader("Content-Type",s.contentType);
}
if(s.ifModified){
xhr.setRequestHeader("If-Modified-Since",_1a1.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");
}
xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");
xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);
}
catch(e){
}
if(s.beforeSend&&s.beforeSend(xhr,s)===false){
s.global&&_1a1.active--;
xhr.abort();
return false;
}
if(s.global){
_1a1.event.trigger("ajaxSend",[xhr,s]);
}
var _3a7=function(_3a8){
if(!_3a5&&xhr&&(xhr.readyState==4||_3a8=="timeout")){
_3a5=true;
if(ival){
clearInterval(ival);
ival=null;
}
_39b=_3a8=="timeout"&&"timeout"||!_1a1.httpSuccess(xhr)&&"error"||s.ifModified&&_1a1.httpNotModified(xhr,s.url)&&"notmodified"||"success";
if(_39b=="success"){
try{
data=_1a1.httpData(xhr,s.dataType,s.dataFilter);
}
catch(e){
_39b="parsererror";
}
}
if(_39b=="success"){
var _3aa;
try{
_3aa=xhr.getResponseHeader("Last-Modified");
}
catch(e){
}
if(s.ifModified&&_3aa){
_1a1.lastModified[s.url]=_3aa;
}
if(!_399){
success();
}
}else{
_1a1.handleError(s,xhr,_39b);
}
complete();
if(s.async){
xhr=null;
}
}
};
if(s.async){
var ival=setInterval(_3a7,13);
if(s.timeout>0){
setTimeout(function(){
if(xhr){
xhr.abort();
if(!_3a5){
_3a7("timeout");
}
}
},s.timeout);
}
}
try{
xhr.send(s.data);
}
catch(e){
_1a1.handleError(s,xhr,null,e);
}
if(!s.async){
_3a7();
}
function success(){
if(s.success){
s.success(data,_39b);
}
if(s.global){
_1a1.event.trigger("ajaxSuccess",[xhr,s]);
}
}
function complete(){
if(s.complete){
s.complete(xhr,_39b);
}
if(s.global){
_1a1.event.trigger("ajaxComplete",[xhr,s]);
}
if(s.global&&!--_1a1.active){
_1a1.event.trigger("ajaxStop");
}
}
return xhr;
},handleError:function(s,xhr,_3ad,e){
if(s.error){
s.error(xhr,_3ad,e);
}
if(s.global){
_1a1.event.trigger("ajaxError",[xhr,s,e]);
}
},active:0,httpSuccess:function(xhr){
try{
return !xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||_1a1.browser.safari&&xhr.status==_1a6;
}
catch(e){
}
return false;
},httpNotModified:function(xhr,url){
try{
var _3b2=xhr.getResponseHeader("Last-Modified");
return xhr.status==304||_3b2==_1a1.lastModified[url]||_1a1.browser.safari&&xhr.status==_1a6;
}
catch(e){
}
return false;
},httpData:function(xhr,type,_3b5){
var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;
if(xml&&data.documentElement.tagName=="parsererror"){
throw "parsererror";
}
if(_3b5){
data=_3b5(data,type);
}
if(type=="script"){
_1a1.globalEval(data);
}
if(type=="json"){
data=eval("("+data+")");
}
return data;
},param:function(a){
var s=[];
if(a.constructor==Array||a.jquery){
_1a1.each(a,function(){
s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));
});
}else{
for(var j in a){
if(a[j]&&a[j].constructor==Array){
_1a1.each(a[j],function(){
s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));
});
}else{
s.push(encodeURIComponent(j)+"="+encodeURIComponent(_1a1.isFunction(a[j])?a[j]():a[j]));
}
}
}
return s.join("&").replace(/%20/g,"+");
}});
_1a1.fn.extend({show:function(_3bc,_3bd){
return _3bc?this.animate({height:"show",width:"show",opacity:"show"},_3bc,_3bd):this.filter(":hidden").each(function(){
this.style.display=this.oldblock||"";
if(_1a1.css(this,"display")=="none"){
var elem=_1a1("<"+this.tagName+" />").appendTo("body");
this.style.display=elem.css("display");
if(this.style.display=="none"){
this.style.display="block";
}
elem.remove();
}
}).end();
},hide:function(_3bf,_3c0){
return _3bf?this.animate({height:"hide",width:"hide",opacity:"hide"},_3bf,_3c0):this.filter(":visible").each(function(){
this.oldblock=this.oldblock||_1a1.css(this,"display");
this.style.display="none";
}).end();
},_toggle:_1a1.fn.toggle,toggle:function(fn,fn2){
return _1a1.isFunction(fn)&&_1a1.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){
_1a1(this)[_1a1(this).is(":hidden")?"show":"hide"]();
});
},slideDown:function(_3c3,_3c4){
return this.animate({height:"show"},_3c3,_3c4);
},slideUp:function(_3c5,_3c6){
return this.animate({height:"hide"},_3c5,_3c6);
},slideToggle:function(_3c7,_3c8){
return this.animate({height:"toggle"},_3c7,_3c8);
},fadeIn:function(_3c9,_3ca){
return this.animate({opacity:"show"},_3c9,_3ca);
},fadeOut:function(_3cb,_3cc){
return this.animate({opacity:"hide"},_3cb,_3cc);
},fadeTo:function(_3cd,to,_3cf){
return this.animate({opacity:to},_3cd,_3cf);
},animate:function(prop,_3d1,_3d2,_3d3){
var _3d4=_1a1.speed(_3d1,_3d2,_3d3);
return this[_3d4.queue===false?"each":"queue"](function(){
if(this.nodeType!=1){
return false;
}
var opt=_1a1.extend({},_3d4),p,_3d7=_1a1(this).is(":hidden"),self=this;
for(p in prop){
if(prop[p]=="hide"&&_3d7||prop[p]=="show"&&!_3d7){
return opt.complete.call(this);
}
if(p=="height"||p=="width"){
opt.display=_1a1.css(this,"display");
opt.overflow=this.style.overflow;
}
}
if(opt.overflow!=null){
this.style.overflow="hidden";
}
opt.curAnim=_1a1.extend({},prop);
_1a1.each(prop,function(name,val){
var e=new _1a1.fx(self,opt,name);
if(/toggle|show|hide/.test(val)){
e[val=="toggle"?_3d7?"show":"hide":val](prop);
}else{
var _3dc=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),_3dd=e.cur(true)||0;
if(_3dc){
var end=parseFloat(_3dc[2]),unit=_3dc[3]||"px";
if(unit!="px"){
self.style[name]=(end||1)+unit;
_3dd=((end||1)/e.cur(true))*_3dd;
self.style[name]=_3dd+unit;
}
if(_3dc[1]){
end=((_3dc[1]=="-="?-1:1)*end)+_3dd;
}
e.custom(_3dd,end,unit);
}else{
e.custom(_3dd,val,"");
}
}
});
return true;
});
},queue:function(type,fn){
if(_1a1.isFunction(type)||(type&&type.constructor==Array)){
fn=type;
type="fx";
}
if(!type||(typeof type=="string"&&!fn)){
return queue(this[0],type);
}
return this.each(function(){
if(fn.constructor==Array){
_3e2(this,type,fn);
}else{
_3e2(this,type).push(fn);
if(_3e2(this,type).length==1){
fn.call(this);
}
}
});
},stop:function(_3e3,_3e4){
var _3e5=_1a1.timers;
if(_3e3){
this.queue([]);
}
this.each(function(){
for(var i=_3e5.length-1;i>=0;i--){
if(_3e5[i].elem==this){
if(_3e4){
_3e5[i](true);
}
_3e5.splice(i,1);
}
}
});
if(!_3e4){
this.dequeue();
}
return this;
}});
var _3e2=function(elem,type,_3e9){
if(elem){
type=type||"fx";
var q=_1a1.data(elem,type+"queue");
if(!q||_3e9){
q=_1a1.data(elem,type+"queue",_1a1.makeArray(_3e9));
}
}
return q;
};
_1a1.fn.dequeue=function(type){
type=type||"fx";
return this.each(function(){
var q=_3e2(this,type);
q.shift();
if(q.length){
q[0].call(this);
}
});
};
_1a1.extend({speed:function(_3ed,_3ee,fn){
var opt=_3ed&&_3ed.constructor==Object?_3ed:{complete:fn||!fn&&_3ee||_1a1.isFunction(_3ed)&&_3ed,duration:_3ed,easing:fn&&_3ee||_3ee&&_3ee.constructor!=Function&&_3ee};
opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:_1a1.fx.speeds[opt.duration])||_1a1.fx.speeds.def;
opt.old=opt.complete;
opt.complete=function(){
if(opt.queue!==false){
_1a1(this).dequeue();
}
if(_1a1.isFunction(opt.old)){
opt.old.call(this);
}
};
return opt;
},easing:{linear:function(p,n,_3f3,diff){
return _3f3+diff*p;
},swing:function(p,n,_3f7,diff){
return ((-Math.cos(p*Math.PI)/2)+0.5)*diff+_3f7;
}},timers:[],timerId:null,fx:function(elem,_3fa,prop){
this.options=_3fa;
this.elem=elem;
this.prop=prop;
if(!_3fa.orig){
_3fa.orig={};
}
}});
_1a1.fx.prototype={update:function(){
if(this.options.step){
this.options.step.call(this.elem,this.now,this);
}
(_1a1.fx.step[this.prop]||_1a1.fx.step._default)(this);
if(this.prop=="height"||this.prop=="width"){
this.elem.style.display="block";
}
},cur:function(_3fc){
if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){
return this.elem[this.prop];
}
var r=parseFloat(_1a1.css(this.elem,this.prop,_3fc));
return r&&r>-10000?r:parseFloat(_1a1.curCSS(this.elem,this.prop))||0;
},custom:function(from,to,unit){
this.startTime=now();
this.start=from;
this.end=to;
this.unit=unit||this.unit||"px";
this.now=this.start;
this.pos=this.state=0;
this.update();
var self=this;
function t(_402){
return self.step(_402);
}
t.elem=this.elem;
_1a1.timers.push(t);
if(_1a1.timerId==null){
_1a1.timerId=setInterval(function(){
var _403=_1a1.timers;
for(var i=0;i<_403.length;i++){
if(!_403[i]()){
_403.splice(i--,1);
}
}
if(!_403.length){
clearInterval(_1a1.timerId);
_1a1.timerId=null;
}
},13);
}
},show:function(){
this.options.orig[this.prop]=_1a1.attr(this.elem.style,this.prop);
this.options.show=true;
this.custom(0,this.cur());
if(this.prop=="width"||this.prop=="height"){
this.elem.style[this.prop]="1px";
}
_1a1(this.elem).show();
},hide:function(){
this.options.orig[this.prop]=_1a1.attr(this.elem.style,this.prop);
this.options.hide=true;
this.custom(this.cur(),0);
},step:function(_405){
var t=now();
if(_405||t>this.options.duration+this.startTime){
this.now=this.end;
this.pos=this.state=1;
this.update();
this.options.curAnim[this.prop]=true;
var done=true;
for(var i in this.options.curAnim){
if(this.options.curAnim[i]!==true){
done=false;
}
}
if(done){
if(this.options.display!=null){
this.elem.style.overflow=this.options.overflow;
this.elem.style.display=this.options.display;
if(_1a1.css(this.elem,"display")=="none"){
this.elem.style.display="block";
}
}
if(this.options.hide){
this.elem.style.display="none";
}
if(this.options.hide||this.options.show){
for(var p in this.options.curAnim){
_1a1.attr(this.elem.style,p,this.options.orig[p]);
}
}
}
if(done){
this.options.complete.call(this.elem);
}
return false;
}else{
var n=t-this.startTime;
this.state=n/this.options.duration;
this.pos=_1a1.easing[this.options.easing||(_1a1.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);
this.now=this.start+((this.end-this.start)*this.pos);
this.update();
}
return true;
}};
_1a1.extend(_1a1.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){
fx.elem.scrollLeft=fx.now;
},scrollTop:function(fx){
fx.elem.scrollTop=fx.now;
},opacity:function(fx){
_1a1.attr(fx.elem.style,"opacity",fx.now);
},_default:function(fx){
fx.elem.style[fx.prop]=fx.now+fx.unit;
}}});
_1a1.fn.offset=function(){
var left=0,top=0,elem=this[0],_412;
if(elem){
with(_1a1.browser){
var _413=elem.parentNode,_414=elem,_415=elem.offsetParent,doc=elem.ownerDocument,_417=safari&&parseInt(version)<522&&!/adobeair/i.test(_27e),css=_1a1.curCSS,_419=css(elem,"position")=="fixed";
if(elem.getBoundingClientRect){
var box=elem.getBoundingClientRect();
add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));
add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);
}else{
add(elem.offsetLeft,elem.offsetTop);
while(_415){
add(_415.offsetLeft,_415.offsetTop);
if(mozilla&&!/^t(able|d|h)$/i.test(_415.tagName)||safari&&!_417){
border(_415);
}
if(!_419&&css(_415,"position")=="fixed"){
_419=true;
}
_414=/^body$/i.test(_415.tagName)?_414:_415;
_415=_415.offsetParent;
}
while(_413&&_413.tagName&&!/^body|html$/i.test(_413.tagName)){
if(!/^inline|table.*$/i.test(css(_413,"display"))){
add(-_413.scrollLeft,-_413.scrollTop);
}
if(mozilla&&css(_413,"overflow")!="visible"){
border(_413);
}
_413=_413.parentNode;
}
if((_417&&(_419||css(_414,"position")=="absolute"))||(mozilla&&css(_414,"position")!="absolute")){
add(-doc.body.offsetLeft,-doc.body.offsetTop);
}
if(_419){
add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));
}
}
_412={top:top,left:left};
}
}
function border(elem){
add(_1a1.curCSS(elem,"borderLeftWidth",true),_1a1.curCSS(elem,"borderTopWidth",true));
}
function add(l,t){
left+=parseInt(l,10)||0;
top+=parseInt(t,10)||0;
}
return _412;
};
_1a1.fn.extend({position:function(){
var left=0,top=0,_420;
if(this[0]){
var _421=this.offsetParent(),_422=this.offset(),_423=/^body|html$/i.test(_421[0].tagName)?{top:0,left:0}:_421.offset();
_422.top-=num(this,"marginTop");
_422.left-=num(this,"marginLeft");
_423.top+=num(_421,"borderTopWidth");
_423.left+=num(_421,"borderLeftWidth");
_420={top:_422.top-_423.top,left:_422.left-_423.left};
}
return _420;
},offsetParent:function(){
var _424=this[0].offsetParent;
while(_424&&(!/^body|html$/i.test(_424.tagName)&&_1a1.css(_424,"position")=="static")){
_424=_424.offsetParent;
}
return _1a1(_424);
}});
_1a1.each(["Left","Top"],function(i,name){
var _427="scroll"+name;
_1a1.fn[_427]=function(val){
if(!this[0]){
return;
}
return val!=_1a6?this.each(function(){
this==window||this==document?window.scrollTo(!i?val:_1a1(window).scrollLeft(),i?val:_1a1(window).scrollTop()):this[_427]=val;
}):this[0]==window||this[0]==document?self[i?"pageYOffset":"pageXOffset"]||_1a1.boxModel&&document.documentElement[_427]||document.body[_427]:this[0][_427];
};
});
_1a1.each(["Height","Width"],function(i,name){
var tl=i?"Left":"Top",br=i?"Right":"Bottom";
_1a1.fn["inner"+name]=function(){
return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br);
};
_1a1.fn["outer"+name]=function(_42d){
return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(_42d?num(this,"margin"+tl)+num(this,"margin"+br):0);
};
});
})();

