/* Copyright (C) 2009 Microsoft Corporation */
var RuntimeVersion="7.061129.1";Function.abstractMethod=function(){throw new Error('Abstract method should be implemented');}
Function.createCallback=function(method,context){return function(){return method(context);}
}
Function.createDelegate=function(instance,method){return function(){return method.apply(instance,arguments);}
}
Function.emptyFunction=Function.emptyMethod=function(){}
Function.parse=function(functionName){var fn;if(!Function._htClasses){Function._htClasses={};}
else
{fn=Function._htClasses[functionName];}
if(!fn&&functionName){try{var strSplit=functionName.split("."),fn=window,iCount=strSplit.length;for(var i=0;i<iCount;i++)
{fn=fn[strSplit[i]];if(!fn)
{fn=null;break;}
}
if(typeof(fn)!='function'){fn=null;}
else{Function._htClasses[functionName]=fn;}
}
catch(ex){fn=null;}
}
return fn;}
var __fp=Function.prototype;__fp.getBaseMethod=function(instance,methodName,baseTypeName){var baseType=Function.parse(baseTypeName?baseTypeName:this._baseType);if(baseType){var directBaseType=baseType,_ibm=instance._baseMethods;if(_ibm){while(baseType){var method=_ibm[baseType._typeName+'.'+methodName];if(method)return method;baseType=baseType.base||Function.parse(baseType._baseType);}
}
return directBaseType.prototype[methodName];}
return null;}
__fp.getBaseType=function(){return this._baseType;}
__fp.getName=function(){return this._typeName;}
__fp._processBaseType=function(p_objRoot){if(p_objRoot._basePrototypePending&&this._baseType){var fncType=this.base||(this._baseType instanceof Function?this._baseType:Function.parse(this._baseType));if(!fncType._parentBase)
fncType._parentBase=[p_objRoot._typeName];else 
fncType._parentBase.push(p_objRoot._typeName);if(!p_objRoot._childBase)
{p_objRoot._childBase=[fncType._typeName];}
else 
p_objRoot._childBase.push(fncType._typeName);if(fncType&&(this!=fncType)&&(!fncType.inheritsFrom(this))&&!fncType._sealed){this.base=fncType;fncType._processBaseType(p_objRoot);var objProto=fncType.prototype,objSrcProto=this.prototype;for(var memberName in objProto){var memberValue=objProto[memberName];if(!objSrcProto[memberName]){objSrcProto[memberName]=memberValue;}
}
}
delete this._basePrototypePending;}
}
__fp.callBaseMethod=function(instance,methodName,baseArguments){var baseMethod=this.getBaseMethod(instance,methodName);if(baseMethod){if(!baseArguments){return baseMethod.apply(instance);}
else{return baseMethod.apply(instance,baseArguments);}
}
return null;}
__fp.implementsInterface=function(interfaceType){var interfaces=this._interfaces;if(interfaces){for(var i=0;i<interfaces.length;i++)
{if(__Web_Type.compare(interfaces[i],interfaceType))
return true;}
}
if(this.base)
{if(this.base.implementsInterface(interfaceType))
{return true;}
}
else 
if(this._baseType)
{this.base=typeof(this._baseType)=="function"?this._baseType:Function.parse(this._baseType);if(this.base.implementsInterface(interfaceType))
return true;}
return false;}
__fp.inheritsFrom=function(parentType){if(parentType==this){return true;}
if(this.base){return(this.base.inheritsFrom(parentType));}
else
{if(this._baseType)
{this.base=typeof(this._baseType)=="function"?this._baseType:Function.parse(this._baseType);return(this.base.inheritsFrom(parentType));}
}
return false;}
__fp.initializeBase=function(instance,baseArguments){if(!this._parentBase)
{this._childBase=[this._typeName];this._parentBase=[this._typeName];this._parentBase.addRange(this._interfaces);this._childBase.addRange(this._interfaces);}
var arrI=this._interfaces;if(arrI){var iCount=arrI.length;for(var i=0;i<iCount;i++){var objI=arrI[i];objI=objI instanceof Function?objI:Function.parse(objI);objI.call(instance);}
}
this._processBaseType(this);if(this.base){if(!baseArguments){this.base.apply(instance);}
else{this.base.apply(instance,baseArguments);}
}
return instance;}
__fp.isImplementedBy=function(instance){if(!instance)return false;var instanceType=Object.getType(instance);if(!instanceType.implementsInterface){return false;}
return instanceType.implementsInterface(this);}
__fp.isInstanceOfType=function(instance){if(typeof(instance)=='undefined'||instance==null){return false;}
if(instance instanceof this){return true;}
var instanceType=Object.getType(instance);if(instanceType==this){return true;}
if(!instanceType.inheritsFrom){return false;}
return instanceType.inheritsFrom(this);}
__fp.registerBaseMethod=function(instance,methodName){if(!instance._baseMethods){instance._baseMethods={};}
var methodKey=this._typeName+'.'+methodName;instance._baseMethods[methodKey]=instance[methodName];}
Function.createInstance=function(type){if(typeof(type)!='function'){type=Function.parse(type);}
return new type();}
__fp.registerClass=function(typeName,baseType,interfaceType){this._typeName=typeName;if(baseType){if(baseType instanceof Array)
throw new Error("Multiple Inheritance is not supported");this._baseType=baseType;this._basePrototypePending=true;}
if(interfaceType){this._interfaces=[];var iCount=arguments.length;for(var i=2;i<iCount;i++){this._interfaces.push(arguments[i]);}
}
return this;}
__fp.registerAbstractClass=function(typeName,baseType){this.registerClass(typeName,baseType);this._abstract=true;return this;}
__fp.registerSealedClass=function(typeName,baseType){this.registerClass(typeName,baseType);this._sealed=true;return this;}
__fp.registerInterface=function(typeName){this._typeName=typeName;this._interface=this._abstract=this._sealed=true;return this;}
__fp.applyClass=function(blnEvents)
{var fnExtend=__Web_Enum.extend;function generateClass(o)
{var str=(o._typeName&&o._typeName.replace(/\./g,"_"))||"";if(o.base)
{str+=" "+generateClass(o.base);if(blnEvents)
o.Events=fnExtend(o.Events,o.base.Events);}
return str;}
if(!this._className)
{this._className=generateClass(this);}
return this._className;}
__fp.removeClass=function(p_strClass)
{if(this._className)
{if(!this._arrClasses)
this._arrClasses=this._className.split(" ");var arrClass=this._arrClasses,iCount=arrClass.length;for(var intApplied=0;intApplied<iCount;intApplied++)
{p_strClass=p_strClass.replace(new RegExp('^'+arrClass[intApplied]+'( |$)| '+arrClass[intApplied]+'(?= |$)'),'');}
return p_strClass;}
else 
return p_strClass;}
var registerNamespace=Function.registerNamespace=function(namespacePath){var rootObject=window,namespaceParts=namespacePath.split('.'),iCount=namespaceParts.length;for(var i=0;i<iCount;i++){var currentPart=namespaceParts[i];if(!rootObject[currentPart]){rootObject[currentPart]={};}
rootObject=rootObject[currentPart];}
}
Function._typeName='Function';window.Type=Function;Object.getType=function(instance){var ctor=instance.constructor;if(!ctor||(typeof(ctor)!="function")||!ctor._typeName){return Object;}
return instance.constructor;}
Object.isNull=function(o)
{return(null==o||undefined==o);}
Object.getTypeName=function(instance){return Object.getType(instance)._typeName;}
Object.fromJSON=function(text){try{if((/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/.test(text)))
return eval('('+text+')');}catch(e){}
return null;};Object.toJSON=function(object)
{var _this=Object.toJSON,json="null",_wt=Web.Type;if(!Object.isNull(object))
{if(_wt.isArray(object))
{json=[];for(var i=0;i<object.length;i++)
{json.push(_this(object[i]))
}
json="["+json.join(",")+"]";}
else if(_wt.isObject(object))
{json=[];for(var name in object)
{json.push("\""+name+"\":"+_this(object[name]));}
json="{"+json.join(",")+"}";}
else if(_wt.isString(object))
{json="\""+object.replace(_this._reBackslash,"\\\\").replace(_this._reDoubleQuote,"\\\"").replace(_this._reNewLine,"\\n").replace(_this._reCarriageReturn,"\\r")+"\"";}
else if(!_wt.isFunction(object))
{json=object.toString();}
}
return json;}
Object.toJSON._reBackslash=/\\/g;Object.toJSON._reDoubleQuote=/"/g;Object.toJSON._reNewLine=/\n/g;Object.toJSON._reCarriageReturn=/\r/g;Object._typeName='Object';Boolean.parse=function(value){if(typeof(value)=='string'){return(value.trim().toLowerCase()=='true');}
return value?true:false;}
Boolean._typeName='Boolean';Number.parse=function(value){if(!value||(value.length==0)){return 0;}
return parseFloat(value);}
Number._typeName='Number';var __sp=String.prototype;__sp.endsWith=function(suffix){return(this.substr(this.length-suffix.length)==suffix);}
__sp.startsWith=function(prefix){return(this.substr(0,prefix.length)==prefix);}
__sp.lTrim=__sp.trimStart=function(){return this.replace(/^\s*/,"");}
__sp.rTrim=__sp.trimEnd=function(){return this.replace(/\s*$/,"");}
__sp.trim=function(){return this.replace(/^\s+|\s+$/g,"");}
__sp.format=function()
{var s=this,aRE=__sp.format.aRegExp,iCount=arguments.length;for(var i=0;i<iCount;i++)
{if(!aRE[i])
{aRE[i]=new RegExp("\\{"+i+"\\}","g");}
s=s.replace(aRE[i],arguments[i]);}
return(s);}
__sp.format.aRegExp=[];String.isEmpty=function(string)
{return Object.isNull(string)||""==string;}
String.format=function(format){var result=new Sys.StringBuilder();for(var i=0;;){var next=format.indexOf("{",i);if(next<0){result.append(format.slice(i));break;}
result.append(format.slice(i,next));i=next+1;if(format.charAt(i)=='{'){result.append('{');i++;continue;}
var next=format.indexOf("}",i);var brace=format.slice(i,next).split(':');var argNumber=Number.parse(brace[0])+1;var arg=arguments[argNumber];if(arg==null){arg='';}
if(arg.toFormattedString)
result.append(arg.toFormattedString(brace[1]?brace[1]:''));else 
result.append(arg.toString());i=next+1;}
return result.toString();}
String.localeFormat=function(format){for(var i=1;i<arguments.length;i++){var arg=arguments[i];if(arg==null){arg='';}
format=format.replace("{"+(i-1)+"}",arg.toLocaleString());}
return format;}
__sp.removeSpaces=function()
{return this.replace(/ /g,'');}
__sp.removeExtraSpaces=function()
{return(this.replace(__sp.removeExtraSpaces.re," "));}
__sp.removeExtraSpaces.re=/\s+/g;__sp.removeSpaceDelimitedString=function(r)
{var s=" "+this.trim()+" ";return s.replace(" "+r+" "," ").trim();}
__sp.addSpaceDelimitedString=function(r)
{return this.removeSpaceDelimitedString(r)+" "+r;}
__sp.encodeHtmlAttributeURI=__sp.encodeURI=function()
{return encodeURI(this).replace(/'/g,"%27");}
__sp.encodeURIComponent=function()
{return encodeURIComponent(this).replace(/'/g,"%27");}
__sp.encodeHtml=function()
{return this.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;");}
__sp.encodeHtmlAttribute=function()
{return this.encodeHtml().replace(/\r/g,"&#13;").replace(/\n/g,"&#10;").replace(/ /g,"&#32;");}
__sp.decodeURI=function(){return unescape(this)}
String._typeName='String';var __ap=Array.prototype;__ap.add=__ap.queue=function(item){this.push(item);}
__ap.addRange=function(items){if(items)this.push.apply(this,items);return this;}
__ap.clear=function(){if(this.length>0){this.splice(0,this.length);}
}
__ap.clone=function(){return[].addRange(this);}
__ap.contains=__ap.exists=function(item){var index=this.indexOf(item);return(index>=0);}
__ap.dequeue=Array.prototype.shift;if(!__ap.indexOf){__ap.indexOf=function(item,startIndex){var length=this.length;if(length!=0){startIndex=startIndex||0;if(startIndex<0){startIndex=Math.max(0,length+startIndex);}
for(var i=startIndex;i<length;i++){if(this[i]==item){return i;}
}
}
return-1;}
}
if(!__ap.forEach)
{__ap.forEach=function(fnCb,objContext){var length=this.length;for(var i=0;i<length;i++){fnCb.call(objContext,this[i],i,this);}
}
}
__ap.insert=function(index,item){this.splice(index,0,item);}
__ap.remove=function(item){var index=this.indexOf(item);if(index>=0){this.splice(index,1);}
return(index>=0);}
__ap.removeAt=function(index){return this.splice(index,1)[0];}
Array._typeName='Array';Date._typeName='Date';Error.createError=function(message,details,innerError){var e=new Error(message);if(details&&details.length){e.details=details;}
if(innerError){e.innerError=innerError;}
return e;}
Error._typeName='Error';Error.prototype.toString=function()
{return this.message;}
registerNamespace("Web");registerNamespace("Sys");Type.createEnum=function(name){var enumeration={};if(name){eval('enumeration='+name+'={};');}
enumeration.getValues=function(){if(!enumeration._values){var values={};for(var f in enumeration){if(typeof(enumeration[f])!='function'){values[f]=enumeration[f];}
}
enumeration._values=values;}
return enumeration._values;};enumeration.parse=function(s){if(s){for(var f in enumeration){if(f.toLowerCase()===s.toLowerCase()){return enumeration[f];}
}
}
return null;};enumeration.toString=function(value){for(var i in enumeration){if(enumeration[i]===value){return i;}
}
throw Error.createError('Invalid Enumeration Value');};enumeration.getName=function(){return name;}
enumeration.isEnum=function(){return true;}
var iCount=arguments.length;for(var i=1;i<iCount;i+=2){enumeration[arguments[i]]=arguments[i+1];}
return enumeration;}
Type.createFlags=function(name){var flags={};if(name){eval('flags='+name+'={};');}
flags.parse=function(s){var parts=s.split('|'),value=0;for(var i=parts.length-1;i>=0;i--){var part=parts[i].trim(),found=false;for(var f in flags){if(f==part){value|=flags[f];found=true;break;}
}
if(found==false){throw new Error('Invalid Enumeration Value');}
}
return value;};flags.toString=function(value){var sb=new Sys.StringBuilder();for(var i in flags){if((flags[i]&value)!=0){if(sb.isEmpty()==false){sb.append(' | ');}
sb.append(i);}
}
return sb.toString();};flags.getName=function(){return name;}
flags.isFlags=function(){return true;}
var iCount=arguments.length;for(var i=1;i<iCount;i+=2){flags[arguments[i]]=arguments[i+1];}
return flags;}
Sys.IArray=function(){}
Sys.IArray.registerInterface("Sys.IArray");__ap.get_length=function(){return this.length;}
__ap.getItem=function(index){return this[index];}
Array._interfaces=[];Array._interfaces.push(Sys.IArray);Sys.IDisposable=function(){}
Sys.IDisposable.registerInterface('Sys.IDisposable');Sys.StringBuilder=Web.StringBuilder=function(initialText){var _parts=[];if((typeof(initialText)=='string')&&
(initialText.length!=0)){_parts.push(initialText);}
this.append=function(text){if((text==null)||(typeof(text)=='undefined')){return;}
if((typeof(text)=='string')&&(text.length==0)){return;}
_parts.push(text);}
this.appendLine=function(text){this.append(text);_parts.push('\r\n');}
this.clear=function(){_parts.clear();}
this.isEmpty=function(){return(_parts.length==0);}
this.toString=function(delimiter){return _parts.join(delimiter||'');}
}
Sys.StringBuilder.registerSealedClass('Sys.StringBuilder');if(!window.XMLHttpRequest){window.XMLHttpRequest=function(){var progIDs=['Msxml2.XMLHTTP','Microsoft.XMLHTTP'];for(var i=0;i<progIDs.length;i++){try{var xmlHttp=new ActiveXObject(progIDs[i]);return xmlHttp;}
catch(ex){}
}
return null;}
}
function $(s)
{return(typeof s=="object")?s:_ge(s);}
var BindingsVersion="7.061031.0";registerNamespace("Web.Debug.Performance");var __Web_Debug=Web.Debug;if(!__Web_Debug.enabled)
{__Web_Debug.enabled=false;__Web_Debug.initEvents=__Web_Debug.trace=function(){};__Web_Debug.ASSERT=function(){return(__Web_Debug.ASSERT)};__Web_Debug.Performance.start=function()
{this.end=this.End=function(){};return this;}
}
Function.eventHelper=function(p_varCancel,p_boolBubble)
{function Exec()
{if(__Web_Type.isBoolean(p_boolBubble))
event.cancelBubble=p_boolBubble;if(p_varCancel!=null)
{event.returnValue=p_varCancel;if(__Web_Type.isBoolean(p_varCancel))
{return p_varCancel;}
}
}
return Exec;}
Function.KillEvent=Function.eventHelper(false,true);Function.CancelBubble=Function.eventHelper(null,true);Function.CancelDefault=Function.eventHelper(false);registerNamespace("Web.Browser");if(!Web.Browser.isMozilla)
{Web.Browser.isOpera=Web.Browser.isMozilla=function(){return false};Web.Browser.Button={LEFT:1,RIGHT:2,MIDDLE:4};}
Web.Browser.version=parseFloat(window.navigator.appVersion);Web.Browser._isIE=(!Web.Browser.isMozilla()&&!Web.Browser.isOpera());if(Web.Browser._isIE)
{var _ce=document.createElement,_ge=document.getElementById,_get=document.getElementsByTagName;try
{document.execCommand("BackgroundImageCache",false,true);}
catch(ex)
{}
}
Web.Browser.isIE=function()
{return(Web.Browser._isIE);}
registerNamespace("Web.Error");Web.Error=
{Script:34,
Extraction:35,
Multiple:36,
BindingInit:37,
Fire:38,
Count:0,
TraceLevels:Type.createEnum("TraceLevels","NoTrace",0,"NoMessage",1,"NoStackTrace",2,"NoParameters",3,"FullTrace",4),
Submit:function(p_Msg,p_Url,p_Ln,p_Data,p_iErrorCode,p_stackTrace)
{function ExpandArguments(s,a)
{try
{var newargs=new Array();var alist=s.split(",");if(alist[0])
{for(var g=0;g<alist.length;g++)
{if(g>0)
{newargs.push(",");}
var sarg=a[g];if(!sarg)
{sarg="null";}
newargs.push(alist[g].trim()+"=");if(typeof(sarg)=="string")
{newargs.push("'"+sarg+"'");}
else if(typeof(sarg)=="function")
{var str=sarg.toString();var fname=str.substr(0,str.indexOf("("));if(fname=="function")
{fname=str.substr(0,str.indexOf("(")+20).trim()+"...}";}
newargs.push(fname);}
else if(typeof(sarg)=="object")
{newargs.push("object");}
else
{newargs.push("["+typeof(sarg)+"]"+sarg);}
}
}
return newargs.join("");}
catch(e){var d=e.description;if(!d)d=e;return "~ERRORIN~ExpandArguments~ "+d;}
}
function SubmitTrace(errorCode,stackTrace)
{var cancelTrace=false;try{if(Web.Error.CallBack&&Web.Error.CallBack(errorCode,stackTrace,Web.TraceData.Target)===-1)
cancelTrace=true;}catch(e){}
if(!cancelTrace&&Web.Error.Count<4)
{var targetImg=new Image();targetImg.src=Web.TraceData.Target+"&ec="+errorCode+"&pl="+escape(stackTrace);}
}
if(!p_iErrorCode)
{if(Web.Error.Count>0)
{p_iErrorCode=Web.Error.Multiple;}
else
{p_iErrorCode=Web.Error.Script;}
}
Web.Error.Count++;if(!Web.TraceData||Web.TraceData.Disable=='1')
{return false;}
var infoTrace=new Array();try
{var traceLevel=parseInt(Web.TraceData.TraceLevel);if(traceLevel>TraceLevels.NoTrace)
{if(traceLevel>TraceLevels.NoMessage)
{infoTrace.push("msg="+p_Msg);}
infoTrace.push("~url="+p_Url);infoTrace.push("~ln="+p_Ln);if(traceLevel>TraceLevels.NoStackTrace)
{if(p_stackTrace)
{infoTrace.push("~cs="+p_stackTrace);}
else if(arguments.caller)
{var callStack=arguments.caller.callee;if(p_Data)
{callStack=callStack.caller;}
var depth=0;while(callStack&&(depth<10))
{var f=callStack.toString();var args="-";if(traceLevel>TraceLevels.NoParameters)
{args=ExpandArguments(f.substring((f.indexOf("(")+1),(f.indexOf(")"))),callStack.arguments);}
var fname=(f.substring(0,f.indexOf(")")+1).trim());if(fname.substring(0,9)=="function(")
{fname=f.substring(0,f.indexOf(")")+20).trim()+"...}";}
infoTrace.push("~cs"+depth+"="+fname+" "+args);callStack=callStack.caller;depth++;}
}
}
infoTrace.push("~fv="+RuntimeVersion);if(p_Data)
{infoTrace.push("~data="+p_Data);}
SubmitTrace(p_iErrorCode,infoTrace.join(""));}
}
catch(ex)
{try
{var d=ex.description;if(!d)
{d=ex;}
SubmitTrace(Web.Error.Extraction,d);}
catch(ex2){}
}
},
SubmitFromException:function(p_ex,p_location,p_iErrorCode,p_Data)
{if(p_ex.traced)
return;p_ex.traced=true;var ln=0;var url=document.location.href;var msg=p_ex.description;var stck=null;if(Web.Browser.isMozilla())
{url=p_ex.fileName;ln=p_ex.lineNumber;msg=p_ex.message;stck=p_ex.stack;}
if(p_location)
msg+="@"+p_location;if(!p_Data)
p_Data=p_location;Web.Error.Submit(msg,url,ln,p_Data,p_iErrorCode,stck);}
}
if(Web.TraceData&&Web.TraceData.Disable!='1')
{if(!Web.Browser.isMozilla())
{window.attachEvent("onerror",Web.Error.Submit);}
else
{window.onerror=Web.Error.Submit;}
}
if(Web.Debug.enabled)Web.Debug.initEvents();registerNamespace("Web.Dom");var __Web_Dom=Web.Dom;__Web_Dom.getElementsByCssSelector=function(p_strSelector,p_elRoot)
{return($$(__Web_Dom.Css.createRules(p_strSelector),p_elRoot));}
__Web_Dom.Css=new function()
{var objCss=this,_d=document,__ge=_ge;var _de=_d.documentElement;objCss.Rule=function(p_strSingleSelector)
{p_strSingleSelector.search(objCss.Rule.reCssSelector);this.strTagName=RegExp.$1.toLowerCase();this.strClassName=RegExp.$2.toLowerCase();this.strID=RegExp.$3;}
objCss.Rule.reCssSelector=/([^\.#]*)\.?([^#]*)#?(.*)/;objCss.createRules=function(p_strSelector)
{if(!p_strSelector)
{return([]);}
var aSelectorTerms=p_strSelector.trim().split(objCss.createRules.reWhiteSpace),iCount=aSelectorTerms.length,_or=objCss.Rule;for(var i=0;i<iCount;i++)
{aSelectorTerms[i]=new _or(aSelectorTerms[i]);}
return(aSelectorTerms);}
objCss.createRules.reWhiteSpace=/\s+/;objCss.doesElementPassRule=function(p_el,p_objRule)
{var blnValid=false;if(p_objRule&&p_el.nodeType===1)
{blnValid=(!p_objRule.strTagName)||(p_objRule.strTagName==p_el.tagName.toLowerCase());var strClassName=" "+p_el.className.toLowerCase()+" ";blnValid=blnValid&&((!p_objRule.strClassName)||(strClassName.indexOf(" "+p_objRule.strClassName+" ")!=-1))&&((!p_objRule.strID)||(p_objRule.strID==p_el.id));}
return(blnValid);}
objCss.doesElementPassRules=function(p_el,p_aobjRules,p_elRoot)
{var iCount=p_aobjRules.length;if((!p_aobjRules)||(iCount==0))
{return(false);}
var iRuleIndex=iCount-1,_pr=objCss.doesElementPassRule;if(!_pr(p_el,p_aobjRules[iRuleIndex--]))
{return(false);}
if(!p_elRoot)
{p_elRoot=_de;}
var blnMustContain=(p_elRoot==_de);while(p_el&&(blnMustContain||p_elRoot.contains(p_el))&&(iRuleIndex>=0))
{p_el=p_el.parentElement;if(p_el&&_pr(p_el,p_aobjRules[iRuleIndex]))
{iRuleIndex--;}
}
return(p_el&&(blnMustContain||p_elRoot.contains(p_el)));}
objCss.getElementsByCssSelectorRules=function(p_aRules,p_elRoot)
{var aElements=[],irCount=p_aRules.length,_pr=objCss.doesElementPassRule;p_elRoot=p_elRoot||_d;function GetElements(p_elScope,p_iIndex)
{function GetPotentialElementsByRule(p_objRule,p_elRoot)
{var elPotentials=[];if(p_objRule)
{if(p_objRule.strID)
{var elByID=_ge(p_objRule.strID);if(elByID&&(p_elRoot==_d)||(p_elRoot.tagName&&p_elRoot.contains(elByID)))
{elPotentials=[__ge(p_objRule.strID)];}
}
else if(p_objRule.strTagName)
{elPotentials=__Web_Dom.getAnyElementByTagName(p_objRule.strTagName,p_elRoot);}
else if(p_objRule.strClassName)
{elPotentials=p_elRoot.all||p_elRoot.getElementsByTagName("*");}
}
return(elPotentials);}
var objRule=p_aRules[p_iIndex],elPotentials=GetPotentialElementsByRule(objRule,p_elScope),intCount=elPotentials.length,__pr=_pr;for(var i=0;i<intCount;i++)
{var elItem=elPotentials[i];if(__pr(elItem,objRule))
{if(p_iIndex+1<irCount)
GetElements(elItem,p_iIndex+1)
else 
aElements.push(elItem);}
}
}
if(irCount>0)
GetElements(p_elRoot,0);return(aElements);}
}
var $$=__Web_Dom.Css.getElementsByCssSelectorRules;__Web_Dom.getAnyElementByTagName=function(tagName,root,bForceNoCompat)
{var _d=document,elList=[],idx=tagName.indexOf(":"),__fn=__Web_Dom.getAnyElementByTagName;if(!root)root=_d;if(idx>=0)
{if(__fn._scanMode)
{var ns=tagName.substring(0,idx),tagName=tagName.substring(idx+1);if(ns&&__fn._ns[ns]==null)
{if(ns!=""&&_d.namespaces&&!_d.namespaces[ns])
{throw new Error("IE Requirement - Add xmlns:"+ns+" to the HTML tag.")
}
else
{__fn._ns[ns]=true;}
}
var elTemp=root.getElementsByTagName(tagName),iCount=elTemp.length;for(var i=0;i<iCount;i++)
{var objItem=elTemp[i],strProp=objItem[__fn._propName];if(strProp&&strProp.toLowerCase()==ns.toLowerCase())
elList.push(objItem);}
}
else if(Web.Browser.MozillaCompatMode&&!bForceNoCompat)
{elList=[];var elTemp=root.getElementsByTagName("div");for(var i=0;i<elTemp.length;i++)
if(elTemp[i].className.indexOf(tagName)>-1)
elList.push(elTemp[i]);}
else
{elList=root.getElementsByTagName(tagName);}
}
else 
elList=root.getElementsByTagName(tagName);return elList;}
__Web_Dom.getAnyElementByTagName._scanMode=(Web.Browser._isIE||(Web.Browser.isOpera()&&Web.Browser.version<9))
__Web_Dom.getAnyElementByTagName._propName=Web.Browser._isIE?"scopeName":"prefix";__Web_Dom.getAnyElementByTagName._ns=[];__Web_Dom.resolveTagName=function(p_el)
{var strTagName=p_el.tagName;if(strTagName&&Web.Browser._isIE&&p_el.scopeName!="")
strTagName=p_el.scopeName+":"+strTagName;return strTagName;}
registerNamespace("Web.Enum");var __Web_Enum=Web.Enum;__Web_Enum.getValue=function(p_enumType,p_str)
{return p_enumType.parse(p_str);}
__Web_Enum.createEnumeration=__Web_Enum.create=Type.createSimpleEnum=function()
{function extendEnum(p_addEnum)
{if(p_addEnum)
{for(var i in p_addEnum.getValues())
{enumeration[i]=i;}
enumeration._values=null;}
return enumeration;}
var arrEnum=[null],iCount=arguments.length;for(var i=0;i<iCount;i++)
{arrEnum.push(arguments[i],arguments[i]);}
var enumeration=Type.createEnum.apply(this,arrEnum);enumeration.extend=extendEnum;return enumeration;}
__Web_Enum.extend=function(p_srcEnum,p_addEnum)
{if(!p_srcEnum)p_srcEnum=__Web_Enum.create();return p_srcEnum.extend(p_addEnum);}
registerNamespace("Web.Flags");var __Web_Flags=Web.Flags;__Web_Flags.create=function()
{var arrEnum=[null],iCount=arguments.length;for(var i=0;i<iCount;i++)
{arrEnum.push(arguments[i]);}
return Type.createFlags.apply(this,arrEnum);};var __Web_Event=Web.Event=Type.DOMEvent=function(autoInvoke)
{this._handlers=[];this._autoInvoke=autoInvoke;this._isInvoked=false;}
Type.DOMEvent.prototype={reset:function()
{this._isInvoked=false;},
get_autoInvoke:function(){return this._autoInvoke;},
isActive:function(){return(this._handlers.length!=0);},
get_isInvoked:function(){return this._isInvoked;},
dispose:function(){this._handlers.clear();},
attach:function(p_fnc)
{var objEvent=this;function Run(){if(p_fnc)
p_fnc(objEvent.vPackage);}
if(this._autoInvoke&&this._isInvoked){window.setTimeout(Run,1);return(true);}
else if(p_fnc&&(!this._handlers.exists(p_fnc)))
{this._handlers.push(p_fnc);return(true);}
return(false);},
detach:function(handler){return this._handlers.remove(handler);},
clear:function()
{this._handlers.clear();},
fire:function(p_vPackage,p_fncAsyncCallback)
{var objEvent=this;function Done()
{if(objEvent._autoInvoke)
{objEvent.clear();objEvent.vPackage=p_vPackage;}
if(p_fncAsyncCallback)
p_fncAsyncCallback();objEvent._isInvoked=true;}
function Fire(p_fnc)
{if(p_fnc)
{try
{p_fnc(p_vPackage);}
catch(ex)
{if(Web.Debug.enabled)
throw(ex);Web.Error.SubmitFromException(ex,null,Web.Error.Fire);}
}
}
__Web_Utility.applyFunctionOverArray(Fire,objEvent._handlers,p_fncAsyncCallback?Done:null);if(!p_fncAsyncCallback)
{Done();}
}
}
var Type_DOMEvent_prototype=Type.DOMEvent.prototype;Type_DOMEvent_prototype.add=Type_DOMEvent_prototype.attach;Type_DOMEvent_prototype.remove=Type_DOMEvent_prototype.detach;Type.DOMEvent.registerSealedClass("Type.DOMEvent",null,Sys.IDisposable);__Web_Event.create=function(p_blnRunOnce)
{return(new Type.DOMEvent(p_blnRunOnce));}
Web.Conversion={coerceInt:function(p_i)
{p_i=parseInt(p_i);return(isNaN(p_i)?0:p_i);},
coerceFloat:function(p_f)
{p_f=parseFloat(p_f);return(isNaN(p_f)?0.0:p_f);}
}
var __Web_Type=Web.Type=
{resolve:function(p_vType)
{try
{if(typeof(p_vType)==="string")
{p_vType=Function.parse(p_vType);}
else if(typeof(p_vType)==="object")
{p_vType=p_vType.constructor;}
else if(typeof(p_vType)!=="function")
{p_vType=null;}
}
catch(ex)
{return(null);}
return(p_vType);},
compare:function(p_vTypeA,p_vTypeB)
{var fncTypeA=this.resolve(p_vTypeA);return(fncTypeA&&(fncTypeA==this.resolve(p_vTypeB)));},
isString:function(p_var)
{return(typeof(p_var)==="string")
},
isArray:function(p_obj)
{return p_obj instanceof Array;},
isFunction:function(p_var)
{return(typeof(p_var)==="function");},
isObject:function(p_var)
{return(p_var&&(typeof(p_var)==="object"));},
isBoolean:function(p_var)
{return(typeof(p_var)==="boolean")
},
isNumber:function(p_var)
{return(typeof(p_var)==="number")
}
}
var __Web_Runtime=Web.Runtime=new function()
{var objRuntime=this,blnIE=Web.Browser._isIE,blnPLTTraced=false,dtInitTime;this.culture=document.documentElement.getAttribute("web:culture")||"en-US";this.readyStateType=Type.createSimpleEnum("Uninitialized","Init","InitComplete");this._readyState=this.readyStateType.Uninitialized;this.oninit=new Type.DOMEvent(true);this.onunload=new Type.DOMEvent(true);this.onplttrace=new Type.DOMEvent(true);function UnwirePage()
{if(blnIE)
window.detachEvent("onstop",UnwirePage);window.detachEvent("onunload",UnwirePage);objRuntime.onunload.fire(null);__Web_Utility.Script._list=null;if(Web.Memory&&Web.Memory._clearHandlers)
Web.Memory._clearHandlers();__Web_Runtime.oninit=__Web_Runtime.onunload=__Web_Runtime.onplttrace=null;if(Web.Browser._isIE)
{try
{document.execCommand("BackgroundImageCache",false,false);}
catch(ex)
{}
}
if(Web.TraceData&&Web.TraceData.Disable!='1'&&!Web.Browser.isMozilla())
{window.detachEvent("onerror",Web.Error.Submit);}
CollectGarbage();Web=null;}
function VerifyHookupsCalled()
{if(blnIE)
window.detachEvent("onstop",UnwirePage);if(objRuntime._readyState==__Web_Runtime.readyStateType.Uninitialized)
{__Web_Runtime.init();}
window.detachEvent("onload",VerifyHookupsCalled);}
function InternalPLTTrace(isInit)
{if(blnPLTTraced==false&&Web.TraceData&&Web.TraceData.Disable!="1"&&(!isInit||Web.TraceData.SkipInitPLT!="1")&&objRuntime._readyState==objRuntime.readyStateType.InitComplete)
{blnPLTTraced=true;try
{if(Math.floor(Math.random()*1001)<=parseInt(Web.TraceData.PLTRate))
{var _now=(new Date()).getTime();var _pltTarget=Web.TraceData.Target+"&ec=0&it="+(_now-dtInitTime)+"&hft="+((typeof(Live)!='undefined'&&Live.HeaderRenderTime)?(_now-Live.HeaderRenderTime):"");Web.Network.createRequest(Web.Network.Type.Image,_pltTarget,null,null,Web.Utility.Prioritizer.Priorities.Lowest).execute();__Web_Runtime.onplttrace.fire(_pltTarget);}
}
catch(ex)
{}
}
}
window.attachEvent("onload",VerifyHookupsCalled);window.attachEvent("onunload",UnwirePage);if(blnIE)
window.attachEvent("onstop",UnwirePage);this.DoPLTTrace=function()
{InternalPLTTrace(false);}
this.init=function()
{var _rst=objRuntime.readyStateType;if(objRuntime._readyState==_rst.Uninitialized)
{dtInitTime=(new Date()).getTime();objRuntime._readyState=_rst.Init;objRuntime.oninit.fire();objRuntime._readyState=_rst.InitComplete;InternalPLTTrace(true);}
else 
throw new Error("Page already initialized.");}
}
__Web_Runtime.HostName="Microsoft";__Web_Runtime.MaxThreadLock=150;registerNamespace("Web.Utility");var __Web_Utility=Web.Utility=
{_FindUrl:function(p_arCol,p_strProp,p_strMatch)
{if(p_strMatch)
{var iCount=p_arCol.length,strSource=__Web_Utility.resolveUrl(p_strMatch).toLowerCase(),i=0;for(i=0;i<iCount;i++)
{var strCompare=p_arCol[i].getAttribute(p_strProp);if(strCompare)
{strCompare=__Web_Utility.resolveUrl(strCompare).toLowerCase();if(strCompare==strSource)
{return p_arCol[i];}
}
}
}
return null;},
CSS:{findElement:function(p_strSrc)
{return __Web_Utility._FindUrl(_get("link"),"href",p_strSrc);}
},
Script:{getElement:function(p_strSrc)
{var _rl=__Web_Utility.resolveUrl;if(!this._list)
{this._list={};var i=0,arrScripts=document.scripts,iCount=arrScripts.length;for(i=0;i<iCount;i++)
{var elScript=arrScripts[i];this._list[_rl(elScript.src).toLowerCase()]=elScript;}
}
return this._list[_rl(p_strSrc).toLowerCase()];},
attachScript:function(p_elAttachScript,p_elAttachElement,p_fnCallback)
{var r=Web.Network.createRequest(Web.Network.Type.script,p_elAttachScript.src,null,p_fnCallback);r.execute();},
_list:null
},
Prioritizer:function()
{var pList={},__Web_Utility_Prioritizer_Priorities=__Web_Utility.Prioritizer.Priorities;this.push=function(obj,priority)
{if(!priority)priority=__Web_Utility_Prioritizer_Priorities.Medium;if(pList[priority])
pList[priority].unshift(obj);else 
throw new Error("Error: Invalid Priority Specified");}
this.queue=function(obj,priority)
{if(!priority)priority=__Web_Utility_Prioritizer_Priorities.Medium;if(pList[priority])
pList[priority].queue(obj);else 
throw new Error("Error: Invalid Priority Specified");}
this.dequeue=function()
{for(var p in pList)
{var obj=pList[p];if(obj.length>0)
return obj.dequeue();}
return null;}
this.removeItem=function(obj)
{var bRemoved=false;for(var p in pList)
{bRemoved=pList[p].remove(obj)||bRemoved;}
return bRemoved;}
this.findByProperty=function(p_strProperty,p_strValue)
{for(var p in pList)
{var objQ=pList[p];for(var item in objQ)
{if(objQ[item][p_strProperty]==p_strValue)
return objQ[item];}
}
return null;}
this.getList=function()
{return pList;}
this.clear=function()
{for(var p in __Web_Utility_Prioritizer_Priorities.getValues())
{pList[p]=[];}
}
this.clear();return this;},
extractHost:function(p_strUrl,p_blnIncludePrototcol)
{var sUrl=String(p_strUrl);var re=p_blnIncludePrototcol
?this.extractHost.reProtocolAndHost
:this.extractHost.reHost;return sUrl.search(re)<0
?''
:RegExp.$1;},
resolveUrl:function(str,strSource)
{if(str==null)return "";if(str.indexOf("{")>=0)
{str=str.replace("{culture}",__Web_Runtime.culture);if((typeof Live!="undefined")&&Live&&Live.Themes)
{str=str.replace("{theme.url}",Live.Themes.ThemeUrl);}
if(__Web_Runtime.baseUrl)
{str=str.replace("{framework.base}",__Web_Runtime.baseUrl);}
}
if(!strSource)
{if(!__Web_Utility.resolveUrl.Base)
{var elBases=_get("base");if(elBases.length>0&&elBases[0].href!="")
strSource=__Web_Utility.resolveUrl.Base=elBases[0].href;else
{var tmp=location.protocol+"//"+location.host+location.pathname;strSource=__Web_Utility.resolveUrl.Base=tmp.substring(0,tmp.lastIndexOf("/")+1);}
}
else 
strSource=__Web_Utility.resolveUrl.Base;}
else
{strSource=strSource.substring(0,strSource.lastIndexOf("/")+1);}
if(str.startsWith("/"))str=location.protocol+"//"+location.host+str;if(str.indexOf("//")==-1)str=strSource+str;function DeleteDoubleDots(p_strPath)
{while(DeleteDoubleDots.reDoubleDot.test(p_strPath))
{p_strPath=p_strPath.replace(DeleteDoubleDots.reDoubleDot,"");}
return(p_strPath);}
DeleteDoubleDots.reDoubleDot=/\/[^\/]*\/\.\./;return DeleteDoubleDots(str);},
loadSources:function(p_astrSources,p_astrStyles,p_astrXml,p_astrImages,p_ePriority,p_fncAsyncCallback,p_objContext)
{var __Web_Network_Type=__Web_Network.Type;function SourcesRetrieved(p_htScripts)
{var aelXml=[],iCount=p_htScripts.length,i=0;for(i=0;i<iCount;i++)
{var objItem=p_htScripts[i];if(objItem.resource)
{switch(objItem.type)
{case __Web_Network_Type.XML:
case __Web_Network_Type.XMLGet:
case __Web_Network_Type.XMLPost:
aelXml.push(objItem);}
}
}
p_fncAsyncCallback(aelXml,p_objContext);}
if(p_astrSources.length===0&&p_astrStyles.length===0&&p_astrXml.length===0)
{p_fncAsyncCallback(null,p_objContext);}
else
{var objRequest=__Web_Network.createBatch(p_ePriority),blnFetch=false;function Check(p_eType,p_fncCheck)
{return function(i)
{if(i!=""&&(p_fncCheck==null||!p_fncCheck(i)))
{blnFetch=true;objRequest.add(p_eType,i,i.name,null);}
}
}
p_astrSources.forEach(Check(__Web_Network_Type.Script,Web.Browser.isMozilla()?null:__Web_Utility.Script.getElement),this);p_astrStyles.forEach(Check(__Web_Network_Type.CSS,__Web_Utility.CSS.findElement),this);p_astrXml.forEach(Check(__Web_Network_Type.XML,null),this);p_astrImages.forEach(Check(__Web_Network_Type.Image,null),this);if(blnFetch)
{objRequest.execute(SourcesRetrieved);}
else
{objRequest=null;p_fncAsyncCallback(null,p_objContext);}
}
},
applyFunctionOverArray:function(p_fnc,p_a,p_fncAsyncCallback)
{var i=0,length=p_a.length;function RunNext()
{if(i<length)
{p_fnc(p_a[i++]);window.setTimeout(RunNext,1);}
else
{if(p_fncAsyncCallback)
p_fncAsyncCallback();}
}
if(p_fncAsyncCallback)
{RunNext();}
else
{p_a.forEach(p_fnc);}
}
}
__Web_Utility.Prioritizer.Priorities=__Web_Enum.create("High","Medium","Low","Lowest");__Web_Utility.extractHost.reHost=/^(?:http|https|ftp):\/\/([-.a-z0-9]+(?::[0-9]+)?)(?:\/|$)/i;__Web_Utility.extractHost.reProtocolAndHost=/^((?:http|https|ftp):\/\/[-.a-z0-9]+(?::[0-9]+)?)(?:\/|$)/i;var __Web_Network=Web.Network=new function()
{var objNetwork=this,objDomains={},strCurrentDomain=__Web_Utility.extractHost(document.location.href,false),blnRegister=false,_wc=__Web_Event.create,iStream=0,arrStream,blnImagesChecked=false,intImagesCount=0;this.defaultTimeout=null;this.oninvoke=_wc();this.onfinished=_wc();this.onabort=_wc();this.onhttperror=_wc();this.onprofile=_wc();this.onerror=_wc();this.ontimeout=_wc();this.onrequest=_wc();this._streamUpdate=function(id,w,state,contents)
{if(arrStream[id])
{arrStream[id](w,state,contents);}
}
this.RegisterBaseDomain=function()
{if(blnRegister)return;var strDomain=strCurrentDomain;if(strDomain.indexOf(":")>0)
{strDomain=strDomain.substring(0,strDomain.indexOf(":"));}
var idx=strDomain.indexOf(".");if(idx>0)
{document.domain=strDomain;try
{while(idx>=0)
{strDomain=strDomain.substring(idx+1);if(strDomain!="com")
{document.domain=strDomain;idx=strDomain.indexOf(".");}
else 
idx=-1;}
}
catch(ex)
{}
}
blnRegister=true;}
this.registerProxy=function(w)
{var strProxyDomain=__Web_Utility.extractHost(w.location.href,false);objDomains[strProxyDomain]._assignProxy(w);}
function RunList(p_strDomain)
{var m_this=this;var intActive=0;var blnProxy=false,objProxy,elProxy;var objList={};var _wp=__Web_Utility.Prioritizer;var objParallel=new _wp();var objSerializer=new _wp();var __ce=_ce;var boolSerRequest=false;var m_objRuntime=this;var blnIsIE=Web.Browser._isIE;var _dbg=Web.Debug.enabled;var _isMoz=Web.Browser.isMozilla();function FetchImage(o)
{var img=new Image();img.onload=doImgCallback;img.onerror=img.onabort=doError;img.blnError=false;img.src=o.url;if(intImagesCount==2)
doImgCallback()
else 
if(!blnImagesChecked&&blnIsIE)
o.timer=setTimeout(checkDisabled,1100);function checkDisabled()
{if(img.readyState=="uninitialized"&&!img.blnError)
intImagesCount++;doImgCallback();}
function doError()
{img.blnError=true;doImgCallback();}
function doImgCallback()
{if(blnIsIE&&img.readyState!="uninitialized")
blnImagesChecked=true;if(o&&o.timer)
{clearTimeout(o.timer);o.timer=null;}
img.onerror=img.onabort=img.onload=null;Finished(img,o);}
return img;}
function FetchCSS(o)
{var el=__Web_Utility.CSS.findElement(o.url);if(!el)
{if(o.context&&o.context.pool)
{el=o.context.pool;el.href=o.url;}
else
{el=__ce("link");el.rel="stylesheet";el.type="text/css";el.href=o.url;_dh.appendChild(el);}
el.onreadystatechange=doCSSCallback;if(Web.Browser.isMozilla()||Web.Browser.isOpera())
{el.readyState="complete";}
doCSSCallback();}
else
{Finished(el,o);}
function doCSSCallback()
{if(el&&el.onreadystatechange&&("loaded"==el.readyState||"complete"==el.readyState))
{el.onreadystatechange=null;Finished(el,o);}
}
return el;}
function FetchScript(o)
{var strUrl=__Web_Utility.resolveUrl(o.url).toLowerCase();var el=__Web_Utility.Script.getElement(strUrl);if(!el)
{el=__ce("script");if(!blnIsIE)
{el.onload=el.onerror=doJSCallback;el.readyState="loaded";__Web_Utility.Script._list[strUrl]=el;_dh.appendChild(el);}
else 
el.onreadystatechange=doJSCallback;el.src=o.url;}
else
{if(!blnIsIE)
{el.readyState="complete";if(el.onload==null)
{doJSCallback();}
else
{if(el.callbacks==null)
el.callbacks=[];el.callbacks.push(doJSCallback);}
}
else
{Finished(el,o);}
}
function doJSCallback()
{if(el&&("loaded"==el.readyState||"complete"==el.readyState))
{el.onreadystatechange=el.onload=el.onerror=null;if(blnIsIE&&!(o.flags&__Web_Network.Flags.CACHEONLY))
{_dh.appendChild(el);__Web_Utility.Script._list[strUrl]=el;}
else 
if(el.callbacks)
{for(var i=0;i<el.callbacks.length;i++)
el.callbacks[i]();el.callbacks=null;}
Finished(el,o);}
}
return el;}
function FetchStream(o)
{var el=_ce("iframe"),_ss=Web.Network.StreamState;el.style.display="none";document.body.insertAdjacentElement("afterBegin",el);o.streamIndex=(iStream++);if(o.timeout)
o.timer=setTimeout(TimedOut,o.timeout);else 
o.timer=setTimeout(TimedOut,5000);el.src=o.url+"#domain="+document.domain+"&id="+o.streamIndex;if(!arrStream)
{arrStream=[];}
arrStream[o.streamIndex]=doCallback;if(!o.context)o.context={};function TimedOut()
{o.timer=null;doCallback(null,Web.Network.StreamState.Timeout,null);}
function DoBatch()
{if(o.context.batchData!=null)
{if(o.batchTimeout)
{clearTimeout(o.batchTimeout);}
doCallback(o.page,Web.Network.StreamState.BatchUpdate,null);o.context.batchData=null;if(o.context.batchTimer)
o.batchTimeout=setTimeout(DoBatch,o.context.batchTimer);}
}
function doCallback(objPage,objState,objRoot)
{if(o.timer)
{clearTimeout(o.timer);o.timer=null;}
o.context.data=objRoot;o.context.state=o.context.batchData?_ss.BatchUpdate:objState;if(objState==Web.Network.StreamState.Loading&&(o.context.batchTimer||o.context.batchCount))
{if(o.context.batchTimer!=null)
{o.batchTimeout=setTimeout(DoBatch,o.context.batchTimer);}
o.page=objPage;}
if(objState==_ss.Complete||objState==_ss.Timeout)
{delete arrStream[o.streamIndex];if(o.batchTimeout)
{o.page=null;clearTimeout(o.batchTimeout)
}
if(o.context.batchData&&o.callback)
{o.callback(objPage,o.context);}
o.context.state=objState;Finished(objPage,o);el.removeNode(true);el=null;}
else if(objState==_ss.BatchUpdate)
{if(o.callback)
o.callback(objPage,o.context);}
else
{if(o.context.batchTimer||o.context.batchCount)
{if(objState==_ss.Flush)
{DoBatch();}
else
{if(!o.context.batchData)o.context.batchData=[];if(objRoot)
o.context.batchData.push(objRoot);if(o.context.batchCount&&(o.context.batchData.length==o.context.batchCount))
{DoBatch();}
}
}
else 
if(o.callback)
o.callback(objPage,o.context)
}
}
return el;}
function FetchXML(o,method)
{var xml=new XMLHttpRequest();objNetwork.oninvoke.fire(o);if(method)
{xml.open("POST",o.url,true);if(blnIsIE)
{xml.setRequestHeader("Accept-Encoding","gzip, deflate");}
}
else
{xml.open("GET",o.url,true);}
if(o.headers)
{for(var h in o.headers)
{xml.setRequestHeader(h,o.headers[h]);}
}
xml.onreadystatechange=doXMLCallback;if(o.timeout)
o.timer=setTimeout(TimedOut,o.timeout);try
{if(o.postString||_isMoz)
xml.send(o.postString);else 
xml.send();}
catch(ex)
{objNetwork.onhttperror.fire(xml);if(o&&o.timer)
clearTimeout(o.timer);doXMLCallback(true);}
function doXMLCallback(p_blnForce)
{if(xml&&(p_blnForce||4==xml.readyState))
{xml.onreadystatechange=Function.emptyFunction;if(o&&o.timer)
clearTimeout(o.timer);Finished(xml,o);xml=o=null;}
}
function TimedOut()
{if(o)
{try
{xml.onreadystatechange=Function.emptyFunction;xml.abort();}
catch(ex){};{Finished(null,o);}
}
xml=o=null;}
return xml;}
var _ma=__Web_Network.MAXACTIVE;function Continue()
{var o;if(intActive<_ma&&(!blnProxy||(blnProxy&&objProxy)))
{if(!boolSerRequest)
{o=objSerializer.dequeue();if(o)boolSerRequest=true;}
if(!o)
{o=objParallel.dequeue();}
if(o)
{intActive++;var _wnt=__Web_Network.Type;switch(o.type)
{case _wnt.XMLGet:
case _wnt.XML:
case _wnt.XMLPost:
if(blnProxy&&o.proxy)
o.executing=objProxy.fetchXML(o,objNetwork,m_objRuntime,Finished);else
{o.executing=FetchXML(o,__Web_Network.Type.XMLPost==o.type);}
break;case _wnt.Image:
o.executing=FetchImage(o);break;case _wnt.Script:
o.executing=FetchScript(o);break;case _wnt.CSS:
o.executing=FetchCSS(o);break;case _wnt.Stream:
o.executing=FetchStream(o);break;default:
intActive--;}
}
}
}
function Finished(el,obj)
{var bRetry=false;var boolNotify=obj.flags&__Web_Network.Flags.NOTIFY;if(_isMoz)
{switch(obj.type)
{case __Web_Network.Type.XMLGet:
case __Web_Network.Type.XML:
case __Web_Network.Type.XMLPost:
el=Web.Browser._Private.cleanupFirefox(el,obj);break;}
}
if(obj.flags&__Web_Network.Flags.SERIALIZE)
{boolSerRequest=false;}
intActive--;var objKey=objList[obj.key];if(objKey)
{var objItem=objKey.pop();while(objItem)
{if(objItem.callback)
{if(!_dbg)
{try
{objItem.callback(el,objItem.context);}
catch(ex)
{}
}
else 
objItem.callback(el,objItem.context);}
boolNotify=boolNotify||(objItem.flags&__Web_Network.Flags.NOTIFY);bRetry=bRetry||(objItem.context&&objItem.context.bRetry);if(!bRetry)
{objItem=objItem.callback=objItem.context=objItem.executing=null;}
objItem=objKey.pop();}
delete objList[obj.key];}
obj.executing=el=null;if(bRetry==true)
{m_this.add(obj);}
else
{obj.pool=null;}
obj=null;if(boolNotify)
Web.Accessibility.notify();Continue();}
function IndexInList(objCheck)
{var boolMatch=false,intIndex=0,objCheckList=objList[objCheck.key];if(objCheckList)
{var iCount=objCheckList.length;while(!boolMatch&&objCheckList&&intIndex<iCount)
{var objItem=objCheckList[intIndex];boolMatch=objItem&&(objItem.callback==objCheck.callback);if(!boolMatch)
intIndex++;}
}
return((boolMatch)?intIndex:-1);}
function AbortRequest(objMatch)
{objMatch.callback=null;if(objMatch.executing)
{if(objMatch.flags&__Web_Network.Flags.SERIALIZE)
{boolSerRequest=false;}
objNetwork.onabort.fire(objMatch);if(objMatch.timer)
clearTimeout(objMatch.timer);switch(objMatch.type)
{case __Web_Network.Type.XML:
case __Web_Network.Type.XMLPost:
case __Web_Network.Type.XMLGet:
objMatch.executing.onreadystatechange=Function.emptyFunction;objMatch.executing.abort();break;case __Web_Network.Type.Image:
case __Web_Network.Type.Script:
case __Web_Network.Type.CSS:
objMatch.onerror=objMatch.onload=objMatch.onreadystatechange=objMatch.onabort=null;try
{objMatch.executing.removeAttribute("src");objMatch.executing.href="";}
catch(ex){}
break;case __Web_Network.Type.Stream:
objMatch.executing.removeNode(true);objMatch.executing=null;if(objMatch.context.batchTimeout)
clearTimeout(batchTimeout)
delete arrStream[objMatch.streamIndex];break;}
if(objMatch.timer)
clearTimeout(objMatch.timer);intActive--;}
objMatch.context=objMatch.executing=null;}
this.generateProxy=function()
{if(!blnRegister)
objNetwork.RegisterBaseDomain();var bGenerateProxy=false;if(!blnProxy&&p_strDomain.endsWith(document.domain))
{bGenerateProxy=true;}
else if(p_strDomain.indexOf(":")>0)
{if(p_strDomain.substring(0,p_strDomain.indexOf(":")).endsWith(document.domain))
{bGenerateProxy=true;}
}
if(bGenerateProxy)
{blnProxy=true;elProxy=_ce("iframe");elProxy.style.display="none";elProxy.src=location.protocol+"//"+p_strDomain+"/xmlProxy.htm?vn="+RuntimeVersion+"&domain="+document.domain;document.body.insertAdjacentElement("afterBegin",elProxy);}
}
this._assignProxy=function(w)
{objProxy=w;Continue();}
this.abort=function(obj)
{function Remove(obj)
{var objItem;if(objList[obj.key])
{var intIndex=IndexInList(obj);if(intIndex>-1)
objItem=objList[obj.key].splice(intIndex,1)[0];}
return objItem;}
var objMatch=Remove(obj);while(objMatch!=null)
{AbortRequest(objMatch);objMatch=Remove(obj);}
if(objList[obj.key]&&objList[obj.key].length==0)
delete objList[obj.key];Continue();}
function AbortObjectKey(p_objList,p_strKey)
{var o=p_objList[p_strKey];if(o)
{var objItem=o.pop();while(objItem)
{AbortRequest(objItem);objItem=o.pop();}
}
delete p_objList[p_strKey];}
this.abortGroup=function(p_strGroup)
{var objFound=objParallel.findByProperty("strGroup",p_strGroup);while(objFound)
{objParallel.removeItem(objFound);objFound=objParallel.findByProperty("strGroup",p_strGroup);}
objFound=objSerializer.findByProperty("strGroup",p_strGroup);while(objFound)
{objSerializer.removeItem(objFound);objFound=objSerializer.findByProperty("strGroup",p_strGroup);}
for(var key in objList)
{var blnAbort=false,intItem=0;while(intItem<objList[key].length&&!blnAbort)
{if(objList[key][intItem].strGroup==p_strGroup)
{blnAbort=true;break;}
intItem++;}
if(blnAbort)
{AbortObjectKey(objList,key);}
}
}
this.abortAll=function(p_boolRestart)
{if(p_boolRestart)
{objParallel.clear();objSerializer.clear();blnProxy=false;try
{if(elProxy&&elProxy.removeNode)
elProxy.removeNode(true);}
catch(ex){}
objProxy=elProxy=null;}
for(var strKey in objList)
{AbortObjectKey(objList,strKey);}
objList={};}
this.add=function(obj)
{var boolQueue=false,_typ=obj.type,_wnt=__Web_Network.Type;if(objList[obj.key])
{var intIndex=IndexInList(obj);boolQueue=(intIndex==-1);}
else
{objList[obj.key]=[];boolQueue=true;var objStack=(obj.flags&__Web_Network.Flags.SERIALIZE)?objSerializer:objParallel;if(_typ==_wnt.XML||_typ==_wnt.XMLGet||_typ==_wnt.XMLPost||_typ==_wnt.Stream)
{objStack.push(obj,obj.priority);}
else
{objStack.queue(obj,obj.priority);}
}
if(boolQueue)
{objList[obj.key].push(obj);Continue();}
}
}
function Request(p_enumNetworkType,p_strUrl,p_objContext,p_fnCallback,p_enumPriority,p_postString,p_objHeaders,p_enumFlags,p_intTimeout,p_strTag,p_blnProxy,p_objAuth)
{this.type=p_enumNetworkType;var strSource=this.url=__Web_Utility.resolveUrl(p_strUrl);this.context=p_objContext;this.callback=p_fnCallback;this.priority=p_enumPriority;this.postString=p_postString;this.strGroup=p_strTag;this.domain=__Web_Utility.extractHost(this.url,false);this.proxy=!!p_blnProxy&&(this.domain!=strCurrentDomain);this.auth=p_objAuth;var strList="";for(var h in p_objHeaders)
{strList+=h+":"+p_objHeaders[h];}
this.strHeaders=strList;this.key=this.url+"?"+(this.postString||"")+"!"+strList;if((p_enumFlags&__Web_Network.Flags.DUPLICATE)||p_enumNetworkType==Web.Network.Type.Stream)
{this.key+="!"+(Request.DupCounter++);}
this.headers=p_objHeaders;this.flags=p_enumFlags;this.executing=null;this.timeout=p_intTimeout;objNetwork.onrequest.fire(this);if(strSource!=this.url)
{this.url=__Web_Utility.resolveUrl(this.url);this.domain=__Web_Utility.extractHost(this.url,false);}
if(this.domain=="")this.domain="local";if(!objDomains[this.domain])
{objDomains[this.domain]=new RunList(this.domain);}
if(this.proxy)
{objDomains[this.domain].generateProxy();}
}
Request.DupCounter=0;this.abortAll=function(p_blnUnload)
{for(var rl in objDomains)
{objDomains[rl].abortAll(p_blnUnload);}
}
this.abortGroup=function(p_strTag)
{for(var strDomain in objDomains)
{objDomains[strDomain].abortGroup(p_strTag);}
}
this.createRequest=function(p_enumNetworkType,p_strUrl,p_objContext,p_fnCallback,p_enumPriority,p_strPostArgs,p_objHeaders,p_enumFlags,p_intTimeout,p_strTag,p_blnProxy,p_objAuth)
{var objRequest={},boolExecuting=false,objPrivRequest=new Request(p_enumNetworkType,p_strUrl,p_objContext,p_fnCallback,p_enumPriority,p_strPostArgs,p_objHeaders,p_enumFlags,p_intTimeout,p_strTag,p_blnProxy,p_objAuth);function DoAuth(p_blnAuth)
{if(p_objAuth.isAuthenticated())
objDomains[objPrivRequest.domain].add(objPrivRequest);else 
throw new Error("Authentication Failure");}
objRequest.execute=function()
{if(!boolExecuting)
{if(!p_objAuth||p_objAuth.isAuthenticated())
{objDomains[objPrivRequest.domain].add(objPrivRequest);boolExecuting=true;}
else
{p_objAuth.onauthenticate.attach(DoAuth);p_objAuth.authenticate();}
}
}
objRequest.isExecuting=function()
{return boolExecuting;}
objRequest.abort=function()
{objDomains[objPrivRequest.domain].abort(objPrivRequest);boolExecuting=false;}
return objRequest;}
this.createBatch=function(p_enumPriority,p_objContext)
{var objBatch={},arrBatch=[],fnCallback,boolExecuting=false,boolLockSection=false,intReceiveCount=0;function CheckComplete()
{if(!boolLockSection&&arrBatch.length==intReceiveCount)
{if(fnCallback)
fnCallback(arrBatch,p_objContext);intReceiveCount=0;boolExecuting=false;}
}
objBatch.add=function(p_enumNetworkType,p_strUrl,p_objContext,p_strPostArgs,p_objHeaders,p_enumFlags,p_blnProxy)
{var iCount=arrBatch.length;if(!p_objContext)
p_objContext={_counter:iCount};else
{if(!(p_objContext instanceof Object))
{p_objContext=new p_objContext.constructor(p_objContext);}
p_objContext._counter=iCount;}
arrBatch.push(objNetwork.createRequest(p_enumNetworkType,p_strUrl,p_objContext,BatchItemReceived,p_enumPriority,p_strPostArgs,p_objHeaders,p_enumFlags,null,null,p_blnProxy));arrBatch[iCount].type=p_enumNetworkType;arrBatch[iCount].context=p_objContext;}
function BatchItemReceived(p_elResource,p_objContext)
{arrBatch[p_objContext._counter].resource=p_elResource;intReceiveCount++;CheckComplete();}
objBatch.execute=function(p_fnCallback)
{fnCallback=p_fnCallback;if(!boolExecuting)
{boolExecuting=boolLockSection=true;var iCount=arrBatch.length;for(var intIndex=0;intIndex<iCount;intIndex++)
{arrBatch[intIndex].execute();}
boolLockSection=false;CheckComplete();}
}
objBatch.abort=function()
{fnCallback=null;var iCount=arrBatch.length;for(var i=0;i<iCount;i++)
arrBatch[i].abort();boolExecuting=false;}
return objBatch;}
function dispose()
{objNetwork.abortAll(true);arrStream=objNetwork.oninvoke=objNetwork.onfinished=objNetwork.onabort=objNetwork.onhttperror=objNetwork.onprofile=objNetwork.onerror=objNetwork.ontimeout=objNetwork.onrequest=null;}
__Web_Runtime.onunload.attach(dispose);}
__Web_Network.Flags=__Web_Flags.create("SERIALIZE",1,"DUPLICATE",2,"NOTIFY",4,"CACHEONLY",8);__Web_Network.Type=__Web_Enum.create("XML","Image","Script","XMLPost","XMLGet","CSS","Stream");__Web_Network.StreamState=__Web_Enum.create("Loading","Update","BatchUpdate","Flush","Complete","Timeout");__Web_Network.MAXACTIVE=2;__Web_Network.ApplyAppDomain=false;if(!document.head)_dh=document.head=_get("head")[0];__Web_Network.Fpp=function(p_strUrl,cfg)
{var defaultRetry=2;var p_enumFlags=0;var oFppHeaders={};oFppHeaders["Content-Type"]="application/x-www-form-urlencoded";if(typeof(cfg)=="undefined")
{cfg={};}
if((typeof(cfg.ServerTunnelingUrl)=="string")&&
(typeof(cfg.UseClientXmlProxy)=="undefined"||cfg.UseClientXmlProxy==false))
{oFppHeaders["FPPRPURL"]=cfg.ServerTunnelingUrl;}
if(typeof(cfg.CommandType)=="undefined")
{cfg.CommandType=0;}
if(typeof(cfg.Version)=="undefined")
{cfg.Version=0;}
if(typeof(cfg.PartnerId)=="undefined")
{cfg.PartnerId="";}
if(typeof(cfg.SessionId)=="undefined")
{cfg.SessionId="";}
if(__Web_Type.isNumber(cfg.DefaultRetry))
{defaultRetry=cfg.DefaultRetry;}
if(__Web_Type.isBoolean(cfg.Notify)&&cfg.Notify)
{p_enumFlags=p_enumFlags|__Web_Network.Flags.NOTIFY;}
oFppHeaders["X-FPP-Command"]=cfg.CommandType;if(cfg.PartnerId==null)
{cfg.PartnerId=0;}
function FppFinished(proxy,obj)
{__Web_Network.onfinished.fire(obj);var pkg={"ErrorCode":0,"Context":obj.context,"Proxy":proxy,"Error":null};try
{if(proxy==null)
{pkg.ErrorCode=-4;}
else if((proxy.statusText==null)||(proxy.statusText==""))
{pkg.ErrorCode=-5;}
else if((proxy.status!=200)&&(proxy.status!=500))
{pkg.ErrorCode=-7;}
}
catch(ex)
{pkg.ErrorCode=-5;}
if(pkg.ErrorCode!=0)
{if(++obj.nRetry<=defaultRetry)
{obj.bRetry=true;return;}
__Web_Network.onerror.fire(pkg);if(obj.cbErr)
{obj.cbErr(pkg.ErrorCode,pkg.Context,pkg.Proxy,pkg.Error);}
}
else
{try
{var strUrl=proxy.getResponseHeader("FPPRPURL");if(strUrl!=""&&strUrl!=null)
{oFppHeaders["FPPRPURL"]=strUrl;}
}
catch(ex)
{}
var oFppPkg;try
{if(cfg.CommandType==0)
{oFppPkg=eval(proxy.responseText);}
else if(cfg.CommandType==1)
{oFppPkg=eval('('+proxy.responseText+')');}
}
catch(ex)
{pkg.ErrorCode=-6;pkg.Error=ex;if(++obj.nRetry<=defaultRetry)
{obj.bRetry=true;return;}
__Web_Network.onerror.fire(pkg);if(obj.cbErr)
{obj.cbErr(pkg.ErrorCode,pkg.Context,pkg.Proxy,pkg.Error);}
}
__Web_Network.onprofile.fire(oFppPkg.ProfilingInfo);if(obj.oProfile!=null)
{obj.oProfile.EndProfile(oFppPkg.ProfilingInfo);}
if(oFppPkg.Status==0)
{var arrArgs=oFppPkg.OutRefParams;arrArgs.unshift(obj.context);arrArgs.unshift(oFppPkg.Value);obj.callback.apply(null,arrArgs);}
else
{pkg.ErrorCode=oFppPkg.Status;pkg.Error=oFppPkg.Error;__Web_Network.onerror.fire(pkg);if(obj.cbErr)
{obj.cbErr(pkg.ErrorCode,pkg.Context,pkg.Proxy,pkg.Error);}
}
}
obj.bRetry=false;}
this.invoke=function(xmlType,cn,mn,d,cb,oContext,cbErr,nTimeout,p_strGroup,p_ePriority)
{if(cn==null||mn==null||cb==null)
{throw new Error("invalid arguments for __Web_Network.Fpp");}
if(typeof(cb)!="function")
{throw new Error("__Web_Network.Fpp arg list mismatch:  cb must be of type function.");}
if(!p_ePriority)
{p_ePriority=__Web_Utility.Prioritizer.Priorities.High;}
var strData="cn="+cn+"&mn="+mn+"&d="+d+"&v="+cfg.Version;var strPost;var strUrl;var defaultTimeout=__Web_Network.defaultTimeout;var objContext={context:oContext,callback:cb,cbErr:cbErr,bRetry:false,nRetry:0};if(xmlType==__Web_Network.Type.XMLPost)
{strPost=strData;var urlDomainMatch=p_strUrl.match("http\://.+[.](.+\.com)/","i");var docDomainMatch=document.domain.match(".+[.](.+\.com)","i");if(typeof(cfg.CanaryToken)=="string"&&
urlDomainMatch!=null&&urlDomainMatch.length>1&&docDomainMatch!=null&&docDomainMatch.length>1&&
urlDomainMatch[1]==docDomainMatch[1])
{var mt=document.cookie.indexOf(cfg.CanaryToken+"=");if(mt!=-1)
{var end=document.cookie.indexOf(";",mt);if(end==-1)
end=document.cookie.length;strPost=strPost+"&"+cfg.CanaryToken+"="+document.cookie.substring(mt+cfg.CanaryToken.length+1,end);}
}
strUrl=p_strUrl+"?cnmn="+cn+"."+mn+"&ptid="+cfg.PartnerId+"&a="+cfg.SessionId;}
else if(xmlType==__Web_Network.Type.XMLGet)
{strUrl=p_strUrl+"?"+strData+"&ptid="+cfg.PartnerId+"&a="+cfg.SessionId;}
if(typeof(FireAnt)!="undefined"&&typeof(FireAnt.Debug)!="undefined"&&FireAnt.Debug!=null)
{objContext.oProfile=FireAnt.Debug.StartProfile(cn+"."+mn);FireAnt.Debug.Trace(cn+"."+mn);}
if(p_strGroup)
{__Web_Network.abortGroup(p_strGroup);}
if(nTimeout)
{defaultTimeout=nTimeout;}
var request=__Web_Network.createRequest(xmlType,strUrl,objContext,FppFinished,p_ePriority,strPost,oFppHeaders,p_enumFlags,defaultTimeout,p_strGroup,cfg.UseClientXmlProxy);request.execute();return request;}
}
__Web_Network.FppProxy=function(p_strServiceName)
{var m_obj=this;var m_proxy;var m_cfg;this.initialize=function(url,partnerId,sessionId,tunnelUrl,useClientProxy,canaryToken)
{var cfg=
{"Version":0,
"CommandType":0,
"PartnerId":partnerId,
"SessionId":sessionId,
"ServerTunnelingUrl":tunnelUrl,
"UseClientXmlProxy":useClientProxy,
"CanaryToken":canaryToken
};return m_obj.initializeEx(url,cfg);}
this.initializeEx=function(url,cfg)
{m_proxy=new __Web_Network.Fpp(url,cfg);m_cfg=cfg;return m_obj;}
function ClassManager(p_strName,p_arrMembers)
{function AssignProperties()
{var m_this={};var iCount=p_arrMembers.length;for(var i=0;i<iCount;i++)
{m_this[p_arrMembers[i]]=arguments[i];}
m_this.toString=function(includeType)
{var sbProps=[];if(m_cfg.CommandType==0&&includeType)
{sbProps.push(p_strServiceName,".",p_strName,":");}
sbProps.push("{");for(var i=0;i<iCount;i++)
{if(m_cfg.CommandType==1)
{if(typeof(p_arrMembers[i].toString())=="undefined")
{sbProps.push(p_arrMembers[i].type+":");}
else
{sbProps.push(p_arrMembers[i].toString()+":");}
}
sbProps.push(p_arrMembers[i].escape(m_this[p_arrMembers[i]],m_cfg.Version,m_cfg.CommandType==0));sbProps.push(",");}
if(iCount>0)sbProps.pop();sbProps.push("}");return sbProps.join("");}
m_this.__isFppObject=true;return m_this;}
return AssignProperties;}
function MethodManager(p_strMethod,p_arrMembers,p_NetworkType,p_strGroup,p_strNamespace)
{function invoke()
{var sbArgs=[];var intMembers=p_arrMembers.length;for(var i=0;i<intMembers;i++)
{if(m_cfg.CommandType==1)
{if(typeof(p_arrMembers[i].toString())=="undefined")
{sbArgs.push(p_arrMembers[i].type+":");}
else
{sbArgs.push(p_arrMembers[i].toString()+":");}
}
sbArgs.push(p_arrMembers[i].escape(arguments[i],m_cfg.Version,m_cfg.CommandType==0),",")
}
if(intMembers>0)sbArgs.pop();return m_proxy.invoke(p_NetworkType||__Web_Network.Type.XMLPost,p_strNamespace,p_strMethod,sbArgs.join(""),arguments[intMembers],arguments[intMembers+1],arguments[intMembers+2],arguments[intMembers+3],p_strGroup);}
return invoke;}
this.registerFppClass=function(p_strName,p_arrArgs)
{this[p_strName]=ClassManager(p_strName,p_arrArgs);}
this.registerFppMethod=function(p_strName,p_arrArgs,p_strMethod,p_NetworkType,p_strGroup,p_strNameSpace)
{this[p_strName]=MethodManager(p_strMethod||p_strName,p_arrArgs,p_NetworkType||__Web_Network.Type.XMLPost,p_strGroup,p_strNameSpace||strDefaultNamespace);}
this.seal=function()
{this.RegisterClass=this.RegisterMethod=this.Seal=null;}
}
__Web_Network.FppProxy.TypeSystem=function(p_strType,p_strName)
{this.toString=function(){return p_strName}
this.type=p_strType;return this;}
__Web_Network.FppProxy.dateToISO8601=function(date)
{var fmtStr="{0}-{1}-{2}T{3}:{4}:{5}";var hour=date.getHours();if(hour<10)
hour="0"+hour;var minute=date.getMinutes();if(minute<10)
minute="0"+minute;var second=date.getSeconds();if(second<10)
second="0"+second;return __Web_Network.FppProxy.escape(fmtStr.format(date.getFullYear(),date.getMonth()+1,date.getDate(),hour,minute,second));}
__Web_Network.FppProxy.arrayToString=function(p_array,v,includeType)
{var retValue="";if(p_array==null){return retValue;}
if(__Web_Type.isArray(p_array))
{var joinArray=[];joinArray.push("[");for(var i=0;i<p_array.length;i++)
{joinArray.push(__Web_Network.FppProxy.objToStringImpl(p_array[i],v,includeType));joinArray.push(",");}
if(p_array.length>0)joinArray.pop();joinArray.push("]");return joinArray.join("");}
else
{throw new Error("p_array = "+p_array+" is not an array");}
}
__Web_Network.FppProxy.escape=function(p_str,v)
{if(p_str==null)
{return p_str;}
else
{var s="";if(v==0)
{s=p_str.toString();s=encodeURIComponent(s.replace(/([\{|\}\[|\]\,\\])/g,"\\$1"));}
else
{s="\""+p_str.toString()+"\"";s=encodeURIComponent(s.replace(/([\{|\}\[|\]\,\\:])/g,"\\$1"));}
return s;}
}
__Web_Network.FppProxy.objToStringImpl=function(p_strValue,v,includeType)
{var array=[];if((p_strValue==null)||
(typeof(p_strValue)=="undefined"))
{if(includeType)
array.push("null:");array.push("null");}
else if(typeof(p_strValue)=="string")
{if(includeType)
array.push("System.String:");array.push(__Web_Network.FppProxy.escape(p_strValue,v));}
else if(p_strValue.constructor._typeName=="Date")
{if(includeType)
array.push("System.DateTime:");array.push(__Web_Network.FppProxy.dateToISO8601(p_strValue));}
else if(__Web_Type.isArray(p_strValue))
{if(includeType)
array.push("System.Array:");array.push(__Web_Network.FppProxy.arrayToString(p_strValue,v,includeType));}
else if(typeof(p_strValue)=="object")
{if(p_strValue.__isFppObject==true)
{array.push(p_strValue.toString(includeType));}
else
{if(includeType)
array.push("System.Collections.Hashtable:");array.push(__Web_Network.FppProxy.objToString(p_strValue,v,includeType));}
}
else
{if(includeType)
array.push("System.String:");array.push(p_strValue.toString());}
return array.join("");}
__Web_Network.FppProxy.objToString=function(p_strValue,v,includeType)
{var array=[];array.push("{");for(var key in p_strValue)
{array.push(__Web_Network.FppProxy.escape(key,v),":",__Web_Network.FppProxy.objToStringImpl(p_strValue[key],v,includeType),",");}
array.pop();array.push("}");return array.join("");}
__Web_Network.FppProxy.TypeSystem.prototype.escape=function(p_strValue,v,includeType)
{if((p_strValue==null)||(typeof(p_strValue)=="undefined"))
{return "null";}
switch(this.type)
{case "__string":
return __Web_Network.FppProxy.escape(p_strValue,v);case "__date":
return __Web_Network.FppProxy.dateToISO8601(p_strValue);case "__array":
return __Web_Network.FppProxy.arrayToString(p_strValue,v,false);case "__oArray":
case "__object":
return __Web_Network.FppProxy.objToStringImpl(p_strValue,v,includeType);case "__primitive":
case "__enum":
return p_strValue;default:
if(p_strValue.__isFppObject==true)
{return p_strValue;}
else
{return __Web_Network.FppProxy.objToString(p_strValue,v,includeType);}
}
}
__Web_Network.FppProxy.__string=function(p_strName){return new __Web_Network.FppProxy.TypeSystem("__string",p_strName)}
__Web_Network.FppProxy.__date=function(p_strName){return new __Web_Network.FppProxy.TypeSystem("__date",p_strName)}
__Web_Network.FppProxy.__array=function(p_strName){return new __Web_Network.FppProxy.TypeSystem("__array",p_strName)}
__Web_Network.FppProxy.__oArray=function(p_strName){return new __Web_Network.FppProxy.TypeSystem("__oArray",p_strName)}
__Web_Network.FppProxy.__primitive=function(p_strName){return new __Web_Network.FppProxy.TypeSystem("__primitive",p_strName)}
__Web_Network.FppProxy.__object=function(p_strName){return new __Web_Network.FppProxy.TypeSystem("__object",p_strName)}
__Web_Network.FppProxy.__enum=function(p_strName){return new __Web_Network.FppProxy.TypeSystem("__enum",p_strName)}
__Web_Network.FppProxy.__custom=function(p_fnType,strName){return new __Web_Network.FppProxy.TypeSystem(p_fnType,strName)}
registerNamespace("Web.Bindings");var __Web_Bindings=Web.Bindings=new function()
{var objWebBinding=this,m_unloading=false,_de=document.documentElement;this.onerror=__Web_Event.create();function Scope()
{var objOwner,childBindings={},aobjRegistrations={},aobjDefinitions=[];childBindings["_untyped"]=[];this.initialize=function(p_objBinding)
{objOwner=p_objBinding;}
this.getBinding=function()
{return objOwner||this;}
var __documentElement=_de;function CheckRegistration(p_objBinding,p_blnLoad)
{var childList=p_objBinding.constructor._childBase;if(childList)
{var iCount=childList.length;for(var iClass=0;iClass<iCount;iClass++)
{var objReg=aobjRegistrations[childList[iClass]];if(objReg)
{for(var i=objReg.length-1;i>=0;i--)
{var objItem=objReg[i];if(objItem.elRoot===__documentElement||objItem.elRoot.contains(p_objBinding._element))
{objItem.fnCallback(p_objBinding,p_blnLoad);}
}
}
}
}
}
this.add=function(p_objBinding)
{var objConstructor=p_objBinding.constructor,strType=objConstructor._typeName;if(!strType)
{childBindings["_untyped"].push(p_objBinding);}
else
{if(!childBindings[strType])
childBindings[strType]=[p_objBinding];else 
childBindings[strType].push(p_objBinding);}
CheckRegistration(p_objBinding,true);}
this.addDefinition=function(p_objDefinition)
{aobjDefinitions.push(p_objDefinition);}
this.getDefinitions=function()
{return aobjDefinitions;}
this.remove=function(p_objBinding)
{if(!m_unloading)
{CheckRegistration(p_objBinding,false);var strType=p_objBinding.constructor._typeName;if(!strType)strType="_untyped";childBindings[strType].remove(p_objBinding);}
if(p_objBinding._objDeclaration.objElementQuery.elements)
{if(!m_unloading)
aobjDefinitions.remove(p_objBinding._objDeclaration);p_objBinding._objDeclaration.dispose();}
if(p_objBinding.scope)
{p_objBinding.scope.dispose();}
}
function RegScheduler(p_intStart,p_refStart,p_objItem,p_objBaseList)
{var _l=__Web_Runtime.MaxThreadLock;return function()
{var startTime=new Date();if(p_objBaseList)
{var iCount=p_objBaseList.length;for(var i=p_intStart;i<iCount;i++)
{var objRef=childBindings[p_objBaseList[i]]
if(objRef)
{var iRefCount=objRef.length;for(var iRef=p_refStart;iRef<iRefCount;iRef++)
{var checkTime=new Date()-startTime;if(checkTime>_l)
{setTimeout(RegScheduler(i,iRef,p_objItem,p_objBaseList),0);blnComplete=false;return;}
if(p_objItem.elRoot===_de||p_objItem.elRoot.contains(objRef[iRef]._element))
{p_objItem.fnCallback(objRef[iRef],true);}
}
}
}
}
}
}
function RunNewRegistration(p_objItem,p_objBaseList)
{RegScheduler(0,0,p_objItem,p_objBaseList)();}
this.unregisterFor=function(objItem)
{aobjRegistrations[objItem.strBinding].remove(objItem);if(m_rootScope!=this)
{objOwner.parentScope.unregisterFor(objItem);}
}
this.registerFor=function(p_vBinding,p_fnCallback,p_elRoot)
{var strBinding=p_vBinding;if(typeof(p_vBinding)==="function")
{strBinding=p_vBinding._typeName;}
else
{p_vBinding=Function.parse(p_vBinding);}
if(strBinding=="*")
strBinding="Web.Bindings.Base";var objItem={fnCallback:p_fnCallback,elRoot:p_elRoot||_de,strBinding:strBinding};if(!aobjRegistrations[strBinding])
aobjRegistrations[strBinding]=[objItem];else 
aobjRegistrations[strBinding].push(objItem);if(p_vBinding&&p_vBinding._parentBase)
RunNewRegistration(objItem,p_vBinding._parentBase);if(m_rootScope!=this)
{objOwner.parentScope.registerFor(p_vBinding,p_fnCallback,p_elRoot);}
return objItem;}
this.dispose=function()
{for(var strType in childBindings)
{var objChild=childBindings[strType];for(var i=objChild.length-1;i>=0;i--)
{var objItem=objChild[i];if(objItem&&!objItem.__disposed)
{try
{objItem.dispose(m_unloading);}
catch(ex)
{if(Web.Debug.enabled)
throw(ex);}
}
delete objChild[i];}
}
for(var i=aobjDefinitions.length-1;i>=0;i--)
{aobjDefinitions[i].dispose();}
childBindings=aobjRegistrations=aobjDefinitions=objOwner=null;}
}
var m_rootScope=new Scope();this.Base=function(p_element,p_htParams,p_strNamespace)
{this._aobjRegistrations=this.scope=this.parentBinding=null;this._element=p_element;this._htParams=p_htParams;this._strNamespace=p_strNamespace;var strClass=this.constructor.applyClass(true);this._blnClass=(!p_htParams||typeof(p_htParams.skipclass)=="undefined")?this.constructor.skipClass:(typeof(p_htParams.skipclass)=="boolean"&&p_htParams.skipclass)||p_htParams.skipclass=="true";if(!this._blnClass)
p_element.className+=" "+strClass;if(!p_element.webBindings)
{p_element.webBindings=[this];}
else 
p_element.webBindings.push(this);}
this.Base.prototype={_blnMerge:false,
_registered:false,
_owner:null,
getParameters:function()
{function MergeArguments(p_el,p_strNamespace,p_htSource,p_objList)
{var htMerged={};if(p_strNamespace)
{for(var i in p_objList)
{var strAttribName=i.toLowerCase();try
{var strValue=p_el.getAttribute(p_strNamespace+":"+strAttribName);if(strValue)
{htMerged[strAttribName]=new String(strValue);htMerged[strAttribName].Default=p_htSource[strAttribName];}
else 
htMerged[strAttribName]=p_htSource[strAttribName];}
catch(ex)
{htMerged[strAttribName]=p_htSource&&p_htSource[strAttribName];}
}
}
return(htMerged);}
if(!this._blnMerge)
{if(this._strNamespace&&this.constructor.Params)
{this._htParams=MergeArguments(this._element,this._strNamespace,this._htParams,this.constructor.Params);}
this._blnMerge=true;}
return this._htParams;}
,
registerFor:function(fnType,p_fncCallback,p_elScope)
{if(!this._aobjRegistrations)this._aobjRegistrations=[];this._aobjRegistrations.push(this.parentScope.registerFor(fnType,p_fncCallback,p_elScope))
},
getIdentity:function()
{return this._element.getAttribute(this._objDeclaration.strNamespace+":id")||"";},
dispose:function(p_blnUnloading)
{if(!this._element)return;this.__disposed=true;this.parentScope.remove(this);var obj=this._element.webBindings;if(obj)
if(p_blnUnloading)
this._element.webBindings=null;else 
if(obj.length==1)
this._element.removeAttribute("webBindings");else 
obj.remove(this);if(!p_blnUnloading)
{BindingChangedNotification(this,true);if(!this._blnClass)
{var strReplace=this.constructor.removeClass(this._element.className);if(strReplace!=this._element.className)
this._element.className=strReplace;}
}
if(this._aobjRegistrations)
{if(p_blnUnloading)
{this._aobjRegistrations=null;}
else
{var objReg=this._aobjRegistrations.pop();while(objReg)
{this.parentScope.unregisterFor(objReg);objReg=this._aobjRegistrations.pop();}
}
}
if(this._htParams&&this._htParams.xmlSources)
this._htParams.xmlSources=null;this._htEvents=this._owner=this._htParams=this._element=this.parentScope=this._objDeclaration=null;},
initialize:function(p_owner,p_blnSkipRegister)
{if(!this._registered)
{if(!p_blnSkipRegister)
{this._registered=true;if(!this._objDeclaration)
{this._objDeclaration=CreateDefinition(
[this._element],
this.constructor,
null,
null,
null,
null,
null,
p_owner||m_rootScope,
this._strNamespace?this._strNamespace.toLowerCase():null,
this._htParams
);if(p_owner&&p_owner!=m_rootScope)
p_owner=p_owner.scope;}
if(p_owner&&p_owner!=m_rootScope)
{this.parentScope=p_owner;}
else
{this.parentScope=m_rootScope;}
this.parentScope.add(this);BindingChangedNotification(this,false);}
else 
this._owner=p_owner;}
},
register:function()
{this.initialize(this._owner);},
attachEvent:function(p_strEventName,p_fncCallback)
{if(this.constructor.Events&&this.constructor.Events[p_strEventName])
{if(!this._htEvents)this._htEvents={};if(!this._htEvents[p_strEventName])this._htEvents[p_strEventName]=__Web_Event.create();this._htEvents[p_strEventName].attach(p_fncCallback);}
else
{throw new Error("Invalid Event Name Specified");}
},
detachEvent:function(p_strEventName,p_fncCallback)
{if(this.constructor.Events&&this.constructor.Events[p_strEventName])
{if(this._htEvents&&this._htEvents[p_strEventName])
{this._htEvents[p_strEventName].detach(p_fncCallback);}
}
else
{throw new Error("Invalid Event Name Specified");}
},
fire:function(p_strEventName,p_objPackage)
{var returnValue;if(this.constructor.Events&&this.constructor.Events[p_strEventName])
{if(this._htEvents&&this._htEvents[p_strEventName])
{var objPackage={srcBinding:this,eventName:p_strEventName,Package:p_objPackage,returnValue:null};this._htEvents[p_strEventName].fire(objPackage);if(objPackage.returnValue!=null)
returnValue=objPackage.returnValue;}
}
else
{throw new Error("Invalid Event Name Specified");}
return returnValue;},
getType:function(){return this.constructor._typeName},
_objDeclaration:null,
onbinding:Function.emptyFunction,
onunbinding:Function.emptyFunction
}
this.Base.registerClass("Web.Bindings.Base");this.extendBinding=function(p_el,p_objBindingScope)
{if(p_el)
{var objScope=(p_objBindingScope&&p_objBindingScope.scope)||m_rootScope;while(objScope)
{var aDecls=objScope.getDefinitions();for(var i=0;i<aDecls.length;i++)
{var oDecl=aDecls[i],aobjCssSelectorRules=oDecl.objElementQuery.aobjCssSelectorRules,elScope=oDecl.objElementQuery.elScope;if(aobjCssSelectorRules&&elScope)
{if(__Web_Dom.Css.doesElementPassRules(p_el,aobjCssSelectorRules,elScope))
{if(oDecl.objImportInfo&&(!oDecl.objImportInfo.Loaded))
return RunDeclaration(oDecl,null,p_el);else 
return CreateAndBind(p_el,oDecl);}
}
}
objScope=objScope.parentScope;}
}
}
this.revalidateBinding=function(p_el,p_objBindingScope)
{if(p_el)
{if(p_el.webBindings)
{for(var i=p_el.webBindings.length-1;i>=0;i--)
{var objElementQuery=p_el.webBindings[i]._objDeclaration.objElementQuery,aobjCssSelectorRules=objElementQuery.aobjCssSelectorRules,elScope=objElementQuery.elScope;if(aobjCssSelectorRules&&elScope&&(!__Web_Dom.Css.doesElementPassRules(p_el,aobjCssSelectorRules,elScope)))
{p_el.webBindings[i].dispose(false);}
}
}
objWebBinding.extendBinding(p_el,p_objBindingScope);}
}
this.removeBindings=function(p_el)
{if(p_el&&p_el.webBindings)
{var intCount=p_el.webBindings.length;for(var i=intCount-1;i>=0;i--)
{p_el.webBindings[i].dispose(false);}
p_el.removeAttribute("webBindings");return true;}
return false;}
this.dispose=function()
{m_rootScope.dispose();__Web_Bindings.onerror.clear();}
function pageDestroy()
{m_unloading=true;objWebBinding.dispose();}
__Web_Runtime.onunload.attach(pageDestroy);this._disposeDefinition=function()
{this.objImportInfo=this.htParams=this.objScope=this.objTypeDescriptor=this.objElementQuery=this.elScope=null;}
function CreateDefinition(p_vSelector,p_vBindingType,p_astrBindingSources,p_astrStyleSources,p_astrXmlSource,p_astrImageSource,p_ePriority,p_objScope,p_strNamespace,p_htParams,p_elScope)
{var objImportInfo;if((p_astrBindingSources&&p_astrBindingSources.length>0)||(p_astrStyleSources&&p_astrStyleSources.length>0)||(p_astrXmlSource&&p_astrXmlSource.length>0))
{var objPriorities=__Web_Utility.Prioritizer.Priorities,ePriority=__Web_Enum.getValue(objPriorities,p_ePriority);objImportInfo={astrSources:p_astrBindingSources||[],eBindingPriority:ePriority||objPriorities.High,astrStyles:p_astrStyleSources||[],astrXml:p_astrXmlSource||[],astrImages:p_astrImageSource||[],Loaded:false};}
var objElementQuery;if(!p_vSelector||typeof(p_vSelector)=="string")
{objElementQuery={aobjCssSelectorRules:__Web_Dom.Css.createRules(p_vSelector),elScope:p_elScope||_de};}
else
{objElementQuery={elements:p_vSelector};}
var objTypeDescriptor;if(typeof(p_vBindingType)=="string")
{objTypeDescriptor={strType:p_vBindingType,fncType:Function.parse(p_vBindingType)};}
else
{objTypeDescriptor={fncType:__Web_Type.resolve(p_vBindingType)};}
var objScope;if(p_objScope&&p_objScope!=m_rootScope)
{if(!p_objScope.scope)
{p_objScope.scope=new Scope();p_objScope.scope.initialize(p_objScope);}
objScope=p_objScope.scope;}
else 
objScope=m_rootScope;var objDeclaration={objElementQuery:objElementQuery,objTypeDescriptor:objTypeDescriptor,objScope:objScope,strNamespace:p_strNamespace,htParams:p_htParams||{},objImportInfo:objImportInfo,elScope:p_elScope,dispose:Web.Bindings._disposeDefinition};objScope.addDefinition(objDeclaration);return objDeclaration;}
function BindingChangedNotification(p_objChangedBinding,p_blnRemoved)
{if(p_objChangedBinding&&p_objChangedBinding._element)
{var strEventName=p_blnRemoved?"onunbinding":"onbinding",blnFireBack=!p_blnRemoved&&p_objChangedBinding[strEventName],aobjBindings=p_objChangedBinding._element.webBindings;if(aobjBindings)
for(var i=0;i<aobjBindings.length;i++)
{var objBinding=aobjBindings[i];if(objBinding!=p_objChangedBinding)
{if(objBinding[strEventName])
{objBinding[strEventName](p_objChangedBinding);}
if(blnFireBack)
p_objChangedBinding[strEventName](objBinding)
}
}
}
}
this.attachElementBindingSync=function(p_elItem,p_vBindingType,p_objScope,p_htParams,p_strNamespace)
{var fncType=__Web_Type.resolve(p_vBindingType),objBinding=new fncType(p_elItem,p_htParams,p_strNamespace);objBinding.initialize(p_objScope);return objBinding;}
this.attachElementBinding=function(p_elItem,p_vBindingType,p_objScope,p_htParams,p_strNamespace,p_fncCallback,p_astrBindingSource,p_astrStyleSource,p_ePriority,p_astrXmlSource,p_astrImageSource)
{return this.attachSelectorBinding([p_elItem],p_vBindingType,p_objScope,p_htParams,p_strNamespace,null,p_fncCallback,p_astrBindingSource,p_astrStyleSource,p_ePriority,p_astrXmlSource,p_astrImageSource)[0];}
this.attachSelectorBindingSync=this.attachSelectorBinding=function(p_vSelector,p_vBindingType,p_objScope,p_htParams,p_strNamespace,p_elScope,p_fncCallback,p_astrBindingSource,p_astrStyleSource,p_ePriority,p_astrXmlSource,p_astrImageSource)
{return RunDeclaration(CreateDefinition(p_vSelector,p_vBindingType,p_astrBindingSource,p_astrStyleSource,p_astrXmlSource,p_astrImageSource,p_ePriority,p_objScope,p_strNamespace?p_strNamespace.toLowerCase():null,p_htParams,p_elScope),p_fncCallback);}
var blnMem=Web.Memory;function CreateAndBind(p_element,p_objDeclaration)
{var fncType=p_objDeclaration.objTypeDescriptor.fncType,arrBindings=p_element.webBindings;if(arrBindings)
{var iCount=arrBindings.length;for(var i=0;i<iCount;i++)
{var objBinding=arrBindings[i];if(fncType==objBinding.constructor)
{return(objBinding);}
}
}
var objBinding=new fncType(blnMem?$(p_element):p_element,p_objDeclaration.htParams||{},p_objDeclaration.strNamespace);objBinding._objDeclaration=p_objDeclaration;try
{objBinding.initialize(p_objDeclaration.objScope);}
catch(ex)
{Web.Error.SubmitFromException(ex,p_objDeclaration.objTypeDescriptor.strType,Web.Error.BindingInit);throw(ex);}
if(!objBinding._registered)
objBinding.register();return(objBinding);}
function RunDeclaration(p_objDeclaration,p_fncAsyncCallback,p_element)
{function SourcesLoaded(p_Sources)
{var arrMatch=[];var fncType=p_objDeclaration.objTypeDescriptor.fncType||Function.parse(p_objDeclaration.objTypeDescriptor.strType);if(!fncType)
{var ev={declaration:p_objDeclaration,callback:p_fncAsyncCallback,elements:p_element?[p_element]:p_objDeclaration.objElementQuery.elements,type:p_objDeclaration.objTypeDescriptor.strType,returnValue:false}
__Web_Bindings.onerror.fire(ev);if(!ev.returnValue)
throw new Error("Binding class ("+p_objDeclaration.objTypeDescriptor.strType+") could not be found");return;}
else
{if(p_objDeclaration.objImportInfo)
p_objDeclaration.objImportInfo.Loaded=true;}
p_objDeclaration.objTypeDescriptor.fncType=fncType;if(p_Sources)
{var arrXml=[],iCount=p_Sources.length;for(var i=0;i<iCount;i++)
{var objSource=p_Sources[i];arrXml.push(objSource.resource);if(objSource.context)
arrXml[objSource.context]=objSource.resource;}
p_objDeclaration.htParams.xmlSources=arrXml;}
if(!p_element)
{var objQuery=p_objDeclaration.objElementQuery,aelTargets=objQuery.elements;if(!aelTargets)
{if(objQuery.aobjCssSelectorRules.length==0)
{aelTargets=[_de];}
else
{aelTargets=$$(
objQuery.aobjCssSelectorRules,objQuery.elScope
);}
}
var iTargets=aelTargets.length,_cb=CreateAndBind;for(var i=0;i<iTargets;i++)
{var objBinding=_cb(aelTargets[i],p_objDeclaration);if(p_fncAsyncCallback)
p_fncAsyncCallback(objBinding);arrMatch.push(objBinding);}
aelTargets=null;return arrMatch;}
else
{var objBinding=CreateAndBind(p_element,p_objDeclaration);if(p_fncAsyncCallback)
p_fncAsyncCallback(objBinding);return objBinding;}
}
var _oii=p_objDeclaration.objImportInfo;if(_oii&&(!_oii.Loaded))
{__Web_Utility.loadSources(_oii.astrSources,_oii.astrStyles,_oii.astrXml,_oii.astrImages,_oii.eBindingPriority,SourcesLoaded);return[];}
else
{return SourcesLoaded();}
}
function Init()
{var _ganyel=__Web_Dom.getAnyElementByTagName;var _wup=__Web_Utility.Prioritizer;var _wupp=_wup.Priorities;var strPrefix="web:";var aelWebBindings=_ganyel(strPrefix+"binding",null,true);var iBindingCount=aelWebBindings.length;var arrBindings=new _wup();if(__Web_Network.ApplyAppDomain)
__Web_Network.RegisterBaseDomain();for(var i=0;i<iBindingCount;i++)
{var elItem=aelWebBindings[i];var elChild=_ganyel(strPrefix+"references",elItem,true);var strPriority;if(elChild&&elChild.length>0)
strPriority=elChild[0].getAttribute("priority");strPriority=(strPriority&&_wupp[strPriority.substring(0,1).toUpperCase()+strPriority.substring(1).toLowerCase()])||_wupp.High;arrBindings.queue(elItem,strPriority);}
var elDef=arrBindings.dequeue();var _as=objWebBinding.attachSelectorBinding;while(elDef)
{var astrSources=[];var astrStyles=[];var astrImages=[];var astrXml=[];var strPriority="";var htParams={};var iChildCount=elDef.childNodes.length;var __resolveTagName=__Web_Dom.resolveTagName;var __elDef_childNodes=elDef.childNodes;for(var iGroups=0;iGroups<iChildCount;iGroups++)
{var elGroup=__elDef_childNodes[iGroups];var strGroupName=__resolveTagName(elGroup);if(strGroupName)
{switch(strGroupName.toLowerCase())
{case strPrefix+"references":
var arrChild=elGroup.childNodes;var iSourceCount=arrChild.length;strPriority=elGroup.getAttribute("priority");for(var iSources=0;iSources<iSourceCount;iSources++)
{var elSource=arrChild[iSources];var strSourceName=__resolveTagName(elSource);if(strSourceName&&strSourceName.toLowerCase()==strPrefix+"add")
{var strType=elSource.getAttribute("type")||"script";var strSource=elSource.getAttribute("src");if(strSource)
{switch(strType.toLowerCase())
{case "text/javascript":
case "script":
astrSources.push(strSource);break;case "text/xml":
case "xml":
var strSource=new String(strSource);strSource.name=elSource.getAttribute("name");var strProxy=elSource.getAttribute("proxy");strSource.proxy=(strProxy&&(strProxy.toLowerCase()=="true"))
astrXml.push(strSource);break;case "text/css":
case "css":
astrStyles.push(strSource);break;case "image":
if(Web.Browser._isIE&&Web.Browser.version<7)
astrImages.push(strSource);break;}
}
}
}
break;case strPrefix+"defaults":
var iParamCount=elGroup.childNodes.length;for(var iParams=0;iParams<iParamCount;iParams++)
{var elParam=elGroup.childNodes[iParams];var strParamName=__resolveTagName(elParam);if(strParamName&&strParamName.toLowerCase()==strPrefix+"param")
{var strName=elParam.getAttribute("name");if(strName)
htParams[strName.toLowerCase()]=elParam.value||elParam.getAttribute("value");}
}
break;}
}
}
var strType=elDef.getAttribute("type");if(strPriority)
strPriority=_wupp[strPriority.substring(0,1).toUpperCase()+strPriority.substring(1).toLowerCase()];if(strType)
_as(elDef.getAttribute("selector"),strType,m_rootScope,htParams,elDef.getAttribute("namespace"),null,null,astrSources,astrStyles,strPriority,astrXml,astrImages);else 
__Web_Utility.loadSources(astrSources,astrStyles,astrXml,strPriority,null);elDef=arrBindings.dequeue();}
}
__Web_Runtime.oninit.attach(Init);}
registerNamespace("Web.Accessibility");Web.Accessibility.notify=function()
{if(this.enabled)
{if(!this._frame)
{var objFrame=this._frame=_ce("iframe");objFrame.style.width=objFrame.style.height="1px";objFrame.style.position="absolute";objFrame.tabIndex=-1;objFrame.style.top=objFrame.style.left="-1000px";document.body.insertAdjacentElement("afterBegin",Web.Accessibility._frame);}
this._frame.contentWindow.location.replace("about:blank");}
}
Web.Accessibility._frame=null;Web.Accessibility.enabled=(Web.Accessibility.enabled!=null)?Web.Accessibility.enabled:true;if(!window.DOMParser){window.DOMParser=function()
{return new function()
{this.parseFromString=function(xml,mimetype)
{var xmlDocument;try
{xmlDocument=new ActiveXObject("Microsoft.XMLDOM");xmlDocument.async=false;xmlDocument.loadXML(xml);}
catch(ex)
{xmlDocument=null;}
return xmlDocument;}
}
}
}
