var base2={name:"base2",version:"1.0",exports:"Base,Package,Abstract,Module,Enumerable,Map,Collection,RegGrp,Undefined,Null,This,True,False,assignID,detect,global",namespace:""};new function(_no_shrink_){var Undefined=K(),Null=K(null),True=K(true),False=K(false),This=function(){return this};var global=This();var base2=global.base2;var _FORMAT=/%([1-9])/g;var _LTRIM=/^\s\s*/;var _RTRIM=/\s\s*$/;var _RESCAPE=/([\/()[\]{}|*+-.,^$?\\])/g;var _BASE=/try/.test(detect)?/\bbase\b/:/.*/;var _HIDDEN=["constructor","toString","valueOf"];var _MSIE_NATIVE_FUNCTION=detect("(jscript)")?new RegExp("^"+rescape(isNaN).replace(/isNaN/,"\\w+")+"$"):{test:False};var _counter=1;var _slice=Array.prototype.slice;_Function_forEach();function assignID(object){if(!object.base2ID){object.base2ID="b2_"+_counter++}return object.base2ID}var _subclass=function(_instance,_static){base2.__prototyping=this.prototype;var _prototype=new this;if(_instance){extend(_prototype,_instance)}delete base2.__prototyping;var _constructor=_prototype.constructor;function _class(){if(!base2.__prototyping){if(this.constructor==arguments.callee||this.__constructing){this.__constructing=true;_constructor.apply(this,arguments);delete this.__constructing}else{return extend(arguments[0],_prototype)}}return this}_prototype.constructor=_class;for(var i in Base){_class[i]=this[i]}_class.ancestor=this;_class.base=Undefined;if(_static){extend(_class,_static)}_class.prototype=_prototype;if(_class.init){_class.init()}_class["#implements"]=[];_class["#implemented_by"]=[];return _class};var Base=_subclass.call(Object,{constructor:function(){if(arguments.length>0){this.extend(arguments[0])}},base:function(){},extend:delegate(extend)},Base={ancestorOf:function(klass){return _ancestorOf(this,klass)},extend:_subclass,forEach:function(object,block,context){_Function_forEach(this,object,block,context)},implement:function(source){if(typeof source=="function"){if(_ancestorOf(Base,source)){this["#implements"].push(source);source["#implemented_by"].push(this)}source=source.prototype}extend(this.prototype,source);return this}});var Package=Base.extend({constructor:function(_private,_public){this.extend(_public);if(this.init){this.init()}if(this.name&&this.name!="base2"){if(!this.parent){this.parent=base2}this.parent.addName(this.name,this);this.namespace=format("var %1=%2;",this.name,String2.slice(this,1,-1))}if(_private){var JSNamespace=base2.JavaScript?base2.JavaScript.namespace:"";_private.imports=Array2.reduce(csv(this.imports),function(namespace,name){var ns=lookup(name)||lookup("JavaScript."+name);assert(ns,format("Object not found: '%1'.",name),ReferenceError);return namespace+=ns.namespace},"var base2=(function(){return this.base2})();"+base2.namespace+JSNamespace)+lang.namespace;_private.exports=Array2.reduce(csv(this.exports),function(namespace,name){var fullName=this.name+"."+name;this.namespace+="var "+name+"="+fullName+";";return namespace+="if(!"+fullName+")"+fullName+"="+name+";"},"",this)+"this._label_"+this.name+"();";var pkg=this;var packageName=String2.slice(this,1,-1);_private["_label_"+this.name]=function(){Package.forEach(pkg,function(object,name){if(object&&object.ancestorOf==Base.ancestorOf){object.toString=K(format("[%1.%2]",packageName,name));if(object.prototype.toString==Base.prototype.toString){object.prototype.toString=K(format("[object %1.%2]",packageName,name))}}})}}function lookup(names){names=names.split(".");var value=base2,i=0;while(value&&names[i]!=null){value=value[names[i++]]}return value}},exports:"",imports:"",name:"",namespace:"",parent:null,addName:function(name,value){if(!this[name]){this[name]=value;this.exports+=","+name;this.namespace+=format("var %1=%2.%1;",name,this.name)}},addPackage:function(name){this.addName(name,new Package(null,{name:name,parent:this}))},toString:function(){return format("[%1]",this.parent?String2.slice(this.parent,1,-1)+"."+this.name:this.name)}});var Abstract=Base.extend({constructor:function(){throw new TypeError("Abstract class cannot be instantiated.")}});var _moduleCount=0;var Module=Abstract.extend(null,{namespace:"",extend:function(_interface,_static){var module=this.base();var index=_moduleCount++;module.namespace="";module.partial=this.partial;module.toString=K("[base2.Module["+index+"]]");Module[index]=module;module.implement(this);if(_interface){module.implement(_interface)}if(_static){extend(module,_static);if(module.init){module.init()}}return module},forEach:function(block,context){_Function_forEach(Module,this.prototype,function(method,name){if(typeOf(method)=="function"){block.call(context,this[name],name,this)}},this)},implement:function(_interface){var module=this;var id=module.toString().slice(1,-1);if(typeof _interface=="function"){if(!_ancestorOf(_interface,module)){this.base(_interface)}if(_ancestorOf(Module,_interface)){for(var name in _interface){if(module[name]===undefined){var property=_interface[name];if(typeof property=="function"&&property.call&&_interface.prototype[name]){property=_staticModuleMethod(_interface,name)}module[name]=property}}module.namespace+=_interface.namespace.replace(/base2\.Module\[\d+\]/g,id)}}else{extend(module,_interface);_extendModule(module,_interface)}return module},partial:function(){var module=Module.extend();var id=module.toString().slice(1,-1);module.namespace=this.namespace.replace(/(\w+)=b[^\)]+\)/g,"$1="+id+".$1");this.forEach(function(method,name){module[name]=partial(bind(method,module))});return module}});function _extendModule(module,_interface){var proto=module.prototype;var id=module.toString().slice(1,-1);for(var name in _interface){var property=_interface[name],namespace="";if(name.charAt(0)=="@"){if(detect(name.slice(1))){_extendModule(module,property)}}else{if(!proto[name]){if(name==name.toUpperCase()){namespace="var "+name+"="+id+"."+name+";"}else{if(typeof property=="function"&&property.call){namespace="var "+name+"=base2.lang.bind('"+name+"',"+id+");";proto[name]=_moduleMethod(module,name);proto[name]._module=module}}if(module.namespace.indexOf(namespace)==-1){module.namespace+=namespace}}}}}function _staticModuleMethod(module,name){return function(){return module[name].apply(module,arguments)}}function _moduleMethod(module,name){return function(){var args=_slice.call(arguments);args.unshift(this);return module[name].apply(module,args)}}var Enumerable=Module.extend({every:function(object,test,context){var result=true;try{forEach(object,function(value,key){result=test.call(context,value,key,object);if(!result){throw StopIteration}})}catch(error){if(error!=StopIteration){throw error}}return !!result},filter:function(object,test,context){var i=0;return this.reduce(object,function(result,value,key){if(test.call(context,value,key,object)){result[i++]=value}return result},[])},invoke:function(object,method){var args=_slice.call(arguments,2);return this.map(object,(typeof method=="function")?function(item){return item==null?undefined:method.apply(item,args)}:function(item){return item==null?undefined:item[method].apply(item,args)})},map:function(object,block,context){var result=[],i=0;forEach(object,function(value,key){result[i++]=block.call(context,value,key,object)});return result},pluck:function(object,key){return this.map(object,function(item){return item==null?undefined:item[key]})},reduce:function(object,block,result,context){var initialised=arguments.length>2;forEach(object,function(value,key){if(initialised){result=block.call(context,result,value,key,object)}else{result=value;initialised=true}});return result},some:function(object,test,context){return !this.every(object,not(test),context)}});var _HASH="#";var Map=Base.extend({constructor:function(values){if(values){this.merge(values)}},clear:function(){for(var key in this){if(key.indexOf(_HASH)==0){delete this[key]}}},copy:function(){base2.__prototyping=true;var copy=new this.constructor;delete base2.__prototyping;for(var i in this){if(this[i]!==copy[i]){copy[i]=this[i]}}return copy},forEach:function(block,context){for(var key in this){if(key.indexOf(_HASH)==0){block.call(context,this[key],key.slice(1),this)}}},get:function(key){return this[_HASH+key]},getKeys:function(){return this.map(II)},getValues:function(){return this.map(I)},has:function(key){
/*@cc_on @*/
/*@if (@_jscript_version < 5.5)
    return $Legacy.has(this, _HASH + key);
  @else @*/
return _HASH+key in this;
/*@end @*/
},merge:function(values){var put=flip(this.put);forEach(arguments,function(values){forEach(values,put,this)},this);return this},put:function(key,value){this[_HASH+key]=value},remove:function(key){delete this[_HASH+key]},size:function(){var size=0;for(var key in this){if(key.indexOf(_HASH)==0){size++}}return size},union:function(values){return this.merge.apply(this.copy(),arguments)}});Map.implement(Enumerable);Map.prototype.filter=function(test,context){return this.reduce(function(result,value,key){if(!test.call(context,value,key,this)){result.remove(key)}return result},this.copy(),this)};var _KEYS="~";var Collection=Map.extend({constructor:function(values){this[_KEYS]=new Array2;this.base(values)},add:function(key,item){assert(!this.has(key),"Duplicate key '"+key+"'.");this.put.apply(this,arguments)},clear:function(){this.base();this[_KEYS].length=0},copy:function(){var copy=this.base();copy[_KEYS]=this[_KEYS].copy();return copy},forEach:function(block,context){var keys=this[_KEYS];var length=keys.length;for(var i=0;i<length;i++){block.call(context,this[_HASH+keys[i]],keys[i],this)}},getAt:function(index){var key=this[_KEYS].item(index);return(key===undefined)?undefined:this[_HASH+key]},getKeys:function(){return this[_KEYS].copy()},indexOf:function(key){return this[_KEYS].indexOf(String(key))},insertAt:function(index,key,item){assert(this[_KEYS].item(index)!==undefined,"Index out of bounds.");assert(!this.has(key),"Duplicate key '"+key+"'.");this[_KEYS].insertAt(index,String(key));this[_HASH+key]=null;this.put.apply(this,_slice.call(arguments,1))},item:function(keyOrIndex){return this[typeof keyOrIndex=="number"?"getAt":"get"](keyOrIndex)},put:function(key,item){if(!this.has(key)){this[_KEYS].push(String(key))}var klass=this.constructor;if(klass.Item&&!instanceOf(item,klass.Item)){item=klass.create.apply(klass,arguments)}this[_HASH+key]=item},putAt:function(index,item){arguments[0]=this[_KEYS].item(index);assert(arguments[0]!==undefined,"Index out of bounds.");this.put.apply(this,arguments)},remove:function(key){if(this.has(key)){this[_KEYS].remove(String(key));delete this[_HASH+key]}},removeAt:function(index){var key=this[_KEYS].item(index);if(key!==undefined){this[_KEYS].removeAt(index);delete this[_HASH+key]}},reverse:function(){this[_KEYS].reverse();return this},size:function(){return this[_KEYS].length},slice:function(start,end){var sliced=this.copy();if(arguments.length>0){var keys=this[_KEYS],removed=keys;sliced[_KEYS]=Array2(_slice.apply(keys,arguments));if(sliced[_KEYS].length){removed=removed.slice(0,start);if(arguments.length>1){removed=removed.concat(keys.slice(end))}}for(var i=0;i<removed.length;i++){delete sliced[_HASH+removed[i]]}}return sliced},sort:function(compare){if(compare){this[_KEYS].sort(bind(function(key1,key2){return compare(this[_HASH+key1],this[_HASH+key2],key1,key2)},this))}else{this[_KEYS].sort()}return this},toString:function(){return"("+(this[_KEYS]||"")+")"}},{Item:null,create:function(key,item){return this.Item?new this.Item(key,item):item},extend:function(_instance,_static){var klass=this.base(_instance);klass.create=this.create;if(_static){extend(klass,_static)}if(!klass.Item){klass.Item=this.Item}else{if(typeof klass.Item!="function"){klass.Item=(this.Item||Base).extend(klass.Item)}}if(klass.init){klass.init()}return klass}});var _RG_BACK_REF=/\\(\d+)/g,_RG_ESCAPE_CHARS=/\\./g,_RG_ESCAPE_BRACKETS=/\(\?[:=!]|\[[^\]]+\]/g,_RG_BRACKETS=/\(/g,_RG_LOOKUP=/\$(\d+)/,_RG_LOOKUP_SIMPLE=/^\$\d+$/;var RegGrp=Collection.extend({constructor:function(values,ignoreCase){this.base(values);this.ignoreCase=!!ignoreCase},ignoreCase:false,exec:function(string,override){string+="";var items=this,keys=this[_KEYS];if(!keys.length){return string}if(override==RegGrp.IGNORE){override=0}return string.replace(new RegExp(this,this.ignoreCase?"gi":"g"),function(match){var item,offset=1,i=0;while((item=items[_HASH+keys[i++]])){var next=offset+item.length+1;if(arguments[offset]){var replacement=override==null?item.replacement:override;switch(typeof replacement){case"function":return replacement.apply(items,_slice.call(arguments,offset,next));case"number":return arguments[offset+replacement];default:return replacement}}offset=next}return match})},insertAt:function(index,expression,replacement){if(instanceOf(expression,RegExp)){arguments[1]=expression.source}return base(this,arguments)},test:function(string){return this.exec(string)!=string},toString:function(){var offset=1;return"("+this.map(function(item){var expression=(item+"").replace(_RG_BACK_REF,function(match,index){return"\\"+(offset+Number(index))});offset+=item.length+1;return expression}).join(")|(")+")"}},{IGNORE:"$0",init:function(){forEach("add,get,has,put,remove".split(","),function(name){_override(this,name,function(expression){if(instanceOf(expression,RegExp)){arguments[0]=expression.source}return base(this,arguments)})},this.prototype)},Item:{constructor:function(expression,replacement){if(replacement==null){replacement=RegGrp.IGNORE}else{if(replacement.replacement!=null){replacement=replacement.replacement}else{if(typeof replacement!="function"){replacement=String(replacement)}}}if(typeof replacement=="string"&&_RG_LOOKUP.test(replacement)){if(_RG_LOOKUP_SIMPLE.test(replacement)){replacement=parseInt(replacement.slice(1))}else{var Q='"';replacement=replacement.replace(/\\/g,"\\\\").replace(/"/g,"\\x22").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\$(\d+)/g,Q+"+(arguments[$1]||"+Q+Q+")+"+Q).replace(/(['"])\1\+(.*)\+\1\1$/,"$1");replacement=new Function("return "+Q+replacement+Q)}}this.length=RegGrp.count(expression);this.replacement=replacement;this.toString=K(expression+"")},length:0,replacement:""},count:function(expression){expression=(expression+"").replace(_RG_ESCAPE_CHARS,"").replace(_RG_ESCAPE_BRACKETS,"");return match(expression,_RG_BRACKETS).length}});var lang={name:"lang",version:base2.version,exports:"assert,assertArity,assertType,base,bind,copy,extend,forEach,format,instanceOf,match,pcopy,rescape,trim,typeOf",namespace:""};function assert(condition,message,ErrorClass){if(!condition){throw new (ErrorClass||Error)(message||"Assertion failed.")}}function assertArity(args,arity,message){if(arity==null){arity=args.callee.length}if(args.length<arity){throw new SyntaxError(message||"Not enough arguments.")}}function assertType(object,type,message){if(type&&(typeof type=="function"?!instanceOf(object,type):typeOf(object)!=type)){throw new TypeError(message||"Invalid type.")}}function copy(object){var copy={};for(var i in object){copy[i]=object[i]}return copy}function pcopy(object){_dummy.prototype=object;return new _dummy}function _dummy(){}function base(object,args){return object.base.apply(object,args)}function extend(object,source){if(object&&source){if(arguments.length>2){var key=source;source={};source[key]=arguments[2]}var proto=global[(typeof source=="function"?"Function":"Object")].prototype;if(base2.__prototyping){var i=_HIDDEN.length,key;while((key=_HIDDEN[--i])){var value=source[key];if(value!=proto[key]){if(_BASE.test(value)){_override(object,key,value)}else{object[key]=value}}}}for(key in source){if(proto[key]===undefined){var value=source[key];if(key.charAt(0)=="@"){if(detect(key.slice(1))){extend(object,value)}}else{var ancestor=object[key];if(ancestor&&typeof value=="function"){if(value!=ancestor){if(_BASE.test(value)){_override(object,key,value)}else{value.ancestor=ancestor;object[key]=value}}}else{object[key]=value}}}}}return object}function _ancestorOf(ancestor,fn){while(fn){if(!fn.ancestor){return false}fn=fn.ancestor;if(fn==ancestor){return true}}return false}function _override(object,name,method){var ancestor=object[name];var superObject=base2.__prototyping;if(superObject&&ancestor!=superObject[name]){superObject=null}function _base(){var previous=this.base;this.base=superObject?superObject[name]:ancestor;var returnValue=method.apply(this,arguments);this.base=previous;return returnValue}_base.method=method;_base.ancestor=ancestor;object[name]=_base;_base.toString=K(method+"")}if(typeof StopIteration=="undefined"){StopIteration=new Error("StopIteration")}function forEach(object,block,context,fn){if(object==null){return}if(!fn){if(typeof object=="function"&&object.call){fn=Function}else{if(typeof object.forEach=="function"&&object.forEach!=arguments.callee){object.forEach(block,context);return}else{if(typeof object.length=="number"){_Array_forEach(object,block,context);return}}}}_Function_forEach(fn||Object,object,block,context)}forEach.csv=function(string,block,context){forEach(csv(string),block,context)};forEach.detect=function(object,block,context){forEach(object,function(value,key){if(key.charAt(0)=="@"){if(detect(key.slice(1))){forEach(value,arguments.callee)}}else{block.call(context,value,key,object)}})};function _Array_forEach(array,block,context){if(array==null){array=global}var length=array.length||0,i;if(typeof array=="string"){for(i=0;i<length;i++){block.call(context,array.charAt(i),i,array)}}else{for(i=0;i<length;i++){
/*@cc_on @*/
/*@if (@_jscript_version < 5.2)
      if ($Legacy.has(array, i))
    @else @*/
if(i in array){
/*@end @*/
block.call(context,array[i],i,array)}}}}function _Function_forEach(fn,object,block,context){var Temp=function(){this.i=1};Temp.prototype={i:1};var count=0;for(var i in new Temp){count++}_Function_forEach=(count>1)?function(fn,object,block,context){var processed={};for(var key in object){if(!processed[key]&&fn.prototype[key]===undefined){processed[key]=true;block.call(context,object[key],key,object)}}}:function(fn,object,block,context){for(var key in object){if(fn.prototype[key]===undefined){block.call(context,object[key],key,object)}}};_Function_forEach(fn,object,block,context)}function instanceOf(object,klass){if(typeof klass!="function"){throw new TypeError("Invalid 'instanceOf' operand.")}if(object==null){return false;
/*@cc_on  
  // COM objects don't have a constructor
  if (typeof object.constructor != "function") {
    return typeOf(object) == typeof klass.prototype.valueOf();
  }
  @*/
}if(object.constructor==klass){return true}if(klass.ancestorOf){return klass.ancestorOf(object.constructor);
/*@if (@_jscript_version < 5.1)
    // do nothing
  @else @*/
}if(object instanceof klass){return true;
/*@end @*/
}if(Base.ancestorOf==klass.ancestorOf){return false}if(Base.ancestorOf==object.constructor.ancestorOf){return klass==Object}switch(klass){case Array:return !!(typeof object=="object"&&object.join&&object.splice);case Function:return typeOf(object)=="function";case RegExp:return typeof object.constructor.$1=="string";case Date:return !!object.getTimezoneOffset;case String:case Number:case Boolean:return typeOf(object)==typeof klass.prototype.valueOf();case Object:return true}return false}function typeOf(object){var type=typeof object;switch(type){case"object":return object==null?"null":typeof object.constructor=="undefined"?_MSIE_NATIVE_FUNCTION.test(object)?"function":type:typeof object.constructor.prototype.valueOf();case"function":return typeof object.call=="function"?type:"object";default:return type}}var JavaScript={name:"JavaScript",version:base2.version,exports:"Array2,Date2,Function2,String2",namespace:"",bind:function(host){var top=global;global=host;forEach.csv(this.exports,function(name2){var name=name2.slice(0,-1);extend(host[name],this[name2]);this[name2](host[name].prototype)},this);global=top;return host}};function _createObject2(Native,constructor,generics,extensions){var INative=Module.extend();var id=INative.toString().slice(1,-1);forEach.csv(generics,function(name){INative[name]=unbind(Native.prototype[name]);INative.namespace+=format("var %1=%2.%1;",name,id)});forEach(_slice.call(arguments,3),INative.implement,INative);var Native2=function(){return INative(this.constructor==INative?constructor.apply(null,arguments):arguments[0])};Native2.prototype=INative.prototype;for(var name in INative){if(name!="prototype"&&Native[name]){INative[name]=Native[name];delete INative.prototype[name]}Native2[name]=INative[name]}Native2.ancestor=Object;delete Native2.extend;Native2.namespace=Native2.namespace.replace(/(var (\w+)=)[^,;]+,([^\)]+)\)/g,"$1$3.$2");return Native2}if((new Date).getYear()>1900){Date.prototype.getYear=function(){return this.getFullYear()-1900};Date.prototype.setYear=function(year){return this.setFullYear(year+1900)}}var _testDate=new Date(Date.UTC(2006,1,20));_testDate.setUTCDate(15);if(_testDate.getUTCHours()!=0){forEach.csv("FullYear,Month,Date,Hours,Minutes,Seconds,Milliseconds",function(type){extend(Date.prototype,"setUTC"+type,function(){var value=base(this,arguments);if(value>=57722401000){value-=3600000;this.setTime(value)}return value})})}Function.prototype.prototype={};if("".replace(/^/,K("$$"))=="$"){extend(String.prototype,"replace",function(expression,replacement){if(typeof replacement=="function"){var fn=replacement;replacement=function(){return String(fn.apply(null,arguments)).split("$").join("$$")}}return this.base(expression,replacement)})}var Array2=_createObject2(Array,Array,"concat,join,pop,push,reverse,shift,slice,sort,splice,unshift",Enumerable,{combine:function(keys,values){if(!values){values=keys}return Array2.reduce(keys,function(hash,key,index){hash[key]=values[index];return hash},{})},contains:function(array,item){return Array2.indexOf(array,item)!=-1},copy:function(array){var copy=_slice.call(array);if(!copy.swap){Array2(copy)}return copy},flatten:function(array){var i=0;return Array2.reduce(array,function(result,item){if(Array2.like(item)){Array2.reduce(item,arguments.callee,result)}else{result[i++]=item}return result},[])},forEach:_Array_forEach,indexOf:function(array,item,fromIndex){var length=array.length;if(fromIndex==null){fromIndex=0}else{if(fromIndex<0){fromIndex=Math.max(0,length+fromIndex)}}for(var i=fromIndex;i<length;i++){if(array[i]===item){return i}}return -1},insertAt:function(array,index,item){Array2.splice(array,index,0,item);return item},item:function(array,index){if(index<0){index+=array.length}return array[index]},lastIndexOf:function(array,item,fromIndex){var length=array.length;if(fromIndex==null){fromIndex=length-1}else{if(fromIndex<0){fromIndex=Math.max(0,length+fromIndex)}}for(var i=fromIndex;i>=0;i--){if(array[i]===item){return i}}return -1},map:function(array,block,context){var result=[];Array2.forEach(array,function(item,index){result[index]=block.call(context,item,index,array)});return result},remove:function(array,item){var index=Array2.indexOf(array,item);if(index!=-1){Array2.removeAt(array,index)}},removeAt:function(array,index){Array2.splice(array,index,1)},swap:function(array,index1,index2){if(index1<0){index1+=array.length}if(index2<0){index2+=array.length}var temp=array[index1];array[index1]=array[index2];array[index2]=temp;return array}});Array2.reduce=Enumerable.reduce;Array2.like=function(object){return typeOf(object)=="object"&&typeof object.length=="number"};Enumerable["#implemented_by"].pop();Enumerable["#implemented_by"].push(Array2);var _DATE_PATTERN=/^((-\d+|\d{4,})(-(\d{2})(-(\d{2}))?)?)?T((\d{2})(:(\d{2})(:(\d{2})(\.(\d{1,3})(\d)?\d*)?)?)?)?(([+-])(\d{2})(:(\d{2}))?|Z)?$/;var _DATE_PARTS={FullYear:2,Month:4,Date:6,Hours:8,Minutes:10,Seconds:12,Milliseconds:14};var _TIMEZONE_PARTS={Hectomicroseconds:15,UTC:16,Sign:17,Hours:18,Minutes:20};var _TRIM_ZEROES=/(((00)?:0+)?:0+)?\.0+$/;var _TRIM_TIMEZONE=/(T[0-9:.]+)$/;var Date2=_createObject2(Date,function(yy,mm,dd,h,m,s,ms){switch(arguments.length){case 0:return new Date;case 1:return typeof yy=="number"?new Date(yy):Date2.parse(yy);default:return new Date(yy,mm,arguments.length==2?1:dd,h||0,m||0,s||0,ms||0)}},"",{toISOString:function(date){var string="####-##-##T##:##:##.###";for(var part in _DATE_PARTS){string=string.replace(/#+/,function(digits){var value=date["getUTC"+part]();if(part=="Month"){value++}return("000"+value).slice(-digits.length)})}return string.replace(_TRIM_ZEROES,"").replace(_TRIM_TIMEZONE,"$1Z")}});delete Date2.forEach;Date2.now=function(){return(new Date).valueOf()};Date2.parse=function(string,defaultDate){if(arguments.length>1){assertType(defaultDate,"number","default date should be of type 'number'.")}var parts=match(string,_DATE_PATTERN);if(parts.length){if(parts[_DATE_PARTS.Month]){parts[_DATE_PARTS.Month]--}if(parts[_TIMEZONE_PARTS.Hectomicroseconds]>=5){parts[_DATE_PARTS.Milliseconds]++}var date=new Date(defaultDate||0);var prefix=parts[_TIMEZONE_PARTS.UTC]||parts[_TIMEZONE_PARTS.Hours]?"UTC":"";for(var part in _DATE_PARTS){var value=parts[_DATE_PARTS[part]];if(!value){continue}date["set"+prefix+part](value);if(date["get"+prefix+part]()!=parts[_DATE_PARTS[part]]){return NaN}}if(parts[_TIMEZONE_PARTS.Hours]){var hours=Number(parts[_TIMEZONE_PARTS.Sign]+parts[_TIMEZONE_PARTS.Hours]);var minutes=Number(parts[_TIMEZONE_PARTS.Sign]+(parts[_TIMEZONE_PARTS.Minutes]||0));date.setUTCMinutes(date.getUTCMinutes()+(hours*60)+minutes)}return date.valueOf()}else{return Date.parse(string)}};var String2=_createObject2(String,function(string){return new String(arguments.length==0?"":string)},"charAt,charCodeAt,concat,indexOf,lastIndexOf,match,replace,search,slice,split,substr,substring,toLowerCase,toUpperCase",{csv:csv,format:format,rescape:rescape,trim:trim});delete String2.forEach;function trim(string){return String(string).replace(_LTRIM,"").replace(_RTRIM,"")}function csv(string){return string?(string+"").split(/\s*,\s*/):[]}function format(string){var args=arguments;var pattern=new RegExp("%([1-"+(arguments.length-1)+"])","g");return(string+"").replace(pattern,function(match,index){return args[index]})}function match(string,expression){return(string+"").match(expression)||[]}function rescape(string){return(string+"").replace(_RESCAPE,"\\$1")}var Function2=_createObject2(Function,Function,"",{I:I,II:II,K:K,bind:bind,compose:compose,delegate:delegate,flip:flip,not:not,partial:partial,unbind:unbind});function I(i){return i}function II(i,ii){return ii}function K(k){return function(){return k}}function bind(fn,context){var lateBound=typeof fn!="function";if(arguments.length>2){var args=_slice.call(arguments,2);return function(){return(lateBound?context[fn]:fn).apply(context,args.concat.apply(args,arguments))}}else{return function(){return(lateBound?context[fn]:fn).apply(context,arguments)}}}function compose(){var fns=_slice.call(arguments);return function(){var i=fns.length,result=fns[--i].apply(this,arguments);while(i--){result=fns[i].call(this,result)}return result}}function delegate(fn,context){return function(){var args=_slice.call(arguments);args.unshift(this);return fn.apply(context,args)}}function flip(fn){return function(){return fn.apply(this,Array2.swap(arguments,0,1))}}function not(fn){return function(){return !fn.apply(this,arguments)}}function partial(fn){var args=_slice.call(arguments,1);return function(){var specialised=args.concat(),i=0,j=0;while(i<args.length&&j<arguments.length){if(specialised[i]===undefined){specialised[i]=arguments[j++]}i++}while(j<arguments.length){specialised[i++]=arguments[j++]}if(Array2.contains(specialised,undefined)){specialised.unshift(fn);return partial.apply(null,specialised)}return fn.apply(this,specialised)}}function unbind(fn){return function(context){return fn.apply(context,_slice.call(arguments,1))}}function detect(){var jscript=NaN
/*@cc_on||@_jscript_version@*/
;var javaEnabled=global.java?true:false;if(global.navigator){var MSIE=/MSIE[\d.]+/g;var element=document.createElement("span");var userAgent=navigator.userAgent.replace(/([a-z])[\s\/](\d)/gi,"$1$2");if(!jscript){userAgent=userAgent.replace(MSIE,"")}if(MSIE.test(userAgent)){userAgent=userAgent.match(MSIE)[0]+" "+userAgent.replace(MSIE,"")}base2.userAgent=navigator.platform+" "+userAgent.replace(/like \w+/gi,"");javaEnabled&=navigator.javaEnabled()}var _cache={};detect=function(expression){if(_cache[expression]==null){var returnValue=false,test=expression;var not=test.charAt(0)=="!";if(not){test=test.slice(1)}if(test.charAt(0)=="("){try{returnValue=new Function("element,jscript,java,global","return !!"+test)(element,jscript,javaEnabled,global)}catch(ex){}}else{returnValue=new RegExp("("+test+")","i").test(base2.userAgent)}_cache[expression]=!!(not^returnValue)}return _cache[expression]};return detect(arguments[0])}base2=global.base2=new Package(this,base2);var exports=this.exports;lang=new Package(this,lang);exports+=this.exports;JavaScript=new Package(this,JavaScript);eval(exports+this.exports);lang.base=base;lang.extend=extend};new function(_no_shrink_){var DOM=new base2.Package(this,{name:"DOM",version:"1.0",imports:"Function2",exports:"Interface,Binding,Node,Document,Element,AbstractView,HTMLDocument,HTMLElement,Selector,Traversal,CSSParser,XPathParser,NodeSelector,DocumentSelector,ElementSelector,StaticNodeList,Event,EventTarget,DocumentEvent,ViewCSS,CSSStyleDeclaration,ClassList",bind:function(node){if(node&&node.nodeType){var base2ID=assignID(node);if(!DOM.bind[base2ID]){switch(node.nodeType){case 1:if(typeof node.className=="string"){(HTMLElement.bindings[node.tagName]||HTMLElement).bind(node)}else{Element.bind(node)}break;case 9:if(node.writeln){HTMLDocument.bind(node)}else{Document.bind(node)}break;default:Node.bind(node)}DOM.bind[base2ID]=true}}return node},"@MSIE5.+win":{bind:function(node){if(node&&node.writeln){node.nodeType=9}return this.base(node)}}});eval(this.imports);var _MSIE=detect("MSIE");var _MSIE5=detect("MSIE5");var Interface=Module.extend(null,{forEach:function(block,context){forEach(this,function(method,name){if(typeOf(method)=="function"&&(this.prototype[name]||method._delegate)){block.call(context,method,name,this)}},this,Module)},implement:function(_interface){if(typeof _interface=="object"){_createDelegates(this,_interface)}else{if(Interface.ancestorOf(_interface)){for(var name in _interface){if(_interface[name]&&_interface[name]._delegate){this[name]=bind(name,_interface);this[name]._delegate=name}}}}return this.base(_interface)}});function _createDelegates(module,_interface){var id=module.toString().slice(1,-1);for(var name in _interface){var property=_interface[name];if(name.charAt(0)=="@"){_createDelegates(module,property)}else{if(!module[name]&&typeof property=="function"&&property.call){var args="abcdefghij".slice(0,property.length).split("");var fn=new Function(args.join(","),format("%2.base=%2.%1.ancestor;var m=%2.base?'base':'%1';return %2[m](%3)",name,args[0],args.slice(1)));fn._delegate=name;module[name]=fn;module.namespace+="var "+name+"=base2.lang.bind('"+name+"',"+id+");"}}}}var Binding=Interface.extend(null,{bind:function(object){return extend(object,this.prototype)}});var Node=Binding.extend({"@!(element.compareDocumentPosition)":{compareDocumentPosition:function(node,other){if(Traversal.contains(node,other)){return 4|16}else{if(Traversal.contains(other,node)){return 2|8}}var nodeIndex=_getSourceIndex(node);var otherIndex=_getSourceIndex(other);if(nodeIndex<otherIndex){return 4}else{if(nodeIndex>otherIndex){return 2}}return 0}}},{"@Gecko":{bind:function(node){return extend(this.base(node),"removeEventListener",function(){var args=Array2.slice(arguments);args.unshift(this);EventTarget.removeEventListener.apply(EventTarget,args)})}}});var _getSourceIndex=document.documentElement.sourceIndex?function(node){return node.sourceIndex}:function(node){var key=0;while(node){key=Traversal.getNodeIndex(node)+"."+key;node=node.parentNode}return key};var Document=Node.extend(null,{bind:function(document){extend(document,"createElement",function(tagName){return DOM.bind(this.base(tagName))});AbstractView.bind(document.defaultView);if(document!=window.document){new DOMContentLoadedEvent(document)}return this.base(document)},"@!(document.defaultView)":{bind:function(document){document.defaultView=Traversal.getDefaultView(document);return this.base(document)}}});var _ATTRIBUTES={"class":"className","for":"htmlFor"};var Element=Node.extend({"@MSIE.+win":{getAttribute:function(element,name){if(element.className===undefined){return this.base(element,name)}var attribute=_getAttributeNode(element,name);if(attribute&&(attribute.specified||name=="value")){if(name=="href"||name=="src"){element.base=element.getAttribute.ancestor;return element[element.base?"base":"getAttribute"](name,2)}else{if(name=="style"){return element.style.cssText.toLowerCase()}else{return attribute.nodeValue}}}else{if(name=="type"&&element.nodeName=="INPUT"){var outerHTML=element.outerHTML;with(outerHTML){outerHTML=slice(0,indexOf(">")+1)}return match(outerHTML,/type="?([^\s">]*)"?/i)[1]||null}}return null},removeAttribute:function(element,name){if(element.className!==undefined){name=_ATTRIBUTES[name.toLowerCase()]||name}this.base(element,name)},setAttribute:function(element,name,value){if(element.className===undefined){this.base(element,name,value)}else{if(name=="style"){element.style.cssText=value}else{value=String(value);var attribute=_getAttributeNode(element,name);if(attribute){attribute.nodeValue=value}else{this.base(element,_ATTRIBUTES[name.toLowerCase()]||name,value)}}}}},"@!(element.hasAttribute)":{hasAttribute:function(element,name){if(element.className===undefined){return this.base(element,name)}return this.getAttribute(element,name)!=null}}});if(detect("MSIE.+win")){extend(Element.prototype,"cloneNode",function(deep){var clone=this.base(deep||false);clone.base2ID=undefined;return clone})}var _HTML_ATTRIBUTES="colSpan,rowSpan,vAlign,dateTime,accessKey,tabIndex,encType,maxLength,readOnly,longDesc";extend(_ATTRIBUTES,Array2.combine(_HTML_ATTRIBUTES.toLowerCase().split(","),_HTML_ATTRIBUTES.split(",")));var _getAttributeNode=document.documentElement.getAttributeNode?function(element,name){return element.getAttributeNode(name)}:function(element,name){return element.attributes[name]||element.attributes[_ATTRIBUTES[name.toLowerCase()]]};var TEXT=detect("(element.textContent===undefined)")?"innerText":"textContent";var Traversal=Module.extend({getDefaultView:function(node){return this.getDocument(node).defaultView},getNextElementSibling:function(node){while(node&&(node=node.nextSibling)&&!this.isElement(node)){continue}return node},getNodeIndex:function(node){var index=0;while(node&&(node=node.previousSibling)){index++}return index},getOwnerDocument:function(node){return node.ownerDocument},getPreviousElementSibling:function(node){while(node&&(node=node.previousSibling)&&!this.isElement(node)){continue}return node},getTextContent:function(node,isHTML){return node[isHTML?"innerHTML":TEXT]},isEmpty:function(node){node=node.firstChild;while(node){if(node.nodeType==3||this.isElement(node)){return false}node=node.nextSibling}return true},setTextContent:function(node,text,isHTML){return node[isHTML?"innerHTML":TEXT]=text},"@!MSIE":{setTextContent:function(node,text,isHTML){with(node){while(lastChild){parentNode.removeChild(lastChild)}}return this.base(node,text,isHTML)}},"@MSIE":{getDefaultView:function(node){return(node.document||node).parentWindow},"@MSIE5":{getOwnerDocument:function(node){return node.ownerDocument||node.document}}}},{contains:function(node,target){node.nodeType;while(target&&(target=target.parentNode)&&node!=target){continue}return !!target},getDocument:function(node){return this.isDocument(node)?node:node.ownerDocument||node.document},isDocument:function(node){return !!(node&&node.documentElement)},isElement:function(node){return !!(node&&node.nodeType==1)},"@(element.contains)":{contains:function(node,target){return node!=target&&(this.isDocument(node)?node==this.getOwnerDocument(target):node.contains(target))}},"@MSIE5":{isElement:function(node){return !!(node&&node.nodeType==1&&node.nodeName!="!")}}});var AbstractView=Binding.extend();var _CAPTURE_TYPE={},_TYPE_MAP={"2":2,"4":1};var _CAPTURING_PHASE=1,_AT_TARGET=2,_BUBBLING_PHASE=3;var _MOUSE_BUTTON=/^mouse(up|down)|click$/,_MOUSE_CLICK=/click$/,_BUBBLES="abort|error|select|change|resize|scroll|",_CANCELABLE="(dbl)?click|mouse(down|up|over|move|out|wheel)|key(down|up)|submit|reset";_BUBBLES=new RegExp("^("+_BUBBLES+_CANCELABLE+")$");_CANCELABLE=new RegExp("^("+_CANCELABLE+")$");if(_MSIE){var _W3C_EVENT_TYPE={focusin:"focus",focusout:"blur"};_CAPTURE_TYPE={focus:"focusin",blur:"focusout"}}var _CAN_DELEGATE=/^(blur|submit|reset|change|select)$|^(mouse|key|focus)|click$/;var Event=Binding.extend({"@!(document.createEvent)":{initEvent:function(event,type,bubbles,cancelable){event.type=String(type);event.bubbles=!!bubbles;event.cancelable=!!cancelable},preventDefault:function(event){if(event.cancelable!==false){event.returnValue=false}},stopPropagation:function(event){event.cancelBubble=true},"@MSIE":{preventDefault:function(event){this.base(event);if(event.type=="mousedown"){var type="onbeforedeactivate";var document=Traversal.getDocument(event.target);document.attachEvent(type,function(event){event.returnValue=false;document.detachEvent(type,arguments.callee)})}}}}},{CAPTURING_PHASE:_CAPTURING_PHASE,AT_TARGET:_AT_TARGET,BUBBLING_PHASE:_BUBBLING_PHASE,"@!(document.createEvent)":{"@MSIE":{bind:function(event){var type=event.type;if(!event.timeStamp){event.bubbles=_BUBBLES.test(type);event.cancelable=_CANCELABLE.test(type);event.timeStamp=new Date().valueOf()}event.relatedTarget=event[(event.target==event.fromElement?"to":"from")+"Element"];return this.base(event)}}},cloneEvent:function(event){var clone=copy(event);clone.stopPropagation=function(){event.stopPropagation()};clone.preventDefault=function(){event.preventDefault()};return clone},"@MSIE":{cloneEvent:copy}});var EventDispatcher=Base.extend({constructor:function(state){this.state=state;this.events=state.events},dispatch:function(nodes,event,phase){event.eventPhase=phase;var map=this.events[event.type][phase];if(map){var i=nodes.length;while(i--&&!event.cancelBubble){var currentTarget=nodes[i];var listeners=map[currentTarget.base2ID];if(listeners){listeners=copy(listeners);event.currentTarget=currentTarget;event.eventPhase=currentTarget==event.target?_AT_TARGET:phase;for(var listenerID in listeners){var listener=listeners[listenerID];if(typeof listener=="function"){listener.call(currentTarget,event)}else{listener.handleEvent(event)}}}}}},handleEvent:function(event,fixed){Event.bind(event);var type=event.type;var w3cType=_W3C_EVENT_TYPE[type];if(w3cType){event=copy(event);type=event.type=w3cType}if(this.events[type]){if(_MOUSE_BUTTON.test(type)){var button=_MOUSE_CLICK.test(type)?this.state._button:event.button;button=_TYPE_MAP[button]||0;if(event.button!=button){event=copy(event);event.button=button}}var currentTarget=event.target;var nodes=[],i=0;while(currentTarget){nodes[i++]=currentTarget;currentTarget=currentTarget.parentNode}this.dispatch(nodes,event,_CAPTURING_PHASE);if(!event.cancelBubble){if(!event.bubbles){nodes.length=1}nodes.reverse();this.dispatch(nodes,event,_BUBBLING_PHASE)}}return event.returnValue!==false},"@MSIE.+win":{handleEvent:function(event){if(event.type=="scroll"){setTimeout(bind(this.base,this,copy(event),true),0);return true}else{return this.base(event)}},"@MSIE5":{dispatch:function(nodes,event,phase){if(phase==_CAPTURING_PHASE&&!Array2.item(nodes,-1).documentElement){nodes.push(nodes[0].document)}this.base(nodes,event,phase)}}}});var _wrappedListeners={};var EventTarget=Interface.extend({"@!(element.addEventListener)":{addEventListener:function(target,type,listener,useCapture){var documentState=DocumentState.getInstance(target);var targetID=assignID(target);var listenerID=assignID(listener);var phase=useCapture?_CAPTURING_PHASE:_BUBBLING_PHASE;var typeMap=documentState.registerEvent(type,target);var phaseMap=typeMap[phase];if(!phaseMap){phaseMap=typeMap[phase]={}}if(useCapture){type=_CAPTURE_TYPE[type]||type}var listeners=phaseMap[targetID];if(!listeners){listeners=phaseMap[targetID]={}}listeners[listenerID]=listener},dispatchEvent:function(target,event){event.target=target;return DocumentState.getInstance(target).handleEvent(event)},removeEventListener:function(target,type,listener,useCapture){var events=DocumentState.getInstance(target).events;var typeMap=events[type];if(typeMap){var phaseMap=typeMap[useCapture?_CAPTURING_PHASE:_BUBBLING_PHASE];if(phaseMap){var listeners=phaseMap[target.base2ID];if(listeners){delete listeners[listener.base2ID]}}}}},"@(element.addEventListener)":{"@Gecko":{addEventListener:function(target,type,listener,useCapture){if(type=="mousewheel"){type="DOMMouseScroll";var originalListener=listener;listener=_wrappedListeners[assignID(listener)]=function(event){event=Event.cloneEvent(event);event.type="mousewheel";event.wheelDelta=(-event.detail*40)||0;_handleEvent(target,originalListener,event)}}this.base(target,type,listener,useCapture)}},"@webkit[1-4]|KHTML[34]":{addEventListener:function(target,type,listener,useCapture){if(_MOUSE_BUTTON.test(type)){var originalListener=listener;listener=_wrappedListeners[assignID(listener)]=function(event){var button=_TYPE_MAP[event.button]||0;if(event.button!=button){event=Event.cloneEvent(event);event.button=button}_handleEvent(target,originalListener,event)}}else{if(typeof listener=="object"){listener=_wrappedListeners[assignID(listener)]=bind("handleEvent",listener)}}this.base(target,type,listener,useCapture)}},"@Linux|Mac|opera":{addEventListener:function(target,type,listener,useCapture){if(type=="keydown"){var originalListener=listener;listener=_wrappedListeners[assignID(listener)]=function(keydownEvent){var firedCount=0,cancelled=false;extend(keydownEvent,"preventDefault",function(){this.base();cancelled=true});function handleEvent(event){if(cancelled){event.preventDefault()}if(event==keydownEvent||firedCount>1){_handleEvent(target,originalListener,keydownEvent)}firedCount++}handleEvent(keydownEvent);target.addEventListener("keyup",function(){target.removeEventListener("keypress",handleEvent,true);target.removeEventListener("keyup",arguments.callee,true)},true);target.addEventListener("keypress",handleEvent,true)}}this.base(target,type,listener,useCapture)}},removeEventListener:function(target,type,listener,useCapture){this.base(target,type,_wrappedListeners[listener.base2ID]||listener,useCapture)}}});if(detect("Gecko")){EventTarget.removeEventListener._delegate="removeEventListener";delete EventTarget.prototype.removeEventListener}function _handleEvent(target,listener,event){if(typeof listener=="function"){listener.call(target,event)}else{listener.handleEvent(event)}}var DocumentEvent=Interface.extend({"@!(document.createEvent)":{createEvent:function(document,type){var event=document.createEventObject?document.createEventObject():{};event.bubbles=false;event.cancelable=false;event.eventPhase=0;event.target=document;event.currentTarget=null;event.relatedTarget=null;event.timeStamp=new Date().valueOf();return Event(event)}},"@(document.createEvent)":{"@!(document.createEvent('Events'))":{createEvent:function(document,type){return this.base(document,type=="Events"?"UIEvents":type)}}}});var DOMContentLoadedEvent=Base.extend({constructor:function(document){var fired=false;this.fire=function(){if(!fired){fired=true;setTimeout(function(){var event=DocumentEvent.createEvent(document,"Events");Event.initEvent(event,"DOMContentLoaded",true,false);EventTarget.dispatchEvent(document,event)},1)}};EventTarget.addEventListener(document,"DOMContentLoaded",function(){fired=true},false);this.listen(document)},listen:Undefined,"@!Gecko20([^0]|0[3-9])|Webkit[5-9]|Opera[19]|MSIE.+mac":{listen:function(document){EventTarget.addEventListener(Traversal.getDefaultView(document),"load",this.fire,false)},"@MSIE.+win":{listen:function(document){try{document.body.doScroll("left");if(!this.__constructing){this.fire()}}catch(e){setTimeout(bind(this.listen,this,document),10)}}},"@KHTML":{listen:function(document){if(/loaded|complete/.test(document.readyState)){if(!this.__constructing){this.fire()}}else{setTimeout(bind(this.listen,this,document),10)}}}}});Document.implement(DocumentEvent);Document.implement(EventTarget);Element.implement(EventTarget);var _PIXEL=/^\d+(px)?$/i,_METRICS=/(width|height|top|bottom|left|right|fontSize)$/,_COLOR=/^(color|backgroundColor)$/,_RGB_BLACK="rgb(0, 0, 0)",_BLACK={black:1,"#000":1,"#000000":1};var ViewCSS=Interface.extend({"@!(document.defaultView.getComputedStyle)":{"@MSIE":{getComputedStyle:function(view,element,pseudoElement){var currentStyle=element.currentStyle;var computedStyle={};for(var propertyName in currentStyle){if(_METRICS.test(propertyName)||_COLOR.test(propertyName)){computedStyle[propertyName]=this.getComputedPropertyValue(view,element,propertyName)}else{if(propertyName.indexOf("ruby")!=0){computedStyle[propertyName]=currentStyle[propertyName]}}}return computedStyle}}},getComputedStyle:function(view,element,pseudoElement){return _CSSStyleDeclaration_ReadOnly.bind(this.base(view,element,pseudoElement))}},{getComputedPropertyValue:function(view,element,propertyName){return CSSStyleDeclaration.getPropertyValue(this.getComputedStyle(view,element,null),propertyName)},"@MSIE":{getComputedPropertyValue:function(view,element,propertyName){propertyName=this.toCamelCase(propertyName);var value=element.currentStyle[propertyName];if(_METRICS.test(propertyName)){return _MSIE_getPixelValue(element,value)+"px"}if(!_MSIE5&&_COLOR.test(propertyName)){var rgb=_MSIE_getColorValue(element,propertyName=="color"?"ForeColor":"BackColor");return(rgb==_RGB_BLACK&&!_BLACK[value])?value:rgb}return value}},toCamelCase:function(string){return string.replace(/\-([a-z])/g,flip(String2.toUpperCase))}});function _MSIE_getPixelValue(element,value){if(_PIXEL.test(value)){return parseInt(value)}var styleLeft=element.style.left;var runtimeStyleLeft=element.runtimeStyle.left;element.runtimeStyle.left=element.currentStyle.left;element.style.left=value||0;value=element.style.pixelLeft;element.style.left=styleLeft;element.runtimeStyle.left=runtimeStyleLeft;return value}function _MSIE_getColorValue(element,type){if(element.createTextRange){var range=element.createTextRange()}else{range=element.document.body.createTextRange();range.moveToElementText(element)}var color=range.queryCommandValue(type);return format("rgb(%1, %2, %3)",color&255,(color&65280)>>8,(color&16711680)>>16)}var _CSSStyleDeclaration_ReadOnly=Binding.extend({getPropertyValue:function(style,propertyName){return this.base(style,_CSSPropertyNameMap[propertyName]||propertyName)},"@MSIE.+win":{getPropertyValue:function(style,propertyName){return propertyName=="float"?style.styleFloat:style[ViewCSS.toCamelCase(propertyName)]}}});var CSSStyleDeclaration=_CSSStyleDeclaration_ReadOnly.extend({setProperty:function(style,propertyName,value,priority){return this.base(style,_CSSPropertyNameMap[propertyName]||propertyName,value,priority)},"@MSIE.+win":{setProperty:function(style,propertyName,value,priority){if(propertyName=="opacity"){value*=100;style.opacity=value;style.zoom=1;style.filter="Alpha(opacity="+value+")"}else{if(priority=="important"){style.cssText+=format(";%1:%2!important;",propertyName,value)}else{style.setAttribute(ViewCSS.toCamelCase(propertyName),value)}}}}},{"@MSIE":{bind:function(style){style.getPropertyValue=this.prototype.getPropertyValue;style.setProperty=this.prototype.setProperty;return style}}});var _CSSPropertyNameMap=new Base({"@Gecko":{opacity:"-moz-opacity"},"@KHTML":{opacity:"-khtml-opacity"}});with(CSSStyleDeclaration.prototype){getPropertyValue.toString=setProperty.toString=K("[base2]")}AbstractView.implement(ViewCSS);var NodeSelector=Interface.extend({"@(element.querySelector)":{querySelector:function(node,selector){try{var element=this.base(node,trim(selector));if(element){return element}}catch(x){}return new Selector(selector).exec(node,1)},querySelectorAll:function(node,selector){try{var nodeList=this.base(node,trim(selector));if(nodeList){return new StaticNodeList(nodeList)}}catch(x){}return new Selector(selector).exec(node)}},"@!(element.querySelector)":{querySelector:function(node,selector){return new Selector(selector).exec(node,1)},querySelectorAll:function(node,selector){return new Selector(selector).exec(node)}}});extend(NodeSelector.prototype,{querySelector:function(selector){return DOM.bind(this.base(selector))},querySelectorAll:function(selector){return extend(this.base(selector),"item",function(index){return DOM.bind(this.base(index))})}});var DocumentSelector=NodeSelector.extend();var ElementSelector=NodeSelector.extend({"@!(element.matchesSelector)":{matchesSelector:function(element,selector){return new Selector(selector).test(element)}}});var _CSS_ESCAPE=/'(\\.|[^'\\])*'|"(\\.|[^"\\])*"/g,_CSS_IMPLIED_ASTERISK=/([\s>+~,]|[^(]\+|^)([#.:\[])/g,_CSS_IMPLIED_SPACE=/(^|,)([^\s>+~])/g,_CSS_WHITESPACE=/\s*([\s>+~,]|^|$)\s*/g,_CSS_WILD_CARD=/\s\*\s/g,_CSS_UNESCAPE=/\x01(\d+)/g,_QUOTE=/'/g;var CSSParser=RegGrp.extend({constructor:function(items){this.base(items);this.cache={};this.sorter=new RegGrp;this.sorter.add(/:not\([^)]*\)/,RegGrp.IGNORE);this.sorter.add(/([ >](\*|[\w-]+))([^: >+~]*)(:\w+-child(\([^)]+\))?)([^: >+~]*)/,"$1$3$6$4")},cache:null,ignoreCase:true,escape:function(selector,simple){var strings=this._strings=[];selector=this.optimise(this.format(String(selector).replace(_CSS_ESCAPE,function(string){return"\x01"+strings.push(string.slice(1,-1).replace(_QUOTE,"\\'"))})));if(simple){selector=selector.replace(/^ \*?/,"")}return selector},format:function(selector){return selector.replace(_CSS_WHITESPACE,"$1").replace(_CSS_IMPLIED_SPACE,"$1 $2").replace(_CSS_IMPLIED_ASTERISK,"$1*$2")},optimise:function(selector){return this.sorter.exec(selector.replace(_CSS_WILD_CARD,">* "))},parse:function(selector,simple){return this.cache[selector]||(this.cache[selector]=this.unescape(this.exec(this.escape(selector,simple))))},unescape:function(selector){var strings=this._strings;return selector.replace(_CSS_UNESCAPE,function(match,index){return strings[index-1]})}});function _nthChild(match,args,position,last,not,and,mod,equals){last=/last/i.test(match)?last+"+1-":"";if(!isNaN(args)){args="0n+"+args}else{if(args=="even"){args="2n"}else{if(args=="odd"){args="2n+1"}}}args=args.split("n");var a=args[0]?(args[0]=="-")?-1:parseInt(args[0]):1;var b=parseInt(args[1])||0;var negate=a<0;if(negate){a=-a;if(a==1){b++}}var query=format(a==0?"%3%7"+(last+b):"(%4%3-%2)%6%1%70%5%4%3>=%2",a,b,position,last,and,mod,equals);if(negate){query=not+"("+query+")"}return query}var XPathParser=CSSParser.extend({constructor:function(){this.base(XPathParser.build());this.sorter.putAt(1,"$1$4$3$6")},escape:function(selector,simple){return this.base(selector,simple).replace(/,/g,"\x02")},unescape:function(selector){return this.base(selector.replace(/\[self::\*\]/g,"").replace(/(^|\x02)\//g,"$1./").replace(/\x02/g," | ")).replace(/'[^'\\]*\\'(\\.|[^'\\])*'/g,function(match){return"concat("+match.split("\\'").join("',\"'\",'")+")"})},"@opera(7|8|9\\.[1-4])":{unescape:function(selector){return this.base(selector.replace(/last\(\)/g,"count(preceding-sibling::*)+count(following-sibling::*)+1"))}}},{build:function(){this.values.attributes[""]="[@$1]";forEach(this.types,function(add,type){forEach(this.values[type],add,this.rules)},this);this.build=K(this.rules);return this.rules},optimised:{pseudoClasses:{"first-child":"[1]","last-child":"[last()]","only-child":"[last()=1]"}},rules:extend({},{"@!KHTML|opera":{"(^|\\x02) (\\*|[\\w-]+)#([\\w-]+)":"$1id('$3')[self::$2]"},"@!KHTML":{"([ >])(\\*|[\\w-]+):([\\w-]+-child(\\(([^)]+)\\))?)":function(match,token,tagName,pseudoClass,$4,args){var replacement=(token==" ")?"//*":"/*";if(/^nth/i.test(pseudoClass)){replacement+=_xpath_nthChild(pseudoClass,args,"position()")}else{replacement+=XPathParser.optimised.pseudoClasses[pseudoClass]}return replacement+"[self::"+tagName+"]"}}}),types:{identifiers:function(replacement,token){this[rescape(token)+"([\\w-]+)"]=replacement},combinators:function(replacement,combinator){this[rescape(combinator)+"(\\*|[\\w-]+)"]=replacement},attributes:function(replacement,operator){this["\\[\\s*([\\w-]+)\\s*"+rescape(operator)+"\\s*([^\\]\\s]*)\\s*\\]"]=replacement},pseudoClasses:function(replacement,pseudoClass){this[":"+pseudoClass.replace(/\(\)$/,"\\(([^)]+)\\)")]=replacement}},values:{identifiers:{"#":"[@id='$1'][1]",".":"[contains(concat(' ',@class,' '),' $1 ')]"},combinators:{" ":"/descendant::$1",">":"/child::$1","+":"/following-sibling::*[1][self::$1]","~":"/following-sibling::$1"},attributes:{"*=":"[contains(@$1,'$2')]","^=":"[starts-with(@$1,'$2')]","$=":"[substring(@$1,string-length(@$1)-string-length('$2')+1)='$2']","~=":"[contains(concat(' ',@$1,' '),' $2 ')]","|=":"[contains(concat('-',@$1,'-'),'-$2-')]","!=":"[not(@$1='$2')]","=":"[@$1='$2']"},pseudoClasses:{link:"[false]",visited:"[false]",empty:"[not(child::*) and not(text())]","first-child":"[not(preceding-sibling::*)]","last-child":"[not(following-sibling::*)]","not()":_xpath_not,"nth-child()":_xpath_nthChild,"nth-last-child()":_xpath_nthChild,"only-child":"[not(preceding-sibling::*) and not(following-sibling::*)]",root:"[not(parent::*)]"}},"@opera(7|8|9\\.[1-4])":{build:function(){this.optimised.pseudoClasses["last-child"]=this.values.pseudoClasses["last-child"];this.optimised.pseudoClasses["only-child"]=this.values.pseudoClasses["only-child"];return this.base()}}});var _notParser;function _xpath_not(match,args){if(!_notParser){_notParser=new XPathParser}return"[not("+_notParser.exec(trim(args)).replace(/\[1\]/g,"").replace(/^(\*|[\w-]+)/,"[self::$1]").replace(/\]\[/g," and ").slice(1,-1)+")]"}function _xpath_nthChild(match,args,position){return"["+_nthChild(match,args,position||"count(preceding-sibling::*)+1","last()","not"," and "," mod ","=")+"]"}var Selector=Base.extend({constructor:function(selector){this.toString=K(trim(selector))},exec:function(context,count,simple){return Selector.parse(this,simple)(context,count)},isSimple:function(){if(!_parser.exec){_parser=new CSSParser(_parser)}return !_COMBINATOR.test(trim(_parser.escape(this)))},test:function(element){if(this.isSimple()){return !!Selector.parse(this,true)(element,1)}else{element.setAttribute("b2-test",true);var result=new Selector(this+"[b2-test]").exec(Traversal.getOwnerDocument(element),1);element.removeAttribute("b2-test");return result==element}},toXPath:function(simple){return Selector.toXPath(this,simple)},"@(XPathResult)":{exec:function(context,count,simple){if(_NOT_XPATH.test(this)){return this.base(context,count,simple)}var document=Traversal.getDocument(context);var type=count==1?9:7;var result=document.evaluate(this.toXPath(simple),context,null,type,null);return count==1?result.singleNodeValue:result}},"@MSIE":{exec:function(context,count,simple){if(typeof context.selectNodes!="undefined"&&!_NOT_XPATH.test(this)){var method=single?"selectSingleNode":"selectNodes";return context[method](this.toXPath(simple))}return this.base(context,count,simple)}},"@(true)":{exec:function(context,count,simple){try{var result=this.base(context||document,count,simple)}catch(error){throw new SyntaxError(format("'%1' is not a valid CSS selector.",this))}return count==1?result:new StaticNodeList(result)}}},{toXPath:function(selector,simple){if(!_xpathParser){_xpathParser=new XPathParser}return _xpathParser.parse(selector,simple)}});var _COMBINATOR=/[^,]\s|[+>~]/;var _NOT_XPATH=":(checked|disabled|enabled|contains|hover|active|focus)|^(#[\\w-]+\\s*)?\\w+$";if(detect("KHTML")){if(detect("WebKit5")){_NOT_XPATH+="|nth\\-|,"}else{_NOT_XPATH="."}}_NOT_XPATH=new RegExp(_NOT_XPATH);Selector.operators={"=":"%1=='%2'","~=":/(^| )%1( |$)/,"|=":/^%1(-|$)/,"^=":/^%1/,"$=":/%1$/,"*=":/%1/};Selector.operators[""]="%1!=null";Selector.pseudoClasses={checked:"e%1.checked",contains:"e%1[TEXT].indexOf('%2')!=-1",disabled:"e%1.disabled",empty:"Traversal.isEmpty(e%1)",enabled:"e%1.disabled===false","first-child":"!Traversal.getPreviousElementSibling(e%1)","last-child":"!Traversal.getNextElementSibling(e%1)","only-child":"!Traversal.getPreviousElementSibling(e%1)&&!Traversal.getNextElementSibling(e%1)",root:"e%1==Traversal.getDocument(e%1).documentElement",target:"e%1.id&&e%1.id==location.hash.slice(1)",hover:"DocumentState.getInstance(d).isHover(e%1)",active:"DocumentState.getInstance(d).isActive(e%1)",focus:"DocumentState.getInstance(d).hasFocus(e%1)",link:"false",visited:"false"};var _INDEXED=document.documentElement.sourceIndex!==undefined,_VAR="var p%2=0,i%2,e%3,n%2=e%1.",_ID=_INDEXED?"e%1.sourceIndex":"assignID(e%1)",_TEST="var g="+_ID+";if(!p[g]){p[g]=1;",_STORE="r[k++]=e%1;if(s==1)return e%1;if(k===s){_query.state=[%2];_query.complete=%3;return r;",_FN="var _query=function(e0,s%1){_indexed++;var r=[],p={},p0=0,reg=[%4],d=Traversal.getDocument(e0),c=d.writeln?'toUpperCase':'toString',k=0;";var _xpathParser;var _reg,_index,_wild,_list,_group,_listAll,_duplicate,_cache={},_simple={};function sum(list){var total=0;for(var i=0;i<list.length;i++){total+=list[i]}return total}var _parser={"^(\\*|[\\w-]+)":function(match,tagName){return tagName=="*"?"":format("if(e0.nodeName=='%1'[c]()){",tagName)},"^ \\*:root":function(match){_wild=false;var replacement="e%2=d.documentElement;if(Traversal.contains(e%1,e%2)){";return format(replacement,_index++,_index)}," (\\*|[\\w-]+)#([\\w-]+)":function(match,tagName,id){_wild=false;var replacement="var e%2=_byId(d,'%4');if(e%2&&";if(tagName!="*"){replacement+="e%2.nodeName=='%3'[c]()&&"}replacement+="Traversal.contains(e%1,e%2)){";if(_list[_group]){replacement+=format("i%1=n%1.length;",sum(_list))}return format(replacement,_index++,_index,tagName,id)}," (\\*|[\\w-]+)":function(match,tagName){_duplicate++;_wild=tagName=="*";var replacement=format(_VAR,_index++,"%2",_index);replacement+=(_wild&&_MSIE5)?"all":"getElementsByTagName('%3')";replacement+=";for(i%2=a%2||0;(e%1=n%2[i%2]);i%2++){";_list[_group]++;return format(replacement,_index,sum(_list),tagName)},">(\\*|[\\w-]+)":function(match,tagName){var children=_MSIE&&_index;_wild=tagName=="*";var replacement=_VAR+(children?"children":"childNodes");replacement=format(replacement,_index++,"%2",_index);if(!_wild&&_MSIE&&children){replacement+=".tags('%3')"}replacement+=";for(i%2=a%2||0;(e%1=n%2[i%2]);i%2++){";if(_wild){replacement+="if(e%1.nodeType==1){";_wild=_MSIE5}else{if(!_MSIE||!children){replacement+="if(e%1.nodeName=='%3'[c]()){"}}_list[_group]++;return format(replacement,_index,sum(_list),tagName)},"\\+(\\*|[\\w-]+)":function(match,tagName){var replacement="";if(_wild&&_MSIE){replacement+="if(e%1.nodeName!='!'){"}_wild=false;replacement+="e%1=Traversal.getNextElementSibling(e%1);if(e%1";if(tagName!="*"){replacement+="&&e%1.nodeName=='%2'[c]()"}replacement+="){";return format(replacement,_index,tagName)},"~(\\*|[\\w-]+)":function(match,tagName){var replacement="";if(_wild&&_MSIE){replacement+="if(e%1.nodeName!='!'){"}_wild=false;_duplicate=2;replacement+="while(e%1=e%1.nextSibling){if(e%1.b2_adjacent==_indexed)break;if(";if(tagName=="*"){replacement+="e%1.nodeType==1";if(_MSIE5){replacement+="&&e%1.nodeName!='!'"}}else{replacement+="e%1.nodeName=='%2'[c]()"}replacement+="){e%1.b2_adjacent=_indexed;";return format(replacement,_index,tagName)},"#([\\w-]+)":function(match,id){_wild=false;var replacement="if(e%1.id=='%2'){";if(_list[_group]){replacement+=format("i%1=n%1.length;",sum(_list))}return format(replacement,_index,id)},"\\.([\\w-]+)":function(match,className){_wild=false;_reg.push(new RegExp("(^|\\s)"+rescape(className)+"(\\s|$)"));return format("if(e%1.className&&reg[%2].test(e%1.className)){",_index,_reg.length-1)},":not\\((\\*|[\\w-]+)?([^)]*)\\)":function(match,tagName,filters){var replacement=(tagName&&tagName!="*")?format("if(e%1.nodeName=='%2'[c]()){",_index,tagName):"";replacement+=_parser.exec(filters);return"if(!"+replacement.slice(2,-1).replace(/\)\{if\(/g,"&&")+"){"},":nth(-last)?-child\\(([^)]+)\\)":function(match,last,args){_wild=false;last=format("e%1.parentNode.b2_length",_index);var replacement="if(p%1!==e%1.parentNode)p%1=_register(e%1.parentNode);";replacement+="var i=e%1[p%1.b2_lookup];if(p%1.b2_lookup!='b2_index')i++;if(";return format(replacement,_index)+_nthChild(match,args,"i",last,"!","&&","% ","==")+"){"},":([\\w-]+)(\\(([^)]+)\\))?":function(match,pseudoClass,$2,args){return"if("+format(Selector.pseudoClasses[pseudoClass]||"throw",_index,args||"")+"){"},"\\[\\s*([\\w-]+)\\s*([^=]?=)?\\s*([^\\]\\s]*)\\s*\\]":function(match,attr,operator,value){value=trim(value);if(_MSIE){var getAttribute="Element.getAttribute(e%1,'%2')"}else{getAttribute="e%1.getAttribute('%2')"}getAttribute=format(getAttribute,_index,attr);var replacement=Selector.operators[operator||""];if(instanceOf(replacement,RegExp)){_reg.push(new RegExp(format(replacement.source,rescape(_parser.unescape(value)))));replacement="reg[%2].test(%1)";value=_reg.length-1}return"if("+format(replacement,getAttribute,value)+"){"}};(function(_no_shrink_){var _byId=detect("MSIE[5-7]")?function(document,id){var result=document.all[id]||null;if(!result||result.id==id){return result}for(var i=0;i<result.length;i++){if(result[i].id==id){return result[i]}}return null}:function(document,id){return document.getElementById(id)};var _indexed=1;function _register(element){if(element.rows){element.b2_length=element.rows.length;element.b2_lookup="rowIndex"}else{if(element.cells){element.b2_length=element.cells.length;element.b2_lookup="cellIndex"}else{if(element.b2_indexed!=_indexed){var index=0;var child=element.firstChild;while(child){if(child.nodeType==1&&child.nodeName!="!"){child.b2_index=++index}child=child.nextSibling}element.b2_length=index;element.b2_lookup="b2_index"}}}element.b2_indexed=_indexed;return element}Selector.parse=function(selector,simple){var cache=simple?_simple:_cache;if(!cache[selector]){if(!_parser.exec){_parser=new CSSParser(_parser)}_reg=[];_list=[];var fn="";var selectors=_parser.escape(selector,simple).split(",");for(_group=0;_group<selectors.length;_group++){_wild=_index=_list[_group]=0;_duplicate=selectors.length>1?2:0;var block=_parser.exec(selectors[_group])||"throw;";if(_wild&&_MSIE){block+=format("if(e%1.tagName!='!'){",_index)}var store=(_duplicate>1)?_TEST:"";block+=format(store+_STORE,_index,"%2");block+=Array(match(block,/\{/g).length+1).join("}");fn+=block}fn=_parser.unescape(fn);if(selectors.length>1){fn+="r.unsorted=1;"}var args="";var state=[];var total=sum(_list);for(var i=1;i<=total;i++){args+=",a"+i;state.push("i"+i+"?(i"+i+"-1):0")}if(total){var complete=[],k=0;for(var i=0;i<_group;i++){k+=_list[i];if(_list[i]){complete.push(format("n%1&&i%1==n%1.length",k))}}}fn+="_query.state=[%2];_query.complete=%3;return s==1?null:r}";eval(format(_FN+fn,args,state.join(","),total?complete.join("&&"):true,_reg));cache[selector]=_query}return cache[selector]}})();var StaticNodeList=Base.extend({constructor:function(nodes){nodes=nodes||[];this.length=nodes.length;this.item=function(index){if(index<0){index+=this.length}return nodes[index]};if(nodes.unsorted){nodes.sort(_SORTER)}},length:0,forEach:function(block,context){for(var i=0;i<this.length;i++){block.call(context,this.item(i),i,this)}},item:Undefined,not:function(test,context){return this.filter(not(test),context)},slice:function(start,end){return new StaticNodeList(this.map(I).slice(start,end))},"@(XPathResult)":{constructor:function(nodes){if(nodes&&nodes.snapshotItem){this.length=nodes.snapshotLength;this.item=function(index){if(index<0){index+=this.length}return nodes.snapshotItem(index)}}else{this.base(nodes)}}}});StaticNodeList.implement(Enumerable);var _matchesSelector=function(test,context){if(typeof test!="function"){test=bind("test",new Selector(test))}return this.base(test,context)};StaticNodeList.implement({every:_matchesSelector,filter:_matchesSelector,not:_matchesSelector,some:_matchesSelector});StaticNodeList.implement({filter:function(test,context){return new StaticNodeList(this.base(test,context))}});var _SORTER=_INDEXED?function(node1,node2){return node1.sourceIndex-node2.sourceIndex}:function(node1,node2){return(Node.compareDocumentPosition(node1,node2)&2)-1};Document.implement(DocumentSelector);Element.implement(ElementSelector);var HTMLDocument=Document.extend(null,{bind:function(document){DocumentState.createState(document);return this.base(document)}});var HTMLElement=Element.extend(null,{bindings:{},tags:"*",bind:function(element){if(!element.classList){element.classList=new _ElementClassList(element)}if(!element.ownerDocument){element.ownerDocument=Traversal.getOwnerDocument(element)}return this.base(element)},extend:function(){var binding=base(this,arguments);forEach.csv(binding.tags,function(tagName){HTMLElement.bindings[tagName]=binding});return binding}});HTMLElement.extend(null,{tags:"APPLET,EMBED",bind:I});var ClassList=Module.extend({add:function(element,token){if(!this.has(element,token)){element.className+=(element.className?" ":"")+token}},has:function(element,token){var regexp=new RegExp("(^|\\s)"+token+"(\\s|$)");return regexp.test(element.className)},remove:function(element,token){var regexp=new RegExp("(^|\\s)"+token+"(\\s|$)","g");element.className=trim(element.className.replace(regexp,"$2"))},toggle:function(element,token){this[this.has(element,token)?"remove":"add"](element,token)}});function _ElementClassList(element){this.add=function(token){ClassList.add(element,token)};this.has=function(token){return ClassList.has(element,token)};this.remove=function(token){ClassList.remove(element,token)}}_ElementClassList.prototype.toggle=function(token){this[this.has(token)?"remove":"add"](token)};var DocumentState=Base.extend({constructor:function(document){this.document=document;this.events={};this._hoverElement=document.documentElement;this.isBound=function(){return !!DOM.bind[document.base2ID]};forEach(this,function(method,name,documentState){if(/^on((DOM)?\w+|[a-z]+)$/.test(name)){documentState.registerEvent(name.slice(2))}})},includes:function(element,target){return target&&(element==target||Traversal.contains(element,target))},hasFocus:function(element){return element==this._focusElement},isActive:function(element){return this.includes(element,this._activeElement)},isHover:function(element){return this.includes(element,this._hoverElement)},handleEvent:function(event){return this["on"+event.type](event)},onblur:function(event){delete this._focusElement},onmouseover:function(event){this._hoverElement=event.target},onmouseout:function(event){delete this._hoverElement},onmousedown:function(event){this._activeElement=event.target},onfocus:function(event){this._focusElement=event.target},onmouseup:function(event){delete this._activeElement},registerEvent:function(type){this.document.addEventListener(type,this,true);this.events[type]=true},"@(document.activeElement===undefined)":{constructor:function(document){this.base(document);if(this.isBound()){document.activeElement=document.body}},onfocus:function(event){this.base(event);if(this.isBound()){this.document.activeElement=this._focusElement}},onblur:function(event){this.base(event);if(this.isBound()){this.document.activeElement=this.document.body}}},"@!(element.addEventListener)":{constructor:function(document){this.base(document);var dispatcher=new EventDispatcher(this);this._dispatch=function(event){event.target=event.target||event.srcElement||document;dispatcher.handleEvent(event)};this.handleEvent=function(event){if(this["on"+event.type]){this["on"+event.type](event)}return dispatcher.handleEvent(event)}},registerEvent:function(type,target){var events=this.events[type];var canDelegate=_CAN_DELEGATE.test(type);if(!events||!canDelegate){if(!events){events=this.events[type]={}}if(canDelegate||!target){target=this.document}var state=this;target["on"+type]=function(event){if(!event){event=Traversal.getDefaultView(this).event}if(event){state.handleEvent(event)}}}return events},"@MSIE.+win":{constructor:function(document){this.base(document);var forms={};this._registerForm=function(form){var formID=assignID(form);if(!forms[formID]){forms[formID]=true;form.attachEvent("onsubmit",this._dispatch);form.attachEvent("onreset",this._dispatch)}}},fireEvent:function(type,event){event=copy(event);event.type=type;this.handleEvent(event)},registerEvent:function(type,target){var events=this.events[type];var canDelegate=_CAN_DELEGATE.test(type);if(!events||!canDelegate){if(!events){events=this.events[type]={}}if(canDelegate||!target){target=this.document}var state=this;target.attachEvent("on"+type,function(event){event.target=event.srcElement||state.document;state.handleEvent(event);if(state["after"+type]){state["after"+type](event)}})}return events},onDOMContentLoaded:function(event){forEach(event.target.forms,this._registerForm,this);this.setFocus(this.document.activeElement)},onmousedown:function(event){this.base(event);this._button=event.button},onmouseup:function(event){this.base(event);if(this._button==null){this.fireEvent("mousedown",event)}delete this._button},aftermouseup:function(){if(this._selectEvent){this._dispatch(this._selectEvent);delete this._selectEvent}},onfocusin:function(event){this.setFocus(event.target);this.onfocus(event)},setFocus:function(target){var change=this.events.change,select=this.events.select;if(change||select){var dispatch=this._dispatch;if(change){target.attachEvent("onchange",dispatch)}if(select){var state=this;var onselect=function(event){if(state._activeElement==target){state._selectEvent=copy(event)}else{dispatch(event)}};target.attachEvent("onselect",onselect)}target.attachEvent("onblur",function(){target.detachEvent("onblur",arguments.callee);if(change){target.detachEvent("onchange",dispatch)}if(select){target.detachEvent("onselect",onselect)}})}},onfocusout:function(event){this.onblur(event)},onclick:function(event){var target=event.target;if(target.form){this._registerForm(target.form)}},ondblclick:function(event){this.fireEvent("click",event)}}}},{init:function(){assignID(document);DocumentState=this;this.createState(document);new DOMContentLoadedEvent(document)},createState:function(document){var base2ID=document.base2ID;if(!this[base2ID]){this[base2ID]=new this(document)}return this[base2ID]},getInstance:function(target){return this[Traversal.getDocument(target).base2ID]}});eval(this.exports)};function addListener(f,eventType,node){if(!node){node=window}if(node==window&&eventType=="resize"){var plainFunc=f;var wrappedFunc=function(){if(!arguments.callee.checker){arguments.callee.checker=new WindowResizeChecker()}if(!arguments.callee.checker.hasWindowResized()){return}if(isIE()||isSafari()){setTimeout(plainFunc,100)}else{plainFunc()}};f=wrappedFunc}if(node.addEventListener){node.addEventListener(eventType,f,true)}else{if(node.attachEvent){node.attachEvent("on"+eventType,f)}else{eval("if (!node.on"+eventType+") { node.on"+eventType+" = f; } else { var oldevent = node.on"+eventType+"; node.on"+eventType+" = function() { oldevent(); f();	} }")}}}function cancelEvent(a){if(!a){var a=window.event}a.cancelBubble=true;a.returnValue=false;if(a.stopPropagation&&a.preventDefault){a.stopPropagation();a.preventDefault()}return false}function WindowResizeChecker(){this.cachedWidth=null;this.cachedHeight=null;this.hasWindowResized=function(){if(this.cachedWidth!=document.documentElement.clientWidth||this.cachedHeight!=document.documentElement.clientHeight){this.cachedWidth=document.documentElement.clientWidth;this.cachedHeight=document.documentElement.clientHeight;return true}else{return false}}}function getFirstChild(a){var b=a.firstChild;if(b.nodeType!=1){b=getNextSibling(b)}return b}function getLastChild(a){var b=a.lastChild;if(b.nodeType!=1){b=getPreviousSibling(b)}return b}function getNextSibling(a){var b=a.nextSibling;while(b.nodeType!=1){b=b.nextSibling}return b}function getPreviousSibling(a){var b=a.previousSibling;while(b.nodeType!=1){b=b.previousSibling}return b}function getChildNodesByTagName(g,f){var a=new Array();var b=0;for(var e=0;e<g.childNodes.length;e++){var d=g.childNodes[e];if(d.tagName&&d.tagName.toLowerCase()==f.toLowerCase()){a[b++]=d}}return a}function getXY(a){var d=0;var b=0;if(a.offsetParent){d=a.offsetLeft;b=a.offsetTop;while(a=a.offsetParent){d+=a.offsetLeft;b+=a.offsetTop}}return[d,b]}function getX(a){var b=getXY(a);return b[0]}function getY(a){var b=getXY(a);return b[1]}function getStyle(b,d){var a=null;if(b.currentStyle){a=b.currentStyle[dehyphenate(d)]}else{if(window.getComputedStyle){a=document.defaultView.getComputedStyle(b,null).getPropertyValue(d)}}return a}function getStylePixels(b,d){var a=getStyle(b,d);if(a&&a.indexOf("px")!=-1){return parseInt(a.substring(0,a.indexOf("px")))}else{return 0}}function dehyphenate(e){var f=e.split("-");var a="";for(var d=0;d<f.length;d++){var b=f[d];a+=(d==0)?b:b.charAt(0).toUpperCase()+b.substring(1,b.length)}return a}function extractUrl(b){if(b.indexOf("url(")!=-1){var a=b.substring(b.indexOf("url(")+4,b.indexOf(")"));if(a.charAt(0)=='"'){a=a.substring(1,a.length-1)}if(a.charAt(0)=="'"){a=a.substring(1,a.length-1)}return a}else{return b}}function isOpera(){var a=navigator.userAgent.toLowerCase();return(a.indexOf("opera")!=-1)}function isIE(){var a=navigator.userAgent.toLowerCase();return(a.indexOf("msie")!=-1)&&!isOpera()}function isIE6(){var b=navigator.userAgent.toLowerCase();var a=parseInt(navigator.appVersion);return(isIE()&&!isIE7()&&(a==4)&&(b.indexOf("msie 6.")!=-1))}function isIE7(){var b=navigator.userAgent.toLowerCase();var a=parseInt(navigator.appVersion);return(isIE()&&(a==4)&&(b.indexOf("msie 7.")!=-1))}function isIE8(){var b=navigator.userAgent.toLowerCase();var a=parseInt(navigator.appVersion);return(isIE()&&(a==4)&&(b.indexOf("msie 8.")!=-1||b.indexOf("trident/4.0")!=-1))}function isIE9(){var b=navigator.userAgent.toLowerCase();var a=parseInt(navigator.appVersion);return(isIE()&&(a==5)&&(b.indexOf("msie 9.")!=-1||b.indexOf("trident/5.0")!=-1))}function isSafari(){var a=navigator.userAgent.toLowerCase();var b=navigator.vendor?navigator.vendor.toLowerCase():"";return(a.indexOf("webkit")!=-1)&&(b.indexOf("apple")!=-1)}function isChrome(){var a=navigator.userAgent.toLowerCase();var b=navigator.vendor?navigator.vendor.toLowerCase():"";return(a.indexOf("webkit")!=-1)&&(a.indexOf("chrome")!=-1)}function isGecko(){return(navigator.product=="Gecko")&&!isSafari()&&!isChrome()}getElementsBySelector=document.getElementsBySelector=function(a){var b=base2.DOM.Document.querySelectorAll(document,a);var e=[];for(var d=0;d<b.length;d++){e[d]=b.item(d)}return e};function css_browser_selector(e){var f=e.toLowerCase(),m=function(b){return f.indexOf(b)>-1},l="gecko",d="webkit",k="safari",j=document.getElementsByTagName("html")[0],a=[(!(/opera|webtv/i.test(f))&&/msie\s(\d)/.test(f))?("ie ie"+RegExp.$1):m("firefox/2")?l+" ff2":m("firefox/3")?l+" ff3":m("gecko/")?l:/opera(\s|\/)(\d+)/.test(f)?"opera opera"+RegExp.$2:m("konqueror")?"konqueror":m("chrome")?d+" chrome":m("applewebkit/")?d+" "+k+(/version\/(\d+)/.test(f)?" "+k+RegExp.$1:""):m("mozilla/")?l:"",m("j2me")?"mobile":m("iphone")?"iphone":m("ipod")?"ipod":m("mac")?"mac":m("darwin")?"mac":m("webtv")?"webtv":m("win")?"win":m("freebsd")?"freebsd":(m("x11")||m("linux"))?"linux":"","js"];c=a.join(" ");j.className+=" "+c;return c}css_browser_selector(navigator.userAgent);var onDOMContentLoadedFunctionArray;function onDOMContentLoaded(d,b,a){if(!b){b=0}if(!a){a=0}if(!onDOMContentLoadedFunctionArray){onDOMContentLoadedFunctionArray=new Array()}onDOMContentLoadedFunctionArray[onDOMContentLoadedFunctionArray.length]=[d,b,a]}function runOnDOMContentLoaded(){if(!onDOMContentLoadedFunctionArray){return}onDOMContentLoadedFunctionArray.sort(function(e,d){return d[1]-e[1]});var a=function(){for(var d=0;d<onDOMContentLoadedFunctionArray.length;d++){var b=onDOMContentLoadedFunctionArray[d][2];if(b>0){setTimeout("onDOMContentLoadedFunctionArray["+d+"][0]();",b)}else{onDOMContentLoadedFunctionArray[d][0]()}}};base2.DOM.bind(document);document.addEventListener("DOMContentLoaded",a,false)}function liquidBorders(p){var a=document.getElementsBySelector(p);for(var r=0;r<a.length;r++){var o=a[r];var j=isIE6();var l=document.createElement("div");if(o.className!=""){l.className=o.className}if(o.id!=""){l.id=o.id;o.id+="Inside"}o.parentNode.replaceChild(l,o);var f=document.createElement("div");f.className="top-left";l.appendChild(f);var e=document.createElement("div");e.className="top-right";l.appendChild(e);if(j){var t=document.createElement("div");t.className="top-right-bg";e.appendChild(t)}var k=document.createElement("div");k.className="inside-left";l.appendChild(k);if(j){var q=document.createElement("div");q.className="inside-left-bg";k.appendChild(q)}var g=document.createElement("div");g.className="inside-right";k.appendChild(g);if(j){var s=document.createElement("div");s.className="inside-right-bg";g.appendChild(s)}var n=document.createElement("div");n.className="inside-background";g.appendChild(n);var h=document.createElement("div");h.className="inside-background-decoration";n.appendChild(h);o.className="inside";n.appendChild(o);var m=document.createElement("div");m.className="gap-saver gap-saver-top";o.insertBefore(m,o.firstChild);var b=document.createElement("div");b.className="gap-saver gap-saver-bottom";o.appendChild(b);getNextNonFloatSibling(m).style.marginTop="0px";getPreviousNonFloatSibling(b).style.marginBottom="0px";var d=document.createElement("div");d.className="bottom-left";l.appendChild(d);var v=document.createElement("div");v.className="bottom-right";l.appendChild(v);if(j){var u=document.createElement("div");u.className="bottom-right-bg";v.appendChild(u)}}}function fixGapSavers(){var b=document.getElementsBySelector(".gap-saver-top");for(var d=0;d<b.length;d++){getNextNonFloatSibling(b[d]).style.marginTop="0px"}var a=document.getElementsBySelector(".gap-saver-bottom");for(var d=0;d<a.length;d++){getPreviousNonFloatSibling(a[d]).style.marginBottom="0px"}}function getNextNonFloatSibling(b){var d=getNextSibling(b);var a=getCssFloat(b);while(a!="none"||d.tagName.toUpperCase()=="SCRIPT"){d=getNextSibling(d);a=getCssFloat(d)}return d}function getPreviousNonFloatSibling(b){var d=getPreviousSibling(b);var a=getCssFloat(b);while(a!="none"||d.tagName.toUpperCase()=="SCRIPT"){d=getPreviousSibling(d);a=getCssFloat(d)}return d}function getCssFloat(a){if(a.style.cssFloat){return a.style.cssFloat.toLowerCase()}else{if(a.style.styleFloat){return a.style.styleFloat.toLowerCase()}else{return"none"}}}if(!isIE()&&!isGecko()){addListener(fixRoundingErrors,"load");addListener(fixRoundingErrors,"resize")}function fixRoundingErrors(){var e=document.getElementsByTagName("DIV");for(var d=0;d<e.length;d++){var a=e[d].className;if(a=="top-left"||a=="bottom-left"){var b=e[d];var f=getNextSibling(b);b.style.width=f.offsetLeft-b.offsetLeft+"px"}}}if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(f,d,n,g,k,m,o,j,a,e){if(!document.getElementById){return}this.DETECT_KEY=e?e:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(f){this.setAttribute("swf",f)}if(d){this.setAttribute("id",d)}if(n){this.setAttribute("width",n)}if(g){this.setAttribute("height",g)}if(k){this.setAttribute("version",new deconcept.PlayerVersion(k.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}}if(m){this.addParam("bgcolor",m)}var b=o?o:"high";this.addParam("quality",b);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var l=(j)?j:window.location;this.setAttribute("xiRedirectUrl",l);this.setAttribute("redirectUrl","");if(a){this.setAttribute("redirectUrl",a)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]||""},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]||""},getVariables:function(){return this.variables},getVariablePairs:function(){var a=new Array();var b;var d=this.getVariables();for(b in d){a[a.length]=b+"="+d[b]}return a},getSWFHTML:function(){var e="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}e='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+(this.getAttribute("style")||"")+'"';e+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var d=this.getParams();for(var a in d){e+=[a]+'="'+d[a]+'" '}var b=this.getVariablePairs().join("&");if(b.length>0){e+='flashvars="'+b+'"'}e+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}e='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+(this.getAttribute("style")||"")+'">';e+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var d=this.getParams();for(var a in d){e+='<param name="'+a+'" value="'+d[a]+'" />'}var b=this.getVariablePairs().join("&");if(b.length>0){e+='<param name="flashvars" value="'+b+'" />'}e+="</object>"}return e},write:function(a){if(this.getAttribute("useExpressInstall")){var b=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var d=(typeof a=="string")?document.getElementById(a):a;d.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var d=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){d=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var f=1;var b=3;while(f){try{b++;f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+b);d=new deconcept.PlayerVersion([b,0,0])}catch(g){f=null}}}else{try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(g){try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");d=new deconcept.PlayerVersion([6,0,21]);f.AllowScriptAccess="always"}catch(g){if(d.major==6){return d}}try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(g){}}if(f!=null){d=new deconcept.PlayerVersion(f.GetVariable("$version").split(" ")[1].split(","))}}}return d};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(e){var d=document.location.search||document.location.hash;if(e==null){return d}if(d){var b=d.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==e){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var d=document.getElementsByTagName("OBJECT");for(var b=d.length-1;b>=0;b--){d[b].style.display="none";for(var a in d[b]){if(typeof d[b][a]=="function"){d[b][a]=function(){}}}}};if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;function getAnchorPosition(b){var f=false;var l=new Object();var k=0,h=0;var e=false,g=false,j=false;if(document.getElementById){e=true}else{if(document.all){g=true}else{if(document.layers){j=true}}}if(e&&document.all){k=AnchorPosition_getPageOffsetLeft(document.all[b]);h=AnchorPosition_getPageOffsetTop(document.all[b])}else{if(e){var a=document.getElementById(b);k=AnchorPosition_getPageOffsetLeft(a);h=AnchorPosition_getPageOffsetTop(a)}else{if(g){k=AnchorPosition_getPageOffsetLeft(document.all[b]);h=AnchorPosition_getPageOffsetTop(document.all[b])}else{if(j){var m=0;for(var d=0;d<document.anchors.length;d++){if(document.anchors[d].name==b){m=1;break}}if(m==0){l.x=0;l.y=0;return l}k=document.anchors[d].x;h=document.anchors[d].y}else{l.x=0;l.y=0;return l}}}}l.x=k;l.y=h;return l}function getAnchorWindowPosition(b){var d=getAnchorPosition(b);var a=0;var e=0;if(document.getElementById){if(isNaN(window.screenX)){a=d.x-document.body.scrollLeft+window.screenLeft;e=d.y-document.body.scrollTop+window.screenTop}else{a=d.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;e=d.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset}}else{if(document.all){a=d.x-document.body.scrollLeft+window.screenLeft;e=d.y-document.body.scrollTop+window.screenTop}else{if(document.layers){a=d.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;e=d.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset}}}d.x=a;d.y=e;return d}function AnchorPosition_getPageOffsetLeft(b){var a=b.offsetLeft;while((b=b.offsetParent)!=null){a+=b.offsetLeft}return a}function AnchorPosition_getWindowOffsetLeft(a){return AnchorPosition_getPageOffsetLeft(a)-document.body.scrollLeft}function AnchorPosition_getPageOffsetTop(a){var b=a.offsetTop;while((a=a.offsetParent)!=null){b+=a.offsetTop}return b}function AnchorPosition_getWindowOffsetTop(a){return AnchorPosition_getPageOffsetTop(a)-document.body.scrollTop}function PopupWindow_getXYPosition(a){var b;if(this.type=="WINDOW"){b=getAnchorWindowPosition(a)}else{b=getAnchorPosition(a)}this.x=b.x;this.y=b.y}function PopupWindow_setSize(b,a){this.width=b;this.height=a}function PopupWindow_populate(a){this.contents=a;this.populated=false}function PopupWindow_setUrl(a){this.url=a}function PopupWindow_setWindowProperties(a){this.windowProperties=a}function PopupWindow_refresh(){if(this.divName!=null){if(this.use_gebi){document.getElementById(this.divName).innerHTML=this.contents}else{if(this.use_css){document.all[this.divName].innerHTML=this.contents}else{if(this.use_layers){var a=document.layers[this.divName];a.document.open();a.document.writeln(this.contents);a.document.close()}}}}else{if(this.popupWindow!=null&&!this.popupWindow.closed){if(this.url!=""){this.popupWindow.location.href=this.url}else{this.popupWindow.document.open();this.popupWindow.document.writeln(this.contents);this.popupWindow.document.close()}this.popupWindow.focus()}}}function PopupWindow_showPopup(a){this.getXYPosition(a);this.x+=this.offsetX;this.y+=this.offsetY;this.visible=true;if(!this.populated&&(this.contents!="")){this.populated=true;this.refresh()}if(this.divName!=null){if(this.use_gebi){document.getElementById(this.divName).style.left=this.x+"px";document.getElementById(this.divName).style.top=this.y+"px";document.getElementById(this.divName).style.visibility="visible"}else{if(this.use_css){document.all[this.divName].style.left=this.x;document.all[this.divName].style.top=this.y;document.all[this.divName].style.visibility="visible"}else{if(this.use_layers){document.layers[this.divName].left=this.x;document.layers[this.divName].top=this.y;document.layers[this.divName].visibility="visible"}}}}else{if(this.popupWindow==null||this.popupWindow.closed){if(this.x<0){this.x=0}if(this.y<0){this.y=0}if(screen&&screen.availHeight){if((this.y+this.height)>screen.availHeight){this.y=screen.availHeight-this.height}}if(screen&&screen.availWidth){if((this.x+this.width)>screen.availWidth){this.x=screen.availWidth-this.width}}var b=window.opera||(document.layers&&!navigator.mimeTypes["*"])||navigator.vendor=="KDE"||(document.childNodes&&!document.all&&!navigator.taintEnabled);this.popupWindow=window.open(b?"":"about:blank","window_"+a,this.windowProperties+",width="+this.width+",height="+this.height+",screenX="+this.x+",left="+this.x+",screenY="+this.y+",top="+this.y+"")}this.refresh()}}function PopupWindow_hidePopup(){this.visible=false;if(this.divName!=null){if(this.use_gebi){document.getElementById(this.divName).style.visibility="hidden"}else{if(this.use_css){document.all[this.divName].style.visibility="hidden"}else{if(this.use_layers){document.layers[this.divName].visibility="hidden"}}}}else{if(this.popupWindow&&!this.popupWindow.closed){this.popupWindow.close();this.popupWindow=null}}if(this.autoHideCallback){this.autoHideCallback()}}function PopupWindow_isClicked(d){if(this.divName!=null){if(this.use_layers){var f=d.pageX;var b=d.pageY;var a=document.layers[this.divName];if((f>a.left)&&(f<a.left+a.clip.width)&&(b>a.top)&&(b<a.top+a.clip.height)){return true}else{return false}}else{if(document.all){var a=window.event.srcElement;while(a.parentElement!=null){if(a.id==this.divName){return true}a=a.parentElement}return false}else{if(this.use_gebi&&d){var a=d.originalTarget;if(!a){a=d.srcElement}try{while(a.parentNode!=null){if(a.id==this.divName){return true}a=a.parentNode}}catch(d){}return false}}}return false}return false}function PopupWindow_hideIfNotClicked(a){if(this.autoHideEnabled&&!this.isClicked(a)){this.hidePopup()}}function PopupWindow_autoHide(a){this.autoHideEnabled=true;this.autoHideCallback=a}function PopupWindow_hidePopupWindows(f){if(!f){f=window.event}var b=(f.target)?f.target:f.srcElement;if(b&&(b.tagName.toUpperCase()=="OPTION"||b.tagName.toUpperCase()=="SELECT")){return}for(var a=0;a<popupWindowObjects.length;a++){if(popupWindowObjects[a]!=null){var d=popupWindowObjects[a];d.hideIfNotClicked(f)}}}function PopupWindow_attachListener(){if(document.layers){document.captureEvents(Event.MOUSEUP)}window.popupWindowOldEventListener=document.onmouseup;if(window.popupWindowOldEventListener!=null){document.onmouseup=new Function("window.popupWindowOldEventListener(); PopupWindow_hidePopupWindows();")}else{document.onmouseup=PopupWindow_hidePopupWindows}}function PopupWindow(){if(!window.popupWindowIndex){window.popupWindowIndex=0}if(!window.popupWindowObjects){window.popupWindowObjects=new Array()}if(!window.listenerAttached){window.listenerAttached=true;PopupWindow_attachListener()}this.index=popupWindowIndex++;popupWindowObjects[this.index]=this;this.divName=null;this.popupWindow=null;this.width=0;this.height=0;this.populated=false;this.visible=false;this.autoHideEnabled=false;this.contents="";this.url="";this.windowProperties="toolbar=no,location=no,status=no,menubar=no,scrollbars=auto,resizable,alwaysRaised,dependent,titlebar=no";if(arguments.length>0){this.type="DIV";this.divName=arguments[0]}else{this.type="WINDOW"}this.use_gebi=false;this.use_css=false;this.use_layers=false;if(document.getElementById){this.use_gebi=true}else{if(document.all){this.use_css=true}else{if(document.layers){this.use_layers=true}else{this.type="WINDOW"}}}this.offsetX=0;this.offsetY=0;this.getXYPosition=PopupWindow_getXYPosition;this.populate=PopupWindow_populate;this.setUrl=PopupWindow_setUrl;this.setWindowProperties=PopupWindow_setWindowProperties;this.refresh=PopupWindow_refresh;this.showPopup=PopupWindow_showPopup;this.hidePopup=PopupWindow_hidePopup;this.setSize=PopupWindow_setSize;this.isClicked=PopupWindow_isClicked;this.autoHide=PopupWindow_autoHide;this.hideIfNotClicked=PopupWindow_hideIfNotClicked}function swfirController(){this.swfirs=new Array();this.addswfir=function(a){var b=this.swfirs.length;this.swfirs[b]=a;return b};this.getswfirs=function(){return this.swfirs};this.getNextId=function(){return this.swfirs.length};this.resize=function(d,b,a){if(this.swfirs[d].elasticityWidth==false){this.swfirs[d].setAttribute("width",b);this.swfirs[d].style.width=b+"px"}this.swfirs[d].setAttribute("height",a);this.swfirs[d].style.height=a+"px"}}var firController=new swfirController();function swfir(){this.name="swfir";this.version="1.1.1";this.debug=false;this.params=new Array();this.background="";this.src="swfir.swf";this.wmode="transparent";this.elasticityWidth=false;this.specify=function(b,d){if(b=="debug"){if(d==true||d=="true"){this.debug=true}else{this.debug=false}return}if(b=="wmode"){this.wmode=d}if(b=="background-color"){this.background=this.cleanColor(d);return}if(b=="border-color"||b=="shadow-color"){d=this.cleanColor(d,"flash")}if(b=="shadow-blur"){this.params.shadowBlurX=d;this.params.shadowBlurY=d;acceptableFound=true}if(b=="border-radius"||b=="border-width"||b=="border-alpha"||b=="shadow-blur-x"||b=="shadow-blur-y"){d=parseFloat(d);if((d==NaN||d=="NaN")&&this.debug==true){this.error("'"+b+"' must be a number.  Please make sure in your source there are no quotes (\") around the number.")}}if(b=="rotate"&&Number(d)<0){d=360+Number(d)}if(b=="src"){this.src=d;return}if(b=="elasticity"){if(parseFloat(d)){this.elasticityWidth=d}else{var a=document.createElement("div");a.style.position="absolute";a.style.left="-10em";a.style.width="1em";a.style.height="1em";document.body.appendChild(a);this.elasticityWidth=a.offsetHeight;a.parentNode.removeChild(a)}return}var e=new Array();e["border-radius"]="borderRadius";e["border-width"]="borderWidth";e["border-color"]="borderColor";e["shadow-offset"]="shadowOffset";e["shadow-angle"]="shadowAngle";e["shadow-alpha"]="shadowAlpha";e["shadow-blur-x"]="shadowBlurX";e["shadow-blur-y"]="shadowBlurY";e["shadow-strength"]="shadowStrength";e["shadow-color"]="shadowColor";e["shadow-quality"]="shadowQuality";e["shadow-inner"]="shadowInner";e["shadow-knockout"]="shadowKnockout";e["shadow-hide"]="shadowHide";e.rotate="rotate";e.overflow="overflow";e.link="link";this.params[e[b]]=d};this.swap=function(k){if(typeof(k).toLowerCase()=="string"){var b=document.getElementsBySelector(k)}else{if(k.nodeName){var b=[k]}else{if(k.length!=0){var b=k}}}if(this.hasImg(b)==false){var b=document.getElementsBySelector(k+" img");if(this.hasImg(b)==false&&this.debug==true){this.error("No images were selected with the selector '"+k+"'");return}}for(var l=0;l<b.length;l++){var f="";var n="";var m="";var d="";var g="";var q="";var r="";var a=this.src;var j="";if(b[l].getAttribute("id")){f=b[l].getAttribute("id")}if(b[l].getAttribute("alt")){n=b[l].getAttribute("alt")}if(b[l].getAttribute("title")){n=b[l].getAttribute("title")}if(b[l].className!=""){m=b[l].className+" swfir"}else{m="swfir"}if(this.background!=""){r=this.background}if(b[l].getAttribute("style")){if(b[l].style.cssText&&b[l].style.cssText!=""){d+=b[l].style.cssText+";"}else{if(typeof b[l].getAttribute("style")=="string"){d+=b[l].getAttribute("style")}}}g=b[l].width;q=b[l].height;if(this.elasticityWidth!=false){if(d!=""){d+=" "}d+="width:"+(g/this.elasticityWidth)+"em;"}else{if(b[l].getAttribute("width",2)){if(d!=""){d+=" "}d+="width:"+b[l].getAttribute("width",2)+";"}if(b[l].getAttribute("height",2)){if(d!=""){d+=" "}d+="height:"+b[l].getAttribute("height",2)+";"}}this.params.srcWidth=g;this.params.srcHeight=q;var e="";for(var p in this.params){e+=("&"+p+"="+this.params[p])}if((elementLink=this.withinLink(b[l]))!=false&&!this.params.link){e+="&link="+elementLink.href.replace(/\?/g,"%3F").replace(/&/g,"%26")}j="url="+b[l].src+e+"&swfirId="+firController.getNextId();var o=document.createElement("span");if(f){o.setAttribute("id",f)}if(n){o.setAttribute("title",n)}if(m){o.className=m}b[l].parentNode.insertBefore(o,b[l]);o.appendChild(b[l].parentNode.removeChild(b[l]));var h=new SWFObject(this.src,"swfir"+firController.getNextId(),g,q,"6",this.bgcolor);if(d!=""){h.setAttribute("style",d)}else{h.setAttribute("style",";")}h.addParam("flashvars",j);h.addParam("menu","false");h.addParam("wmode",this.wmode);h.write(o);firController.addswfir(o.firstChild)}};this.cleanColor=function(a,b){a=a.replace(/^0x/,"");a=a.replace(/^#/,"");if(a.length=="3"){a=a.substring(0,1)+a.substring(0,1)+a.substring(1,2)+a.substring(1,2)+a.substring(2,3)+a.substring(2,3)}if(b=="flash"){a="0x"+a}else{a="#"+a}return a};this.hasImg=function(b){for(var a=0;a<b.length;a++){if(b[a].nodeName=="IMG"){return true}}return false};this.withinLink=function(a){while(a.nodeName!="A"){if(a.parentNode){a=a.parentNode}else{return false}}return a};this.error=function(a){alert(this.name+" "+this.version+" Error\n\n"+a)}}document.oncontextmenu=function(){return false};function setCookie(d,f,h,g){if(h){var b=new Date();b.setTime(b.getTime()+(h*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}var e=d+"="+f+a;if(g!=null){e=e+"; path="+g}document.cookie=e}function getCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(e)==0){return f.substring(e.length,f.length)}}return null}function removeCookie(a,b){setCookie(a,"",-1,b)}function escapeXml(e){if(e==null){return null}if(e.indexOf("&")==-1&&e.indexOf("<")==-1&&e.indexOf(">")==-1&&e.indexOf('"')==-1&&e.indexOf("'")==-1){return e}var d=e.length;var a="";for(var b=0;b<d;b++){var f=e.charAt(b);switch(f){case"&":a+="&amp;";break;case"<":a+="&lt;";break;case">":a+="&gt;";break;case'"':a+="&#034;";break;case"'":a+="&#039;";break;default:a+=f;break}}return a}function pngfix(){var h=navigator.appVersion.split("MSIE");var j=parseFloat(h[1]);if((j>=5.5)&&(j<7)&&(document.body.filters)){for(var e=0;e<document.images.length;e++){var f=document.images[e];var l=f.src.toUpperCase();if(l.substring(l.length-3,l.length)=="PNG"||f.className=="transparentPNG"){var n=(f.currentStyle.width!="auto");var m=(f.currentStyle.height!="auto");var b=(n||m)?"scale":"image";var g=(f.id)?'id="'+f.id+'" ':"";var o=(f.className)?'class="'+f.className+'" ':"";var d=(f.title)?f.title:f.alt;var k="display: inline-block; "+f.style.cssText;if(f.align=="left"){k="float: left;"+k}if(f.align=="right"){k="float: right;"+k}if(f.parentElement.href&&f.currentStyle.cursor=="auto"){k="cursor: hand; "+k}var a="<span "+g+o+' title="'+escapeXml(d)+'" style="width: '+(n?f.currentStyle.width:"1px")+"; height: "+(m?f.currentStyle.height:"1px")+"; "+k+"; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+f.src+"', sizingMethod='"+b+"'); visibility: visible;\"></span>";f.outerHTML=a;e=e-1}}}}onDOMContentLoaded(applyStatusBarMessages);function applyStatusBarMessages(){var d=document.getElementsByTagName("A");for(var b=0;b<d.length;b++){var a=d[b];if(!a.title){continue}addListener(anchorMouseOverListener,"mouseover",a);addListener(anchorMouseOutListener,"mouseout",a)}}function anchorMouseOverListener(b){var a;if(b.srcElement){a=b.srcElement}else{if(b.target){a=b.target}}window.status=a.title;return true}function anchorMouseOutListener(a){window.status="";return true}if(dwr==null){var dwr={}}if(dwr.engine==null){dwr.engine={}}if(DWREngine==null){var DWREngine=dwr.engine}dwr.engine.setErrorHandler=function(a){dwr.engine._errorHandler=a};dwr.engine.setWarningHandler=function(a){dwr.engine._warningHandler=a};dwr.engine.setTextHtmlHandler=function(a){dwr.engine._textHtmlHandler=a};dwr.engine.setTimeout=function(a){dwr.engine._timeout=a};dwr.engine.setPreHook=function(a){dwr.engine._preHook=a};dwr.engine.setPostHook=function(a){dwr.engine._postHook=a};dwr.engine.setHeaders=function(a){dwr.engine._headers=a};dwr.engine.setParameters=function(a){dwr.engine._parameters=a};dwr.engine.XMLHttpRequest=1;dwr.engine.IFrame=2;dwr.engine.ScriptTag=3;dwr.engine.setRpcType=function(a){if(a!=dwr.engine.XMLHttpRequest&&a!=dwr.engine.IFrame&&a!=dwr.engine.ScriptTag){dwr.engine._handleError(null,{name:"dwr.engine.invalidRpcType",message:"RpcType must be one of dwr.engine.XMLHttpRequest or dwr.engine.IFrame or dwr.engine.ScriptTag"});return}dwr.engine._rpcType=a};dwr.engine.setHttpMethod=function(a){if(a!="GET"&&a!="POST"){dwr.engine._handleError(null,{name:"dwr.engine.invalidHttpMethod",message:"Remoting method must be one of GET or POST"});return}dwr.engine._httpMethod=a};dwr.engine.setOrdered=function(a){dwr.engine._ordered=a};dwr.engine.setAsync=function(a){dwr.engine._async=a};dwr.engine.setActiveReverseAjax=function(a){if(a){if(dwr.engine._activeReverseAjax){return}dwr.engine._activeReverseAjax=true;dwr.engine._poll()}else{if(dwr.engine._activeReverseAjax&&dwr.engine._pollReq){dwr.engine._pollReq.abort()}dwr.engine._activeReverseAjax=false}};dwr.engine.defaultErrorHandler=function(b,a){dwr.engine._debug("Error: "+a.name+", "+a.message,true);if(b==null||b==""){alert("A server error has occured.")}else{if(b.indexOf("0x80040111")!=-1){dwr.engine._debug(b)}else{alert(b)}}};dwr.engine.defaultWarningHandler=function(b,a){dwr.engine._debug(b)};dwr.engine.beginBatch=function(){if(dwr.engine._batch){dwr.engine._handleError(null,{name:"dwr.engine.batchBegun",message:"Batch already begun"});return}dwr.engine._batch=dwr.engine._createBatch()};dwr.engine.endBatch=function(b){var a=dwr.engine._batch;if(a==null){dwr.engine._handleError(null,{name:"dwr.engine.batchNotBegun",message:"No batch in progress"});return}dwr.engine._batch=null;if(a.map.callCount==0){return}if(b){dwr.engine._mergeBatch(a,b)}if(dwr.engine._ordered&&dwr.engine._batchesLength!=0){dwr.engine._batchQueue[dwr.engine._batchQueue.length]=a}else{dwr.engine._sendData(a)}};dwr.engine.setPollMethod=function(a){dwr.engine.setPollType(a)};dwr.engine.setMethod=function(a){dwr.engine.setRpcType(a)};dwr.engine.setVerb=function(a){dwr.engine.setHttpMethod(a)};dwr.engine.setPollType=function(){dwr.engine._debug("Manually setting the Poll Type is not supported")};dwr.engine._origScriptSessionId="00000000000000000000000000000000";dwr.engine._sessionCookieName="JSESSIONID";dwr.engine._allowGetForSafariButMakeForgeryEasier="false";dwr.engine._scriptTagProtection="throw 'allowScriptTagRemoting is false.';";dwr.engine._defaultPath="/dwr";dwr.engine._pollWithXhr="false";dwr.engine._scriptSessionId=null;dwr.engine._getScriptSessionId=function(){if(dwr.engine._scriptSessionId==null){dwr.engine._scriptSessionId=dwr.engine._origScriptSessionId}return dwr.engine._scriptSessionId};dwr.engine._errorHandler=dwr.engine.defaultErrorHandler;dwr.engine._warningHandler=dwr.engine.defaultWarningHandler;dwr.engine._preHook=null;dwr.engine._postHook=null;dwr.engine._batches={};dwr.engine._batchesLength=0;dwr.engine._batchQueue=[];dwr.engine._rpcType=dwr.engine.XMLHttpRequest;dwr.engine._httpMethod="POST";dwr.engine._ordered=false;dwr.engine._async=true;dwr.engine._batch=null;dwr.engine._timeout=0;dwr.engine._DOMDocument=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","Msxml2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"];dwr.engine._XMLHTTP=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];dwr.engine._activeReverseAjax=false;dwr.engine._outstandingIFrames=[];dwr.engine._pollReq=null;dwr.engine._pollCometInterval=200;dwr.engine._pollRetries=0;dwr.engine._maxPollRetries=0;dwr.engine._textHtmlHandler=null;dwr.engine._headers=null;dwr.engine._parameters=null;dwr.engine._postSeperator="\n";dwr.engine._defaultInterceptor=function(a){return a};dwr.engine._urlRewriteHandler=dwr.engine._defaultInterceptor;dwr.engine._contentRewriteHandler=dwr.engine._defaultInterceptor;dwr.engine._replyRewriteHandler=dwr.engine._defaultInterceptor;dwr.engine._nextBatchId=0;dwr.engine._propnames=["rpcType","httpMethod","async","timeout","errorHandler","warningHandler","textHtmlHandler"];dwr.engine._partialResponseNo=0;dwr.engine._partialResponseYes=1;dwr.engine._partialResponseFlush=2;dwr.engine._unloading=false;dwr.engine._execute=function(n,b,l,k){var f=false;if(dwr.engine._batch==null){dwr.engine.beginBatch();f=true}var e=dwr.engine._batch;var j=[];for(var d=0;d<arguments.length-3;d++){j[d]=arguments[d+3]}if(e.path==null){e.path=n}else{if(e.path!=n){dwr.engine._handleError(e,{name:"dwr.engine.multipleServlets",message:"Can't batch requests to multiple DWR Servlets."});return}}var a;var m=j[j.length-1];if(typeof m=="function"||m==null){a={callback:j.pop()}}else{a=j.pop()}dwr.engine._mergeBatch(e,a);e.handlers[e.map.callCount]={exceptionHandler:a.exceptionHandler,callback:a.callback};var h="c"+e.map.callCount+"-";e.map[h+"scriptName"]=b;e.map[h+"methodName"]=l;e.map[h+"id"]=e.map.callCount;var g=[];for(d=0;d<j.length;d++){dwr.engine._serializeAll(e,g,j[d],h+"param"+d)}e.map.callCount++;if(f){dwr.engine.endBatch()}};dwr.engine._poll=function(){if(!dwr.engine._activeReverseAjax){return}var a=dwr.engine._createBatch();a.map.id=0;a.map.callCount=1;a.isPoll=true;if(dwr.engine._pollWithXhr=="true"){a.rpcType=dwr.engine.XMLHttpRequest;a.map.partialResponse=dwr.engine._partialResponseNo}else{if(navigator.userAgent.indexOf("Gecko/")!=-1){a.rpcType=dwr.engine.XMLHttpRequest;a.map.partialResponse=dwr.engine._partialResponseYes}else{a.rpcType=dwr.engine.XMLHttpRequest;a.map.partialResponse=dwr.engine._partialResponseNo}}a.httpMethod="POST";a.async=true;a.timeout=0;a.path=dwr.engine._defaultPath;a.preHooks=[];a.postHooks=[];a.errorHandler=dwr.engine._pollErrorHandler;a.warningHandler=dwr.engine._pollErrorHandler;a.handlers[0]={callback:function(b){dwr.engine._pollRetries=0;setTimeout(dwr.engine._poll,b)}};dwr.engine._sendData(a);if(a.rpcType==dwr.engine.XMLHttpRequest&&a.map.partialResponse==dwr.engine._partialResponseYes){dwr.engine._checkCometPoll()}};dwr.engine._pollErrorHandler=function(b,a){dwr.engine._pollRetries++;dwr.engine._debug("Reverse Ajax poll failed (pollRetries="+dwr.engine._pollRetries+"): "+a.name+" : "+a.message);if(dwr.engine._pollRetries<dwr.engine._maxPollRetries){setTimeout(dwr.engine._poll,10000)}else{dwr.engine._activeReverseAjax=false;dwr.engine._debug("Giving up.")}};dwr.engine._createBatch=function(){var a={map:{callCount:0,page:window.location.pathname+window.location.search,httpSessionId:dwr.engine._getJSessionId(),scriptSessionId:dwr.engine._getScriptSessionId()},charsProcessed:0,paramCount:0,parameters:{},headers:{},isPoll:false,handlers:{},preHooks:[],postHooks:[],rpcType:dwr.engine._rpcType,httpMethod:dwr.engine._httpMethod,async:dwr.engine._async,timeout:dwr.engine._timeout,errorHandler:dwr.engine._errorHandler,warningHandler:dwr.engine._warningHandler,textHtmlHandler:dwr.engine._textHtmlHandler};if(dwr.engine._preHook){a.preHooks.push(dwr.engine._preHook)}if(dwr.engine._postHook){a.postHooks.push(dwr.engine._postHook)}var d,b;if(dwr.engine._headers){for(d in dwr.engine._headers){b=dwr.engine._headers[d];if(typeof b!="function"){a.headers[d]=b}}}if(dwr.engine._parameters){for(d in dwr.engine._parameters){b=dwr.engine._parameters[d];if(typeof b!="function"){a.parameters[d]=b}}}return a};dwr.engine._mergeBatch=function(a,e){var f,d;for(var b=0;b<dwr.engine._propnames.length;b++){f=dwr.engine._propnames[b];if(e[f]!=null){a[f]=e[f]}}if(e.preHook!=null){a.preHooks.unshift(e.preHook)}if(e.postHook!=null){a.postHooks.push(e.postHook)}if(e.headers){for(f in e.headers){d=e.headers[f];if(typeof d!="function"){a.headers[f]=d}}}if(e.parameters){for(f in e.parameters){d=e.parameters[f];if(typeof d!="function"){a.map["p-"+f]=""+d}}}};dwr.engine._getJSessionId=function(){var d=document.cookie.split(";");for(var b=0;b<d.length;b++){var a=d[b];while(a.charAt(0)==" "){a=a.substring(1,a.length)}if(a.indexOf(dwr.engine._sessionCookieName+"=")==0){return a.substring(dwr.engine._sessionCookieName.length+1,a.length)}}return""};dwr.engine._checkCometPoll=function(){for(var b=0;b<dwr.engine._outstandingIFrames.length;b++){var f="";var d=dwr.engine._outstandingIFrames[b];try{f=dwr.engine._getTextFromCometIFrame(d)}catch(a){dwr.engine._handleWarning(d.batch,a)}if(f!=""){dwr.engine._processCometResponse(f,d.batch)}}if(dwr.engine._pollReq){var e=dwr.engine._pollReq;var f=e.responseText;if(f!=null){dwr.engine._processCometResponse(f,e.batch)}}if(dwr.engine._outstandingIFrames.length>0||dwr.engine._pollReq){setTimeout(dwr.engine._checkCometPoll,dwr.engine._pollCometInterval)}};dwr.engine._getTextFromCometIFrame=function(b){var a=b.contentWindow.document.body;if(a==null){return""}var d=a.innerHTML;if(d.indexOf("<PRE>")==0||d.indexOf("<pre>")==0){d=d.substring(5,d.length-7)}return d};dwr.engine._processCometResponse=function(e,f){if(f.charsProcessed==e.length){return}if(e.length==0){f.charsProcessed=0;return}var b=e.indexOf("//#DWR-START#",f.charsProcessed);if(b==-1){f.charsProcessed=e.length;return}var a=e.lastIndexOf("//#DWR-END#");if(a==-1){return}if(e.charCodeAt(a+11)==13&&e.charCodeAt(a+12)==10){f.charsProcessed=a+13}else{f.charsProcessed=a+11}var d=e.substring(b+13,a);dwr.engine._receivedBatch=f;dwr.engine._eval(d);dwr.engine._receivedBatch=null};dwr.engine._sendData=function(f){f.map.batchId=dwr.engine._nextBatchId;dwr.engine._nextBatchId++;dwr.engine._batches[f.map.batchId]=f;dwr.engine._batchesLength++;f.completed=false;for(var e=0;e<f.preHooks.length;e++){f.preHooks[e]()}f.preHooks=null;if(f.timeout&&f.timeout!=0){f.timeoutId=setTimeout(function(){dwr.engine._abortRequest(f)},f.timeout)}if(f.rpcType==dwr.engine.XMLHttpRequest){if(window.XMLHttpRequest){f.req=new XMLHttpRequest()}else{if(window.ActiveXObject&&!(navigator.userAgent.indexOf("Mac")>=0&&navigator.userAgent.indexOf("MSIE")>=0)){f.req=dwr.engine._newActiveXObject(dwr.engine._XMLHTTP)}}}var a,d;if(f.req){if(f.async){f.req.onreadystatechange=function(){if(typeof dwr!="undefined"){dwr.engine._stateChange(f)}}}if(f.isPoll){dwr.engine._pollReq=f.req;if(!(document.all&&!window.opera)){f.req.batch=f}}var b=navigator.userAgent.indexOf("Safari/");if(b>=0){var h=navigator.userAgent.substring(b+7);if(parseInt(h,10)<400){if(dwr.engine._allowGetForSafariButMakeForgeryEasier=="true"){f.httpMethod="GET"}else{dwr.engine._handleWarning(f,{name:"dwr.engine.oldSafari",message:"Safari GET support disabled. See getahead.org/dwr/server/servlet and allowGetForSafariButMakeForgeryEasier."})}}}f.mode=f.isPoll?dwr.engine._ModePlainPoll:dwr.engine._ModePlainCall;d=dwr.engine._constructRequest(f);try{f.req.open(f.httpMethod,d.url,f.async);try{for(a in f.headers){var k=f.headers[a];if(typeof k=="string"){f.req.setRequestHeader(a,k)}}if(!f.headers["Content-Type"]){f.req.setRequestHeader("Content-Type","text/plain")}}catch(j){dwr.engine._handleWarning(f,j)}f.req.send(d.body);if(!f.async){dwr.engine._stateChange(f)}}catch(j){dwr.engine._handleError(f,j)}}else{if(f.rpcType!=dwr.engine.ScriptTag){var g=f.isPoll?"dwr-if-poll-"+f.map.batchId:"dwr-if-"+f.map.batchId;f.div=document.createElement("div");document.body.appendChild(f.div);f.div.innerHTML="<iframe src='javascript:void(0)' frameborder='0' style='width:0px;height:0px;border:0;' id='"+g+"' name='"+g+"' onload='dwr.engine._iframeLoadingComplete ("+f.map.batchId+");'></iframe>";f.document=document;f.iframe=f.document.getElementById(g);f.iframe.batch=f;f.mode=f.isPoll?dwr.engine._ModeHtmlPoll:dwr.engine._ModeHtmlCall;if(f.isPoll){dwr.engine._outstandingIFrames.push(f.iframe)}d=dwr.engine._constructRequest(f);if(f.httpMethod=="GET"){f.iframe.setAttribute("src",d.url)}else{f.form=f.document.createElement("form");f.form.setAttribute("id","dwr-form");f.form.setAttribute("action",d.url);f.form.setAttribute("style","display:none;");f.form.setAttribute("target",g);f.form.target=g;f.form.setAttribute("method",f.httpMethod);for(a in f.map){var k=f.map[a];if(typeof k!="function"){var l=f.document.createElement("input");l.setAttribute("type","hidden");l.setAttribute("name",a);l.setAttribute("value",k);f.form.appendChild(l)}}f.document.body.appendChild(f.form);f.form.submit()}}else{f.httpMethod="GET";f.mode=f.isPoll?dwr.engine._ModePlainPoll:dwr.engine._ModePlainCall;d=dwr.engine._constructRequest(f);f.script=document.createElement("script");f.script.id="dwr-st-"+f.map["c0-id"];f.script.src=d.url;document.body.appendChild(f.script)}}};dwr.engine._ModePlainCall="/call/plaincall/";dwr.engine._ModeHtmlCall="/call/htmlcall/";dwr.engine._ModePlainPoll="/call/plainpoll/";dwr.engine._ModeHtmlPoll="/call/htmlpoll/";dwr.engine._constructRequest=function(b){var d={url:b.path+b.mode,body:null};if(b.isPoll==true){d.url+="ReverseAjax.dwr"}else{if(b.map.callCount==1){d.url+=b.map["c0-scriptName"]+"."+b.map["c0-methodName"]+".dwr"}else{d.url+="Multiple."+b.map.callCount+".dwr"}}var f=location.href.match(/jsessionid=([^?]+)/);if(f!=null){d.url+=";jsessionid="+f[1]}var e;if(b.httpMethod=="GET"){b.map.callCount=""+b.map.callCount;d.url+="?";for(e in b.map){if(typeof b.map[e]!="function"){d.url+=encodeURIComponent(e)+"="+encodeURIComponent(b.map[e])+"&"}}d.url=d.url.substring(0,d.url.length-1)}else{d.body="";if(document.all&&!window.opera){var a=[];for(e in b.map){if(typeof b.map[e]!="function"){a.push(e+"="+b.map[e]+dwr.engine._postSeperator)}}d.body=a.join("")}else{for(e in b.map){if(typeof b.map[e]!="function"){d.body+=e+"="+b.map[e]+dwr.engine._postSeperator}}}d.body=dwr.engine._contentRewriteHandler(d.body)}d.url=dwr.engine._urlRewriteHandler(d.url);return d};dwr.engine._stateChange=function(d){var b;if(d.completed){dwr.engine._debug("Error: _stateChange() with batch.completed");return}var g=d.req;try{if(g.readyState!=4){return}}catch(e){dwr.engine._handleWarning(d,e);dwr.engine._clearUp(d);return}if(dwr.engine._unloading){dwr.engine._debug("Ignoring reply from server as page is unloading.");return}try{var f=g.responseText;f=dwr.engine._replyRewriteHandler(f);var a=g.status;if(f==null||f==""){dwr.engine._handleWarning(d,{name:"dwr.engine.missingData",message:"No data received from server"})}else{if(a!=200){dwr.engine._handleError(d,{name:"dwr.engine.http."+a,message:g.statusText})}else{var h=g.getResponseHeader("Content-Type");if(!h.match(/^text\/plain/)&&!h.match(/^text\/javascript/)){if(h.match(/^text\/html/)&&typeof d.textHtmlHandler=="function"){d.textHtmlHandler({status:a,responseText:f,contentType:h})}else{dwr.engine._handleWarning(d,{name:"dwr.engine.invalidMimeType",message:"Invalid content type: '"+h+"'"})}}else{if(d.isPoll&&d.map.partialResponse==dwr.engine._partialResponseYes){dwr.engine._processCometResponse(f,d)}else{if(f.search("//#DWR")==-1){dwr.engine._handleWarning(d,{name:"dwr.engine.invalidReply",message:"Invalid reply from server"})}else{b=f}}}}}}catch(e){dwr.engine._handleWarning(d,e)}dwr.engine._callPostHooks(d);dwr.engine._receivedBatch=d;if(b!=null){b=b.replace(dwr.engine._scriptTagProtection,"")}dwr.engine._eval(b);dwr.engine._receivedBatch=null;dwr.engine._validateBatch(d);if(!d.completed){dwr.engine._clearUp(d)}};dwr.engine._validateBatch=function(a){if(!a.completed){for(var b=0;b<a.map.callCount;b++){if(a.handlers[b]!=null){dwr.engine._handleWarning(a,{name:"dwr.engine.incompleteReply",message:"Incomplete reply from server"});break}}}};dwr.engine._iframeLoadingComplete=function(a){var b=dwr.engine._batches[a];if(b){dwr.engine._validateBatch(b)}};dwr.engine._remoteHandleCallback=function(a,g,f){var d=dwr.engine._batches[a];if(d==null){dwr.engine._debug("Warning: batch == null in remoteHandleCallback for batchId="+a,true);return}try{var b=d.handlers[g];d.handlers[g]=null;if(!b){dwr.engine._debug("Warning: Missing handlers. callId="+g,true)}else{if(typeof b.callback=="function"){b.callback(f)}}}catch(e){dwr.engine._handleError(d,e)}};dwr.engine._remoteHandleException=function(a,f,e){var d=dwr.engine._batches[a];if(d==null){dwr.engine._debug("Warning: null batch in remoteHandleException",true);return}var b=d.handlers[f];d.handlers[f]=null;if(b==null){dwr.engine._debug("Warning: null handlers in remoteHandleException",true);return}if(e.message==undefined){e.message=""}if(typeof b.exceptionHandler=="function"){b.exceptionHandler(e.message,e)}else{if(typeof d.errorHandler=="function"){d.errorHandler(e.message,e)}}};dwr.engine._remoteHandleBatchException=function(d,a){var b=(dwr.engine._receivedBatch==null&&a!=null);if(b){dwr.engine._receivedBatch=dwr.engine._batches[a]}if(d.message==undefined){d.message=""}dwr.engine._handleError(dwr.engine._receivedBatch,d);if(b){dwr.engine._receivedBatch=null;dwr.engine._clearUp(dwr.engine._batches[a])}};dwr.engine._remotePollCometDisabled=function(d,a){dwr.engine.setActiveReverseAjax(false);var b=(dwr.engine._receivedBatch==null&&a!=null);if(b){dwr.engine._receivedBatch=dwr.engine._batches[a]}if(d.message==undefined){d.message=""}dwr.engine._handleError(dwr.engine._receivedBatch,d);if(b){dwr.engine._receivedBatch=null;dwr.engine._clearUp(dwr.engine._batches[a])}};dwr.engine._remoteBeginIFrameResponse=function(b,a){if(b!=null){dwr.engine._receivedBatch=b.batch}dwr.engine._callPostHooks(dwr.engine._receivedBatch)};dwr.engine._remoteEndIFrameResponse=function(a){dwr.engine._clearUp(dwr.engine._receivedBatch);dwr.engine._receivedBatch=null};dwr.engine._eval=function(script){if(script==null){return null}if(script==""){dwr.engine._debug("Warning: blank script",true);return null}return eval(script)};dwr.engine._abortRequest=function(a){if(a&&!a.completed){dwr.engine._clearUp(a);if(a.req){a.req.abort()}dwr.engine._handleError(a,{name:"dwr.engine.timeout",message:"Timeout"})}};dwr.engine._callPostHooks=function(a){if(a.postHooks){for(var b=0;b<a.postHooks.length;b++){a.postHooks[b]()}a.postHooks=null}};dwr.engine._clearUp=function(b){if(!b){dwr.engine._debug("Warning: null batch in dwr.engine._clearUp()",true);return}if(b.completed){dwr.engine._debug("Warning: Double complete",true);return}if(b.div){b.div.parentNode.removeChild(b.div)}if(b.iframe){for(var d=0;d<dwr.engine._outstandingIFrames.length;d++){if(dwr.engine._outstandingIFrames[d]==b.iframe){dwr.engine._outstandingIFrames.splice(d,1)}}b.iframe.parentNode.removeChild(b.iframe)}if(b.form){b.form.parentNode.removeChild(b.form)}if(b.req){if(b.req==dwr.engine._pollReq){dwr.engine._pollReq=null}delete b.req}if(b.timeoutId){clearTimeout(b.timeoutId);delete b.timeoutId}if(b.map&&(b.map.batchId||b.map.batchId==0)){delete dwr.engine._batches[b.map.batchId];dwr.engine._batchesLength--}b.completed=true;if(dwr.engine._batchQueue.length!=0){var a=dwr.engine._batchQueue.shift();dwr.engine._sendData(a)}};dwr.engine._unloader=function(){dwr.engine._unloading=true;dwr.engine._batchQueue.length=0;for(var a in dwr.engine._batches){var b=dwr.engine._batches[a];if(b&&b.map){if(b.req){b.req.abort()}dwr.engine._clearUp(b)}}};if(window.addEventListener){window.addEventListener("unload",dwr.engine._unloader,false)}else{if(window.attachEvent){window.attachEvent("onunload",dwr.engine._unloader)}}dwr.engine._handleError=function(a,b){if(typeof b=="string"){b={name:"unknown",message:b}}if(b.message==null){b.message=""}if(b.name==null){b.name="unknown"}if(a&&typeof a.errorHandler=="function"){a.errorHandler(b.message,b)}else{if(dwr.engine._errorHandler){dwr.engine._errorHandler(b.message,b)}}if(a){dwr.engine._clearUp(a)}};dwr.engine._handleWarning=function(a,b){if(typeof b=="string"){b={name:"unknown",message:b}}if(b.message==null){b.message=""}if(b.name==null){b.name="unknown"}if(a&&typeof a.warningHandler=="function"){a.warningHandler(b.message,b)}else{if(dwr.engine._warningHandler){dwr.engine._warningHandler(b.message,b)}}if(a){dwr.engine._clearUp(a)}};dwr.engine._serializeAll=function(b,f,e,a){if(e==null){b.map[a]="null:null";return}switch(typeof e){case"boolean":b.map[a]="boolean:"+e;break;case"number":b.map[a]="number:"+e;break;case"string":b.map[a]="string:"+encodeURIComponent(e);break;case"object":var d=Object.prototype.toString.call(e);if(d=="[object String]"){b.map[a]="String:"+encodeURIComponent(e)}else{if(d=="[object Boolean]"){b.map[a]="Boolean:"+e}else{if(d=="[object Number]"){b.map[a]="Number:"+e}else{if(d=="[object Date]"){b.map[a]="Date:"+e.getTime()}else{if(d=="[object Array]"){b.map[a]=dwr.engine._serializeArray(b,f,e,a)}else{b.map[a]=dwr.engine._serializeObject(b,f,e,a)}}}}}break;case"function":break;default:dwr.engine._handleWarning(null,{name:"dwr.engine.unexpectedType",message:"Unexpected type: "+typeof e+", attempting default converter."});b.map[a]="default:"+e;break}};dwr.engine._lookup=function(f,d,a){var e;for(var b=0;b<f.length;b++){if(f[b].data==d){e=f[b];break}}if(e){return"reference:"+e.name}f.push({data:d,name:a});return null};dwr.engine._serializeObject=function(d,j,h,b){var g=dwr.engine._lookup(j,h,b);if(g){return g}if(h.nodeName&&h.nodeType){return dwr.engine._serializeXml(d,j,h,b)}var f="Object_"+dwr.engine._getObjectClassName(h)+":{";var e;for(e in h){if(typeof h[e]!="function"){d.paramCount++;var a="c"+dwr.engine._batch.map.callCount+"-e"+d.paramCount;dwr.engine._serializeAll(d,j,h[e],a);f+=encodeURIComponent(e)+":reference:"+a+", "}}if(f.substring(f.length-2)==", "){f=f.substring(0,f.length-2)}f+="}";return f};dwr.engine._errorClasses={Error:Error,EvalError:EvalError,RangeError:RangeError,ReferenceError:ReferenceError,SyntaxError:SyntaxError,TypeError:TypeError,URIError:URIError};dwr.engine._getObjectClassName=function(d){if(d&&d.constructor&&d.constructor.toString){var e=d.constructor.toString();var a=e.match(/function\s+(\w+)/);if(a&&a.length==2){return a[1]}}if(d&&d.constructor){for(var b in dwr.engine._errorClasses){if(d.constructor==dwr.engine._errorClasses[b]){return b}}}if(d){var e=Object.prototype.toString.call(d);var a=e.match(/\[object\s+(\w+)/);if(a&&a.length==2){return a[1]}}return"Object"};dwr.engine._serializeXml=function(d,g,f,b){var e=dwr.engine._lookup(g,f,b);if(e){return e}var a;if(window.XMLSerializer){a=new XMLSerializer().serializeToString(f)}else{if(f.toXml){a=f.toXml}else{a=f.innerHTML}}return"XML:"+encodeURIComponent(a)};dwr.engine._serializeArray=function(j,d,g,a){var e=dwr.engine._lookup(d,g,a);if(e){return e}if(document.all&&!window.opera){var b=["Array:["];for(var h=0;h<g.length;h++){if(h!=0){b.push(",")}j.paramCount++;var k="c"+dwr.engine._batch.map.callCount+"-e"+j.paramCount;dwr.engine._serializeAll(j,d,g[h],k);b.push("reference:");b.push(k)}b.push("]");f=b.join("")}else{var f="Array:[";for(var h=0;h<g.length;h++){if(h!=0){f+=","}j.paramCount++;var k="c"+dwr.engine._batch.map.callCount+"-e"+j.paramCount;dwr.engine._serializeAll(j,d,g[h],k);f+="reference:";f+=k}f+="]"}return f};dwr.engine._unserializeDocument=function(a){var d;if(window.DOMParser){var f=new DOMParser();d=f.parseFromString(a,"text/xml");if(!d.documentElement||d.documentElement.tagName=="parsererror"){var b=d.documentElement.firstChild.data;b+="\n"+d.documentElement.firstChild.nextSibling.firstChild.data;throw b}return d}else{if(window.ActiveXObject){d=dwr.engine._newActiveXObject(dwr.engine._DOMDocument);d.loadXML(a);return d}else{var e=document.createElement("div");e.innerHTML=a;return e}}};dwr.engine._newActiveXObject=function(a){var e;for(var d=0;d<a.length;d++){try{e=new ActiveXObject(a[d]);break}catch(b){}}return e};dwr.engine._debug=function(g,e){var a=false;try{if(window.console){if(e&&window.console.trace){window.console.trace()}window.console.log(g);a=true}else{if(window.opera&&window.opera.postError){window.opera.postError(g);a=true}}}catch(d){}if(!a){var b=document.getElementById("dwr-debug");if(b){var f=g+"<br/>"+b.innerHTML;if(f.length>2048){f=f.substring(0,2048)}b.innerHTML=f}}};if(dwr==null){var dwr={}}if(dwr.util==null){dwr.util={}}if(DWRUtil==null){var DWRUtil=dwr.util}dwr.util._escapeHtml=true;dwr.util.setEscapeHtml=function(a){dwr.util._escapeHtml=a};dwr.util._shouldEscapeHtml=function(a){if(a&&a.escapeHtml!=null){return a.escapeHtml}return dwr.util._escapeHtml};dwr.util.escapeHtml=function(a){return a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};dwr.util.unescapeHtml=function(a){return a.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")};dwr.util.replaceXmlCharacters=function(a){a=a.replace("&","+");a=a.replace("<","\u2039");a=a.replace(">","\u203A");a=a.replace("'","\u2018");a=a.replace('"',"\u201C");return a};dwr.util.containsXssRiskyCharacters=function(a){return(a.indexOf("&")!=-1||a.indexOf("<")!=-1||a.indexOf(">")!=-1||a.indexOf("'")!=-1||a.indexOf('"')!=-1)};dwr.util.onReturn=function(a,b){if(!a){a=window.event}if(a&&a.keyCode&&a.keyCode==13){b()}};dwr.util.selectRange=function(d,e,a){d=dwr.util._getElementById(d,"selectRange()");if(d==null){return}if(d.setSelectionRange){d.setSelectionRange(e,a)}else{if(d.createTextRange){var b=d.createTextRange();b.moveStart("character",e);b.moveEnd("character",a-d.value.length);b.select()}}d.focus()};if(document.getElementById){dwr.util.byId=function(){var d=new Array();for(var b=0;b<arguments.length;b++){var a=arguments[b];if(typeof a=="string"){a=document.getElementById(a)}if(arguments.length==1){return a}d.push(a)}return d}}else{if(document.all){dwr.util.byId=function(){var d=new Array();for(var b=0;b<arguments.length;b++){var a=arguments[b];if(typeof a=="string"){a=document.all[a]}if(arguments.length==1){return a}d.push(a)}return d}}}if(window["$"]==null){window["$"]=dwr.util.byId}dwr.util.toDescriptiveString=function(g,a,k){if(a===undefined){a=1}var d={};if(dwr.util._isObject(k)){d=k}var h={escapeHtml:false,baseIndent:"",childIndent:"\u00A0\u00A0",lineTerminator:"\n",oneLineMaxItems:5,shortStringMaxLength:13,propertyNameMaxLength:30};for(var b in h){if(!(b in d)){d[b]=h[b]}}var j={document:true,ownerDocument:true,all:true,parentElement:true,parentNode:true,offsetParent:true,children:true,firstChild:true,lastChild:true,previousSibling:true,nextSibling:true,innerHTML:true,outerHTML:true,innerText:true,outerText:true,textContent:true,attributes:true,style:true,currentStyle:true,runtimeStyle:true,parentTextEdit:true};function f(r,l,n,y){var o="";try{if(typeof r=="string"){var u=r;if(l==0&&u.length>y.shortStringMaxLength){u=u.substring(0,y.shortStringMaxLength-3)+"..."}if(y.escapeHtml){var z=u.split("\n");for(var s=0;s<z.length;s++){z[s]=dwr.util.escapeHtml(z[s])}u=z.join("\n")}if(l==0){u=u.replace(/\n|\r|\t/g,function(A){switch(A){case"\n":return"\\n";case"\r":return"";case"\t":return"\\t"}})}else{u=u.replace(/\n|\r|\t/g,function(A){switch(A){case"\n":return y.lineTerminator+e(n+1,y);case"\r":return"";case"\t":return"\\t"}})}o='"'+u+'"'}else{if(typeof r=="function"){o="function"}else{if(dwr.util._isArray(r)){if(l==0){if(r.length>0){o="[...]"}else{o="[]"}}else{var x=[];x.push("[");var t=0;for(var s=0;s<r.length;s++){if(!(s in r)){continue}var v=r[s];if(t>0){x.push(", ")}if(l==1){if(t==y.oneLineMaxItems){x.push("...");break}}else{x.push(y.lineTerminator+e(n+1,y))}if(s!=t){x.push(s);x.push(":")}x.push(f(v,l-1,n+1,y));t++}if(l>1){x.push(y.lineTerminator+e(n,y))}x.push("]");o=x.join("")}}else{if(dwr.util._isObject(r)&&!dwr.util._isDate(r)){if(l==0){o=dwr.util._detailedTypeOf(r)}else{var x=[];if(dwr.util._detailedTypeOf(r)!="Object"){x.push(dwr.util._detailedTypeOf(r));if(typeof r.valueOf()!="object"){x.push(":");x.push(f(r.valueOf(),1,n,y))}x.push(" ")}x.push("{");var w=dwr.util._isHTMLElement(r);var t=0;for(var m in r){var q=r[m];if(w){if(!q){continue}if(typeof q=="function"){continue}if(j[m]){continue}if(m.toUpperCase()==m){continue}}if(t>0){x.push(", ")}if(l==1){if(t==y.oneLineMaxItems){x.push("...");break}}else{x.push(y.lineTerminator+e(n+1,y))}x.push(m.length>y.propertyNameMaxLength?m.substring(0,y.propertyNameMaxLength-3)+"...":m);x.push(":");x.push(f(q,l-1,n+1,y));t++}if(l>1&&t>0){x.push(y.lineTerminator+e(n,y))}x.push("}");o=x.join("")}}else{o=""+r}}}}return o}catch(p){return(p.message?p.message:""+p)}}function e(n,l){var o=[];o.push(l.baseIndent);for(var m=0;m<n;m++){o.push(l.childIndent)}return o.join("")}return f(g,a,0,d)};dwr.util.useLoadingMessage=function(a){var b;if(a){b=a}else{b="Loading"}dwr.engine.setPreHook(function(){var e=dwr.util.byId("disabledZone");if(!e){e=document.createElement("div");e.setAttribute("id","disabledZone");e.style.position="absolute";e.style.zIndex="1000";e.style.left="0px";e.style.top="0px";e.style.width="100%";e.style.height="100%";document.body.appendChild(e);var d=document.createElement("div");d.setAttribute("id","messageZone");d.style.position="absolute";d.style.top="0px";d.style.right="0px";d.style.background="red";d.style.color="white";d.style.fontFamily="Arial,Helvetica,sans-serif";d.style.padding="4px";e.appendChild(d);var f=document.createTextNode(b);d.appendChild(f);dwr.util._disabledZoneUseCount=1}else{dwr.util.byId("messageZone").innerHTML=b;e.style.visibility="visible";dwr.util._disabledZoneUseCount++}});dwr.engine.setPostHook(function(){dwr.util._disabledZoneUseCount--;if(dwr.util._disabledZoneUseCount==0){dwr.util.byId("disabledZone").style.visibility="hidden"}})};dwr.util.setHighlightHandler=function(a){dwr.util._highlightHandler=a};dwr.util.yellowFadeHighlightHandler=function(a){dwr.util._yellowFadeProcess(a,0)};dwr.util._yellowFadeSteps=["d0","b0","a0","90","98","a0","a8","b0","b8","c0","c8","d0","d8","e0","e8","f0","f8"];dwr.util._yellowFadeProcess=function(a,b){a=dwr.util.byId(a);if(b<dwr.util._yellowFadeSteps.length){a.style.backgroundColor="#ffff"+dwr.util._yellowFadeSteps[b];setTimeout("dwr.util._yellowFadeProcess('"+a.id+"',"+(b+1)+")",200)}else{a.style.backgroundColor="transparent"}};dwr.util.borderFadeHighlightHandler=function(a){a.style.borderWidth="2px";a.style.borderStyle="solid";dwr.util._borderFadeProcess(a,0)};dwr.util._borderFadeSteps=["d0","b0","a0","90","98","a0","a8","b0","b8","c0","c8","d0","d8","e0","e8","f0","f8"];dwr.util._borderFadeProcess=function(a,b){a=dwr.util.byId(a);if(b<dwr.util._borderFadeSteps.length){a.style.borderColor="#ff"+dwr.util._borderFadeSteps[b]+dwr.util._borderFadeSteps[b];setTimeout("dwr.util._borderFadeProcess('"+a.id+"',"+(b+1)+")",200)}else{a.style.backgroundColor="transparent"}};dwr.util.focusHighlightHandler=function(b){try{b.focus()}catch(a){}};dwr.util._highlightHandler=null;dwr.util.highlight=function(b,a){if(a&&a.highlightHandler){a.highlightHandler(dwr.util.byId(b))}else{if(dwr.util._highlightHandler!=null){dwr.util._highlightHandler(dwr.util.byId(b))}}};dwr.util.setValue=function(g,h,d){if(h==null){h=""}if(d==null){d={}}var k=g;if(typeof g=="string"){g=dwr.util.byId(g);if(g&&g.id!=k){g=null}}var a=null;if(g==null){a=document.getElementsByName(k);if(a.length>=1){g=a.item(0)}}if(g==null){dwr.util._debug("setValue() can't find an element with id/name: "+k+".");return}dwr.util.highlight(g,d);if(dwr.util._isHTMLElement(g,"select")){if(g.type=="select-multiple"&&dwr.util._isArray(h)){dwr.util._selectListItems(g,h)}else{dwr.util._selectListItem(g,h)}return}if(dwr.util._isHTMLElement(g,"input")){if(g.type=="radio"||g.type=="checkbox"){if(a&&a.length>=1){for(var e=0;e<a.length;e++){var f=a.item(e);if(f.type!=g.type){continue}if(dwr.util._isArray(h)){f.checked=false;for(var b=0;b<h.length;b++){if(h[b]==f.value){f.checked=true}}}else{f.checked=(f.value==h)}}}else{g.checked=(h==true)}}else{g.value=h}return}if(dwr.util._isHTMLElement(g,"textarea")){g.value=h;return}if(h.nodeType){if(h.nodeType==9){h=h.documentElement}h=dwr.util._importNode(g.ownerDocument,h,true);g.appendChild(h);return}if(dwr.util._shouldEscapeHtml(d)){if("textContent" in g){g.textContent=h.toString()}else{if("innerText" in g){g.innerText=h.toString()}else{g.innerHTML=dwr.util.escapeHtml(h.toString())}}}else{g.innerHTML=h}};dwr.util._selectListItems=function(e,f){var d=false;var b;var a;for(b=0;b<e.options.length;b++){e.options[b].selected=false;for(a=0;a<f.length;a++){if(e.options[b].value==f[a]){e.options[b].selected=true}}}if(d){return}for(b=0;b<e.options.length;b++){for(a=0;a<f.length;a++){if(e.options[b].text==f[a]){e.options[b].selected=true}}}};dwr.util._selectListItem=function(d,e){var b=false;var a;for(a=0;a<d.options.length;a++){if(d.options[a].value==e){d.options[a].selected=true;b=true}else{d.options[a].selected=false}}if(b){return}for(a=0;a<d.options.length;a++){d.options[a].selected=(d.options[a].text==e)}};dwr.util.getValue=function(k,l){if(l==null){l={}}var h=k;if(typeof k=="string"){k=dwr.util.byId(k);if(k&&k.id!=h){k=null}}var a=null;if(k==null){a=document.getElementsByName(h);if(a.length>=1){k=a.item(0)}}if(k==null){dwr.util._debug("getValue() can't find an element with id/name: "+h+".");return""}if(dwr.util._isHTMLElement(k,"select")){if(k.type=="select-multiple"){var e=new Array();for(var g=0;g<k.options.length;g++){var j=k.options[g];if(j.selected){var f=j.getAttributeNode("value");if(f&&f.specified){e.push(j.value)}else{e.push(j.text)}}}return e}else{var b=k.selectedIndex;if(b!=-1){var j=k.options[b];var f=j.getAttributeNode("value");if(f&&f.specified){return j.value}return j.text}else{return""}}}if(dwr.util._isHTMLElement(k,"input")){if(k.type=="radio"){if(a&&a.length>=1){for(var g=0;g<a.length;g++){var d=a.item(g);if(d.type==k.type){if(d.checked){return d.value}}}}return k.checked}if(k.type=="checkbox"){if(a&&a.length>=1){var e=[];for(var g=0;g<a.length;g++){var d=a.item(g);if(d.type==k.type){if(d.checked){e.push(d.value)}}}return e}return k.checked}return k.value}if(dwr.util._isHTMLElement(k,"textarea")){return k.value}if(dwr.util._shouldEscapeHtml(l)){if(k.textContent){return k.textContent}else{if(k.innerText){return k.innerText}}}return k.innerHTML};dwr.util.getText=function(b){b=dwr.util._getElementById(b,"getText()");if(b==null){return null}if(!dwr.util._isHTMLElement(b,"select")){dwr.util._debug("getText() can only be used with select elements. Attempt to use: "+dwr.util._detailedTypeOf(b)+" from  id: "+orig+".");return""}var a=b.selectedIndex;if(a!=-1){return b.options[a].text}else{return""}};dwr.util.setValues=function(d,a){var b="";var e=100;if(a&&a.prefix){b=a.prefix}if(a&&a.idPrefix){b=a.idPrefix}if(a&&"depth" in a){e=a.depth}dwr.util._setValuesRecursive(d,b,e,a)};dwr.util._setValuesRecursive=function(e,h,f,b){if(f==0){return}if(dwr.util._isArray(e)&&e.length>0&&dwr.util._isObject(e[0])){for(var d=0;d<e.length;d++){dwr.util._setValuesRecursive(e[d],h+"["+d+"]",f-1,b)}}else{if(dwr.util._isObject(e)&&!dwr.util._isArray(e)){for(var g in e){var a=h?h+"."+g:g;if(dwr.util._isObject(e[g])&&!dwr.util._isArray(e[g])&&!dwr.util._isDate(e[g])||dwr.util._isArray(e[g])&&e[g].length>0&&dwr.util._isObject(e[g][0])){dwr.util._setValuesRecursive(e[g],a,f-1,b)}else{if(typeof e[g]=="function"){}else{if(dwr.util.byId(a)!=null||document.getElementsByName(a).length>=1){dwr.util.setValue(a,e[g],b)}}}}}}};dwr.util.getValues=function(d,a){if(typeof d=="string"||dwr.util._isHTMLElement(d)){return dwr.util.getFormValues(d)}else{var b="";var e=100;if(a!=null&&a.prefix){b=a.prefix}if(a!=null&&a.idPrefix){b=a.idPrefix}if(a!=null&&"depth" in a){e=a.depth}dwr.util._getValuesRecursive(d,b,e,a);return d}};dwr.util.getFormValues=function(a){var g=null;if(typeof a=="string"){g=document.forms[a];if(g==null){g=dwr.util.byId(a)}}else{if(dwr.util._isHTMLElement(a)){g=a}}if(g!=null){if(g.elements==null){alert("getFormValues() requires an object or reference to a form element.");return null}var e={};var b;var f;for(var d=0;d<g.elements.length;d++){if(g[d].type in {button:0,submit:0,reset:0,image:0,file:0}){continue}if(g[d].name){b=g[d].name;f=dwr.util.getValue(b)}else{if(g[d].id){b=g[d].id}else{b="element"+d}f=dwr.util.getValue(g[d])}e[b]=f}return e}};dwr.util._getValuesRecursive=function(e,h,f,b){if(f==0){return}if(dwr.util._isArray(e)&&e.length>0&&dwr.util._isObject(e[0])){for(var d=0;d<e.length;d++){dwr.util._getValuesRecursive(e[d],h+"["+d+"]",f-1,b)}}else{if(dwr.util._isObject(e)&&!dwr.util._isArray(e)){for(var g in e){var a=h?h+"."+g:g;if(dwr.util._isObject(e[g])&&!dwr.util._isArray(e[g])||dwr.util._isArray(e[g])&&e[g].length>0&&dwr.util._isObject(e[g][0])){dwr.util._getValuesRecursive(e[g],a,f-1,b)}else{if(typeof e[g]=="function"){}else{if(dwr.util.byId(a)!=null||document.getElementsByName(a).length>=1){e[g]=dwr.util.getValue(a)}}}}}}};dwr.util.addOptions=function(p,g){p=dwr.util._getElementById(p,"addOptions()");if(p==null){return}var d=dwr.util._isHTMLElement(p,"select");var k=dwr.util._isHTMLElement(p,["ul","ol"]);if(!d&&!k){dwr.util._debug("addOptions() can only be used with select/ul/ol elements. Attempt to use: "+dwr.util._detailedTypeOf(p));return}if(g==null){return}var j=arguments.length;var q={};var o=arguments[j-1];if(j>2&&dwr.util._isObject(o)){q=o;j--}var h=null;if(j>=3){h=arguments[2]}var e=null;if(j>=4){e=arguments[3]}if(!q.optionCreator&&d){q.optionCreator=dwr.util._defaultOptionCreator}if(!q.optionCreator&&k){q.optionCreator=dwr.util._defaultListItemCreator}q.document=p.ownerDocument;var n,l,m;if(dwr.util._isArray(g)){for(var f=0;f<g.length;f++){q.data=g[f];q.text=null;q.value=null;if(d){if(h!=null){if(e!=null){q.text=dwr.util._getValueFrom(g[f],e);q.value=dwr.util._getValueFrom(g[f],h)}else{q.text=q.value=dwr.util._getValueFrom(g[f],h)}}else{q.text=q.value=dwr.util._getValueFrom(g[f])}if(q.text!=null||q.value){var b=q.optionCreator(q);b.text=q.text;b.value=q.value;p.options[p.options.length]=b}}else{q.value=dwr.util._getValueFrom(g[f],h);if(q.value!=null){m=q.optionCreator(q);if(dwr.util._shouldEscapeHtml(q)){q.value=dwr.util.escapeHtml(q.value)}m.innerHTML=q.value;p.appendChild(m)}}}}else{if(e!=null){if(!d){alert("dwr.util.addOptions can only create select lists from objects.");return}for(var a in g){q.data=g[a];q.value=dwr.util._getValueFrom(g[a],h);q.text=dwr.util._getValueFrom(g[a],e);if(q.text!=null||q.value){var b=q.optionCreator(q);b.text=q.text;b.value=q.value;p.options[p.options.length]=b}}}else{if(!d){dwr.util._debug("dwr.util.addOptions can only create select lists from objects.");return}for(var a in g){if(typeof g[a]=="function"){continue}q.data=g[a];if(!h){q.value=a;q.text=g[a]}else{q.value=g[a];q.text=a}if(q.text!=null||q.value){var b=q.optionCreator(q);b.text=q.text;b.value=q.value;p.options[p.options.length]=b}}}}dwr.util.highlight(p,q)};dwr.util._getValueFrom=function(a,b){if(b==null){return a}else{if(typeof b=="function"){return b(a)}else{return a[b]}}};dwr.util._defaultOptionCreator=function(a){return a.document.createElement("option")};dwr.util._defaultListItemCreator=function(a){return a.document.createElement("li")};dwr.util.removeAllOptions=function(b){b=dwr.util._getElementById(b,"removeAllOptions()");if(b==null){return}var a=dwr.util._isHTMLElement(b,"select");var d=dwr.util._isHTMLElement(b,["ul","ol"]);if(!a&&!d){dwr.util._debug("removeAllOptions() can only be used with select, ol and ul elements. Attempt to use: "+dwr.util._detailedTypeOf(b));return}if(a){b.options.length=0}else{while(b.childNodes.length>0){b.removeChild(b.firstChild)}}};dwr.util.addRows=function(f,e,a,b){f=dwr.util._getElementById(f,"addRows()");if(f==null){return}if(!dwr.util._isHTMLElement(f,["table","tbody","thead","tfoot"])){dwr.util._debug("addRows() can only be used with table, tbody, thead and tfoot elements. Attempt to use: "+dwr.util._detailedTypeOf(f));return}if(!b){b={}}if(!b.rowCreator){b.rowCreator=dwr.util._defaultRowCreator}if(!b.cellCreator){b.cellCreator=dwr.util._defaultCellCreator}b.document=f.ownerDocument;var d,g;if(dwr.util._isArray(e)){for(g=0;g<e.length;g++){b.rowData=e[g];b.rowIndex=g;b.rowNum=g;b.data=null;b.cellNum=-1;d=dwr.util._addRowInner(a,b);if(d!=null){f.appendChild(d)}}}else{if(typeof e=="object"){g=0;for(var h in e){b.rowData=e[h];b.rowIndex=h;b.rowNum=g;b.data=null;b.cellNum=-1;d=dwr.util._addRowInner(a,b);if(d!=null){f.appendChild(d)}g++}}}dwr.util.highlight(f,b)};dwr.util._addRowInner=function(a,b){var e=b.rowCreator(b);if(e==null){return null}for(var f=0;f<a.length;f++){var d=a[f];if(typeof d=="function"){b.data=d(b.rowData,b)}else{b.data=d||""}b.cellNum=f;var g=b.cellCreator(b);if(g!=null){if(b.data!=null){if(dwr.util._isHTMLElement(b.data)){g.appendChild(b.data)}else{if(dwr.util._shouldEscapeHtml(b)&&typeof(b.data)=="string"){g.innerHTML=dwr.util.escapeHtml(b.data)}else{g.innerHTML=b.data}}}e.appendChild(g)}}return e};dwr.util._defaultRowCreator=function(a){return a.document.createElement("tr")};dwr.util._defaultCellCreator=function(a){return a.document.createElement("td")};dwr.util.removeAllRows=function(d,a){d=dwr.util._getElementById(d,"removeAllRows()");if(d==null){return}if(!a){a={}}if(!a.filter){a.filter=function(){return true}}if(!dwr.util._isHTMLElement(d,["table","tbody","thead","tfoot"])){dwr.util._debug("removeAllRows() can only be used with table, tbody, thead and tfoot elements. Attempt to use: "+dwr.util._detailedTypeOf(d));return}var e=d.firstChild;var b;while(e!=null){b=e.nextSibling;if(a.filter(e)){d.removeChild(e)}e=b}};dwr.util.setClassName=function(b,a){b=dwr.util._getElementById(b,"setClassName()");if(b==null){return}b.className=a};dwr.util.addClassName=function(b,a){b=dwr.util._getElementById(b,"addClassName()");if(b==null){return}b.className+=" "+a};dwr.util.removeClassName=function(d,a){d=dwr.util._getElementById(d,"removeClassName()");if(d==null){return}var b=new RegExp("(^|\\s)"+a+"(\\s|$)","g");d.className=d.className.replace(b,"")};dwr.util.toggleClassName=function(d,a){d=dwr.util._getElementById(d,"toggleClassName()");if(d==null){return}var b=new RegExp("(^|\\s)"+a+"(\\s|$)");if(b.test(d.className)){d.className=d.className.replace(b,"")}else{d.className+=" "+a}};dwr.util.cloneNode=function(b,a){b=dwr.util._getElementById(b,"cloneNode()");if(b==null){return null}if(a==null){a={}}var d=b.cloneNode(true);if(a.idPrefix||a.idSuffix){dwr.util._updateIds(d,a)}else{dwr.util._removeIds(d)}b.parentNode.insertBefore(d,b);return d};dwr.util._updateIds=function(e,a){if(a==null){a={}}if(e.id){e.setAttribute("id",(a.idPrefix||"")+e.id+(a.idSuffix||""))}var d=e.childNodes;for(var b=0;b<d.length;b++){var f=d.item(b);if(f.nodeType==1){dwr.util._updateIds(f,a)}}};dwr.util._removeIds=function(d){if(d.id){d.removeAttribute("id")}var b=d.childNodes;for(var a=0;a<b.length;a++){var e=b.item(a);if(e.nodeType==1){dwr.util._removeIds(e)}}};dwr.util.cloneNodeForValues=function(a,d,b){a=dwr.util._getElementById(a,"cloneNodeForValues()");if(a==null){return null}if(b==null){b={}}var e;if(b.idPrefix!=null){e=b.idPrefix}else{e=a.id||""}return dwr.util._cloneNodeForValuesRecursive(a,d,e,b)};dwr.util._cloneNodeForValuesRecursive=function(a,d,f,k){if(dwr.util._isArray(d)){var h=[];for(var e=0;e<d.length;e++){var j=d[e];var g=dwr.util._cloneNodeForValuesRecursive(a,j,f+"["+e+"]",k);h.push(g)}return h}else{if(dwr.util._isObject(d)&&!dwr.util._isArray(d)){var g=a.cloneNode(true);if(k.updateCloneStyle&&g.style){for(var b in k.updateCloneStyle){g.style[b]=k.updateCloneStyle[b]}}dwr.util._replaceIds(g,a.id,f);a.parentNode.insertBefore(g,a);dwr.util._cloneSubArrays(d,f,k);return g}}return null};dwr.util._replaceIds=function(g,j,d){if(g.id){var b=null;if(g.id==j){b=d}else{if(g.id.length>j.length){if(g.id.substr(0,j.length)==j){var a=g.id.charAt(j.length);if(a=="."||a=="["){b=d+g.id.substr(j.length)}}}}if(b){g.setAttribute("id",b)}else{g.removeAttribute("id")}}var f=g.childNodes;for(var e=0;e<f.length;e++){var h=f.item(e);if(h.nodeType==1){dwr.util._replaceIds(h,j,d)}}};dwr.util._cloneSubArrays=function(d,g,a){for(prop in d){var b=d[prop];if(dwr.util._isArray(b)){if(b.length>0&&dwr.util._isObject(b[0])){var f=g+"."+prop;var e=dwr.util.byId(f);if(e!=null){dwr.util._cloneNodeForValuesRecursive(e,b,f,a)}}}else{if(dwr.util._isObject(b)){dwr.util._cloneSubArrays(b,g+"."+prop,a)}}}};dwr.util._getElementById=function(b,a){var d=b;b=dwr.util.byId(b);if(b==null){dwr.util._debug(a+" can't find an element with id: "+d+".")}return b};dwr.util._isHTMLElement=function(d,f){if(d==null||typeof d!="object"||d.nodeName==null){return false}if(f!=null){var e=d.nodeName.toLowerCase();if(typeof f=="string"){return e==f.toLowerCase()}if(dwr.util._isArray(f)){var a=false;for(var b=0;b<f.length&&!a;b++){if(e==f[b].toLowerCase()){a=true}}return a}dwr.util._debug("dwr.util._isHTMLElement was passed test node name that is neither a string or array of strings");return false}return true};dwr.util._detailedTypeOf=function(a){var b=typeof a;if(b=="object"){b=Object.prototype.toString.apply(a);b=b.substring(8,b.length-1)}return b};dwr.util._isObject=function(a){return(a&&typeof a=="object")};dwr.util._isArray=function(a){return(a&&a.join)};dwr.util._isDate=function(a){return(a&&a.toUTCString)?true:false};dwr.util._importNode=function(g,f,b){var e;if(f.nodeType==1){e=g.createElement(f.nodeName);for(var d=0;d<f.attributes.length;d++){var a=f.attributes[d];if(a.nodeValue!=null&&a.nodeValue!=""){e.setAttribute(a.name,a.nodeValue)}}if(f.style!=null){e.style.cssText=f.style.cssText}}else{if(f.nodeType==3){e=g.createTextNode(f.nodeValue)}}if(b&&f.hasChildNodes()){for(d=0;d<f.childNodes.length;d++){e.appendChild(dwr.util._importNode(g,f.childNodes[d],true))}}return e};dwr.util._debug=function(g,e){var a=false;try{if(window.console){if(e&&window.console.trace){window.console.trace()}window.console.log(g);a=true}else{if(window.opera&&window.opera.postError){window.opera.postError(g);a=true}}}catch(d){}if(!a){var b=document.getElementById("dwr-debug");if(b){var f=g+"<br/>"+b.innerHTML;if(f.length>2048){f=f.substring(0,2048)}b.innerHTML=f}}};var parseSelector=(function(){var b=/\s*,\s*/;var a=/\s*([\s>+~(),]|^|$)\s*/g;var m=/([\s>+~,]|[^(]\+|^)([#.:@])/g;var f=/^[^\s>+~]/;var l=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;function h(r,p){p=p||document.documentElement;var s=r.split(b),x=[];for(var u=0;u<s.length;u++){var n=[p],w=g(s[u]);for(var t=0;t<w.length;){var q=w[t++],o=w[t++],v="";if(w[t]=="("){while(w[t++]!=")"&&t<w.length){v+=w[t]}v=v.slice(0,-1)}n=j(n,q,o,v)}x=x.concat(n)}return x}function g(n){var o=n.replace(a,"$1").replace(m,"$1*$2");if(f.test(o)){o=" "+o}return o.match(l)||[]}function j(n,p,q,o){return(k[p])?k[p](n,q,o):[]}var e={toArray:function(o){var n=[];for(var p=0;p<o.length;p++){n.push(o[p])}return n}};var d={isTag:function(o,n){return(n=="*")||(n.toLowerCase()==o.nodeName.toLowerCase())},previousSiblingElement:function(n){do{n=n.previousSibling}while(n&&n.nodeType!=1);return n},nextSiblingElement:function(n){do{n=n.nextSibling}while(n&&n.nodeType!=1);return n},hasClass:function(n,o){return(o.className||"").match("(^|\\s)"+n+"(\\s|$)")},getByTag:function(n,o){return o.getElementsByTagName(n)}};var k={"#":function(n,p){for(var o=0;o<n.length;o++){if(n[o].getAttribute("id")==p){return[n[o]]}}return[]}," ":function(o,q){var n=[];for(var p=0;p<o.length;p++){n=n.concat(e.toArray(d.getByTag(q,o[p])))}return n},">":function(o,r){var n=[];for(var q=0,s;q<o.length;q++){s=o[q];for(var p=0,t;p<s.childNodes.length;p++){t=s.childNodes[p];if(t.nodeType==1&&d.isTag(t,r)){n.push(t)}}}return n},".":function(o,q){var n=[];for(var p=0,r;p<o.length;p++){r=o[p];if(d.hasClass([q],r)){n.push(r)}}return n},":":function(n,p,o){return(pseudoClasses[p])?pseudoClasses[p](n,o):[]}};h.selectors=k;h.pseudoClasses={};h.util=e;h.dom=d;return h})();var sIFR=new function(){var SIFR=this;var CSS_ACTIVE="sIFR-active";var CSS_REPLACED="sIFR-replaced";var CSS_FLASH="sIFR-flash";var CSS_IGNORE="sIFR-ignore";var CSS_ALTERNATE="sIFR-alternate";var CSS_CLASS="sIFR-class";var CSS_LAYOUT="sIFR-layout";var MIN_FONT_SIZE=6;var MAX_FONT_SIZE=126;var MIN_FLASH_VERSION=8;var PREFETCH_COOKIE="SIFR-PREFETCHED";var DEFAULT_RATIOS=[];var FLASH_PADDING_BOTTOM=5;var FSL_WIDTH=9999;var VERSION="317";this.isActive=false;this.isEnabled=true;this.hideElements=true;this.preserveSingleWhitespace=false;this.fixWrap=true;this.fixHover=true;this.registerEvents=true;this.setPrefetchCookie=true;this.cookiePath="/";this.domains=[];this.fromLocal=false;this.forceClear=false;this.forceWidth=false;this.fitExactly=false;this.forceTextTransform=true;this.useDomContentLoaded=true;this.hasFlashClassSet=false;this.repaintOnResize=true;this.callbacks=[];var elementCount=0;var hasPrefetched=false,isInitialized=false;var dom=new function(){var XHTML_NS="http://www.w3.org/1999/xhtml";this.getBody=function(){var nodes=document.getElementsByTagName("body");if(nodes.length==1){return nodes[0]}return null};this.addClass=function(name,node){if(node){node.className=((node.className||"")==""?"":node.className+" ")+name}};this.removeClass=function(name,node){if(node){node.className=node.className.replace(new RegExp("(^|\\s)"+name+"(\\s|$)"),"").replace(/^\s+|(\s)\s+/g,"$1")}};this.hasClass=function(name,node){return new RegExp("(^|\\s)"+name+"(\\s|$)").test(node.className)};this.hasOneOfClassses=function(names,node){for(var i=0;i<names.length;i++){if(this.hasClass(names[i],node)){return true}}return false};this.create=function(name){if(document.createElementNS){return document.createElementNS(XHTML_NS,name)}return document.createElement(name)};this.setInnerHtml=function(node,html){if(ua.innerHtmlSupport){node.innerHTML=html}else{if(ua.xhtmlSupport){html=['<root xmlns="',XHTML_NS,'">',html,"</root>"].join("");var xml=(new DOMParser()).parseFromString(html,"text/xml");xml=document.importNode(xml.documentElement,true);while(node.firstChild){node.removeChild(node.firstChild)}while(xml.firstChild){node.appendChild(xml.firstChild)}}}};this.nodeFromHtml=function(html){var temp=this.create("div");temp.innerHTML=html;return temp.firstChild};this.getComputedStyle=function(node,property){var result;if(document.defaultView&&document.defaultView.getComputedStyle){result=document.defaultView.getComputedStyle(node,null)[property]}else{if(node.currentStyle){result=node.currentStyle[property]}}return result||""};this.getStyleAsInt=function(node,property,requirePx){var value=this.getComputedStyle(node,property);if(requirePx&&!/px$/.test(value)){return 0}value=parseInt(value);return isNaN(value)?0:value};this.getWidthFromStyle=function(node){var width=this.getStyleAsInt(node,"width",ua.ie);if(width==0){var paddingRight=this.getStyleAsInt(node,"paddingRight",true);var paddingLeft=this.getStyleAsInt(node,"paddingLeft",true);var borderRight=this.getStyleAsInt(node,"borderRightWidth",true);var borderLeft=this.getStyleAsInt(node,"borderLeftWidth",true);width=node.offsetWidth-paddingLeft-paddingRight-borderLeft-borderRight}return width};this.getZoom=function(){return hacks.zoom.getLatest()};this.blurElement=function(element){if(ua.gecko){element.blur();return}var input=dom.create("input");input.style.width="0px";input.style.height="0px";element.parentNode.appendChild(input);input.focus();input.blur();input.parentNode.removeChild(input)};this.getDimensions=function(node){var width=node.offsetWidth;var height=node.offsetHeight;if(width==0||height==0){for(var i=0;i<node.childNodes.length;i++){var child=node.childNodes[i];if(child.nodeType!=1){continue}width=Math.max(width,child.offsetWidth);height=Math.max(height,child.offsetHeight)}}return{width:width,height:height}};this.contentIsLink=function(node){var linkFound=false;for(var i=0;i<node.childNodes.length;i++){var child=node.childNodes[i];if(child.nodeType==3&&!child.nodeValue.match(/^\s*$/)){return false}else{if(child.nodeType!=1){continue}}var isLink=child.nodeName.toLowerCase()=="a";if(!isLink){return false}else{linkFound=true}}return linkFound}};this.dom=dom;var ua=new function(){var ua=navigator.userAgent.toLowerCase();var product=(navigator.product||"").toLowerCase();this.macintosh=ua.indexOf("mac")>-1;this.windows=ua.indexOf("windows")>-1;this.quicktime=false;this.opera=ua.indexOf("opera")>-1;this.konqueror=product.indexOf("konqueror")>-1;this.ie=false
/*@cc_on || true @*/
;this.ieSupported=this.ie&&!/ppc|smartphone|iemobile|msie\s5\.5/.test(ua)
/*@cc_on && @_jscript_version >= 5.5 @*/
;this.ieWin=this.ie&&this.windows
/*@cc_on && @_jscript_version >= 5.1 @*/
;this.windows=this.windows&&(!this.ie||this.ieWin);this.ieMac=this.ie&&this.macintosh
/*@cc_on && @_jscript_version < 5.1 @*/
;this.macintosh=this.macintosh&&(!this.ie||this.ieMac);this.safari=ua.indexOf("safari")>-1;this.webkit=ua.indexOf("applewebkit")>-1&&!this.konqueror;this.khtml=this.webkit||this.konqueror;this.gecko=!this.webkit&&product=="gecko";this.operaVersion=this.opera&&/.*opera(\s|\/)(\d+\.\d+)/.exec(ua)?parseInt(RegExp.$2):0;this.webkitVersion=this.webkit&&/.*applewebkit\/(\d+).*/.exec(ua)?parseInt(RegExp.$1):0;this.geckoBuildDate=this.gecko&&/.*gecko\/(\d{8}).*/.exec(ua)?parseInt(RegExp.$1):0;this.konquerorVersion=this.konqueror&&/.*konqueror\/(\d\.\d).*/.exec(ua)?parseInt(RegExp.$1):0;this.flashVersion=0;if(this.ieWin){var axo;var stop=false;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(e){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");this.flashVersion=6;axo.AllowScriptAccess="always"}catch(e){stop=this.flashVersion==6}if(!stop){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){}}}if(!stop&&axo){this.flashVersion=parseFloat(/([\d,?]+)/.exec(axo.GetVariable("$version"))[1].replace(/,/g,"."))}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){var flashPlugin=navigator.plugins["Shockwave Flash"];this.flashVersion=parseFloat(/(\d+\.?\d*)/.exec(flashPlugin.description)[1]);var i=0;while(this.flashVersion>=MIN_FLASH_VERSION&&i<navigator.mimeTypes.length){var mime=navigator.mimeTypes[i];if(mime.type=="application/x-shockwave-flash"&&mime.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){this.flashVersion=0;this.quicktime=true}i++}}}this.flash=this.flashVersion>=MIN_FLASH_VERSION;this.transparencySupport=this.macintosh||this.windows;this.computedStyleSupport=this.ie||document.defaultView&&document.defaultView.getComputedStyle&&(!this.gecko||this.geckoBuildDate>=20030624);this.css=true;if(this.computedStyleSupport){try{var node=document.getElementsByTagName("head")[0];node.style.backgroundColor="#FF0000";var color=dom.getComputedStyle(node,"backgroundColor");this.css=!color||/\#F{2}0{4}|rgb\(255,\s?0,\s?0\)/i.test(color);node.style.backgroundColor="";node=null}catch(e){}}this.xhtmlSupport=!!window.DOMParser&&!!document.importNode;try{var n=dom.create("span");if(!this.ieMac){n.innerHTML="x"}this.innerHtmlSupport=n.innerHTML=="x"}catch(e){this.innerHtmlSupport=false}this.zoomSupport=!!(this.opera&&document.documentElement);this.geckoXml=this.gecko&&(document.contentType||"").indexOf("xml")>-1;this.requiresPrefetch=this.ieWin||this.khtml;this.verifiedKonqueror=false;this.supported=this.flash&&this.css&&(!this.ie||this.ieSupported)&&(!this.opera||this.operaVersion>=8)&&(!this.webkit||this.webkitVersion>=412)&&(!this.konqueror||this.konquerorVersion>3.5)&&this.computedStyleSupport&&(this.innerHtmlSupport||!this.khtml&&this.xhtmlSupport)&&(!this.gecko||this.geckoBuildDate>20040804)};this.ua=ua;var util=new function(){var UNIT_REMOVAL_PROPERTIES={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};var SINGLE_WHITESPACE=" ";function capitalize($){return $.toUpperCase()}this.normalize=function(str){if(SIFR.preserveSingleWhitespace){return str.replace(/\s/g,SINGLE_WHITESPACE)}return str.replace(/(\n|\r)+/g,SINGLE_WHITESPACE).replace(/(\s)\s+/g,"$1").replace(/\xA0/,SINGLE_WHITESPACE)};this.textTransform=function(type,str){switch(type){case"uppercase":str=str.toUpperCase();break;case"lowercase":str=str.toLowerCase();break;case"capitalize":var strCopy=str;str=str.replace(/^\w|\s\w/g,capitalize);if(str.indexOf("function capitalize")!=-1){var substrs=strCopy.replace(/(^|\s)(\w)/g,"$1$1$2$2").split(/^\w|\s\w/g);str="";for(var i=0;i<substrs.length;i++){str+=substrs[i].charAt(0).toUpperCase()+substrs[i].substring(1)}}break}return str};this.toHexString=function(str){if(typeof(str)!="string"||!str.charAt(0)=="#"||str.length!=4&&str.length!=7){return str}str=str.replace(/#/,"");if(str.length==3){str=str.replace(/(.)(.)(.)/,"$1$1$2$2$3$3")}return"0x"+str};this.toJson=function(obj){var json="";switch(typeof(obj)){case"string":json='"'+obj+'"';break;case"number":case"boolean":json=obj.toString();break;case"object":json=[];for(var prop in obj){if(obj[prop]==Object.prototype[prop]){continue}json.push('"'+prop+'":'+util.toJson(obj[prop]))}json="{"+json.join(",")+"}";break}return json};this.convertCssArg=function(arg){if(!arg){return{}}if(typeof(arg)=="object"){if(arg.constructor==Array){arg=arg.join("")}else{return arg}}var obj={};var rules=arg.split("}");for(var i=0;i<rules.length;i++){var $=rules[i].match(/([^\s{]+)\s*\{(.+)\s*;?\s*/);if(!$||$.length!=3){continue}if(!obj[$[1]]){obj[$[1]]={}}var properties=$[2].split(";");for(var j=0;j<properties.length;j++){var $2=properties[j].match(/\s*([^:\s]+)\s*\:\s*([^\s;]+)/);if(!$2||$2.length!=3){continue}obj[$[1]][$2[1]]=$2[2]}}return obj};this.extractFromCss=function(css,selector,property,remove){var value=null;if(css&&css[selector]&&css[selector][property]){value=css[selector][property];if(remove){delete css[selector][property]}}return value};this.cssToString=function(arg){var css=[];for(var selector in arg){var rule=arg[selector];if(rule==Object.prototype[selector]){continue}css.push(selector,"{");for(var property in rule){if(rule[property]==Object.prototype[property]){continue}var value=rule[property];if(UNIT_REMOVAL_PROPERTIES[property]){value=parseInt(value,10)}css.push(property,":",value,";")}css.push("}")}return css.join("")};this.bind=function(scope,method){return function(){scope[method].apply(scope,arguments)}};this.escape=function(str){return escape(str).replace(/\+/g,"%2B")};this.copyProperties=function(from,to){for(var property in from){if(to[property]===undefined){to[property]=from[property]}}return to};this.domain=function(){var domain="";try{domain=document.domain}catch(e){}return domain};this.domainMatches=function(domain,match){if(match=="*"||match==domain){return true}var wildcard=match.lastIndexOf("*");if(wildcard>-1){match=match.substr(wildcard+1);var matchPosition=domain.lastIndexOf(match);if(matchPosition>-1&&(matchPosition+match.length)==domain.length){return true}}return false};this.uriEncode=function(s){return encodeURI(decodeURIComponent(s))}};this.util=util;var hacks={};hacks.fragmentIdentifier=new function(){this.fix=true;var cachedTitle;this.cache=function(){cachedTitle=document.title};function doFix(){document.title=cachedTitle}this.restore=function(){if(this.fix){setTimeout(doFix,0)}}};hacks.synchronizer=new function(){this.isBlocked=false;this.block=function(){this.isBlocked=true};this.unblock=function(){this.isBlocked=false;blockedReplaceKwargsStore.replaceAll()}};hacks.zoom=new function(){var latestZoom=100;this.getLatest=function(){return latestZoom};if(ua.zoomSupport&&ua.opera){var node=document.createElement("div");node.style.position="fixed";node.style.left="-65536px";node.style.top="0";node.style.height="100%";node.style.width="1px";node.style.zIndex="-32";document.documentElement.appendChild(node);function updateZoom(){if(!node){return}var zoom=window.innerHeight/node.offsetHeight;var correction=Math.round(zoom*100)%10;if(correction>5){zoom=Math.round(zoom*100)+10-correction}else{zoom=Math.round(zoom*100)-correction}latestZoom=isNaN(zoom)?100:zoom;hacks.synchronizer.unblock();document.documentElement.removeChild(node);node=null}hacks.synchronizer.block();setTimeout(updateZoom,54)}};this.hacks=hacks;this.errors={isFile:"sIFR: Did not activate because the page is being loaded from the filesystem.",getSource:"sIFR: Could not determine appropriate source"};var replaceKwargsStore={kwargs:[],replaceAll:function(preserve){for(var i=0;i<this.kwargs.length;i++){SIFR.replace(this.kwargs[i])}if(!preserve){this.kwargs=[]}}};var blockedReplaceKwargsStore={kwargs:[],replaceAll:replaceKwargsStore.replaceAll};function isValidDomain(){if(SIFR.domains.length==0){return true}var domain=util.domain();for(var i=0;i<SIFR.domains.length;i++){var match=SIFR.domains[i];if(util.domainMatches(domain,match)){return true}}return false}function isFile(){if(!SIFR.fromLocal&&document.location.protocol=="file:"){if(SIFR.debug){throw new Error(SIFR.errors.isFile)}return true}return false}function resize(){var viewport=resize.viewport;resize.viewport={width:window.innerWidth||document.documentElement.clientWidth||dom.getBody().clientWidth,height:window.innerHeight||document.documentElement.clientHeight||dom.getBody().clientHeight};if(viewport&&resize.viewport.width==viewport.width&&resize.viewport.height==viewport.height){return}if(resize.timer){clearTimeout(resize.timer)}resize.timer=setTimeout(function(){delete resize.timer;for(var i=0;i<SIFR.callbacks.length;i++){SIFR.callbacks[i].resize()}},200)}this.activate=function(){if(!ua.supported||!this.isEnabled||this.isActive||!isValidDomain()||isFile()){return}if(arguments.length>0){this.prefetch.apply(this,arguments)}this.isActive=true;if(this.hideElements){this.setFlashClass()}if(ua.ieWin&&hacks.fragmentIdentifier.fix&&window.location.hash!=""){hacks.fragmentIdentifier.cache()}else{hacks.fragmentIdentifier.fix=false}if(!this.registerEvents){return}function handler(evt,preserveReplacements){SIFR.initialize(preserveReplacements);if(evt&&evt.type=="load"){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",handler,false)}if(window.removeEventListener){window.removeEventListener("load",handler,false)}}}if(window.addEventListener){if(SIFR.useDomContentLoaded&&ua.gecko){document.addEventListener("DOMContentLoaded",handler,false)}window.addEventListener("load",handler,false)}else{if(ua.ieWin){if(SIFR.useDomContentLoaded){document.write("<script id=__sifr_ie_onload defer src=//:><\/script>");document.getElementById("__sifr_ie_onload").onreadystatechange=function(){if(this.readyState=="complete"){handler(null,true);this.removeNode()}}}window.attachEvent("onload",handler)}}};this.setFlashClass=function(){if(this.hasFlashClassSet){return}dom.addClass(CSS_ACTIVE,dom.getBody()||document.documentElement);this.hasFlashClassSet=true};this.removeFlashClass=function(){if(!this.hasFlashClassSet){return}dom.removeClass(CSS_ACTIVE,dom.getBody());dom.removeClass(CSS_ACTIVE,document.documentElement);this.hasFlashClassSet=false};this.initialize=function(preserveReplacements){if(!this.isActive||!this.isEnabled){return}if(isInitialized){if(!preserveReplacements){replaceKwargsStore.replaceAll(false)}return}isInitialized=true;replaceKwargsStore.replaceAll(preserveReplacements);if(SIFR.repaintOnResize){if(window.addEventListener){window.addEventListener("resize",resize,false)}else{window.attachEvent("onresize",resize)}}clearPrefetch()};function getSource(src){if(typeof(src)!="string"){if(src.src){src=src.src}if(typeof(src)!="string"){var versions=[];for(var version in src){if(src[version]!=Object.prototype[version]){versions.push(version)}}versions.sort().reverse();var result="";var i=-1;while(!result&&++i<versions.length){if(parseFloat(versions[i])<=ua.flashVersion){result=src[versions[i]]}}src=result}}if(!src&&SIFR.debug){throw new Error(SIFR.errors.getSource)}if(ua.ie&&src.charAt(0)=="/"){src=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+src}return src}this.prefetch=function(){if((!ua.requiresPrefetch&&!this.isActive)||!ua.supported||!this.isEnabled||!isValidDomain()){return}if(this.setPrefetchCookie&&new RegExp(";?"+PREFETCH_COOKIE+"=true;?").test(document.cookie)){return}try{hasPrefetched=true;if(ua.ieWin){prefetchIexplore(arguments)}else{prefetchLight(arguments)}if(this.setPrefetchCookie){document.cookie=PREFETCH_COOKIE+"=true;path="+this.cookiePath}}catch(e){if(SIFR.debug){throw e}}};function prefetchIexplore(args){for(var i=0;i<args.length;i++){document.write('<script defer type="sifr/prefetch" src="'+getSource(args[i])+'"><\/script>')}}function prefetchLight(args){for(var i=0;i<args.length;i++){new Image().src=getSource(args[i])}}function clearPrefetch(){if(!ua.ieWin||!hasPrefetched){return}try{var nodes=document.getElementsByTagName("script");for(var i=nodes.length-1;i>=0;i--){var node=nodes[i];if(node.type=="sifr/prefetch"){node.parentNode.removeChild(node)}}}catch(e){}}function getRatio(size,ratios){for(var i=0;i<ratios.length;i+=2){if(size<=ratios[i]){return ratios[i+1]}}return ratios[ratios.length-1]||1}function getFilters(obj){var filters=[];for(var filter in obj){if(obj[filter]==Object.prototype[filter]){continue}var properties=obj[filter];filter=[filter.replace(/filter/i,"")+"Filter"];for(var property in properties){if(properties[property]==Object.prototype[property]){continue}filter.push(property+":"+util.escape(util.toJson(util.toHexString(properties[property]))))}filters.push(filter.join(","))}return util.escape(filters.join(";"))}function calculate(node){var lineHeight,lines;if(!ua.ie){lineHeight=dom.getStyleAsInt(node,"lineHeight");lines=Math.floor(dom.getStyleAsInt(node,"height")/lineHeight)}else{if(ua.ie){var fontSize=dom.getComputedStyle(node,"fontSize");if(fontSize.indexOf("px")>0){lineHeight=parseInt(fontSize)}else{var html=node.innerHTML;node.style.visibility="visible";node.style.overflow="visible";node.style.position="static";node.style.zoom="normal";node.style.writingMode="lr-tb";node.style.width=node.style.height="auto";node.style.maxWidth=node.style.maxHeight=node.style.styleFloat="none";var rectNode=node;var hasLayout=node.currentStyle.hasLayout;if(hasLayout){dom.setInnerHtml(node,'<div class="'+CSS_LAYOUT+'">X<br />X<br />X</div>');rectNode=node.firstChild}else{dom.setInnerHtml(node,"X<br />X<br />X")}var rects=rectNode.getClientRects();lineHeight=rects[1].bottom-rects[1].top;lineHeight=Math.ceil(lineHeight*0.8);if(hasLayout){dom.setInnerHtml(node,'<div class="'+CSS_LAYOUT+'">'+html+"</div>");rectNode=node.firstChild}else{dom.setInnerHtml(node,html)}rects=rectNode.getClientRects();lines=rects.length;if(hasLayout){dom.setInnerHtml(node,html)}node.style.visibility=node.style.width=node.style.height=node.style.maxWidth=node.style.maxHeight=node.style.overflow=node.style.styleFloat=node.style.position=node.style.zoom=node.style.writingMode=""}}}return{lineHeight:lineHeight,lines:lines}}this.replace=function(kwargs,mergeKwargs){if(!ua.supported){return}if(mergeKwargs){kwargs=util.copyProperties(kwargs,mergeKwargs)}if(!isInitialized){return replaceKwargsStore.kwargs.push(kwargs)}if(hacks.synchronizer.isBlocked){return blockedReplaceKwargsStore.kwargs.push(kwargs)}var nodes=kwargs.elements;if(!nodes&&parseSelector){nodes=parseSelector(kwargs.selector)}if(nodes.length==0){return}this.setFlashClass();var src=getSource(kwargs.src);var css=util.convertCssArg(kwargs.css);var filters=getFilters(kwargs.filters);var forceClear=(kwargs.forceClear==null)?SIFR.forceClear:kwargs.forceClear;var forceSingleLine=kwargs.forceSingleLine===true;var fitExactly=forceSingleLine||((kwargs.fitExactly==null)?SIFR.fitExactly:kwargs.fitExactly);var forceWidth=fitExactly||(kwargs.forceWidth==null?SIFR.forceWidth:kwargs.forceWidth);var leading=parseInt(util.extractFromCss(css,".sIFR-root","leading"))||0;var fontSize=util.extractFromCss(css,".sIFR-root","font-size",true)||0;var backgroundColor=util.extractFromCss(css,".sIFR-root","background-color",true)||"#FFFFFF";var kerning=util.extractFromCss(css,".sIFR-root","kerning",true)||"";var gridFitType=kwargs.gridFitType||util.extractFromCss(css,".sIFR-root","text-align")=="right"?"subpixel":"pixel";var textTransform=SIFR.forceTextTransform?util.extractFromCss(css,".sIFR-root","text-transform",true)||"none":"none";var opacity=util.extractFromCss(css,".sIFR-root","opacity",true)||"100";var pixelFont=kwargs.pixelFont||false;var ratios=kwargs.ratios||DEFAULT_RATIOS;var tuneHeight=parseInt(kwargs.tuneHeight)||0;if(parseInt(fontSize).toString()!=fontSize&&fontSize.indexOf("px")==-1){fontSize=0}else{fontSize=parseInt(fontSize)}if(parseFloat(opacity)<1){opacity=100*parseFloat(opacity)}var cssText="";if(fitExactly){util.extractFromCss(css,".sIFR-root","text-align",true)}if(!kwargs.modifyCss){cssText=util.cssToString(css)}var wmode=kwargs.wmode||"";if(!wmode){if(kwargs.transparent){wmode="transparent"}else{if(kwargs.opaque){wmode="opaque"}}}if(wmode=="transparent"){if(!ua.transparencySupport){wmode="opaque"}else{backgroundColor="transparent"}}for(var i=0;i<nodes.length;i++){var node=nodes[i];if(!ua.verifiedKonqueror){if(dom.getComputedStyle(node,"lineHeight").match(/e\+08px/)){ua.supported=SIFR.isEnabled=false;this.removeFlashClass();return}ua.verifiedKonqueror=true}if(dom.hasOneOfClassses([CSS_REPLACED,CSS_IGNORE,CSS_ALTERNATE],node)){continue}var dimensions=dom.getDimensions(node);var height=dimensions.height;var width=forceSingleLine?FSL_WIDTH:dimensions.width;var display=dom.getComputedStyle(node,"display");if(!height||!width||display==null||display=="none"){continue}if(forceClear&&ua.gecko){node.style.clear="both"}var html=null;if(SIFR.fixWrap&&ua.ie&&display=="block"){html=node.innerHTML;dom.setInnerHtml(node,"X")}width=forceSingleLine?FSL_WIDTH:dom.getWidthFromStyle(node);if(html&&SIFR.fixWrap&&ua.ie){dom.setInnerHtml(node,html)}var lineHeight,lines;if(!fontSize){var calculation=calculate(node);lineHeight=Math.min(MAX_FONT_SIZE,Math.max(MIN_FONT_SIZE,calculation.lineHeight));if(pixelFont){lineHeight=Math.max(8,8*Math.round(lineHeight/8))}lines=calculation.lines;if(isNaN(lines)||!isFinite(lines)||lines==0){lines=1}if(lines>1&&leading){height+=Math.round((lines-1)*leading)}}else{lineHeight=fontSize;lines=1}height=Math.round(lines*lineHeight);if(forceClear&&ua.gecko){node.style.clear=""}var alternate=dom.create("span");alternate.className=CSS_ALTERNATE;var contentNode=node.cloneNode(true);node.parentNode.appendChild(contentNode);for(var j=0,l=contentNode.childNodes.length;j<l;j++){alternate.appendChild(contentNode.childNodes[j].cloneNode(true))}if(kwargs.modifyContent){kwargs.modifyContent(contentNode,kwargs.selector)}if(kwargs.modifyCss){cssText=kwargs.modifyCss(css,contentNode,kwargs.selector)}var fixHover=SIFR.fixHover&&dom.contentIsLink(contentNode);var content=handleContent(contentNode,textTransform,kwargs.uriEncode);contentNode.parentNode.removeChild(contentNode);if(kwargs.modifyContentString){content.text=kwargs.modifyContentString(content.text,kwargs.selector)}if(content.text==""){continue}var vars=["content="+util.escape(content.text),"antialiastype="+(kwargs.antiAliasType||""),"width="+width,"height="+height,"fitexactly="+fitExactly,"tunewidth="+(kwargs.tuneWidth||""),"tuneheight="+tuneHeight,"offsetleft="+(kwargs.offsetLeft||""),"offsettop="+(kwargs.offsetTop||""),"thickness="+(kwargs.thickness||""),"sharpness="+(kwargs.sharpness||""),"kerning="+kerning,"gridfittype="+gridFitType,"zoomsupport="+ua.zoomSupport,"flashfilters="+filters,"opacity="+opacity,"blendmode="+(kwargs.blendMode||""),"size="+lineHeight,"zoom="+dom.getZoom(),"css="+util.escape(cssText),"selectable="+(kwargs.selectable==null?"true":kwargs.selectable),"fixhover="+fixHover,"preventwrap="+kwargs.preventWrap,"link="+util.escape(content.primaryLink[0]||""),"target="+util.escape(content.primaryLink[1]||""),"version="+VERSION];var encodedVars=encodeVars(vars);var callbackName="sIFR_callback_"+elementCount++;var callbackInfo=new CallbackInfo(callbackName,vars,kwargs.onReplacement);window[callbackName+"_DoFSCommand"]=(function(callbackInfo){return function(info,arg){callbackInfo.handle(info,arg)}})(callbackInfo);alternate.setAttribute("id",callbackName+"_alternate");height=Math.round(lines*getRatio(lineHeight,ratios)*lineHeight)+FLASH_PADDING_BOTTOM+tuneHeight;var forcedWidth=forceWidth?width:"100%";var flash;if(ua.ie){flash=['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="',callbackName,'" sifr="true" width="',forcedWidth,'" height="',height,'" class="',CSS_FLASH,'">','<param name="movie" value="',src,'"></param>','<param name="flashvars" value="',encodedVars,'"></param>','<param name="allowScriptAccess" value="always"></param>','<param name="quality" value="best"></param>','<param name="wmode" value="',wmode,'"></param>','<param name="bgcolor" value="',backgroundColor,'"></param>','<param name="name" value="',callbackName,'"></param>',"</object>","<scr","ipt event=FSCommand(info,args) for=",callbackName,">",callbackName,"_DoFSCommand(info, args);","</","script>"].join("")}else{flash=['<embed type="application/x-shockwave-flash" class="'+CSS_FLASH+'" src="',src,'" quality="best" flashvars="',encodedVars,'" width="',forcedWidth,'" height="',height,'" wmode="',wmode,'" bgcolor="',backgroundColor,'" name="',callbackName,'" id="',callbackName,'" allowScriptAccess="always" sifr="true"></embed>'].join("")}var insert=flash;if(kwargs.fixFocus){insert='<div style="margin: 0px; padding-left: 1px; padding-right: 1px; padding-top: 0px; padding-bottom: 0px; overflow: auto; letter-spacing: 0px; float: none;">'+flash+"</div>"}dom.setInnerHtml(node,insert);callbackInfo.html=flash;SIFR.callbacks.push(callbackInfo);if(kwargs.selector){if(!SIFR.callbacks[kwargs.selector]){SIFR.callbacks[kwargs.selector]=[callbackInfo]}else{SIFR.callbacks[kwargs.selector].push(callbackInfo)}}node.appendChild(alternate);dom.addClass(CSS_REPLACED,node)}hacks.fragmentIdentifier.restore()};this.getCallbackByFlashElement=function(node){for(var i=0;i<SIFR.callbacks.length;i++){if(SIFR.callbacks[i].id==node.getAttribute("id")){return SIFR.callbacks[i]}}};this.redraw=function(){for(var i=0;i<SIFR.callbacks.length;i++){SIFR.callbacks[i].resetMovie()}};function encodeVars(vars){return vars.join("&amp;").replace(/%/g,"%25")}function handleContent(source,textTransform,uriEncode){uriEncode=uriEncode||util.uriEncode;var stack=[],content=[],primaryLink=[];var nodes=source.childNodes;var i=0;while(i<nodes.length){var node=nodes[i];if(node.nodeType==3){var text=util.normalize(node.nodeValue);text=util.textTransform(textTransform,text);text=text.replace(/</g,"&lt;");content.push(text)}if(node.nodeType==1){var attributes=[];var nodeName=node.nodeName.toLowerCase();var className=node.className||"";if(/\s+/.test(className)){if(className.indexOf(CSS_CLASS)>-1){className=className.match("(\\s|^)"+CSS_CLASS+"-([^\\s$]*)(\\s|$)")[2]}else{className=className.match(/^([^\s]+)/)[1]}}if(className!=""){attributes.push('class="'+className+'"')}if(nodeName=="a"){var href=uriEncode(node.getAttribute("href")||"");var target=node.getAttribute("target")||"";attributes.push('href="'+href+'"','target="'+target+'"');if(primaryLink.length==0){primaryLink=[href,target]}}content.push("<"+nodeName+(attributes.length>0?" ":"")+attributes.join(" ")+">");if(node.hasChildNodes()){stack.push(i);i=0;nodes=node.childNodes;continue}else{if(!/^(br|img)$/i.test(node.nodeName)){content.push("</",node.nodeName.toLowerCase(),">")}}}if(stack.length>0&&!node.nextSibling){do{i=stack.pop();nodes=node.parentNode.parentNode.childNodes;node=nodes[i];if(node){content.push("</",node.nodeName.toLowerCase(),">")}}while(i==nodes.length-1&&stack.length>0)}i++}return{text:content.join("").replace(/\n|\r/g,""),primaryLink:primaryLink}}function CallbackInfo(id,vars,replacementHandler,fixHover){this.id=id;this.vars=vars;this._replacementHandler=replacementHandler;this._firedReplacementEvent=!(this._replacementHandler!=null);this._fixHover=fixHover;this.html=""}CallbackInfo.prototype.getFlashElement=function(){return document.getElementById(this.id)};CallbackInfo.prototype.available=function(){var flashNode=this.getFlashElement();return flashNode&&flashNode.parentNode};CallbackInfo.prototype.handle=function(info,arg){if(!this.available()){return}if(/(FSCommand\:)?resize/.test(info)){var flashNode=this.getFlashElement();var $=arg.split(/\:|,/);flashNode.setAttribute($[0],$[1]);if($.length>2){flashNode.setAttribute($[2],$[3])}if(ua.khtml){var repaint=flashNode.offsetHeight}if(!this._firedReplacementEvent){this._replacementHandler(this);this._firedReplacementEvent=true}}else{if(/(FSCommand\:)?resetmovie/.test(info)){this.resetMovie()}else{if(/(FSCommand\:)?blur/.test(info)){dom.blurElement(this.getFlashElement())}else{if(this.debugHandler&&/(FSCommand\:)?debug/.test(info)){this.debugHandler(info,arg)}}}}};CallbackInfo.prototype.call=function(type,value){if(!this.available()){return false}var flashNode=this.getFlashElement();try{flashNode.SetVariable("callbackType",type);flashNode.SetVariable("callbackValue",value);flashNode.SetVariable("callbackTrigger",true)}catch(e){return false}return true};CallbackInfo.prototype.replaceText=function(content){var escapedContent=util.escape(content);this.injectVars("content",escapedContent);if(this.call("replacetext",escapedContent)){dom.setInnerHtml(this.getAlternate(),content);return true}return false};CallbackInfo.prototype.injectVars=function(name,value){for(var i=0;i<this.vars.length;i++){if(this.vars[i].split("=")[0]==name){this.vars[i]=name+"="+value;break}}this.html=this.html.replace(/(flashvars(=|\"\svalue=)\")[^\"]+/,"$1"+encodeVars(this.vars))};CallbackInfo.prototype.resetMovie=function(){if(!this.available()){return}var flashNode=this.getFlashElement();var node=flashNode.parentNode;node.replaceChild(dom.nodeFromHtml(this.html),flashNode)};CallbackInfo.prototype.resize=function(){if(!this.available()){return}var flashNode=this.getFlashElement();var ancestor=flashNode.parentNode;flashNode.style.width="0px";flashNode.style.height="0px";var nodes=this.getAlternate().childNodes;var clones=[];for(var i=0;i<nodes.length;i++){var node=nodes[i].cloneNode(true);clones.push(node);ancestor.appendChild(node)}var width=dom.getWidthFromStyle(ancestor);for(var i=0;i<clones.length;i++){ancestor.removeChild(clones[i])}flashNode.style.width="";flashNode.style.height="";if(width>0){this.call("resize",width)}};CallbackInfo.prototype.changeCSS=function(css){css=util.escape(util.cssToString(util.convertCssArg(css)));this.injectVars("css",css);return this.call("changecss",css)};CallbackInfo.prototype.getAlternate=function(){return document.getElementById(this.id+"_alternate")}};function declnk(a){return unescape(a.replace(/@/g,"%"))}function trim(a){for(i=0;i<a.length;){if(a.charAt(i)==" "){a=a.substring(i+1,a.length)}else{break}}for(i=a.length-1;i>=0;i=a.length-1){if(a.charAt(i)==" "){a=a.substring(0,i)}else{break}}return a}function checkMinChars(d,b,a){if(trim(d).length<b){alert(a);return false}else{return true}}function imposeMaxLength(e,a,b){if(!e){var e=window.event}var d=e.keyCode||e.charCode;if((a.value.length<b)||(d>=35&&d<=40)||(d==8)||(d==45)||(d==46)){return true}else{return false}}function digitsOnly(b){if(!b){var b=window.event}var a=b.keyCode||b.charCode;if((a>=48&&a<=57)||(a>=35&&a<=40)||(a==8)||(a==9)||(a==45)||(a==46)||(a==13)){return true}else{return false}}function isPositiveInteger(d){var b="0123456789";for(var a=0;a<d.length;a++){if(b.indexOf(d.charAt(a))==-1){return false}}return true}function isBlank(b){for(var a=0;a<b.length;a++){var d=b.charAt(a);if((d!=" ")&&(d!="\n")&&(d!="\t")){return false}}return true};
