/* x_cook.js compiled from X 4.0 with XC 0.27b. Distributed by GNU LGPL. For copyrights, license, documentation and more visit Cross-Browser.com */
function xDeleteCookie(A,B){if(xGetCookie(A)){document.cookie=A+"=; path="+((!B)?"/":B)+"; expires="+new Date(0).toGMTString()}}function xGetCookie(B){var D=null,C=B+"=";if(document.cookie.length>0){var E=document.cookie.indexOf(C);if(E!=-1){E+=C.length;var A=document.cookie.indexOf(";",E);if(A==-1){A=document.cookie.length}D=unescape(document.cookie.substring(E,A))}}return D}function xSetCookie(B,C,A,D){document.cookie=B+"="+escape(C)+((!A)?"":("; expires="+A.toGMTString()))+"; path="+((!D)?"/":D)}
/* Compiled from X 4.17 by XC 1.06 on 10Jul07 */
xLibrary={version:"4.17",license:"GNU LGPL",url:"http://cross-browser.com/"};function xCamelize(B){var C,E,A=B.split("-");var D=A[0];for(C=1;C<A.length;++C){E=A[C].charAt(0);D+=A[C].replace(E,E.toUpperCase())}return D}function xClientHeight(){var B=0,C=document,A=window;if((!C.compatMode||C.compatMode=="CSS1Compat")&&!A.opera&&C.documentElement&&C.documentElement.clientHeight){B=C.documentElement.clientHeight}else{if(C.body&&C.body.clientHeight){B=C.body.clientHeight}else{if(xDef(A.innerWidth,A.innerHeight,C.width)){B=A.innerHeight;if(C.width>A.innerWidth){B-=16}}}}return B}function xClientWidth(){var B=0,C=document,A=window;if((!C.compatMode||C.compatMode=="CSS1Compat")&&!A.opera&&C.documentElement&&C.documentElement.clientWidth){B=C.documentElement.clientWidth}else{if(C.body&&C.body.clientWidth){B=C.body.clientWidth}else{if(xDef(A.innerWidth,A.innerHeight,C.height)){B=A.innerWidth;if(C.height>A.innerHeight){B-=16}}}}return B}function xDef(){for(var A=0;A<arguments.length;++A){if(typeof (arguments[A])=="undefined"){return false}}return true}function xGetComputedStyle(F,E,C){if(!(F=xGetElementById(F))){return null}var D,A="undefined",B=document.defaultView;if(B&&B.getComputedStyle){D=B.getComputedStyle(F,"");if(D){A=D.getPropertyValue(E)}}else{if(F.currentStyle){A=F.currentStyle[xCamelize(E)]}else{return null}}return C?(parseInt(A)||0):A}function xGetElementById(A){if(typeof (A)=="string"){if(document.getElementById){A=document.getElementById(A)}else{if(document.all){A=document.all[A]}else{A=null}}}return A}function xGetElementsByClassName(H,G,B,E){var D=new Array();var C=new RegExp("(^|\\s)"+H+"(\\s|$)");var F=xGetElementsByTagName(B,G);for(var A=0;A<F.length;++A){if(C.test(F[A].className)){D[D.length]=F[A];if(E){E(F[A])}}}return D}function xGetElementsByTagName(A,C){var B=null;A=A||"*";C=C||document;if(typeof C.getElementsByTagName!="undefined"){B=C.getElementsByTagName(A);if(A=="*"&&(!B||!B.length)){B=C.all}}else{if(A=="*"){B=C.all}else{if(C.all&&C.all.tags){B=C.all.tags(A)}}}return B||new Array()}function xHasPoint(D,G,E,H,A,F,C){if(!xNum(H)){H=A=F=C=0}else{if(!xNum(A)){A=F=C=H}else{if(!xNum(F)){C=A;F=H}}}var B=xPageX(D),I=xPageY(D);return(G>=B+C&&G<=B+xWidth(D)-A&&E>=I+H&&E<=I+xHeight(D)-F)}function xHeight(G,E){if(!(G=xGetElementById(G))){return 0}if(xNum(E)){if(E<0){E=0}else{E=Math.round(E)}}else{E=-1}var D=xDef(G.style);if(G==document||G.tagName.toLowerCase()=="html"||G.tagName.toLowerCase()=="body"){E=xClientHeight()}else{if(D&&xDef(G.offsetHeight)&&xStr(G.style.height)){if(E>=0){var F=0,C=0,B=0,H=0;if(document.compatMode=="CSS1Compat"){var A=xGetComputedStyle;F=A(G,"padding-top",1);if(F!==null){C=A(G,"padding-bottom",1);B=A(G,"border-top-width",1);H=A(G,"border-bottom-width",1)}else{if(xDef(G.offsetHeight,G.style.height)){G.style.height=E+"px";F=G.offsetHeight-E}}}E-=(F+C+B+H);if(isNaN(E)||E<0){return }else{G.style.height=E+"px"}}E=G.offsetHeight}else{if(D&&xDef(G.style.pixelHeight)){if(E>=0){G.style.pixelHeight=E}E=G.style.pixelHeight}}}return E}function xLeft(C,A){if(!(C=xGetElementById(C))){return 0}var B=xDef(C.style);if(B&&xStr(C.style.left)){if(xNum(A)){C.style.left=A+"px"}else{A=parseInt(C.style.left);if(isNaN(A)){A=xGetComputedStyle(C,"left",1)}if(isNaN(A)){A=0}}}else{if(B&&xDef(C.style.pixelLeft)){if(xNum(A)){C.style.pixelLeft=A}else{A=C.style.pixelLeft}}}return A}function xMoveTo(B,A,C){xLeft(B,A);xTop(B,C)}function xNum(){for(var A=0;A<arguments.length;++A){if(isNaN(arguments[A])||typeof (arguments[A])!="number"){return false}}return true}function xOpacity(A,B){var C=xDef(B);if(!(A=xGetElementById(A))){return 2}if(xStr(A.style.opacity)){if(C){A.style.opacity=B+""}else{B=parseFloat(A.style.opacity)}}else{if(xStr(A.style.filter)){if(C){A.style.filter="alpha(opacity="+(100*B)+")"}else{if(A.filters&&A.filters.alpha){B=A.filters.alpha.opacity/100}}}else{if(xStr(A.style.MozOpacity)){if(C){A.style.MozOpacity=B+""}else{B=parseFloat(A.style.MozOpacity)}}else{if(xStr(A.style.KhtmlOpacity)){if(C){A.style.KhtmlOpacity=B+""}else{B=parseFloat(A.style.KhtmlOpacity)}}}}}return isNaN(B)?1:B}function xPageX(B){var A=0;B=xGetElementById(B);while(B){if(xDef(B.offsetLeft)){A+=B.offsetLeft}B=xDef(B.offsetParent)?B.offsetParent:null}return A}function xPageY(A){var B=0;A=xGetElementById(A);while(A){if(xDef(A.offsetTop)){B+=A.offsetTop}A=xDef(A.offsetParent)?A.offsetParent:null}return B}function xResizeTo(C,A,B){xWidth(C,A);xHeight(C,B)}function xScrollLeft(C,B){var D=0;if(!xDef(C)||B||C==document||C.tagName.toLowerCase()=="html"||C.tagName.toLowerCase()=="body"){var A=window;if(B&&C){A=C}if(A.document.documentElement&&A.document.documentElement.scrollLeft){D=A.document.documentElement.scrollLeft}else{if(A.document.body&&xDef(A.document.body.scrollLeft)){D=A.document.body.scrollLeft}}}else{C=xGetElementById(C);if(C&&xNum(C.scrollLeft)){D=C.scrollLeft}}return D}function xScrollTop(C,B){var D=0;if(!xDef(C)||B||C==document||C.tagName.toLowerCase()=="html"||C.tagName.toLowerCase()=="body"){var A=window;if(B&&C){A=C}if(A.document.documentElement&&A.document.documentElement.scrollTop){D=A.document.documentElement.scrollTop}else{if(A.document.body&&xDef(A.document.body.scrollTop)){D=A.document.body.scrollTop}}}else{C=xGetElementById(C);if(C&&xNum(C.scrollTop)){D=C.scrollTop}}return D}function xStr(B){for(var A=0;A<arguments.length;++A){if(typeof (arguments[A])!="string"){return false}}return true}function xStyle(C,A){var B,E;for(B=2;B<arguments.length;++B){E=xGetElementById(arguments[B]);if(E.style){try{E.style[C]=A}catch(D){E.style[C]=""}}}}function xTop(B,C){if(!(B=xGetElementById(B))){return 0}var A=xDef(B.style);if(A&&xStr(B.style.top)){if(xNum(C)){B.style.top=C+"px"}else{C=parseInt(B.style.top);if(isNaN(C)){C=xGetComputedStyle(B,"top",1)}if(isNaN(C)){C=0}}}else{if(A&&xDef(B.style.pixelTop)){if(xNum(C)){B.style.pixelTop=C}else{C=B.style.pixelTop}}}return C}function xWidth(F,B){if(!(F=xGetElementById(F))){return 0}if(xNum(B)){if(B<0){B=0}else{B=Math.round(B)}}else{B=-1}var D=xDef(F.style);if(F==document||F.tagName.toLowerCase()=="html"||F.tagName.toLowerCase()=="body"){B=xClientWidth()}else{if(D&&xDef(F.offsetWidth)&&xStr(F.style.width)){if(B>=0){var E=0,H=0,G=0,C=0;if(document.compatMode=="CSS1Compat"){var A=xGetComputedStyle;E=A(F,"padding-left",1);if(E!==null){H=A(F,"padding-right",1);G=A(F,"border-left-width",1);C=A(F,"border-right-width",1)}else{if(xDef(F.offsetWidth,F.style.width)){F.style.width=B+"px";E=F.offsetWidth-B}}}B-=(E+H+G+C);if(isNaN(B)||B<0){return }else{F.style.width=B+"px"}}B=F.offsetWidth}else{if(D&&xDef(F.style.pixelWidth)){if(B>=0){F.style.pixelWidth=B}B=F.style.pixelWidth}}}return B}
/* Compiled from X 4.17 by XC 1.06 on 10Jul07; modified by DAB to return a value from xEvent() */
function xEvent(evt){var e=evt||window.event;if(!e){return null}this.type=e.type;this.target=e.target||e.srcElement;this.relatedTarget=e.relatedTarget;
/*@cc_on if(e.type=='mouseover')this.relatedTarget=e.fromElement;else if(e.type=='mouseout')this.relatedTarget=e.toElement;@*/
if(xDef(e.pageX)){this.pageX=e.pageX;this.pageY=e.pageY}else{if(xDef(e.clientX)){this.pageX=e.clientX+xScrollLeft();this.pageY=e.clientY+xScrollTop()}}if(xDef(e.offsetX)){this.offsetX=e.offsetX;this.offsetY=e.offsetY}else{if(xDef(e.layerX)){this.offsetX=e.layerX;this.offsetY=e.layerY}else{this.offsetX=this.pageX-xPageX(this.target);this.offsetY=this.pageY-xPageY(this.target)}}this.keyCode=e.keyCode||e.which||0;this.shiftKey=e.shiftKey;this.ctrlKey=e.ctrlKey;this.altKey=e.altKey;if(typeof e.type=="string"){if(e.type.indexOf("click")!=-1){this.button=0}else{if(e.type.indexOf("mouse")!=-1){this.button=e.button;
/*@cc_on if(e.button&1)this.button=0;else if(e.button&4)this.button=1;else if(e.button&2)this.button=2;@*/
}}}return this}xLibrary={version:"4.17",license:"GNU LGPL",url:"http://cross-browser.com/"};function xAddEventListener(D,C,B,A){if(!(D=xGetElementById(D))){return }C=C.toLowerCase();if(D.addEventListener){D.addEventListener(C,B,A||false)}else{if(D.attachEvent){D.attachEvent("on"+C,B)}else{var E=D["on"+C];D["on"+C]=typeof E=="function"?function(F){E(F);B(F)}:B}}}function xPreventDefault(A){if(A&&A.preventDefault){A.preventDefault()}else{if(window.event){window.event.returnValue=false}}}function xRemoveEventListener(D,C,B,A){if(!(D=xGetElementById(D))){return }C=C.toLowerCase();if(D.removeEventListener){D.removeEventListener(C,B,A||false)}else{if(D.detachEvent){D.detachEvent("on"+C,B)}else{D["on"+C]=null}}}function xStopPropagation(A){if(A&&A.stopPropagation){A.stopPropagation()}else{if(window.event){window.event.cancelBubble=true}}}(function(){
/*
 * jQuery 1.2.6 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
 * $Rev: 5685 $
 */
var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context)};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){selector=jQuery.clean([match[1]],context)}else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3]){return jQuery().find(selector)}return jQuery(elem)}selector=[]}}else{return jQuery(context).find(selector)}}else{if(jQuery.isFunction(selector)){return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector)}}return this.setArray(jQuery.makeArray(selector))},jquery:"1.2.6",size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this},each:function(callback,args){return jQuery.each(this,callback,args)},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this)},attr:function(name,value,type){var options=name;if(name.constructor==String){if(value===undefined){return this[0]&&jQuery[type||"attr"](this[0],name)}else{options={};options[name]=value}}return this.each(function(i){for(name in options){jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name))}})},css:function(key,value){if((key=="width"||key=="height")&&parseFloat(value)<0){value=undefined}return this.attr(key,value,"curCSS")},text:function(text){if(typeof text!="object"&&text!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text))}var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])}})});return ret},wrapAll:function(html){if(this[0]){jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html)})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1){this.appendChild(elem)}})},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1){this.insertBefore(elem,this.firstChild)}})},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this)})},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem)});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems)},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0]}else{return this.cloneNode(true)}});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null}});if(events===true){this.find("*").andSelf().each(function(i){if(this.nodeType==3){return }var events=jQuery.data(this,"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data)}}})}return ret},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i)})||jQuery.multiFilter(selector,this))},not:function(selector){if(selector.constructor==String){if(isSimple.test(selector)){return this.pushStack(jQuery.multiFilter(selector,this,true))}else{selector=jQuery.multiFilter(selector,this)}}var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector})},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=="string"?jQuery(selector):jQuery.makeArray(selector))))},is:function(selector){return !!selector&&jQuery.multiFilter(selector,this).length>0},hasClass:function(selector){return this.is("."+selector)},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0){return null}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one){return value}values.push(value)}}return values}else{return(this[0].value||"").replace(/\r/g,"")}}return undefined}if(value.constructor==Number){value+=""}return this.each(function(){if(this.nodeType!=1){return }if(value.constructor==Array&&/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0)}else{if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0)});if(!values.length){this.selectedIndex=-1}}else{this.value=value}}})},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value)},replaceWith:function(value){return this.after(value).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length){data=jQuery.data(this[0],key)}return data===undefined&&parts[1]?this.data(parts[0]):data}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value)})}},removeData:function(key){return this.each(function(){jQuery.removeData(this,key)})},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse){elems.reverse()}}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"))}var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script")){scripts=scripts.add(elem)}else{if(elem.nodeType==1){scripts=scripts.add(jQuery("script",elem).remove())}callback.call(obj,elem)}});scripts.each(evalScript)})}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"})}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"")}if(elem.parentNode){elem.parentNode.removeChild(elem)}}function now(){return +new Date}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2}if(typeof target!="object"&&typeof target!="function"){target={}}if(length==i){target=this;--i}for(;i<length;i++){if((options=arguments[i])!=null){for(var name in options){var src=target[name],copy=options[name];if(target===copy){continue}if(deep&&copy&&typeof copy=="object"&&!copy.nodeType){target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy)}else{if(copy!==undefined){target[name]=copy}}}}}return target};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery}return jQuery},isFunction:function(fn){return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"")},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie){script.text=data}else{script.appendChild(document.createTextNode(data))}head.insertBefore(script,head.firstChild);head.removeChild(script)}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid}if(name&&!jQuery.cache[id]){jQuery.cache[id]={}}if(data!==undefined){jQuery.cache[id][name]=data}return name?jQuery.cache[id][name]:id},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id]){break}if(!name){jQuery.removeData(elem)}}}else{try{delete elem[expando]}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando)}}delete jQuery.cache[id]}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object){if(callback.apply(object[name],args)===false){break}}}else{for(;i<length;){if(callback.apply(object[i++],args)===false){break}}}}else{if(length==undefined){for(name in object){if(callback.call(object[name],name,object[name])===false){break}}}else{for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}}return object},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value)){value=value.call(elem,i)}return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className)){elem.className+=(elem.className?" ":"")+className}})},remove:function(elem,classNames){if(elem.nodeType==1){elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return !jQuery.className.has(classNames,className)}).join(" "):""}},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name]}callback.call(elem);for(var name in options){elem.style[name]=old[name]}},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0});val-=Math.round(padding+border)}if(jQuery(elem).is(":visible")){getWH()}else{jQuery.swap(elem,props,getWH)}return Math.max(0,val)}return jQuery.curCSS(elem,name,force)},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari){return false}var ret=defaultView.getComputedStyle(elem,null);return !ret||ret.getPropertyValue("color")==""}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save}if(name.match(/float/i)){name=styleFloat}if(!force&&style&&style[name]){ret=style[name]}else{if(defaultView.getComputedStyle){if(name.match(/float/i)){name="float"}name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem)){ret=computedStyle.getPropertyValue(name)}else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode){stack.unshift(a)}for(;i<stack.length;i++){if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block"}}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++){if(swap[i]!=null){stack[i].style.display=swap[i]}}}if(name=="opacity"&&ret==""){ret="1"}}else{if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase()});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft}}}}return ret},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=="undefined"){context=context.ownerDocument||context[0]&&context[0].ownerDocument||document}jQuery.each(elems,function(i,elem){if(!elem){return }if(elem.constructor==Number){elem+=""}if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">"});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j){if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length){tbody[j].parentNode.removeChild(tbody[j])}}if(/^\s/.test(elem)){div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild)}}elem=jQuery.makeArray(div.childNodes)}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select"))){return }if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options){ret.push(elem)}else{ret=jQuery.merge(ret,elem)}});return ret},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8){return undefined}var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari){elem.parentNode.selectedIndex}if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode){throw"type property can't be changed"}elem[name]=value}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name)){return elem.getAttributeNode(name).nodeValue}return elem[name]}if(msie&&notxml&&name=="style"){return jQuery.attr(elem.style,"cssText",value)}if(set){elem.setAttribute(name,""+value)}var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+""=="NaN"?"":"alpha(opacity="+value*100+")")}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase()});if(set){elem[name]=value}return elem[name]},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"")},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call){ret[0]=array}else{while(i){ret[--i]=array[i]}}}return ret},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++){if(array[i]===elem){return i}}return -1},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++]){if(elem.nodeType!=8){first[pos++]=elem}}}else{while(elem=second[i++]){first[pos++]=elem}}return first},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i])}}}catch(e){ret=array}return ret},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++){if(!inv!=!callback(elems[i],i)){ret.push(elems[i])}}return ret},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null){ret[ret.length]=value}}return ret.concat.apply([],ret)}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode},parents:function(elem){return jQuery.dir(elem,"parentNode")},next:function(elem){return jQuery.nth(elem,2,"nextSibling")},prev:function(elem){return jQuery.nth(elem,2,"previousSibling")},nextAll:function(elem){return jQuery.dir(elem,"nextSibling")},prevAll:function(elem){return jQuery.dir(elem,"previousSibling")},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem)},children:function(elem){return jQuery.sibling(elem.firstChild)},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes)}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string"){ret=jQuery.multiFilter(selector,ret)}return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++){jQuery(args[i])[original](this)}})}});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1){this.removeAttribute(name)}},addClass:function(classNames){jQuery.className.add(this,classNames)},removeClass:function(classNames){jQuery.className.remove(this,classNames)},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames)},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){jQuery(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments)}});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px")}});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2])},"#":function(a,i,m){return a.getAttribute("id")==m[2]},":":{lt:function(a,i,m){return i<m[3]-0},gt:function(a,i,m){return i>m[3]-0},nth:function(a,i,m){return m[3]-0==i},eq:function(a,i,m){return m[3]-0==i},first:function(a,i){return i==0},last:function(a,i,m,r){return i==r.length-1},even:function(a,i){return i%2==0},odd:function(a,i){return i%2},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a},"only-child":function(a){return !jQuery.nth(a.parentNode.lastChild,2,"previousSibling")},parent:function(a){return a.firstChild},empty:function(a){return !a.firstChild},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden"},enabled:function(a){return !a.disabled},disabled:function(a){return a.disabled},checked:function(a){return a.checked},selected:function(a){return a.selected||jQuery.attr(a,"selected")},text:function(a){return"text"==a.type},radio:function(a){return"radio"==a.type},checkbox:function(a){return"checkbox"==a.type},file:function(a){return"file"==a.type},password:function(a){return"password"==a.type},submit:function(a){return"submit"==a.type},image:function(a){return"image"==a.type},reset:function(a){return"reset"==a.type},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button")},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},has:function(a,i,m){return jQuery.find(m[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!="string"){return[t]}if(context&&context.nodeType!=1&&context.nodeType!=9){return[]}context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName)){r.push(c)}}}ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0){continue}foundToken=true}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id]){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~"){merge[id]=true}r.push(n)}if(m=="+"){break}}}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length)}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]]}else{re2=quickClass;m=re2.exec(t)}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){oid=jQuery('[@id="'+m[2]+'"]',elem)[0]}ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[]}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){tag="param"}r=jQuery.merge(r,ret[i].getElementsByTagName(tag))}if(m[1]=="."){r=jQuery.classFilter(r,m[2])}if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break}}r=tmp}ret=r}t=t.replace(re2,"")}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t)}}if(t){ret=[]}if(ret&&context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);return done},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass){tmp.push(r[i])}}return tmp},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break}}if(!m){break}if(m[1]==":"&&m[2]=="not"){r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3])}else{if(m[1]=="."){r=jQuery.classFilter(r,m[2],not)}else{if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=jQuery.attr(a,m[2])||""}if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){tmp.push(a)}}r=tmp}else{if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}merge[id]=true}var add=false;if(first==0){if(node.nodeIndex==last){add=true}}else{if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object"){fn=fn[m[2]]}if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+";}")}r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r)},not)}}}}}return{r:r,t:t}},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1){matched.push(cur)}cur=cur[dir]}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&&++num==result){break}}return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem){r.push(n)}}return r}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8){return }if(jQuery.browser.msie&&elem.setInterval){elem=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments)});handler.data=data}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered){return jQuery.event.handle.apply(arguments.callee.elem,arguments)}});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener){elem.addEventListener(type,handle,false)}else{if(elem.attachEvent){elem.attachEvent("on"+type,handle)}}}}handlers[handler.guid]=handler;jQuery.event.global[type]=true});elem=null},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8){return }var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)==".")){for(var type in events){this.remove(elem,type+(types||""))}}else{if(types.type){handler=types.handler;types=types.type}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in events[type]){if(!parts[1]||events[type][handler].type==parts[1]){delete events[type][handler]}}}for(ret in events[type]){break}if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener){elem.removeEventListener(type,jQuery.data(elem,"handle"),false)}else{if(elem.detachEvent){elem.detachEvent("on"+type,jQuery.data(elem,"handle"))}}}ret=null;delete events[type]}}})}for(ret in events){break}if(!ret){var handle=jQuery.data(elem,"handle");if(handle){handle.elem=null}jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle")}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true}if(!elem){if(this.global[type]){jQuery("*").add([window,document]).trigger(type,data)}}else{if(elem.nodeType==3||elem.nodeType==8){return undefined}var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true}data[0].type=type;if(exclusive){data[0].exclusive=true}var handle=jQuery.data(elem,"handle");if(handle){val=handle.apply(elem,data)}if((!fn||(jQuery.nodeName(elem,"a")&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false){val=false}if(event){data.shift()}if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined){val=ret}}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,"a")&&type=="click")){this.triggered=true;try{elem[type]()}catch(e){}}this.triggered=false}return val},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false){val=ret}if(ret===false){event.preventDefault();event.stopPropagation()}}}return val},fix:function(event){if(event[expando]==true){return event}var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--){event[props[i]]=originalEvent[props[i]]}event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};event.timeStamp=event.timeStamp||now();if(!event.target){event.target=event.srcElement||document}if(event.target.nodeType==3){event.target=event.target.parentNode}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement}if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0)}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&&event.button){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy},special:{ready:{setup:function(){bindReady();return },teardown:function(){return }},mouseenter:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type="mouseenter";return jQuery.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(jQuery.browser.msie){return false}jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true},teardown:function(){if(jQuery.browser.msie){return false}jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true},handler:function(event){if(withinElement(event,this)){return true}event.type="mouseleave";return jQuery.event.handle.apply(this,arguments)}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data)})},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments)});return this.each(function(){jQuery.event.add(this,type,one,fn&&data)})},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn)})},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn)})},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn)},toggle:function(fn){var args=arguments,i=1;while(i<args.length){jQuery.event.proxy(fn,args[i++])}return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false}))},hover:function(fnOver,fnOut){return this.bind("mouseenter",fnOver).bind("mouseleave",fnOut)},ready:function(fn){bindReady();if(jQuery.isReady){fn.call(document,jQuery)}else{jQuery.readyList.push(function(){return fn.call(this,jQuery)})}return this}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document)});jQuery.readyList=null}jQuery(document).triggerHandler("ready")}}});var readyBound=false;function bindReady(){if(readyBound){return }readyBound=true;if(document.addEventListener&&!jQuery.browser.opera){document.addEventListener("DOMContentLoaded",jQuery.ready,false)}if(jQuery.browser.msie&&window==top){(function(){if(jQuery.isReady){return }try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return }jQuery.ready()})()}if(jQuery.browser.opera){document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady){return }for(var i=0;i<document.styleSheets.length;i++){if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return }}jQuery.ready()},false)}if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady){return }if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return }if(numStyles===undefined){numStyles=jQuery("style, link[rel=stylesheet]").length}if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return }jQuery.ready()})()}jQuery.event.add(window,"load",jQuery.ready)}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)}});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem){try{parent=parent.parentNode}catch(error){parent=elem}}return parent==elem};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind()});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!="string"){return this._load(url)}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}callback=callback||function(){};var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null}else{params=jQuery.param(params);type="POST"}}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified"){self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText)}self.each(callback,[res.responseText,status,res])}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val}}):{name:elem.name,value:val}}).get()}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type})},getScript:function(url,callback){return jQuery.get(url,null,callback,"script")},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={}}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type})},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string"){s.data=jQuery.param(s.data)}if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?"}}else{if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?"}}s.dataType="json"}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data){s.data=(s.data+"").replace(jsre,"="+jsonp+"$1")}s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp]}catch(e){}if(head){head.removeChild(script)}}}if(s.dataType=="script"&&s.cache==null){s.cache=false}if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"")}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset){script.charset=s.scriptCharset}if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script)}}}head.appendChild(script);return undefined}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username){xhr.open(type,s.url,s.async,s.username,s.password)}else{xhr.open(type,s.url,s.async)}try{if(s.data){xhr.setRequestHeader("Content-Type",s.contentType)}if(s.ifModified){xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default)}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false}if(s.global){jQuery.event.trigger("ajaxSend",[xhr,s])}var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter)}catch(e){status="parsererror"}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&modRes){jQuery.lastModified[s.url]=modRes}if(!jsonp){success()}}else{jQuery.handleError(s,xhr,status)}complete();if(s.async){xhr=null}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xhr){xhr.abort();if(!requestDone){onreadystatechange("timeout")}}},s.timeout)}}try{xhr.send(s.data)}catch(e){jQuery.handleError(s,xhr,null,e)}if(!s.async){onreadystatechange()}function success(){if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger("ajaxSuccess",[xhr,s])}}function complete(){if(s.complete){s.complete(xhr,status)}if(s.global){jQuery.event.trigger("ajaxComplete",[xhr,s])}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}}return xhr},handleError:function(s,xhr,status,e){if(s.error){s.error(xhr,status,e)}if(s.global){jQuery.event.trigger("ajaxError",[xhr,s,e])}},active:0,httpSuccess:function(xhr){try{return !xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined}catch(e){}return false},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined}catch(e){}return false},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw"parsererror"}if(filter){data=filter(data,type)}if(type=="script"){jQuery.globalEval(data)}if(type=="json"){data=eval("("+data+")")}return data},param:function(a){var s=[];if(a.constructor==Array||a.jquery){jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value))})}else{for(var j in a){if(a[j]&&a[j].constructor==Array){jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this))})}else{s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]))}}}return s.join("&").replace(/%20/g,"+")}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none"){this.style.display="block"}elem.remove()}}).end()},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]()})},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback)},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback)},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback)},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback)},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback)},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1){return false}var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){return opt.complete.call(this)}if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow}}if(opt.overflow!=null){this.style.overflow="hidden"}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val=="toggle"?hidden?"show":"hide":val](prop)}else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit}if(parts[1]){end=((parts[1]=="-="?-1:1)*end)+start}e.custom(start,end,unit)}else{e.custom(start,val,"")}}});return true})},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx"}if(!type||(typeof type=="string"&&!fn)){return queue(this[0],type)}return this.each(function(){if(fn.constructor==Array){queue(this,type,fn)}else{queue(this,type).push(fn);if(queue(this,type).length==1){fn.call(this)}}})},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue){this.queue([])}this.each(function(){for(var i=timers.length-1;i>=0;i--){if(timers[i].elem==this){if(gotoEnd){timers[i](true)}timers.splice(i,1)}}});if(!gotoEnd){this.dequeue()}return this}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array){q=jQuery.data(elem,type+"queue",jQuery.makeArray(array))}}return q};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length){q[0].call(this)}})};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false){jQuery(this).dequeue()}if(jQuery.isFunction(opt.old)){opt.old.call(this)}};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={}}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width"){this.elem.style.display="block"}},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){return this.elem[this.prop]}var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd)}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height"){this.elem.style[this.prop]="1px"}jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(gotoEnd){var t=now();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){this.elem.style.display="none"}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p])}}}if(done){this.options.complete.call(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop)}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2){border(offsetParent)}if(!fixed&&css(offsetParent,"position")=="fixed"){fixed=true}offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display"))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&&css(parent,"overflow")!="visible"){border(parent)}parent=parent.parentNode}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute")){add(-doc.body.offsetLeft,-doc.body.offsetTop)}if(fixed){add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop))}}results={top:top,left:left}}}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true))}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0}return results};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,"marginTop");offset.left-=num(this,"marginLeft");parentOffset.top+=num(offsetParent,"borderTopWidth");parentOffset.left+=num(offsetParent,"borderLeftWidth");results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left}}return results},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,"position")=="static")){offsetParent=offsetParent.offsetParent}return jQuery(offsetParent)}});jQuery.each(["Left","Top"],function(i,name){var method="scroll"+name;jQuery.fn[method]=function(val){if(!this[0]){return }return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val}):this[0]==window||this[0]==document?self[i?"pageYOffset":"pageXOffset"]||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method]}});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br)};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):0)}})})();var lingUTIL=new Object();lingUTIL.isSafari=(navigator.userAgent.indexOf("Safari")>=0);lingUTIL.isOldSafari=lingUTIL.isSafari&&parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("Safari")+7))<412;function trim(C){for(var D=0;D<C.length;D++){var B=C.charCodeAt(D);if(B!=32&&B!=10&&B!=13&&B!=9){break}}for(var A=C.length-1;A>=D;A--){var B=C.charCodeAt(A);if(B!=32&&B!=10&&B!=13&&B!=9){break}}if(D>A){return""}else{return C.substr(D,A+1)}}function escapeQuote(D){var C="";for(var A=0;A<D.length;A++){var B=D.charCodeAt(A);if(B==39){C+="\\x27"}else{if(B==34){C+="\\x22"}else{C+=D.charAt(A)}}}return C}lingUTIL.getSelectValue=function(B){B=xGetElementById(B);for(var A=B.options.length-1;A>=0;A--){if(B.options[A].selected){return B.options[A].value}}return null};lingUTIL.setSelectValue=function(B,C){B=xGetElementById(B);for(var A=B.options.length-1;A>=0;A--){B.options[A].selected=C==B.options[A].value}};lingUTIL.getRadioValue=function(C){var B=document.getElementsByName(C);if(B.type=="radio"){return B.value}else{for(var A=0;A<B.length;A++){if(B[A].checked){return B[A].value}}}return null};lingUTIL.setRadioValue=function(D,C){var B=document.getElementsByName(D);if(B.type=="radio"){B.checked=(C==B.value)}else{for(var A=0;A<B.length;A++){if(B[A].value==C){B[A].checked=true;return }}}};lingUTIL.clearRadioValue=function(C){var B=document.getElementsByName(C);if(B.type!="radio"){for(var A=0;A<B.length;A++){B[A].checked=false}}};function showElement(A){A=xGetElementById(A);A.style.visibility="visible";A.style.display=""}function hideElement(A){A=xGetElementById(A);A.style.visibility="hidden";A.style.display="none"}function setVisibility(A,B){A=xGetElementById(A);if(B){A.style.visibility="visible";A.style.display=""}else{A.style.visibility="hidden";A.style.display="none"}}function toggleVisibility(A){A=xGetElementById(A);if(A.style.visibility=="visible"){A.style.visibility="hidden";A.style.display="none"}else{A.style.visibility="visible";A.style.display=""}}function removeAllNodes(A){A=xGetElementById(A);while(A.hasChildNodes()){A.removeChild(A.lastChild)}return A}function removeAllRows(A){A=xGetElementById(A);while(A.rows.length>0){A.deleteRow(A.rows.length-1)}return A}function doOnReturnKP(C,B,E,D){C=(C)?C:window.event;var A=(C.charCode)?C.charCode:((C.which)?C.which:C.keyCode);if(A==13||A==3){B.call(null,E,D);return false}return true}lingUTIL.TAB_SMALL=0;lingUTIL.TAB_MEDIUM=1;lingUTIL.TAB_BIG=2;lingUTIL.TAB_NAMES=["tabSmall","tabMed","tabBig"];lingUTIL.showTab=function(D,C,B){for(var A=0;A<C.length;A++){xGetElementById(C[A]+"Tab").style.background="url(img/"+lingUTIL.TAB_NAMES[B]+"Gray.gif)";hideElement(C[A]+"Contents")}xGetElementById(D+"Tab").style.background="url(img/"+lingUTIL.TAB_NAMES[B]+"Blue.gif)";showElement(D+"Contents")};lingUTIL.getPageStr=function(L,N,G,F,A,K,E,D,P){var M="";if(G>0){var C=Math.ceil(G/N);var O=0;var I=C-1;if(E&&E>0&&C>E){O=L-Math.floor((E+1)/2)+1;I=L+Math.floor(E/2);if(O<0){I-=O;O=0}else{if(I>=C){O-=(I-C+1);I=C-1}}}if(O>0){var J=O-E;if(J<0){J=0}M+=D.replace("%0",J).replace("%1",J+1)}for(var H=O;H<=I;H++){var Q=(H==L)?F:A;M+=Q.replace("%0",H).replace("%1",H+1)}if(I<C-1){var B=I+E;if(B>=C){B=C-1}M+=P.replace("%0",B).replace("%1",B+1)}}else{if(K){M=K}}return M};lingUTIL.scaleDimensions=function(D,A,F,E){var G=null;var C=F/D;var B=E/A;if(C<=B&&C<1){G={width:F,height:Math.round(A*C)}}else{if(B<1){G={width:Math.round(D*B),height:E}}else{G={width:D,height:A}}}return G};lingUTIL.getScaledDimensions=function(C,E,D){var F=null;var B=E/C.width;var A=D/C.height;if(B<=A&&B<1){F={width:E,height:Math.round(C.height*B)}}else{if(A<1){F={width:Math.round(C.width*A),height:D}}else{F={width:C.width,height:C.height}}}return F};lingUTIL.resizeImage=function(D,G,F){var C=G/D.width;var B=F/D.height;if(lingUTIL.isSafari){if(C<B&&C<1){D.width=G}else{if(B<1){D.height=F}}}else{if(C<=B&&C<1){var A=D.height;D.width=G;D.height=A*C}else{if(B<1){var E=D.width;D.height=F;D.width=E*B}}}};lingUTIL.getURLParam=function(E){var D="";var C=window.location.href;if(C.indexOf("?")>-1){var B=C.substr(C.indexOf("?"));var F=B.split("&");for(var A=0;A<F.length;A++){if(F[A].indexOf(E+"=")>-1){var G=F[A].split("=");D=G[1];break}}}return unescape(D)};lingUTIL.randomizeList=function(A){for(var C=0;C<A.length;C++){var D=Math.floor(Math.random()*A.length);var B=A[C];A[C]=A[D];A[D]=B}};lingUTIL.onImageLoad=function(A,C,B){if(A.width&&A.width>0){lingUTIL.resizeImage(A,C,B);showElement(A)}else{showElement(A);lingUTIL.resizeImage(A,C,B)}};lingUTIL.getTagTokens=function(K,H,G){var C="";var I=false;var A=0;var F=H;var E=false;var D=false;var J=null;do{var B=K.charCodeAt(F);if(I){if(B==A){I=false;if(J!=null){G[J]=decodeUTF8(C)}C="";J=null}else{if(B==9||B==13||B==10){D=true}else{C+=String.fromCharCode(B)}}}else{switch(B){case 60:D=true;break;case 62:if(C.length>0){G[C]=""}E=true;break;case 47:if(C.length>0){G[C]="";C=""}J=null;break;case 32:case 13:case 10:case 9:if(C.length>0){G[C]="";C=""}J=null;break;case 61:if(C.length>0){G[C]="";J=C;C=""}break;case 34:case 39:if(C.length>0){G[C]="";J=null;C=""}I=true;A=B;break;default:J=null;C+=String.fromCharCode(B);break}}F++}while(!D&&!E&&F<K.length);return E?F:-1};lingUTIL.validateEmail=function(B){var D=B.indexOf("@");var A=B.lastIndexOf("@");var C=B.lastIndexOf(".");if(D<1||D!=A||C<A||C==B.length-1){return false}return B.replace(/[^0-9a-zA-Z\-._@]/g,"")==B};lingUTIL.replace=function(C,A){for(var B=0;B<A.length;B++){while(C.indexOf("{"+B+"}")>=0){C=C.replace("{"+B+"}",A[B])}}return C};lingUTIL.isURL=function(A){A=trim(A);if(A.substring(0,7)=="http://"){A=A.substring(7)}else{if(A.substring(0,8)=="https://"){A=A.substring(8)}}if(A.indexOf(" ")<0){var B=A.indexOf(".");if(B>0&&B<A.length-1){return true}}return false};lingUTIL.getDescendantsById=function(B,D,C){if(!C){C=[]}if(B.id&&B.id.substring(0,D.length)==D){C.push(B)}for(var A=0;A<B.childNodes.length;A++){this.getDescendantsById(B.childNodes[A],D,C)}return C};lingUTIL.hex=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];lingUTIL.toHex=function(A,C){var D="";if(C){for(var B=C-1;B>=0;B--){D+=lingUTIL.hex[(A>>(4*B))&15]}}else{while(A){D=lingUTIL.hex[A&15]+D;A=A>>4}}return D};lingUTIL.highlightCB=function(A){A.currR+=A.dr;A.currG+=A.dg;A.currB+=A.db;if(A.dr>0&&A.currR>=A.destR||A.dr<0&&A.currR<=A.destR||A.dg>0&&A.currG>=A.destG||A.dg<0&&A.currG<=A.destG||A.db>0&&A.currB>=A.destB||A.db<0&&A.currB<=A.destB){A.currR=A.destR;A.currG=A.destG;A.currB=A.destB;clearInterval(A.interval)}currentColor=((Math.round(A.currR)&255)<<16)|((Math.round(A.currG)&255)<<8)|(Math.round(A.currB)&255);xGetElementById(A.div).style.backgroundColor="#"+lingUTIL.toHex(currentColor,6)};lingUTIL.highlight=function(E,D,A,C){xGetElementById(E).style.backgroundColor="#"+lingUTIL.toHex(D,6);var B={div:E,currR:(D>>16)&255,currG:(D>>8)&255,currB:D&255,destR:(A>>16)&255,destG:(A>>8)&255,destB:A&255};B.dr=(B.destR-B.currR)/(C/13);B.dg=(B.destG-B.currG)/(C/13);B.db=(B.destB-B.currB)/(C/13);B.interval=setInterval(lingUTIL.highlightCB,13,B)};lingUTIL.scrollQueue=null;lingUTIL.setSmoothScroll=function(D,F,B,E,A){window.onscroll=lingUTIL.setGoal;var C={minY:(typeof (F)=="undefined"?0:F),maxY:(typeof (B)=="undefined"?10000:B),offsetY:(typeof (E)=="undefined"?0:E),deltaY:0,YObj:xGetElementById(D),YTimer:null,isEnabled:true,YGoal:0,cb:A};if(lingUTIL.scrollQueue==null){lingUTIL.scrollQueue=new Array()}lingUTIL.scrollQueue.push(C);return C};lingUTIL.setGoal=function(){for(var A=0;A<lingUTIL.scrollQueue.length;A++){var B=lingUTIL.scrollQueue[A];if(B.isEnabled){B.YGoal=xScrollTop();if(B.YGoal<B.minY){B.YGoal=B.minY}if(B.YGoal>B.maxY){B.YGoal=B.maxY}B.YGoal+=B.offsetY;if(B.YTimer!=null){clearInterval(B.YTimer)}B.YTimer=setInterval("lingUTIL.YSet(lingUTIL.scrollQueue["+A+"])",100);lingUTIL.YSet(B)}}};lingUTIL.YSet=function(D){if(D.YObj!=null&&D.isEnabled){var C=null;if(typeof document.defaultView!="undefined"){var A=document.defaultView;var B=A.getComputedStyle(D.YObj,"");C=B.getPropertyValue("top")}else{C=D.YObj.style.top;if(C.length==0){C="0px"}}if(C.length>0){if(C=="auto"){C="0px"}var F=C.indexOf("px");C=parseInt(F==-1?C:C.substr(0,F));var E=Math.floor((D.YGoal-C)/2);if(E==0){E=1}D.YObj.style.top=(C+E)+"px";D.deltaY+=E;if(C+E==D.YGoal){clearInterval(D.YTimer);D.YTimer=null}if(D.cb){D.cb.call(D)}}}};lingUTIL.Popup=function(C,F,B,I){C=xGetElementById(C);if(!I){I=new Object()}this.prefs=I;F=F?F:"lingDescs";if(typeof (I.borderWidth)=="undefined"){I.borderWidth=1}if(typeof (I.borderColor)=="undefined"){I.borderColor="#cc0099"}if(typeof (I.bgcolor)=="undefined"){I.bgcolor="white"}var E="absolute";for(var D=C;D!=null;D=D.parentNode){if(D.style){if(D.style.position=="fixed"){E="fixed";break}else{if(D.style.position=="absolute"){break}}}}this.div=document.createElement("div");if(typeof (I.width)!="undefined"){this.div.style.width=I.width}this.div.style.position=E;this.div.style.zIndex=65535;this.div.style.backgroundColor=I.bgcolor;this.div.style.border=I.borderWidth+"px solid "+I.borderColor;if(typeof (B)=="string"){this.div.innerHTML=B}else{if(B){this.div.appendChild(B)}}xGetElementById(F).appendChild(this.div);var G=xPageX(C);var A=xWidth(this.div);var H=xClientWidth();if(G+A/2>H){G=H-A}xMoveTo(this.div,G,xPageY(C)+xHeight(C))};lingUTIL.Popup.prototype={close:function(){this.div.parentNode.removeChild(this.div)}};lingUTIL.buildAbsoluteUrl=function(D,C){var B=location.pathname.lastIndexOf("/");var A=null;if(B>0){A=location.pathname.substring(0,B)}else{A=""}if(C){return"http://"+location.host+A+"/"+D}else{return A+"/"+D}};var lingLANG=new Object();lingLANG.TINY=0;lingLANG.SMALL=1;lingLANG.MEDIUM=2;lingLANG.BIG=3;lingLANG.HUGE=4;lingLANG.getLanguage=function(B){for(var A=0;A<lingLANG.languages.length;A++){if(lingLANG.languages[A]!=null&&lingLANG.languages[A].ID==B){return lingLANG.languages[A]}}};lingLANG.printShort=function(C,A,B,F){var G="";if(C!=F){for(var E=0;E<lingLANG.languages.length;E++){if(lingLANG.languages[E]!=null&&lingLANG.languages[E].ID==C){var D=lingLANG.languages[E].nameShort?lingLANG.languages[E].nameShort:lingLANG.languages[E].name;G=D;break}}}if(A!=null&&typeof (A)!="undefined"&&C!=A&&A!=F){if(G.length>0){G+=B}for(var E=0;E<lingLANG.languages.length;E++){if(lingLANG.languages[E]!=null&&lingLANG.languages[E].ID==A){var D=lingLANG.languages[E].nameShort?lingLANG.languages[E].nameShort:lingLANG.languages[E].name;G+=D;break}}}return G};lingLANG.print=function(C,A,B,E){var F="";if(C!=E){for(var D=0;D<lingLANG.languages.length;D++){if(lingLANG.languages[D]!=null&&lingLANG.languages[D].ID==C){F=lingLANG.languages[D].name;break}}}if(A!=null&&typeof (A)!="undefined"&&C!=A&&A!=E){if(F.length>0){F+=B}for(var D=0;D<lingLANG.languages.length;D++){if(lingLANG.languages[D]!=null&&lingLANG.languages[D].ID==A){F+=lingLANG.languages[D].name;break}}}return F};lingLANG.className=function(B,A){switch(B){case lingLANG.ARABIC:case lingLANG.DARI:case lingLANG.FARSI:case lingLANG.PASHTO:case lingLANG.URDU:return"arabic"+A;case lingLANG.HEBREW:return"hebrew"+A;case lingLANG.CHINESE_CANTONESE:case lingLANG.CHINESE_MANDARIN:case lingLANG.KOREAN:case lingLANG.JAPANESE:return"kanji"+A;case lingLANG.SINHALESE:case lingLANG.TIBETAN:case lingLANG.THAI:return"thai"+A}return null};lingLANG.span=function(C,B,A){switch(B){case lingLANG.ARABIC:case lingLANG.DARI:case lingLANG.FARSI:case lingLANG.PASHTO:case lingLANG.URDU:return"<span class='arabic"+A+"'>&rlm;"+strWS(C)+"&rlm;</span>";case lingLANG.HEBREW:return"<span class='hebrew"+A+"'>&rlm;"+strWS(C)+"&rlm;</span>";case lingLANG.CHINESE_CANTONESE:case lingLANG.CHINESE_MANDARIN:case lingLANG.KOREAN:case lingLANG.JAPANESE:return"<span class='kanji"+A+"'>&lrm;"+strWS(C)+"&lrm;</span>";case lingLANG.SINHALESE:case lingLANG.TIBETAN:case lingLANG.THAI:return"<span class='thai"+A+"'>&lrm;"+strWS(C)+"&lrm;</span>";default:return"<span class='latin"+A+"'>&lrm;"+strWS(C)+"&lrm;</span>"}};lingLANG.makeSelect=function(A,G,F,C,D,B,I){var H="<select class='"+G+"' id='"+A+"'";if(D){H+=" onchange='"+D+"'"}H+=">";if(C){H+="<option value='-1'>"+C+"</option>"}if(I){for(var E=0;E<I.length;E++){H+="<option value='"+I[E]+"'";if(F==I[E]){H+=" selected"}H+=">"+(B&&lingLANG.getLanguage(I[E]).nameShort?lingLANG.getLanguage(I[E]).nameShort:lingLANG.getLanguage(I[E]).name)+"</option>"}}else{for(var E=0;E<lingLANG.languages.length;E++){if(lingLANG.languages[E]!=null){H+="<option value='"+lingLANG.languages[E].ID+"'";if(F==lingLANG.languages[E].ID){H+=" selected"}H+=">"+(B&&lingLANG.languages[E].nameShort?lingLANG.languages[E].nameShort:lingLANG.languages[E].name)+"</option>"}}}H+="</select>";return H};lingLANG.orderCB=function(B,A){if(B.name<A.name){return -1}else{if(B.name>A.name){return 1}else{return 0}}};lingLANG.sort=function(A){A.sort(lingLANG.orderCB)};lingLANG.ARABIC=0;lingLANG.BASQUE=1;lingLANG.BENGALI=2;lingLANG.BULGARIAN=3;lingLANG.BURMESE=4;lingLANG.KHMER=5;lingLANG.CATALAN=6;lingLANG.CHINESE_CANTONESE=7;lingLANG.CHINESE_MANDARIN=8;lingLANG.LATVIAN=9;lingLANG.CZECH=10;lingLANG.DANISH=11;lingLANG.DUTCH=12;lingLANG.ENGLISH=13;lingLANG.FARSI=14;lingLANG.FINNISH=15;lingLANG.FRENCH=16;lingLANG.GERMAN=17;lingLANG.GREEK=18;lingLANG.HEBREW=19;lingLANG.HINDI=20;lingLANG.HUNGARIAN=21;lingLANG.INDONESIAN=22;lingLANG.IRISH=23;lingLANG.ITALIAN=24;lingLANG.JAPANESE=25;lingLANG.KLINGON=26;lingLANG.KOREAN=27;lingLANG.KURDISH=28;lingLANG.LATIN=29;lingLANG.LITHUANIAN=30;lingLANG.MALAY=31;lingLANG.MARATHI=32;lingLANG.NORWEGIAN=33;lingLANG.PASHTO=34;lingLANG.POLISH=35;lingLANG.PORTUGUESE=36;lingLANG.PUNJABI=37;lingLANG.ROMANIAN=38;lingLANG.RUSSIAN=39;lingLANG.SANSKRIT=40;lingLANG.SERBIAN=41;lingLANG.SINDHI=42;lingLANG.SINHALESE=43;lingLANG.SLOVAK=44;lingLANG.SPANISH=45;lingLANG.SWAHILI=46;lingLANG.SWEDISH=47;lingLANG.TAGALOG=48;lingLANG.TAMIL=49;lingLANG.TELUGU=50;lingLANG.THAI=51;lingLANG.TIBETAN=52;lingLANG.TURKISH=53;lingLANG.UKRAINIAN=54;lingLANG.URDU=55;lingLANG.VIETNAMESE=56;lingLANG.YIDDISH=57;lingLANG.AFRIKAANS=58;lingLANG.ALBANIAN=59;lingLANG.ARMENIAN=60;lingLANG.ASSAMESE=61;lingLANG.OTHER=62;lingLANG.AYMARA=63;lingLANG.AZERI=64;lingLANG.BALUCHI=65;lingLANG.BASHKIR=66;lingLANG.BHOJPURI=67;lingLANG.BOSNIAN=68;lingLANG.BRETON=69;lingLANG.BRIJ=70;lingLANG.BYELORUSSIAN=71;lingLANG.CHEROKEE=72;lingLANG.CREOLE=73;lingLANG.CROATIAN=74;lingLANG.DARI=75;lingLANG.DOGRI=76;lingLANG.ESTONIAN=77;lingLANG.FLEMISH=78;lingLANG.FRISIAN=79;lingLANG.GEORGIAN=81;lingLANG.GUJARATI=82;lingLANG.HAUSA=83;lingLANG.HAWAIIAN=84;lingLANG.HMONG=85;lingLANG.ICELANDIC=86;lingLANG.IGBO=87;lingLANG.JAVANESE=88;lingLANG.JUDEOSPANISH=89;lingLANG.FUR=90;lingLANG.KANNADA=91;lingLANG.KANNAUJI=92;lingLANG.KASHMIRI=93;lingLANG.KAZAKH=94;lingLANG.KONKANI=96;lingLANG.KYRGYZ=97;lingLANG.LAOTIAN=98;lingLANG.LAKOTA=99;lingLANG.MAITHILI=100;lingLANG.MALAGASY=101;lingLANG.MALAYALAM=102;lingLANG.MANIPURI=103;lingLANG.MAORI=104;lingLANG.MIZO=105;lingLANG.MONGOLIAN=106;lingLANG.NEPALI=107;lingLANG.ORIYA=108;lingLANG.PAPIAMENTO=109;lingLANG.INTERLINGUA=110;lingLANG.QUECHUA=111;lingLANG.SOTHO=112;lingLANG.TSWANA=113;lingLANG.SHONA=114;lingLANG.SLOVENIAN=115;lingLANG.ESPERANTO=116;lingLANG.SWAZI=117;lingLANG.TAIWANESE=118;lingLANG.TAJIK=119;lingLANG.TATAR=120;lingLANG.TSONGA=121;lingLANG.GAELIC=122;lingLANG.TURKMEN=123;lingLANG.TWI=124;lingLANG.UZBEK=125;lingLANG.VENDA=126;lingLANG.WELSH=127;lingLANG.XHOSA=128;lingLANG.ZULU=129;lingLANG.AMHARIC=130;lingLANG.YORUBA=131;lingLANG.KINYARWANDA=132;lingLANG.YUPIK=133;lingLANG.GWICHIN=134;lingLANG.ANGLOSAXON=135;lingLANG.HITTITE=136;lingLANG.AKKADIAN=137;lingLANG.SOMALI=138;lingLANG.MALTESE=139;lingLANG.SUMERIAN=140;lingLANG.MACEDONIAN=141;lingLANG.CORNISH=142;lingLANG.languages=[{ID:lingLANG.ARABIC,isIdeographic:false,isRtol:true,name:lingRESOURCES.write("Common.lang0","Arabic"),text:null,pronunciation:null},{ID:lingLANG.BASQUE,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang1","Basque"),text:null,pronunciation:null},{ID:lingLANG.BENGALI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang2","Bengali"),text:null,pronunciation:null},{ID:lingLANG.BULGARIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang3","Bulgarian"),text:null,pronunciation:null},{ID:lingLANG.BURMESE,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang4","Burmese"),text:null,pronunciation:null},{ID:lingLANG.KHMER,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang5","Khmer"),text:null,pronunciation:null},{ID:lingLANG.CATALAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang6","Catalan"),text:null,pronunciation:null},{ID:lingLANG.CHINESE_CANTONESE,isIdeographic:true,isRtol:false,name:lingRESOURCES.write("Common.lang7","Chinese (Cantonese)"),text:lingRESOURCES.write("Common.text7","Chinese Characters"),pronunciation:lingRESOURCES.write("Common.pronunciation7","Jyutping"),nameShort:lingRESOURCES.write("Common.langShort7","Cantonese")},{ID:lingLANG.CHINESE_MANDARIN,isIdeographic:true,isRtol:false,name:lingRESOURCES.write("Common.lang8","Chinese (Mandarin)"),text:lingRESOURCES.write("Common.text8","Hanzi"),pronunciation:lingRESOURCES.write("Common.pronunciation8","Pinyin"),nameShort:lingRESOURCES.write("Common.langShort8","Mandarin")},{ID:lingLANG.LATVIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang9","Latvian"),text:null,pronunciation:null},{ID:lingLANG.CZECH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang10","Czech"),text:null,pronunciation:null},{ID:lingLANG.DANISH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang11","Danish"),text:null,pronunciation:null},{ID:lingLANG.DUTCH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang12","Dutch"),text:null,pronunciation:null},{ID:lingLANG.ENGLISH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang13","English"),text:null,pronunciation:null},{ID:lingLANG.FARSI,isIdeographic:false,isRtol:true,name:lingRESOURCES.write("Common.lang14","Farsi"),text:null,pronunciation:null},{ID:lingLANG.FINNISH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang15","Finnish"),text:null,pronunciation:null},{ID:lingLANG.FRENCH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang16","French"),text:null,pronunciation:null},{ID:lingLANG.GERMAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang17","German"),text:null,pronunciation:null},{ID:lingLANG.GREEK,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang18","Greek"),text:null,pronunciation:null},{ID:lingLANG.HEBREW,isIdeographic:false,isRtol:true,name:lingRESOURCES.write("Common.lang19","Hebrew"),text:null,pronunciation:null},{ID:lingLANG.HINDI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang20","Hindi"),text:null,pronunciation:null},{ID:lingLANG.HUNGARIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang21","Hungarian"),text:null,pronunciation:null},{ID:lingLANG.INDONESIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang22","Indonesian"),text:null,pronunciation:null},{ID:lingLANG.IRISH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang23","Irish"),text:null,pronunciation:null},{ID:lingLANG.ITALIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang24","Italian"),text:null,pronunciation:null},{ID:lingLANG.JAPANESE,isIdeographic:true,isRtol:false,name:lingRESOURCES.write("Common.lang25","Japanese"),text:lingRESOURCES.write("Common.text25","Kanji"),pronunciation:lingRESOURCES.write("Common.pronunciation25","Hiragana")},{ID:lingLANG.KLINGON,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang26","Klingon"),text:null,pronunciation:null},{ID:lingLANG.KOREAN,isIdeographic:true,isRtol:false,name:lingRESOURCES.write("Common.lang27","Korean"),text:lingRESOURCES.write("Common.text27","Hanji"),pronunciation:lingRESOURCES.write("Common.pronunciation27","Hangul")},{ID:lingLANG.KURDISH,isIdeographic:false,isRtol:true,name:lingRESOURCES.write("Common.lang28","Kurdish"),text:null,pronunciation:null},{ID:lingLANG.LATIN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang29","Latin"),text:null,pronunciation:null},{ID:lingLANG.LITHUANIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang30","Lithuanian"),text:null,pronunciation:null},{ID:lingLANG.MALAY,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang31","Malay"),text:null,pronunciation:null},{ID:lingLANG.MARATHI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang32","Marathi"),text:null,pronunciation:null},{ID:lingLANG.NORWEGIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang33","Norwegian"),text:null,pronunciation:null},{ID:lingLANG.PASHTO,isIdeographic:false,isRtol:true,name:lingRESOURCES.write("Common.lang34","Pashto"),text:null,pronunciation:null},{ID:lingLANG.POLISH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang35","Polish"),text:null,pronunciation:null},{ID:lingLANG.PORTUGUESE,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang36","Portuguese"),text:null,pronunciation:null},{ID:lingLANG.PUNJABI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang37","Punjabi"),text:null,pronunciation:null},{ID:lingLANG.ROMANIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang38","Romanian"),text:null,pronunciation:null},{ID:lingLANG.RUSSIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang39","Russian"),text:null,pronunciation:null},{ID:lingLANG.SANSKRIT,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang40","Sanskrit"),text:null,pronunciation:null},{ID:lingLANG.SERBIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang41","Serbian"),text:null,pronunciation:null},{ID:lingLANG.SINDHI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang42","Sindhi"),text:null,pronunciation:null},{ID:lingLANG.SINHALESE,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang43","Sinhalese"),text:null,pronunciation:null},{ID:lingLANG.SLOVAK,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang44","Slovak"),text:null,pronunciation:null},{ID:lingLANG.SPANISH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang45","Spanish"),text:null,pronunciation:null},{ID:lingLANG.SWAHILI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang46","Swahili"),text:null,pronunciation:null},{ID:lingLANG.SWEDISH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang47","Swedish"),text:null,pronunciation:null},{ID:lingLANG.TAGALOG,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang48","Tagalog"),text:null,pronunciation:null},{ID:lingLANG.TAMIL,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang49","Tamil"),text:null,pronunciation:null},{ID:lingLANG.TELUGU,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang50","Telugu"),text:null,pronunciation:null},{ID:lingLANG.THAI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang51","Thai"),text:null,pronunciation:null},{ID:lingLANG.TIBETAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang52","Tibetan"),text:null,pronunciation:null},{ID:lingLANG.TURKISH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang53","Turkish"),text:null,pronunciation:null},{ID:lingLANG.UKRAINIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang54","Ukrainian"),text:null,pronunciation:null},{ID:lingLANG.URDU,isIdeographic:false,isRtol:true,name:lingRESOURCES.write("Common.lang55","Urdu"),text:null,pronunciation:null},{ID:lingLANG.VIETNAMESE,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang56","Vietnamese"),text:null,pronunciation:null},{ID:lingLANG.YIDDISH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang57","Yiddish"),text:null,pronunciation:null},{ID:lingLANG.AFRIKAANS,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang58","Afrikaans"),text:null,pronunciation:null},{ID:lingLANG.ALBANIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang59","Albanian"),text:null,pronunciation:null},{ID:lingLANG.ARMENIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang60","Armenian"),text:null,pronunciation:null},{ID:lingLANG.ASSAMESE,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang61","Assamese"),text:null,pronunciation:null},{ID:lingLANG.OTHER,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang62","Other"),text:null,pronunciation:null},{ID:lingLANG.AYMARA,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang63","Aymara"),text:null,pronunciation:null},{ID:lingLANG.AZERI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang64","Azeri"),text:null,pronunciation:null},{ID:lingLANG.BALUCHI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang65","Baluchi"),text:null,pronunciation:null},{ID:lingLANG.BASHKIR,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang66","Bashkir"),text:null,pronunciation:null},{ID:lingLANG.BHOJPURI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang67","Bhojpuri"),text:null,pronunciation:null},{ID:lingLANG.BOSNIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang68","Bosnian"),text:null,pronunciation:null},{ID:lingLANG.BRETON,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang69","Breton"),text:null,pronunciation:null},{ID:lingLANG.BRIJ,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang70","Brij"),text:null,pronunciation:null},{ID:lingLANG.BYELORUSSIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang71","Byelorussian"),text:null,pronunciation:null},{ID:lingLANG.CHEROKEE,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang72","Cherokee"),text:null,pronunciation:null},{ID:lingLANG.CREOLE,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang73","Creole"),text:null,pronunciation:null},{ID:lingLANG.CROATIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang74","Croatian"),text:null,pronunciation:null},{ID:lingLANG.DARI,isIdeographic:false,isRtol:true,name:lingRESOURCES.write("Common.lang75","Dari"),text:null,pronunciation:null},{ID:lingLANG.DOGRI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang76","Dogri"),text:null,pronunciation:null},{ID:lingLANG.ESTONIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang77","Estonian"),text:null,pronunciation:null},{ID:lingLANG.FLEMISH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang78","Flemish"),text:null,pronunciation:null},{ID:lingLANG.FRISIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang79","Frisian"),text:null,pronunciation:null},{ID:lingLANG.GEORGIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang81","Georgian"),text:null,pronunciation:null},{ID:lingLANG.GUJARATI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang82","Gujarati"),text:null,pronunciation:null},{ID:lingLANG.HAUSA,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang83","Hausa"),text:null,pronunciation:null},{ID:lingLANG.HAWAIIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang84","Hawaiian"),text:null,pronunciation:null},{ID:lingLANG.HMONG,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang85","Hmong"),text:null,pronunciation:null},{ID:lingLANG.ICELANDIC,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang86","Icelandic"),text:null,pronunciation:null},{ID:lingLANG.IGBO,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang87","Igbo"),text:null,pronunciation:null},{ID:lingLANG.JAVANESE,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang88","Javanese"),text:null,pronunciation:null},{ID:lingLANG.JUDEOSPANISH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang89","Judeospanish"),text:null,pronunciation:null},{ID:lingLANG.FUR,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang90","Fur"),text:null,pronunciation:null},{ID:lingLANG.KANNADA,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang91","Kannada"),text:null,pronunciation:null},{ID:lingLANG.KANNAUJI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang92","Kannauji"),text:null,pronunciation:null},{ID:lingLANG.KASHMIRI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang93","Kashmiri"),text:null,pronunciation:null},{ID:lingLANG.KAZAKH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang94","Kazakh"),text:null,pronunciation:null},{ID:lingLANG.KONKANI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang96","Konkani"),text:null,pronunciation:null},{ID:lingLANG.KYRGYZ,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang97","Kyrgyz"),text:null,pronunciation:null},{ID:lingLANG.LAOTIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang98","Laotian"),text:null,pronunciation:null},{ID:lingLANG.LAKOTA,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang99","Lakota"),text:null,pronunciation:null},{ID:lingLANG.MAITHILI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang100","Maithili"),text:null,pronunciation:null},{ID:lingLANG.MALAGASY,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang101","Malagasy"),text:null,pronunciation:null},{ID:lingLANG.MALAYALAM,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang102","Malayalam"),text:null,pronunciation:null},{ID:lingLANG.MANIPURI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang103","Manipuri"),text:null,pronunciation:null},{ID:lingLANG.MAORI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang104","Maori"),text:null,pronunciation:null},{ID:lingLANG.MIZO,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang105","Mizo"),text:null,pronunciation:null},{ID:lingLANG.MONGOLIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang106","Mongolian"),text:null,pronunciation:null},{ID:lingLANG.NEPALI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang107","Nepali"),text:null,pronunciation:null},{ID:lingLANG.ORIYA,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang108","Oriya"),text:null,pronunciation:null},{ID:lingLANG.PAPIAMENTO,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang109","Papiamento"),text:null,pronunciation:null},{ID:lingLANG.INTERLINGUA,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang110","Interlingua"),text:null,pronunciation:null},{ID:lingLANG.QUECHUA,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang111","Quechua"),text:null,pronunciation:null},{ID:lingLANG.SOTHO,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang112","Sotho"),text:null,pronunciation:null},{ID:lingLANG.TSWANA,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang113","Tswana"),text:null,pronunciation:null},{ID:lingLANG.SHONA,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang114","Shona"),text:null,pronunciation:null},{ID:lingLANG.SLOVENIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang115","Slovenian"),text:null,pronunciation:null},{ID:lingLANG.ESPERANTO,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang116","Esperanto"),text:null,pronunciation:null},{ID:lingLANG.SWAZI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang117","Swazi"),text:null,pronunciation:null},{ID:lingLANG.TAIWANESE,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang118","Taiwanese"),text:null,pronunciation:null},{ID:lingLANG.TAJIK,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang119","Tajik"),text:null,pronunciation:null},{ID:lingLANG.TATAR,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang120","Tatar"),text:null,pronunciation:null},{ID:lingLANG.TSONGA,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang121","Tsonga"),text:null,pronunciation:null},{ID:lingLANG.GAELIC,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang122","Gaelic"),text:null,pronunciation:null},{ID:lingLANG.TURKMEN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang123","Turkmen"),text:null,pronunciation:null},{ID:lingLANG.TWI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang124","Twi"),text:null,pronunciation:null},{ID:lingLANG.UZBEK,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang125","Uzbek"),text:null,pronunciation:null},{ID:lingLANG.VENDA,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang126","Venda"),text:null,pronunciation:null},{ID:lingLANG.WELSH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang127","Welsh"),text:null,pronunciation:null},{ID:lingLANG.XHOSA,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang128","Xhosa"),text:null,pronunciation:null},{ID:lingLANG.ZULU,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang129","Zulu"),text:null,pronunciation:null},{ID:lingLANG.AMHARIC,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang130","Amharic"),text:null,pronunciation:null},{ID:lingLANG.YORUBA,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang131","Yoruba"),text:null,pronunciation:null},{ID:lingLANG.KINYARWANDA,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang132","Kinyarwanda"),text:null,pronunciation:null},{ID:lingLANG.YUPIK,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang133","Yup'ik"),text:null,pronunciation:null},{ID:lingLANG.GWICHIN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang134","Gwich'in"),text:null,pronunciation:null},{ID:lingLANG.ANGLOSAXON,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang135","Anglo-Saxon"),text:null,pronunciation:null},{ID:lingLANG.HITTITE,isIdeographic:true,isRtol:false,name:lingRESOURCES.write("Common.lang136","Hittite"),text:null,pronunciation:null},{ID:lingLANG.AKKADIAN,isIdeographic:true,isRtol:false,name:lingRESOURCES.write("Common.lang137","Akkadian"),text:null,pronunciation:null},{ID:lingLANG.SOMALI,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang138","Somali"),text:null,pronunciation:null},{ID:lingLANG.MALTESE,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang139","Maltese"),text:null,pronunciation:null},{ID:lingLANG.SUMERIAN,isIdeographic:true,isRtol:false,name:lingRESOURCES.write("Common.lang140","Sumerian"),text:null,pronunciation:null},{ID:lingLANG.MACEDONIAN,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang141","Macedonian"),text:null,pronunciation:null},{ID:lingLANG.CORNISH,isIdeographic:false,isRtol:false,name:lingRESOURCES.write("Common.lang142","Cornish"),text:null,pronunciation:null}];lingLANG.sort(lingLANG.languages);var lingTEXT=new Object();lingTEXT.allowBackspace=true;lingTEXT.isMac=(navigator.userAgent.indexOf("Mac")!=-1);lingTEXT.isMSIE=(navigator.userAgent.indexOf("MSIE")!=-1);lingTEXT.shiftKeyCode=16;lingTEXT.helpDiv=new Object();lingTEXT.setAllowBackspace=function(A){lingTEXT.allowBackspace=A};lingTEXT.onKeyDown=function(A){return(A.keyCode!=8||lingTEXT.allowBackspace)};lingTEXT.insertStrAndFocus=function(B,A){if(lingTEXT.isMSIE){A.focus();insertStr(B,A)}else{insertStr(B,A);A.focus()}};function insertStr(D,C){if(document.selection){var B=document.selection;if(B.type=="Text"){B.clear()}B.createRange().text=D}else{var E=C.selectionStart;var A=C.selectionEnd;C.value=C.value.substr(0,E)+D+C.value.substr(A,C.value.length-A);C.selectionStart=E+D.length;C.selectionEnd=E+D.length}}function insertStrRussian(E,D){if(document.selection){var B=document.selection;if(B.type=="Text"){B.clear()}B.createRange().text=E}else{var F=D.selectionStart;var A=D.selectionEnd;if(F>0){var C=D.value.charCodeAt(F-1);if(C==1075||C==1082){E="\u200B"+E}}D.value=D.value.substr(0,F)+E+D.value.substr(A,D.value.length-A);D.selectionStart=F+E.length;D.selectionEnd=F+E.length}}function mangleKP(C,G,B,E,F){if(B!=null){C=(C)?C:window.event;var A=(C.charCode)?C.charCode:((C.which)?C.which:C.keyCode);if(A==13||A==3){B.call(E,F);return false}}if(lingTEXT.isMac||lingTEXT.isMSIE){return true}var D=G.allowInsertion;G.allowInsertion=true;return D}function mangleKU(A){A=(A)?A:window.event;if(A){var B=A.keyCode;if(B==lingTEXT.shiftKeyCode){lingTEXT.setShift(false)}}}function mangleKD(A,F,B){A=(A)?A:window.event;if(A){var E=A.keyCode;if(E==lingTEXT.shiftKeyCode){lingTEXT.setShift(true)}else{if(lingTEXT.isMac){return true}else{if(E!=17){var D;if(A.ctrlKey){modifier=-1;if(A.shiftKey&&E==49){insertStr(String.fromCharCode(161),F);A.cancelBubble=true;return false}else{for(D=modifiers.length-1;D>=0;D--){if(modifiers[D]==E){modifier=D;if(A.shiftKey){if(D==mGRAVE){modifier=mTILDE}else{if(D==mACUTE){modifier=mDOUBLE_ACUTE}else{if(D==mSLASH){insertStr(String.fromCharCode(191),F);modifier=-1;A.cancelBubble=true;return false}}}}break}}}}else{if(modifier>=0){var C=manglerModKeys[modifier];modifier=-1;if(B==39){for(D=0;D<russianKeys.length;D++){if(russianKeys[D].code==E){if(A.shiftKey){insertStrRussian(russianKeysUpper[D].out,F)}else{insertStrRussian(russianKeys[D].out,F)}F.allowInsertion=false;A.cancelBubble=true;return false}}}else{if(!A.shiftKey&&E>=65&&E<=90){E+=32}for(D=C.length-1;D>=0;D--){if(C[D].code==E){insertStr(String.fromCharCode(C[D].out),F);F.allowInsertion=false;A.cancelBubble=true;return false}}}}}}}}}return true}var mGRAVE=0;var mACUTE=1;var mCIRCUMFLEX=2;var mTILDE=3;var mCOLON=4;var mSLASH=5;var mO=6;var mE=7;var mHYPHEN=8;var mU=9;var mCOMMA=10;var mPERIOD=11;var mCARON=12;var mDOUBLE_ACUTE=13;var modifier=-1;var modText=null;var focus=null;var last=null;var russianKeys=new Array({out:"\u0301\u0435",code:84,mod:mACUTE},{out:"\u0301\u044D",code:222,mod:mACUTE},{out:"\u0301\u044F",code:90,mod:mACUTE},{out:"\u0301\u044E",code:190,mod:mACUTE},{out:"\u0301\u0430",code:70,mod:mACUTE},{out:"\u0301\u043E",code:74,mod:mACUTE},{out:"\u0301\u0438",code:66,mod:mACUTE},{out:"\u0301\u044B",code:83,mod:mACUTE},{out:"\u0301\u0443",code:69,mod:mACUTE});var russianKeysUpper=new Array({out:"\u0301\u0415",code:84,mod:mACUTE},{out:"\u0301\u042D",code:222,mod:mACUTE},{out:"\u0301\u042F",code:90,mod:mACUTE},{out:"\u0301\u042E",code:190,mod:mACUTE},{out:"\u0301\u0410",code:70,mod:mACUTE},{out:"\u0301\u041E",code:74,mod:mACUTE},{out:"\u0301\u0418",code:66,mod:mACUTE},{out:"\u0301\u042B",code:83,mod:mACUTE},{out:"\u0301\u0423",code:69,mod:mACUTE});var manglerKeys=new Array({out:162,code:67,mod:mSLASH},{out:162,code:99,mod:mSLASH},{out:165,code:89,mod:mSLASH},{out:165,code:121,mod:mSLASH},{out:168,code:32,mod:mCOLON},{out:168,code:109,mod:mCOLON},{out:168,code:189,mod:mCOLON},{out:169,code:67,mod:mO},{out:169,code:99,mod:mO},{out:174,code:82,mod:mO},{out:174,code:114,mod:mO},{out:192,code:65,mod:mGRAVE},{out:193,code:65,mod:mACUTE},{out:194,code:65,mod:mCIRCUMFLEX},{out:195,code:65,mod:mTILDE},{out:196,code:65,mod:mCOLON},{out:197,code:65,mod:mO},{out:198,code:65,mod:mE},{out:199,code:67,mod:mCOMMA},{out:200,code:69,mod:mGRAVE},{out:201,code:69,mod:mACUTE},{out:202,code:69,mod:mCIRCUMFLEX},{out:203,code:69,mod:mCOLON},{out:204,code:73,mod:mGRAVE},{out:205,code:73,mod:mACUTE},{out:206,code:73,mod:mCIRCUMFLEX},{out:207,code:73,mod:mCOLON},{out:208,code:68,mod:mACUTE},{out:209,code:78,mod:mTILDE},{out:210,code:79,mod:mGRAVE},{out:211,code:79,mod:mACUTE},{out:212,code:79,mod:mCIRCUMFLEX},{out:213,code:79,mod:mTILDE},{out:214,code:79,mod:mCOLON},{out:216,code:79,mod:mSLASH},{out:217,code:85,mod:mGRAVE},{out:218,code:85,mod:mACUTE},{out:219,code:85,mod:mCIRCUMFLEX},{out:220,code:85,mod:mCOLON},{out:221,code:89,mod:mACUTE},{out:222,code:80,mod:mSLASH},{out:223,code:98,mod:mE},{out:223,code:115,mod:mE},{out:224,code:97,mod:mGRAVE},{out:225,code:97,mod:mACUTE},{out:226,code:97,mod:mCIRCUMFLEX},{out:227,code:97,mod:mTILDE},{out:228,code:97,mod:mCOLON},{out:229,code:97,mod:mO},{out:230,code:97,mod:mE},{out:231,code:99,mod:mCOMMA},{out:232,code:101,mod:mGRAVE},{out:233,code:101,mod:mACUTE},{out:234,code:101,mod:mCIRCUMFLEX},{out:235,code:101,mod:mCOLON},{out:236,code:105,mod:mGRAVE},{out:237,code:105,mod:mACUTE},{out:238,code:105,mod:mCIRCUMFLEX},{out:239,code:105,mod:mCOLON},{out:240,code:100,mod:mACUTE},{out:240,code:100,mod:mSLASH},{out:241,code:110,mod:mTILDE},{out:242,code:111,mod:mGRAVE},{out:243,code:111,mod:mACUTE},{out:244,code:111,mod:mCIRCUMFLEX},{out:245,code:111,mod:mTILDE},{out:246,code:111,mod:mCOLON},{out:248,code:111,mod:mSLASH},{out:249,code:117,mod:mGRAVE},{out:250,code:117,mod:mACUTE},{out:251,code:117,mod:mCIRCUMFLEX},{out:252,code:117,mod:mCOLON},{out:253,code:121,mod:mACUTE},{out:254,code:112,mod:mSLASH},{out:255,code:121,mod:mCOLON},{out:256,code:65,mod:mHYPHEN},{out:257,code:97,mod:mHYPHEN},{out:258,code:65,mod:mU},{out:259,code:97,mod:mU},{out:260,code:65,mod:mCOMMA},{out:261,code:97,mod:mCOMMA},{out:262,code:67,mod:mACUTE},{out:263,code:99,mod:mACUTE},{out:264,code:67,mod:mCIRCUMFLEX},{out:265,code:99,mod:mCIRCUMFLEX},{out:266,code:67,mod:mPERIOD},{out:267,code:99,mod:mPERIOD},{out:268,code:67,mod:mCARON},{out:269,code:99,mod:mCARON},{out:270,code:68,mod:mCARON},{out:271,code:100,mod:mACUTE},{out:271,code:100,mod:mCOMMA},{out:274,code:69,mod:mHYPHEN},{out:275,code:101,mod:mHYPHEN},{out:276,code:69,mod:mU},{out:277,code:101,mod:mU},{out:278,code:69,mod:mPERIOD},{out:279,code:101,mod:mPERIOD},{out:280,code:69,mod:mCOMMA},{out:281,code:101,mod:mCOMMA},{out:282,code:69,mod:mCARON},{out:283,code:101,mod:mCARON},{out:284,code:71,mod:mCIRCUMFLEX},{out:285,code:103,mod:mCIRCUMFLEX},{out:286,code:71,mod:mU},{out:287,code:103,mod:mU},{out:288,code:71,mod:mPERIOD},{out:289,code:103,mod:mPERIOD},{out:290,code:71,mod:mCOMMA},{out:291,code:103,mod:mCOMMA},{out:292,code:72,mod:mCIRCUMFLEX},{out:293,code:104,mod:mCIRCUMFLEX},{out:294,code:72,mod:mHYPHEN},{out:295,code:104,mod:mHYPHEN},{out:296,code:73,mod:mTILDE},{out:297,code:105,mod:mTILDE},{out:298,code:73,mod:mHYPHEN},{out:299,code:105,mod:mHYPHEN},{out:300,code:73,mod:mU},{out:301,code:105,mod:mU},{out:302,code:73,mod:mCOMMA},{out:303,code:105,mod:mCOMMA},{out:304,code:73,mod:mPERIOD},{out:305,code:105,mod:mPERIOD},{out:308,code:74,mod:mCIRCUMFLEX},{out:309,code:106,mod:mCIRCUMFLEX},{out:310,code:75,mod:mCOMMA},{out:311,code:107,mod:mCOMMA},{out:313,code:76,mod:mACUTE},{out:314,code:108,mod:mACUTE},{out:315,code:76,mod:mCOMMA},{out:316,code:108,mod:mCOMMA},{out:317,code:76,mod:mGRAVE},{out:318,code:108,mod:mGRAVE},{out:319,code:76,mod:mPERIOD},{out:320,code:108,mod:mPERIOD},{out:321,code:76,mod:mHYPHEN},{out:321,code:76,mod:mSLASH},{out:322,code:108,mod:mHYPHEN},{out:322,code:108,mod:mSLASH},{out:323,code:78,mod:mACUTE},{out:324,code:110,mod:mACUTE},{out:325,code:78,mod:mCOMMA},{out:326,code:110,mod:mCOMMA},{out:327,code:78,mod:mCARON},{out:328,code:110,mod:mCARON},{out:332,code:79,mod:mHYPHEN},{out:333,code:111,mod:mHYPHEN},{out:334,code:79,mod:mU},{out:335,code:111,mod:mU},{out:336,code:79,mod:mDOUBLE_ACUTE},{out:337,code:111,mod:mDOUBLE_ACUTE},{out:338,code:79,mod:mE},{out:339,code:111,mod:mE},{out:340,code:82,mod:mACUTE},{out:341,code:114,mod:mACUTE},{out:342,code:82,mod:mCOMMA},{out:343,code:114,mod:mCOMMA},{out:344,code:82,mod:mCARON},{out:345,code:114,mod:mCARON},{out:346,code:83,mod:mACUTE},{out:347,code:115,mod:mACUTE},{out:348,code:83,mod:mCIRCUMFLEX},{out:349,code:115,mod:mCIRCUMFLEX},{out:350,code:83,mod:mCOMMA},{out:351,code:115,mod:mCOMMA},{out:352,code:83,mod:mCARON},{out:353,code:115,mod:mCARON},{out:354,code:84,mod:mCOMMA},{out:355,code:116,mod:mCOMMA},{out:356,code:84,mod:mCARON},{out:357,code:116,mod:mACUTE},{out:358,code:84,mod:mHYPHEN},{out:359,code:116,mod:mHYPHEN},{out:360,code:85,mod:mTILDE},{out:361,code:117,mod:mTILDE},{out:362,code:85,mod:mHYPHEN},{out:363,code:117,mod:mHYPHEN},{out:364,code:85,mod:mU},{out:365,code:117,mod:mU},{out:366,code:85,mod:mO},{out:367,code:117,mod:mO},{out:368,code:85,mod:mDOUBLE_ACUTE},{out:369,code:117,mod:mDOUBLE_ACUTE},{out:370,code:85,mod:mCOMMA},{out:371,code:117,mod:mCOMMA},{out:372,code:87,mod:mCIRCUMFLEX},{out:373,code:119,mod:mCIRCUMFLEX},{out:374,code:89,mod:mCIRCUMFLEX},{out:375,code:121,mod:mCIRCUMFLEX},{out:376,code:89,mod:mCOLON},{out:377,code:90,mod:mACUTE},{out:378,code:122,mod:mACUTE},{out:379,code:90,mod:mPERIOD},{out:380,code:122,mod:mPERIOD},{out:381,code:90,mod:mCARON},{out:382,code:122,mod:mCARON},{out:461,code:65,mod:mCARON},{out:462,code:97,mod:mCARON},{out:463,code:73,mod:mCARON},{out:464,code:105,mod:mCARON},{out:465,code:79,mod:mCARON},{out:466,code:111,mod:mCARON},{out:467,code:85,mod:mCARON},{out:468,code:117,mod:mCARON},{out:550,code:65,mod:mPERIOD},{out:551,code:97,mod:mPERIOD},{out:558,code:79,mod:mPERIOD},{out:559,code:111,mod:mPERIOD});var modifiers=new Array();modifiers[mGRAVE]=192;modifiers[mACUTE]=222;modifiers[mCIRCUMFLEX]=54;modifiers[mTILDE]=-1;modifiers[mCOLON]=(lingTEXT.isMSIE?186:59);modifiers[mSLASH]=191;modifiers[mO]=50;modifiers[mE]=55;modifiers[mHYPHEN]=56;modifiers[mU]=52;modifiers[mCOMMA]=188;modifiers[mPERIOD]=190;modifiers[mCARON]=53;modifiers[mDOUBLE_ACUTE]=-1;manglerModKeys=new Array();for(i=0;i<modifiers.length;i++){manglerModKeys[i]=new Array()}for(i=manglerKeys.length-1;i>=0;i--){manglerModKeys[manglerKeys[i].mod][manglerModKeys[manglerKeys[i].mod].length]=manglerKeys[i]}var hex=["%00","%01","%02","%03","%04","%05","%06","%07","%08","%09","%0a","%0b","%0c","%0d","%0e","%0f","%10","%11","%12","%13","%14","%15","%16","%17","%18","%19","%1a","%1b","%1c","%1d","%1e","%1f","%20","%21","%22","%23","%24","%25","%26","%27","%28","%29","%2a","%2b","%2c","%2d","%2e","%2f","%30","%31","%32","%33","%34","%35","%36","%37","%38","%39","%3a","%3b","%3c","%3d","%3e","%3f","%40","%41","%42","%43","%44","%45","%46","%47","%48","%49","%4a","%4b","%4c","%4d","%4e","%4f","%50","%51","%52","%53","%54","%55","%56","%57","%58","%59","%5a","%5b","%5c","%5d","%5e","%5f","%60","%61","%62","%63","%64","%65","%66","%67","%68","%69","%6a","%6b","%6c","%6d","%6e","%6f","%70","%71","%72","%73","%74","%75","%76","%77","%78","%79","%7a","%7b","%7c","%7d","%7e","%7f","%80","%81","%82","%83","%84","%85","%86","%87","%88","%89","%8a","%8b","%8c","%8d","%8e","%8f","%90","%91","%92","%93","%94","%95","%96","%97","%98","%99","%9a","%9b","%9c","%9d","%9e","%9f","%a0","%a1","%a2","%a3","%a4","%a5","%a6","%a7","%a8","%a9","%aa","%ab","%ac","%ad","%ae","%af","%b0","%b1","%b2","%b3","%b4","%b5","%b6","%b7","%b8","%b9","%ba","%bb","%bc","%bd","%be","%bf","%c0","%c1","%c2","%c3","%c4","%c5","%c6","%c7","%c8","%c9","%ca","%cb","%cc","%cd","%ce","%cf","%d0","%d1","%d2","%d3","%d4","%d5","%d6","%d7","%d8","%d9","%da","%db","%dc","%dd","%de","%df","%e0","%e1","%e2","%e3","%e4","%e5","%e6","%e7","%e8","%e9","%ea","%eb","%ec","%ed","%ee","%ef","%f0","%f1","%f2","%f3","%f4","%f5","%f6","%f7","%f8","%f9","%fa","%fb","%fc","%fd","%fe","%ff"];function encodeUTF8(D){if(D==null){return""}var E="";var A=D.length;for(var B=0;B<A;B++){var C=D.charCodeAt(B);if(65<=C&&C<=90){E+=String.fromCharCode(C)}else{if(97<=C&&C<=122){E+=String.fromCharCode(C)}else{if(48<=C&&C<=57){E+=String.fromCharCode(C)}else{if(C==45||C==95||C==46||C==33||C==126||C==42||C==40||C==41){E+=String.fromCharCode(C)}else{if(C<=127){E+=hex[C]}else{if(C<=2047){E+=hex[192|(C>>6)];E+=hex[128|(C&63)]}else{E+=hex[224|(C>>12)];E+=hex[128|((C>>6)&63)];E+=hex[128|(C&63)]}}}}}}}return E}function decodeUTF8(J){if(J==null){return""}var B="";var G=J.length;var A=-1;var I;var D=0;var F,C;var H=-1;for(var E=0;E<G;E++){A=J.charCodeAt(E);switch(A){case 37:A=J.charCodeAt(++E);if(A>=48&&A<=57){F=A-48}else{F=(10+A-97)&15}A=J.charCodeAt(++E);if(A>=48&&A<=57){C=A-48}else{C=(10+A-97)&15}I=(F<<4)|C;break;case 43:I=32;break;default:I=A;break}if((I&192)==128){D=(D<<6)|(I&63);if(--H==0){B+=String.fromCharCode(D)}}else{if((I&128)==0){B+=String.fromCharCode(I)}else{if((I&224)==192){D=I&31;H=1}else{if((I&240)==224){D=I&15;H=2}else{if((I&248)==240){D=I&7;H=3}else{if((I&252)==248){D=I&3;H=4}else{D=I&1;H=5}}}}}}}return B}var singleHex=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];function encodeJS(C){if(C==null){return""}var E="";var A=C.length;var D;for(var B=0;B<A;B++){D=C.charCodeAt(B);if(D<128){E+=C.charAt(B)}else{E+="\\u"+singleHex[(D>>12)&15]+singleHex[(D>>8)&15]+singleHex[(D>>4)&15]+singleHex[D&15]}}return E}var hiliteFrench=[["(adj)","(<i>adj</i>)"],["(adv)","(<i>adv</i>)"],["(f)","(<i>f</i>)"],["(f pl)","(<i>f pl</i>)"],["(m)","(<i>m</i>)"],["(m pl)","(<i>m pl</i>)"],["(n)","(<i>n</i>)"],["(pl)","(<i>pl</i>)"],["+ infinitif","<i>+ infinitif</i>"],["+ inf","<i>+ inf</i>"],["+ adjectif","<i>+ adjectif</i>"],["+ adj","<i>+ adj</i>"],["qqch","<i>qqch</i>"],["qch","<i>qch</i>"],["qqn","<i>qqn</i>"],["qn","<i>qn</i>"],["qq","<i>qq</i>"],["(fam)","(<i>fam</i>)"]];var hiliteGerman=[["(adj)","(<i>adj</i>)"],["(adv)","(<i>adv</i>)"],["(f)","(<i>f</i>)"],["(f pl)","(<i>f pl</i>)"],["(m)","(<i>m</i>)"],["(m pl)","(<i>m pl</i>)"],["(nt)","(<i>nt</i>)"],["(nt pl)","(<i>nt pl</i>)"],["(n)","(<i>n</i>)"],["(pl)","(<i>pl</i>)"],["+ dative","<i>+ dative</i>"],["+ dat","<i>+ dat</i>"]];var hiliteSpanish=[["(adj)","(<i>adj</i>)"],["(adv)","(<i>adv</i>)"],["(f)","(<i>f</i>)"],["(f pl)","(<i>f pl</i>)"],["(m)","(<i>m</i>)"],["(m pl)","(<i>m pl</i>)"],["(n)","(<i>n</i>)"],["(pl)","(<i>pl</i>)"],["+ infinitivo","<i>+ infinitivo</i>"],["+ inf","<i>+ inf</i>"]];function getHiliteText(A,G){var E=null;switch(G){case 16:E=hiliteFrench;break;case 17:E=hiliteGerman;break;case 45:E=hiliteSpanish;break;default:break}if(E!=null){var B=0;do{var H=-1;var I=A.length;for(var C=0;C<E.length;C++){var D=A.indexOf(E[C][0],B);if(D>=0&&D<I){I=D;H=C}}if(I<A.length){var F=E[H][0].length;if(I+F==A.length){if(I==0){A=E[H][1]}else{A=A.substring(0,I)+E[H][1]}break}else{if(I==0){A=E[H][1]+A.substring(I+F,A.length)}else{A=A.substring(0,I)+E[H][1]+A.substring(I+F,A.length)}B=I+E[H][1].length}}}while(I<A.length)}return A}function normalizeFullHalf(D){if(D==null||D.length==0){return D}var A="";for(var B=0;B<D.length;B++){var C=D.charCodeAt(B);if(C>=65281&&C<=65374){C-=65248}else{if(C>=8216&&C<=8219){C=39}else{if(C>=8220&&C<=8223){C=39}else{if(C==12288){C=32}else{if(C==12289){C=44}else{if(C==12290){C=46}}}}}}A+=String.fromCharCode(C)}return A}function normalizePinyin(E){if(E==null||E.length==0){return E}var A="";var D=0;for(var B=0;B<E.length;B++){var C=E.charCodeAt(B);if(C==58){if(D==85||D==117){A+=String.fromCharCode(D+1)}else{A+=String.fromCharCode(D);A+=String.fromCharCode(C)}}else{if(D==85||D==117){A+=String.fromCharCode(D)}if(C!=85&&C!=117){A+=String.fromCharCode(C)}}D=C}if(D==85||D==117){A+=String.fromCharCode(D)}return A}function stripAccentFromCharCode(A){var E=0;var D=accentDictionary.length-1;var B;var C;while(E<=D){B=(E+D)>>1;C=accentDictionary[B].withCode;if(A>C){E=B+1}else{if(A<C){D=B-1}else{return accentDictionary[B].withoutCode}}}return A}function stripAccents(A){var C="";for(var B=0;B<A.length;B++){C+=String.fromCharCode(stripAccentFromCharCode(A.charCodeAt(B)))}return C}function stripPunctuation(A){var D="";for(var B=0;B<A.length;B++){var C=A.charCodeAt(B);if(C!=33&&C!=44&&C!=46&&C!=58&&C!=59&&C!=63&&C!=161&&C!=191&&C!=12289&&C!=12290&&C!=65281&&C!=65311){D+=A.charAt(B)}}D=trim(D);return D}function stripParens(G,F){var E=0;var D;var B="";var A=true;for(var C=0;C<G.length;C++){D=G.charCodeAt(C);if(D==40||D==65288){E++}else{if(D==41||D==65289){E--}else{if(E==0||F==false){if(D==32){if(!A){B+=G.charAt(C);A=true}}else{B+=G.charAt(C);A=false}}}}}return trim(B)}lingTEXT.stripHebrew=function(C){var D="";for(var A=0;A<C.length;A++){var B=C.charCodeAt(A);if(B>=1425&&B<1488&&B!=1470&&B!=1472&&B!=1475&&B!=1478||B==8206||B==8207){continue}D+=C.charAt(A)}return D};lingTEXT.stripArabic=function(C){var D="";for(var A=0;A<C.length;A++){var B=C.charCodeAt(A);if(B==1600||B>=1552&&B<=1557||B>=1611&&B<=1630||B==1648||B>=1750&&B<=1773||B==8206||B==8207){continue}D+=C.charAt(A)}return D};function matches(A,B){if(A==B){return true}var C=B.indexOf("(")+B.indexOf("\uff08");if(C>-2){return matches(A,stripParens(B,false))||matches(A,stripParens(B,true))}return false}var accentDictionary=new Array({withCode:161,withoutCode:33},{withCode:162,withoutCode:99},{withCode:163,withoutCode:76},{withCode:165,withoutCode:89},{withCode:169,withoutCode:99},{withCode:174,withoutCode:82},{withCode:191,withoutCode:63},{withCode:192,withoutCode:65},{withCode:193,withoutCode:65},{withCode:194,withoutCode:65},{withCode:195,withoutCode:65},{withCode:196,withoutCode:65},{withCode:197,withoutCode:65},{withCode:198,withoutCode:65},{withCode:199,withoutCode:67},{withCode:200,withoutCode:69},{withCode:201,withoutCode:69},{withCode:202,withoutCode:69},{withCode:203,withoutCode:69},{withCode:204,withoutCode:73},{withCode:205,withoutCode:73},{withCode:206,withoutCode:73},{withCode:207,withoutCode:73},{withCode:208,withoutCode:68},{withCode:209,withoutCode:78},{withCode:210,withoutCode:79},{withCode:211,withoutCode:79},{withCode:212,withoutCode:79},{withCode:213,withoutCode:79},{withCode:214,withoutCode:79},{withCode:215,withoutCode:88},{withCode:216,withoutCode:79},{withCode:217,withoutCode:85},{withCode:218,withoutCode:85},{withCode:219,withoutCode:85},{withCode:220,withoutCode:85},{withCode:221,withoutCode:89},{withCode:222,withoutCode:80},{withCode:223,withoutCode:66},{withCode:224,withoutCode:97},{withCode:225,withoutCode:97},{withCode:226,withoutCode:97},{withCode:227,withoutCode:97},{withCode:228,withoutCode:97},{withCode:229,withoutCode:97},{withCode:230,withoutCode:97},{withCode:231,withoutCode:99},{withCode:232,withoutCode:101},{withCode:233,withoutCode:101},{withCode:234,withoutCode:101},{withCode:235,withoutCode:101},{withCode:236,withoutCode:105},{withCode:237,withoutCode:105},{withCode:238,withoutCode:105},{withCode:239,withoutCode:105},{withCode:240,withoutCode:100},{withCode:241,withoutCode:110},{withCode:242,withoutCode:111},{withCode:243,withoutCode:111},{withCode:244,withoutCode:111},{withCode:245,withoutCode:111},{withCode:246,withoutCode:111},{withCode:247,withoutCode:47},{withCode:248,withoutCode:111},{withCode:249,withoutCode:117},{withCode:250,withoutCode:117},{withCode:251,withoutCode:117},{withCode:252,withoutCode:117},{withCode:253,withoutCode:121},{withCode:254,withoutCode:112},{withCode:255,withoutCode:121},{withCode:256,withoutCode:65},{withCode:257,withoutCode:97},{withCode:258,withoutCode:65},{withCode:259,withoutCode:97},{withCode:260,withoutCode:65},{withCode:261,withoutCode:97},{withCode:262,withoutCode:67},{withCode:263,withoutCode:99},{withCode:264,withoutCode:67},{withCode:265,withoutCode:99},{withCode:266,withoutCode:67},{withCode:267,withoutCode:99},{withCode:268,withoutCode:67},{withCode:269,withoutCode:99},{withCode:270,withoutCode:68},{withCode:271,withoutCode:100},{withCode:272,withoutCode:68},{withCode:273,withoutCode:100},{withCode:274,withoutCode:69},{withCode:275,withoutCode:101},{withCode:276,withoutCode:69},{withCode:277,withoutCode:101},{withCode:278,withoutCode:69},{withCode:279,withoutCode:101},{withCode:280,withoutCode:69},{withCode:281,withoutCode:101},{withCode:282,withoutCode:69},{withCode:283,withoutCode:101},{withCode:284,withoutCode:71},{withCode:285,withoutCode:103},{withCode:286,withoutCode:71},{withCode:287,withoutCode:103},{withCode:288,withoutCode:71},{withCode:289,withoutCode:103},{withCode:290,withoutCode:71},{withCode:291,withoutCode:103},{withCode:292,withoutCode:72},{withCode:293,withoutCode:104},{withCode:294,withoutCode:72},{withCode:295,withoutCode:104},{withCode:296,withoutCode:73},{withCode:297,withoutCode:105},{withCode:298,withoutCode:73},{withCode:299,withoutCode:105},{withCode:300,withoutCode:73},{withCode:301,withoutCode:105},{withCode:302,withoutCode:73},{withCode:303,withoutCode:105},{withCode:304,withoutCode:73},{withCode:305,withoutCode:105},{withCode:308,withoutCode:74},{withCode:309,withoutCode:106},{withCode:310,withoutCode:75},{withCode:311,withoutCode:107},{withCode:312,withoutCode:75},{withCode:313,withoutCode:76},{withCode:314,withoutCode:108},{withCode:315,withoutCode:76},{withCode:316,withoutCode:108},{withCode:317,withoutCode:76},{withCode:318,withoutCode:108},{withCode:319,withoutCode:76},{withCode:320,withoutCode:108},{withCode:321,withoutCode:76},{withCode:322,withoutCode:108},{withCode:323,withoutCode:78},{withCode:324,withoutCode:110},{withCode:325,withoutCode:78},{withCode:326,withoutCode:110},{withCode:327,withoutCode:78},{withCode:328,withoutCode:110},{withCode:329,withoutCode:110},{withCode:330,withoutCode:78},{withCode:331,withoutCode:110},{withCode:332,withoutCode:79},{withCode:333,withoutCode:111},{withCode:334,withoutCode:79},{withCode:335,withoutCode:111},{withCode:336,withoutCode:79},{withCode:337,withoutCode:111},{withCode:338,withoutCode:79},{withCode:339,withoutCode:111},{withCode:340,withoutCode:82},{withCode:341,withoutCode:114},{withCode:342,withoutCode:82},{withCode:343,withoutCode:114},{withCode:344,withoutCode:82},{withCode:345,withoutCode:114},{withCode:346,withoutCode:83},{withCode:347,withoutCode:115},{withCode:348,withoutCode:83},{withCode:349,withoutCode:115},{withCode:350,withoutCode:83},{withCode:351,withoutCode:115},{withCode:352,withoutCode:83},{withCode:353,withoutCode:115},{withCode:354,withoutCode:84},{withCode:355,withoutCode:116},{withCode:356,withoutCode:84},{withCode:357,withoutCode:116},{withCode:358,withoutCode:84},{withCode:359,withoutCode:116},{withCode:360,withoutCode:85},{withCode:361,withoutCode:117},{withCode:362,withoutCode:85},{withCode:363,withoutCode:117},{withCode:364,withoutCode:85},{withCode:365,withoutCode:117},{withCode:366,withoutCode:85},{withCode:367,withoutCode:117},{withCode:368,withoutCode:85},{withCode:369,withoutCode:117},{withCode:370,withoutCode:85},{withCode:371,withoutCode:117},{withCode:372,withoutCode:87},{withCode:373,withoutCode:119},{withCode:374,withoutCode:89},{withCode:375,withoutCode:121},{withCode:376,withoutCode:89},{withCode:377,withoutCode:90},{withCode:378,withoutCode:122},{withCode:379,withoutCode:90},{withCode:380,withoutCode:122},{withCode:381,withoutCode:90},{withCode:382,withoutCode:122},{withCode:383,withoutCode:102},{withCode:384,withoutCode:98},{withCode:437,withoutCode:90},{withCode:438,withoutCode:122},{withCode:461,withoutCode:65},{withCode:462,withoutCode:97},{withCode:463,withoutCode:73},{withCode:464,withoutCode:105},{withCode:465,withoutCode:79},{withCode:466,withoutCode:111},{withCode:467,withoutCode:85},{withCode:468,withoutCode:117},{withCode:469,withoutCode:85},{withCode:470,withoutCode:117},{withCode:471,withoutCode:85},{withCode:472,withoutCode:117},{withCode:473,withoutCode:85},{withCode:474,withoutCode:117},{withCode:475,withoutCode:85},{withCode:476,withoutCode:117},{withCode:478,withoutCode:65},{withCode:479,withoutCode:97},{withCode:480,withoutCode:65},{withCode:481,withoutCode:97},{withCode:482,withoutCode:65},{withCode:483,withoutCode:97},{withCode:484,withoutCode:71},{withCode:485,withoutCode:103},{withCode:486,withoutCode:71},{withCode:487,withoutCode:103},{withCode:488,withoutCode:75},{withCode:489,withoutCode:107},{withCode:490,withoutCode:79},{withCode:491,withoutCode:111},{withCode:492,withoutCode:79},{withCode:493,withoutCode:111},{withCode:496,withoutCode:106},{withCode:500,withoutCode:71},{withCode:501,withoutCode:103},{withCode:504,withoutCode:78},{withCode:505,withoutCode:110},{withCode:506,withoutCode:65},{withCode:507,withoutCode:97},{withCode:508,withoutCode:65},{withCode:509,withoutCode:97},{withCode:510,withoutCode:79},{withCode:511,withoutCode:111},{withCode:512,withoutCode:65},{withCode:513,withoutCode:97},{withCode:514,withoutCode:65},{withCode:515,withoutCode:97},{withCode:516,withoutCode:69},{withCode:517,withoutCode:101},{withCode:518,withoutCode:69},{withCode:519,withoutCode:101},{withCode:520,withoutCode:73},{withCode:521,withoutCode:105},{withCode:522,withoutCode:73},{withCode:523,withoutCode:105},{withCode:524,withoutCode:79},{withCode:525,withoutCode:111},{withCode:526,withoutCode:79},{withCode:527,withoutCode:111},{withCode:528,withoutCode:82},{withCode:529,withoutCode:114},{withCode:530,withoutCode:82},{withCode:531,withoutCode:114},{withCode:532,withoutCode:85},{withCode:533,withoutCode:117},{withCode:534,withoutCode:85},{withCode:535,withoutCode:117},{withCode:536,withoutCode:83},{withCode:537,withoutCode:115},{withCode:538,withoutCode:84},{withCode:539,withoutCode:116},{withCode:542,withoutCode:72},{withCode:543,withoutCode:104},{withCode:548,withoutCode:90},{withCode:549,withoutCode:122},{withCode:550,withoutCode:65},{withCode:551,withoutCode:97},{withCode:552,withoutCode:69},{withCode:553,withoutCode:101},{withCode:554,withoutCode:79},{withCode:555,withoutCode:111},{withCode:556,withoutCode:79},{withCode:557,withoutCode:111},{withCode:558,withoutCode:79},{withCode:559,withoutCode:111},{withCode:560,withoutCode:79},{withCode:561,withoutCode:111},{withCode:562,withoutCode:89},{withCode:563,withoutCode:121});var pinyin=[["a1","\u0101"],["a2","\xE1"],["a3","\u01CE"],["a4","\xE0"],["a5","a"],["ai1","\u0101i"],["ai2","\xE1i"],["ai3","\u01CEi"],["ai4","\xE0i"],["ai5","ai"],["an1","\u0101n"],["an2","\xE1n"],["an3","\u01CEn"],["an4","\xE0n"],["an5","an"],["ang1","\u0101ng"],["ang2","\xE1ng"],["ang3","\u01CEng"],["ang4","\xE0ng"],["ang5","ang"],["ao1","\u0101o"],["ao2","\xE1o"],["ao3","\u01CEo"],["ao4","\xE0o"],["ao5","ao"],["e1","\u0113"],["e2","\xE9"],["e3","\u011B"],["e4","\xE8"],["e5","e"],["ei1","\u0113i"],["ei2","\xE9i"],["ei3","\u011Bi"],["ei4","\xE8i"],["ei5","ei"],["en1","\u0113n"],["en2","\xE9n"],["en3","\u011Bn"],["en4","\xE8n"],["en5","en"],["eng1","\u0113ng"],["eng2","\xE9ng"],["eng3","\u011Bng"],["eng4","\xE8ng"],["eng5","eng"],["er1","\u0113r"],["er2","\xE9r"],["er3","\u011Br"],["er4","\xE8r"],["er5","er"],["i1","\u012B"],["i2","\xED"],["i3","\u01D0"],["i4","\xEC"],["i5","i"],["ia1","i\u0101"],["ia2","i\xE1"],["ia3","i\u01CE"],["ia4","i\xE0"],["ia5","ia"],["ian1","i\u0101n"],["ian2","i\xE1n"],["ian3","i\u01CEn"],["ian4","i\xE0n"],["ian5","ian"],["iang1","i\u0101ng"],["iang2","i\xE1ng"],["iang3","i\u01CEng"],["iang4","i\xE0ng"],["iao1","i\u0101o"],["iao5","iao"],["iao2","i\xE1o"],["iao3","i\u01CEo"],["iao4","i\xE0o"],["iao5","iao"],["ie1","i\u0113"],["ie2","i\xE9"],["ie3","i\u011B"],["ie4","i\xE8"],["ie5","ie"],["in1","\u012Bn"],["in2","\xEDn"],["in3","\u01D0n"],["in4","\xECn"],["in5","in"],["ing1","\u012Bng"],["ing2","\xEDng"],["ing3","\u01D0ng"],["ing4","\xECng"],["ing5","ing"],["iong1","\u012Bong"],["iong2","\xEDong"],["iong3","\u01D0ong"],["iong4","\xECong"],["iong5","iong"],["iu1","\u012Bu"],["iu2","\xEDu"],["iu3","\u01D0u"],["iu4","\xECu"],["iu5","iu"],["o1","\u014D"],["o2","\xF3"],["o3","\u01D2"],["o4","\xF2"],["o5","o"],["ong1","\u014Dng"],["ong2","\xF3ng"],["ong3","\u01D2ng"],["ong4","\xF2ng"],["ong5","ong"],["ou1","\u014Du"],["ou2","\xF3u"],["ou3","\u01D2u"],["ou4","\xF2u"],["ou5","ou"],["u1","\u016B"],["u2","\xFA"],["u3","\u01D4"],["u4","\xF9"],["u5","u"],["u:1","\u01D6"],["u:2","\u01D8"],["u:3","\u01DA"],["u:4","\u01DC"],["u:5","\xFC"],["u:e1","\xFC\u0113"],["u:e2","\xFC\xE9"],["u:e3","\xFC\u011B"],["u:e4","\xFC\xE8"],["u:e5","\xFCe"],["ua1","u\u0101"],["ua2","u\xE1"],["ua3","u\u01CE"],["ua4","u\xE0"],["ua5","ua"],["uai1","u\u0101i"],["uai2","u\xE1i"],["uai3","u\u01CEi"],["uai4","u\xE0i"],["uai5","uai"],["uan1","u\u0101n"],["uan2","u\xE1n"],["uan3","u\u01CEn"],["uan4","u\xE0n"],["uan5","uan"],["uang1","u\u0101ng"],["uang2","u\xE1ng"],["uang3","u\u01CEng"],["uang4","u\xE0ng"],["uang5","uang"],["ue1","u\u0113"],["ue2","u\xE9"],["ue3","u\u011B"],["ue4","u\xE8"],["ue5","ue"],["ui1","u\u012B"],["ui2","u\xED"],["ui3","u\u01D0"],["ui4","u\xEC"],["ui5","ui"],["un1","\u016Bn"],["un2","\xFAn"],["un3","\u01D4n"],["un4","\xF9n"],["un5","un"],["uo1","u\u014D"],["uo2","u\xF3"],["uo3","u\u01D2"],["uo4","u\xF2"],["uo5","uo"],["v1","\u01D6"],["v2","\u01D8"],["v3","\u01DA"],["v4","\u01DC"],["v5","\xFC"],["ve1","\xFC\u0113"],["ve2","\xFC\xE9"],["ve3","\xFC\u011B"],["ve4","\xFC\xE8"],["ve5","\xFCe"],["\xFC1","\u01D6"],["\xFC2","\u01D8"],["\xFC3","\u01DA"],["\xFC4","\u01DC"],["\xFC5","\xFC"],["\xFCe1","\xFC\u0113"],["\xFCe2","\xFC\xE9"],["\xFCe3","\xFC\u011B"],["\xFCe4","\xFC\xE8"],["\xFCe5","\xFCe"]];function findPinyin(B){for(var A=0;A<pinyin.length;A++){if(pinyin[A][0]==B){return pinyin[A][1]}}return B}function mungePronunciation(F,D){if(D!=8){return F}var C="";if(F==null||F.length==0){return C}var G=0;while(G<F.length){var E=F.charCodeAt(G);if(E==97||E==101||E==105||E==111||E==117||E==118||E==252){var A=G+1;var B=0;while(A<F.length){B=F.charCodeAt(A);if(B==32){break}else{if((B>=49&&B<=53)||(B>=98&&B<=122&&B!=101&&B!=105&&B!=111&&B!=117&&B!=118&&B!=110&&B!=103&&B!=114)){C+=findPinyin(F.substring(G,A+1));break}}A++}if(A==F.length||B==32){C+=F.substring(G,A);G=A}else{G=A+1}}else{C+=String.fromCharCode(E);G++}}return C}lingTEXT.nbsp=function(D){var A="";for(var B=0;B<D.length;B++){var C=D.charCodeAt(B);if(C==32){A+="\xA0"}else{A+=D.charAt(B)}}return A};function strWS(M,K){if(M==null){return""}if(M.length==0){return M}var F="";var B=false;var H=null;if(K){H=""}var J=M.length;var N=0;var D=0;var I=0;for(var G=0;G<J;G++){I++;var A=M.charCodeAt(G);if((65<=A&&A<=90)||(97<=A&&A<=122)||(48<=A&&A<=57)||A==32||A==45||A==95||A==46||A==33||A==126||A==42||A==58||A==47||A==91||A==93||(!B&&A==39)||A==40||A==41){if(A==32){I=0}var L=false;if(K&&A==93){var C=F.length;if(B){var E=H.length;if(E>2&&H.charCodeAt(E-3)==91&&H.charCodeAt(E-2)==47&&(H.charCodeAt(E-1)==65||H.charCodeAt(E-1)==97)){B=false;H=H.substr(0,E-3);F+="<a href='";if(H.substr(0,7)!="http://"&&H.substr(0,8)!="https://"){F.append("http://")}F+=H;F+="' target='_blank' rel='nofollow'>";F+=H;F+="</a>";L=true;H=""}}else{if(C>1&&F.charCodeAt(C-2)==91){var O=F.charCodeAt(C-1);if(O==98||O==66||O==73||O==105||O==85||O==117){F=F.substr(0,C-2);F+="<";F+=String.fromCharCode(O);F+=">";L=true}else{if(O==65||O==97){F=F.substr(0,C-2);B=true;L=true}}}else{if(C>2&&F.charCodeAt(C-3)==91&&F.charCodeAt(C-2)==47){var O=F.charCodeAt(C-1);if(O==66||O==98||O==73||O==105||O==85||O==117){F=F.substr(0,C-3);F+="<";F+="/";F+=String.fromCharCode(O);F+=">";L=true}}}}}if(!L){if(B){H+=String.fromCharCode(A)}else{F+=String.fromCharCode(A)}}}else{if(!B&&A==13){F+="<br>";I=0}else{if(!B&&A==10){I=0;if(N!=13){F+="<br>"}}else{if(A==3000){I=0}if(B){if(A!="<"&&A!=">"&&A!="'"){H.append(A)}}else{F+="&#";F+=A;F+=";"}}}}N=A;if(I>20){F+="<wbr>";I=0}}return F}lingTEXT.strWrite=function(C){var D="";for(var A=0;A<C.length;A++){var B=C.charCodeAt(A);if(B<=126&&B!=34&&B!=38&&B!=39&&B!=60&&B!=62){D+=C.charAt(A)}else{D+="&#"+B+";"}}return D};function strParam(C){var D="";for(var A=0;A<C.length;A++){var B=C.charCodeAt(A);if(B>=32&&B<=126&&B!=34&&B!=38&&B!=39&&B!=60&&B!=62){D+=C.charAt(A)}else{D+="&#"+B+";"}}return D}lingTEXT.accentHelp=new Object();if(typeof (lingLANG)!="undefined"){lingTEXT.accentHelp["id"+lingLANG.AFRIKAANS]={keys:[[["\xEA","\xCA"],["\xEB","\xCB"],["\xF6","\xD6"]]]};lingTEXT.accentHelp["id"+lingLANG.ARABIC]={className:"arabic2",keys:[[["\u0630","&nbsp;\u0651"]],[null,["\u0636","&nbsp;\u064E"],["\u0635","&nbsp;\u064B"],["\u062B","&nbsp;\u064F"],["\u0642","&nbsp;\u064C"],["\u0641","\u0644\u0625"],["\u063A","\u0625"],["\u0639","\u2018"],["\u0647","\u0647"],["\u062E","\u062E"],["\u062D","\u061B"],["\u062C","\u062C"],["\u062F","\u062F"]],[null,["\u0634","&nbsp;\u0650"],["\u0633","&nbsp;\u064D"],["\u064A","]"],["\u0628","["],["\u0644","\u0644\u0623"],["\u0627","\u0623"],["\u062A","\u0640"],["\u0646","\u060C"],["\u0645","/"],["\u0643",":"],["\u0637",'"']],[null,["\u0626","~"],["\u0621","&nbsp;\u0652"],["\u0624","}"],["\u0631","{"],["\u0644\u0627","\u0644\u0622"],["\u0649","\u0622"],["\u0629","\u2019"],["\u0648",","],["\u0632","."],["\u0638","\u061F"]]]};lingTEXT.accentHelp["id"+lingLANG.CZECH]={keys:[[["\xE1","\xC1"],["\u010D","\u010C"],["\u010F","\u010E"],["\xE9","\xC9"],["\u011B","\u011A"],["\xED","\xCD"],["\u0148","\u0147"],["\xF3","\xD3"],["\u0159","\u0158"],["\u0161","\u0160"],["\u0165","\u0164"],["\xFA","\xDA"],["\u016F","\u016E"],["\xFD","\xDD"],["\u017E","\u017D"]]]};lingTEXT.accentHelp["id"+lingLANG.DANISH]={keys:[[["\xE6","\xC6"],["\xF8","\xD8"],["\xE5","\xC5"]]]};lingTEXT.accentHelp["id"+lingLANG.ESTONIAN]={keys:[[["\u0161","\u0160"],["\u017E","\u017D"],["\xF5","\xD5"],["\xE4","\xC4"],["\xF6","\xD6"],["\xFC","\xDC"]]]};lingTEXT.accentHelp["id"+lingLANG.FRENCH]={keys:[[["\xE0","\xC0"],["\xE2","\xC2"],["\xE7","\xC7"],["\xE9","\xC9"],["\xE8","\xC8"],["\xEA","\xCA"],["\xEB","\xCB"],["\xEE","\xCE"],["\xEF","\xCF"],["\xF4","\xD4"],["\xF9","\xD9"],["\xFB","\xDB"],["\xE6","\xC6"],["\u0153","\u0152"]]]};lingTEXT.accentHelp["id"+lingLANG.FINNISH]={keys:[[["\xE5","\xC5"],["\xE4","\xC4"],["\xF6","\xD6"]]]};lingTEXT.accentHelp["id"+lingLANG.GERMAN]={keys:[[["\xE4","\xC4"],["\xF6","\xD6"],["\xFC","\xDC"],["\xDF","SS"]]]};lingTEXT.accentHelp["id"+lingLANG.HEBREW]={className:"hebrew2",keys:[[["\u05B0"],["\u05B1"],["\u05B2"],["\u05B3"],["\u05B4"],["\u05B5"],["\u05B6"],null,["\u05B7"],["\u05B8"],["\u05C2"],["\u05C1"],["\u05B9"],["\u05BC"]],[null,null,["/"],["'"],["\u05E7"],["\u05E8"],["\u05D0"],null,["\u05D8"],["\u05D5"],["\u05DF"],["\u05DD"],["\u05E4"],["["],["]"]],[null,null,["\u05E9"],["\u05D3"],["\u05D2"],["\u05DB"],["\u05E2"],null,["\u05D9"],["\u05D7"],["\u05DC"],["\u05DA"],["\u05E3"],[","]],[null,null,["\u05D6"],["\u05E1"],["\u05D1"],["\u05D4"],["\u05E0"],null,["\u05DE"],["\u05E6"],["\u05EA"],["\u05E5"],["."]]]};lingTEXT.accentHelp["id"+lingLANG.HUNGARIAN]={keys:[[["\xE1","\xC1"],["\xE9","\xC9"],["\xED","\xCD"],["\xF3","\xD3"],["\xF6","\xD6"],["\u0151","\u0150"],["\xFA","\xDA"],["\xFC","\xDC"],["\u0171","\u0170"]]]};lingTEXT.accentHelp["id"+lingLANG.ICELANDIC]={keys:[[["\xE1","\xC1"],["\xF0","\xD0"],["\xE9","\xC9"],["\xED","\xCD"],["\xF3","\xD3"],["\xF6","\xD6"],["\xFA","\xDA"],["\xFD","\xDD"],["\xFE","\xDE"],["\xE6","\xC6"]]]};lingTEXT.accentHelp["id"+lingLANG.IRISH]={keys:[[["\xE1","\xC1"],["\xE9","\xC9"],["\xED","\xCD"],["\xF3","\xD3"],["\xFA","\xDA"]]]};lingTEXT.accentHelp["id"+lingLANG.ITALIAN]={keys:[[["\xE0","\xC0"],["\xE8","\xC8"],["\xE9","\xC9"],["\xEC","\xCC"],["\xF2","\xD2"],["\xF3","\xD3"],["\xF9","\xD9"]]]};lingTEXT.accentHelp["id"+lingLANG.LITHUANIAN]={keys:[[["\u0105","\u0104"],["\u010D","\u010C"],["\u0119","\u0118"],["\u0117","\u0116"],["\u012F","\u012E"],["\u0161","\u0160"],["\u0173","\u0172"],["\u016B","\u016A"],["\u017E","\u017D"]]]};lingTEXT.accentHelp["id"+lingLANG.NORWEGIAN]={keys:[[["\xE6","\xC6"],["\xF8","\xD8"],["\xE5","\xC5"]]]};lingTEXT.accentHelp["id"+lingLANG.PORTUGUESE]={keys:[[["\xE1","\xC1"],["\xE0","\xC0"],["\xE2","\xC2"],["\xE3","\xC3"],["\xE7","\xC7"],["\xE9","\xC9"],["\xEA","\xCA"],["\xED","\xCD"],["\xF3","\xD3"],["\xF4","\xD4"],["\xF5","\xD5"],["\xFA","\xDA"],["\xFC","\xDC"]]]};lingTEXT.accentHelp["id"+lingLANG.ROMANIAN]={keys:[[["\u0103","\u0102"],["\xE2","\xC2"],["\xEE","\xCE"],["\u0219","\u0218"],["\u021B","\u021A"]]]};lingTEXT.accentHelp["id"+lingLANG.RUSSIAN]={keys:[[["\u0451","\u0401"]],[null,["\u0439","\u0419"],["\u0446","\u0426"],["\u0443","\u0423"],["\u043A","\u041A"],["\u0435","\u0415"],["\u043D","\u041D"],["\u0433","\u0413"],["\u0448","\u0428"],["\u0449","\u0429"],["\u0437","\u0417"],["\u0445","\u0425"],["\u044A","\u042A"]],[null,["\u0444","\u0424"],["\u044B","\u042B"],["\u0432","\u0412"],["\u0430","\u0410"],["\u043F","\u041F"],["\u0440","\u0420"],["\u043E","\u041E"],["\u043B","\u041B"],["\u0434","\u0414"],["\u0436","\u0416"],["\u044D","\u042D"]],[null,["\u044F","\u042F"],["\u0447","\u0427"],["\u0441","\u0421"],["\u043C","\u041C"],["\u0438","\u0418"],["\u0442","\u0422"],["\u044C","\u042C"],["\u0431","\u0411"],["\u044E","\u042E"]]]};lingTEXT.accentHelp["id"+lingLANG.SLOVAK]={keys:[[["\xE1","\xC1"],["\xE4","\xC4"],["\u010D","\u010C"],["\u010F","\u010E"],["\xE9","\xC9"],["\xED","\xCD"],["\u013A","\u0139"],["\u013E","\u013D"],["\u0148","\u0147"]],[["\xF3","\xD3"],["\xF4","\xD4"],["\u0155","\u0154"],["\u0161","\u0160"],["\u0165","\u0164"],["\xFA","\xDA"],["\xFD","\xDD"],["\u017E","\u017D"]]]};lingTEXT.accentHelp["id"+lingLANG.SLOVENIAN]={keys:[[["\u010D","\u010C"],["\u0161","\u0160"],["\u017E","\u017D"]]]};lingTEXT.accentHelp["id"+lingLANG.SPANISH]={keys:[[["\xE1","\xC1"],["\xE9","\xC9"],["\xED","\xCD"],["\xF3","\xD3"],["\xFA","\xDA"],["\xFC","\xDC"],["\xF1","\xD1"],["\xA1","\xA1"],["\xBF","\xBF"]]]};lingTEXT.accentHelp["id"+lingLANG.SWEDISH]={keys:[[["\xE5","\xC5"],["\xE4","\xC4"],["\xF6","\xD6"]]]};lingTEXT.accentHelp["id"+lingLANG.TURKISH]={keys:[[["\xE7","\xC7"],["\u011F","\u011E"],["\u0131","I"],["i","\u0130"],["\xF6","\xD6"],["\u015F","\u015E"],["\xFC","\xDC"]]]};lingTEXT.accentHelp["id"+lingLANG.TWI]={keys:[[["\u025B","\u0190"],["\u0254","\u0186"]]]};lingTEXT.accentHelp["id"+lingLANG.MALTESE]={keys:[[["\u010B","\u010A"],["\u0121","\u0120"],["\u0127","\u0126"],["\u017C","\u017B"]]]}}lingTEXT.doInsertAccent=function(B,A){var C=B.indexOf("&nbsp;");if(C==0){B=B.substring(C+6)}A=xGetElementById(A);lingTEXT.insertStrAndFocus(B,A)};lingTEXT.setShift=function(F){for(divID in lingTEXT.helpDiv){var D=xGetElementById(divID);if(D&&D.ling){var C=F?1:0;var B=lingTEXT.accentHelp["id"+D.ling.languageID].keys;for(var E=0;E<D.rows.length;E++){for(var A=0;A<D.rows[E].cells.length;A++){if(B[E][A]&&B[E][A].length>C){D.rows[E].cells[A].innerHTML=B[E][A][C]}}}}}};lingTEXT.doShowKeys=function(D){showElement(D);var C=xGetElementById(D).ling;var B="<a class='nowrap";if(C.aClassName){B+=" "+C.aClassName}B+="' tabindex='0' href='javascript:lingTEXT.doHideKeys(\""+D+"\");void 0;'>"+lingRESOURCES.write("Common.hideKeys","hide keys")+"</a>";xGetElementById(D+"_hide").innerHTML=B;try{xGetElementById(C.txtID).focus()}catch(A){}xDeleteCookie("hideAccentKeys","/")};lingTEXT.doHideKeys=function(D){hideElement(D);var C=xGetElementById(D).ling;var B="<a class='nowrap";if(C.aClassName){B+=" "+C.aClassName}B+="' tabindex='0' href='javascript:lingTEXT.doShowKeys(\""+D+"\");void 0;'>"+lingRESOURCES.write("Common.showKeys","show keys")+"</a>";xGetElementById(D+"_hide").innerHTML=B;xGetElementById(C.txtID).focus();var A=new Date();A.setDate(A.getDate()+parseInt(103));xSetCookie("hideAccentKeys","true",A,"/")};lingTEXT.showAccentHelp=function(B,A,G,C,H,L){lingTEXT.helpDiv[C]=true;removeAllNodes(B);var F=lingTEXT.accentHelp["id"+A];if(!F){return }var N=F.keys;var M=document.createElement("table");M.style.display="none";M.style.visibility="hidden";M.cellPadding="0px";M.cellSpacing="2px";var I=F.className;if(I){M.className=I;M.style.direction="ltr";M.style.color="white"}else{M.style.fontSize="14px";M.style.color="white"}M.id=C;M.ling=new Object();M.ling.languageID=A;M.ling.txtID=G;M.ling.aClassName=L;if(!H){H=""}for(var O=0;O<N.length;O++){var J=M.insertRow(M.rows.length);for(var D=0;D<N[O].length;D++){var E=J.insertCell(J.cells.length);E.height="25px";E.align="center";if(N[O][D]!=null){E.width="25px";E.style.backgroundColor="#105090";E.style.color="white";E.ling=new Object();E.ling.str=N[O][D];E.ling.txtID=G;E.onclick=function(P){P=(P)?P:window.event;lingTEXT.doInsertAccent(this.ling.str[P.shiftKey?1:0],this.ling.txtID)};E.style.cursor="pointer";E.innerHTML=N[O][D][0]}else{E.width="4px"}}}var K=document.createElement("div");K.id=C+"_hide";K.className="text11";xGetElementById(B).appendChild(M);xGetElementById(B).appendChild(K);showElement(B);if(xGetCookie("hideAccentKeys")=="true"){lingTEXT.doHideKeys(C)}else{lingTEXT.doShowKeys(C)}};lingTEXT.onNumericKP=function(C,B,D){C=(C)?C:event;var A=(C.charCode)?C.charCode:((C.keyCode)?C.keyCode:((C.which)?C.which:0));if(A==13||A==3){if(B){return B.call(null,D)}return true}if(C.charCode==0){return true}return(A<=31||(A>=48&&A<=57))};lingTEXT.onFloatKP=function(C,B,D){C=(C)?C:event;var A=(C.charCode)?C.charCode:((C.keyCode)?C.keyCode:((C.which)?C.which:0));if(A==13||A==3){if(B){return B.call(null,D)}return true}if(C.charCode==0){return true}return(A<=31||(A>=48&&A<=57)||A==46||A==44)};lingTEXT.toHex=function(C){var A="";for(var B=0;B<C.length;B++){if(A.length>0){A+=" "}var D=C.charCodeAt(B);A+=hex[D>>8].substring(1)+hex[D&255].substring(1)}return A};var lingWRITE=new Object();lingWRITE.TAG_NAMES_IN=["B","I","U","A","AUDIO","LIST","READ","DRILL","VERB","WORD","H1","H2","H3","CENTER","IMG","VIDEO","YOUTUBE","BUTTON","TABLE","TR","TD","BLOCKQUOTE","DIV","BR","P","LESSON","WC:CLOZE","WC:HINT","WC:CHOICE","SPAN","UL","OL","LI","SUP","SUB","STRIKE","EMBED","INPUT","WBR","HR","WC:CLOZEEDIT","STRONG","EM"];lingWRITE.TAG_NAMES_OUT=["b","i","u","a","a","a","a","a","a","a","h1","h2","h3","center","img","video","youtube","td></tr></table","table","tr","td","blockquote","div","br","p","a","wc:cloze","span","wc:choice","span","ul","ol","li","sup","sub","strike","embed","input","wbr","hr","wc:clozeEdit","strong","em"];lingWRITE.TAG_NAMES_OUT_EDITOR_TO_WC=["b","i","u","a","audio","a","a","a","a","a","h1","h2","h3","center","img","video","youtube","td></tr></table","table","tr","td","blockquote","div","br","p","a","wc:cloze","span","wc:choice","span","ul","ol","li","sup","sub","strike","embed","input","wbr","hr","wc:clozeEdit","strong","em"];lingWRITE.TAG_BOLD=0;lingWRITE.TAG_ITALICS=1;lingWRITE.TAG_UNDERLINE=2;lingWRITE.TAG_A=3;lingWRITE.TAG_AUDIO=4;lingWRITE.TAG_LIST=5;lingWRITE.TAG_READ=6;lingWRITE.TAG_DRILL=7;lingWRITE.TAG_VERB=8;lingWRITE.TAG_WORD=9;lingWRITE.TAG_H1=10;lingWRITE.TAG_H2=11;lingWRITE.TAG_H3=12;lingWRITE.TAG_CENTER=13;lingWRITE.TAG_IMG=14;lingWRITE.TAG_VIDEO=15;lingWRITE.TAG_YOUTUBE=16;lingWRITE.TAG_BUTTON=17;lingWRITE.TAG_TABLE=18;lingWRITE.TAG_TR=19;lingWRITE.TAG_TD=20;lingWRITE.TAG_BLOCKQUOTE=21;lingWRITE.TAG_DIV=22;lingWRITE.TAG_BR=23;lingWRITE.TAG_P=24;lingWRITE.TAG_LESSON=25;lingWRITE.TAG_CLOZE=26;lingWRITE.TAG_HINT=27;lingWRITE.TAG_CHOICE=28;lingWRITE.TAG_SPAN=29;lingWRITE.TAG_UL=30;lingWRITE.TAG_OL=31;lingWRITE.TAG_LI=32;lingWRITE.TAG_SUP=33;lingWRITE.TAG_SUB=34;lingWRITE.TAG_STRIKE=35;lingWRITE.TAG_EMBED=36;lingWRITE.TAG_INPUT=37;lingWRITE.TAG_WBR=38;lingWRITE.TAG_HR=39;lingWRITE.TAG_CLOZEEDIT=40;lingWRITE.TAG_STRONG=41;lingWRITE.TAG_EM=42;lingWRITE.ENTITY_AMP="&#038;";lingWRITE.ENTITY_LT="&#060;";lingWRITE.ENTITY_GT="&#062;";lingWRITE.ENTITY_NBSP="&#160;";lingWRITE.BR="<br>";lingWRITE.getTagTokens=function(J,H,G){var C="";var I=false;var A=0;var F=H;var E=false;var D=false;do{var B=J.charCodeAt(F);if(J.charAt(F)=="`"){B=39}if(I){if(B==A){I=false;G[G.length]=C;C=""}else{if(B==9||B==13||B==10){D=true}else{C+=String.fromCharCode(B)}}}else{switch(B){case 60:D=true;break;case 62:if(C.length>0){G[G.length]=C;C=""}E=true;break;case 32:case 13:case 10:case 9:if(C.length>0){G[G.length]=C;C=""}break;case 47:case 61:if(C.length>0){G[G.length]=C;C=""}G[G.length]=String.fromCharCode(B);break;case 34:case 39:if(C.length>0){G[G.length]=C;C=""}I=true;A=B;break;default:C+=String.fromCharCode(B);break}}F++}while(!D&&!E&&F<J.length);return E?F:-1};lingWRITE.popLink=function(G,C,B,A){var E;for(E=C.length-1;E>=0;E--){var F=C[E];if(F>=lingWRITE.TAG_A&&F<=lingWRITE.TAG_WORD){break}}if(E<0){return }var D;do{D=C.pop();G.str+="</"+G.tagNamesOut[E]+">"}while(D<lingWRITE.TAG_A||D>lingWRITE.TAG_WORD);if(A.length>0){G.str+=" <span class='disabled'>[<a href='"+A.str+"'>"+B.str+"]</span>";A.str="";B.str=""}};lingWRITE.popTags=function(H,A,D,G,C,B){if(D.length==0){return false}if(G>=0){for(var F=D.length-1;F>=0&&D[F]!=G;F--){}if(F<0){return false}}var E;do{E=D.pop();H.str+="</"+H.tagNamesOut[E]+">";if(E>=lingWRITE.TAG_A&&E<=lingWRITE.TAG_WORD&&B.length>0){H.str+=" <span class='disabled'>[<a href='"+B.str+"'>"+C.str+"</a>]</span>";B.str="";C.str=""}else{if(E==lingWRITE.TAG_TD||E==lingWRITE.TAG_LI){A.suppressBreak=true;A.okToUseNbsp=false}else{if(E==lingWRITE.TAG_TABLE||E==lingWRITE.TAG_UL||E==lingWRITE.TAG_OL){A.suppressBreak=A.suppressAllBreaks||false;A.okToUseNbsp=true}}}}while(D.length>0&&E!=G);return true};lingWRITE.getAttribute=function(C,A){for(var B=0;B<C.length-2;B++){if(C[B].toUpperCase()==A&&C[B+1]=="="){return C[B+2]}}return null};lingWRITE.openBlock=function(G,A,D,F,C,B){switch(F){case lingWRITE.TAG_TD:for(var E=D.length-1;E>=0;E--){switch(D[E]){case lingWRITE.TAG_TABLE:G.str+="<tr>";D[D.length]=lingWRITE.TAG_TR;return ;case lingWRITE.TAG_TR:return ;case lingWRITE.TAG_TD:if(!lingWRITE.popTags(G,A,D,lingWRITE.TAG_TD,C,B)){G.str+="&lt;/"+G.tagNamesOut[lingWRITE.TAG_TD]+"&gt;"}return }}G.str+="<table>";D.push(lingWRITE.TAG_TABLE);G.str+="<tr>";D.push(lingWRITE.TAG_TR);return ;case lingWRITE.TAG_TR:for(var E=D.length-1;E>=0;E--){switch(D[E]){case lingWRITE.TAG_TABLE:return ;case lingWRITE.TAG_TR:if(!lingWRITE.popTags(G,A,D,lingWRITE.TAG_TR,C,B)){G.str+="&lt;/"+G.tagNamesOut[lingWRITE.TAG_TR]+"&gt;"}return ;case lingWRITE.TAG_TD:if(!lingWRITE.popTags(G,A,D,lingWRITE.TAG_TD,C,B)){G.str+="&lt;/"+G.tagNamesOut[lingWRITE.TAG_TD]+"&gt;"}if(!lingWRITE.popTags(G,A,D,lingWRITE.TAG_TR,C,B)){G.str+="&lt;/"+G.tagNamesOut[lingWRITE.TAG_TR]+"&gt;"}return }}G.str+="<table>";D.push(lingWRITE.TAG_TABLE);return }};lingWRITE.getTag=function(B,C){var A=B.indexOf(">",C+1);if(A<0){return B.substring(C)}else{return B.substring(C,A+1)}};lingWRITE.getIntStyle=function(D,B){if(!D){return 0}var A=D.split(";");for(var C=0;C<A.length;C++){var G=A[C].split(":");if(G.length==2&&trim(G[0]).toUpperCase()==B){var E=0;try{E=parseInt(G[1].replace(/[^0-9]/g,""))}catch(F){}return E}}return 0};lingWRITE.getTextSpan=function(x,l,U,AB,h,AD,q,W,K,t){var AJ=false;var d;AB.str="";if(x.charCodeAt(l)==60){var m=[];d=lingWRITE.getTagTokens(x,l+1,m);var R=null;var n=false;var I=0;if(d!=-1&&m.length>0){R=m[0];if(R=="/"){if(m.length>1){n=true;R=m[1];I=1}else{R=null}}}if(R!=null){var X=R.toUpperCase();if(X=="TABLE"){var C=lingWRITE.getAttribute(m,"NAME");if(null!=C&&C.length>=16&&C.substring(0,16)=="WcMultipleChoice"){X="WC:CHOICE";AB.hideTRTD=true}}if(X=="INPUT"){var C=lingWRITE.getAttribute(m,"NAME");if(null!=C&&C.length>=6&&C.substring(0,6)=="WcHint"){X="WC:HINT"}}var AE=-1;for(var AG=0;AG<lingWRITE.TAG_NAMES_IN.length;AG++){if(X==lingWRITE.TAG_NAMES_IN[AG]){AE=AG;if(AE==lingWRITE.TAG_A&&AB.prefs&&AB.prefs.editorToWC&&h.length&&h[h.length-1]==lingWRITE.TAG_AUDIO){AE=lingWRITE.TAG_AUDIO}break}}if(AE==-1){R=null}else{if(n){if(AB.hideTRTD&&AE==lingWRITE.TAG_TABLE){AB.hideTRTD=false}else{if(!AB.hideTRTD||AE!=lingWRITE.TAG_TR&&AE!=lingWRITE.TAG_TD&&AE!=lingWRITE.TAG_DIV){if(!lingWRITE.popTags(AB,U,h,AE,AD,q)&&AE!=lingWRITE.TAG_EMBED&&AE!=lingWRITE.TAG_A&&AE!=lingWRITE.TAG_TEXTAREA){if(AE==lingWRITE.TAG_UNDERLINE||AE==lingWRITE.TAG_BOLD||AE==lingWRITE.TAG_ITALICS||AE==lingWRITE.TAG_STRONG||AE==lingWRITE.TAG_EM){AB.str+="&lt;/"+R+"&gt;"}}}}}else{var p;var v,AL,u;if(!AB.prefs||!AB.prefs["tag"+AE]||!AB.prefs["tag"+AE].call(AB.prefs.caller,AB,m,AB.prefs)){switch(AE){case lingWRITE.TAG_WBR:case lingWRITE.TAG_HR:case lingWRITE.TAG_BR:AB.str+="<"+AB.tagNamesOut[AE]+">";break;case lingWRITE.TAG_P:case lingWRITE.TAG_H1:case lingWRITE.TAG_H2:case lingWRITE.TAG_H3:AB.str+="<"+AB.tagNamesOut[AE];p=lingWRITE.getAttribute(m,"CLASS");if(p!=null){AB.str+=" class='"+p+"'"}p=lingWRITE.getAttribute(m,"STYLE");if(p!=null){AB.str+=" style='"+p+"'"}AB.str+=">";h.push(AE);break;case lingWRITE.TAG_CENTER:case lingWRITE.TAG_BOLD:case lingWRITE.TAG_ITALICS:case lingWRITE.TAG_UNDERLINE:case lingWRITE.TAG_SUB:case lingWRITE.TAG_SUP:case lingWRITE.TAG_STRIKE:case lingWRITE.TAG_STRONG:case lingWRITE.TAG_EM:AB.str+="<"+AB.tagNamesOut[AE]+">";h.push(AE);break;case lingWRITE.TAG_SPAN:AB.str+="<"+AB.tagNamesOut[AE];p=lingWRITE.getAttribute(m,"CLASS");if(p!=null){AB.str+=" class='"+p+"'"}p=lingWRITE.getAttribute(m,"ID");if(p!=null){AB.str+=" id='"+p+"'"}p=lingWRITE.getAttribute(m,"ONMOUSEOUT");if(p!=null){AB.str+=" onmouseout='"+p+"'"}p=lingWRITE.getAttribute(m,"ONMOUSEOVER");if(p!=null){AB.str+=" onmouseover='"+p+"'"}p=lingWRITE.getAttribute(m,"STYLE");if(p!=null){if(p.indexOf("line-height:1.3em")<1){p="line-height:1.3em;"+p}AB.str+=" style='"+p+"'"}AB.str+=">";h.push(AE);break;case lingWRITE.TAG_IMG:var A=lingWRITE.getAttribute(m,"WIDTH");var E=lingWRITE.getAttribute(m,"HEIGHT");if(A==null){A=lingWRITE.getIntStyle(lingWRITE.getAttribute(m,"STYLE"),"WIDTH")}else{try{A=parseInt(A)}catch(AI){}}if(E==null){E=lingWRITE.getIntStyle(lingWRITE.getAttribute(m,"STYLE"),"HEIGHT")}else{try{E=parseInt(E)}catch(AI){}}p=lingWRITE.getAttribute(m,"ID");if(p!=null){if(AB.prefs&&AB.prefs.editorToWC){AB.str+="<img id='"+p.replace(/[^0-9]/g,"")+"'";var Q=lingWRITE.getAttribute(m,"ALT");if(Q){AB.str+=" alt='"+Q+"'"}var M=lingWRITE.getAttribute(m,"STYLE");if(M){AB.str+=" style='"+M+"'"}if(A){AB.str+=" width='"+A+"'"}if(E){AB.str+=" height='"+E+"'"}var O=lingWRITE.getAttribute(m,"BORDER");if(O){AB.str+=" border='"+O+"'"}AB.str+="/>"}else{if(t){AB.str+="&lt;picture&gt;"}else{if(!A||!E){AB.str+="<img src='"+AB.srcPrefix+"Asset.do?itemID="+p+"&type="+lingCOMMON.TYPE_IMAGE+"' onload='lingUTIL.onImageLoad(this,40,40)' border='0'/>"}else{AB.str+="<img src='"+AB.srcPrefix+"Asset.do?itemID="+p+"&type="+lingCOMMON.TYPE_IMAGE+"' width='"+A+"' height='"+E+"' border='0'/>"}}}}else{var c=lingWRITE.getAttribute(m,"SRC");var V=c.split("/");var z=null;var B=null;for(var AG=0;AG<V.length;AG++){if(V[AG]){if(V[AG].length>=8&&V[AG].substring(0,8)=="Asset.do"){if(AB.prefs&&AB.prefs.editorToWC){var l=V[AG].indexOf("itemID=");if(l>=0){var F=V[AG].indexOf("&",l);B=(F>l?V[AG].substring(l,F):V[AG].substring(l)).replace(/[^0-9]/g,"")}}else{z=V[AG]}break}else{if(V[AG].length>=9&&V[AG].substring(0,9)=="fckeditor"){z=c.substring(c.indexOf("fckeditor/"));break}}}}if(!z&&!B){z=AB.srcPrefix+"img/"+V[V.length-1]}if(z||B){if(z){AB.str+="<img src='"+z+"'"}else{if(B){AB.str+="<img id='"+B+"'"}}var Q=lingWRITE.getAttribute(m,"ALT");if(Q){AB.str+=" alt='"+Q+"'"}var M=lingWRITE.getAttribute(m,"STYLE");if(M){AB.str+=" style='"+M+"'"}if(A){AB.str+=" width='"+A+"'"}if(E){AB.str+=" height='"+E+"'"}var O=lingWRITE.getAttribute(m,"BORDER");if(O){AB.str+=" border='"+O+"'"}AB.str+="/>"}}break;case lingWRITE.TAG_YOUTUBE:p=lingWRITE.getAttribute(m,"ID");if(p!=null){var A=lingWRITE.getAttribute(m,"WIDTH");var E=lingWRITE.getAttribute(m,"HEIGHT");if(A==null){A=425}else{try{A=parseInt(A)}catch(AI){}}if(E==null){E=350}else{try{E=parseInt(E)}catch(AI){}}if(t){AB.str+="&lt;video&gt;"}else{AB.str+="<object width='"+A+"' height='"+E+"'><param name='movie' value='http://www.youtube.com/v/"+p+"'></param><param name='wmode' value='transparent'></param><embed src='http://www.youtube.com/v/"+p+"' type='application/x-shockwave-flash' wmode='transparent' width='"+A+"' height='"+E+"'></embed></object>"}}break;case lingWRITE.TAG_CLOZE:if(AB.prefs&&AB.prefs.editorToWC){AB.str+=lingWRITE.getTag(x,l)}else{p=lingWRITE.getAttribute(m,"HIDDEN");if(p==null||p.toUpperCase()!="TRUE"){AB.str+="<input type='text'";p=lingWRITE.getAttribute(m,"SIZE");if(p!=null){AB.str+=" size='"+p+"'"}p=lingWRITE.getAttribute(m,"READONLY");if(p!=null){AB.str+=" readonly='"+p+"'"}p=lingWRITE.getAttribute(m,"DISABLED");if(p!=null){AB.str+=" disabled='"+p+"'"}p=lingWRITE.getAttribute(m,"VALUE");if(p!=null){AB.str+=' value="'+strParam(p)+'"'}p=lingWRITE.getAttribute(m,"ANSWERS");if(p!=null){AB.str+=' answers="'+strParam(p)+'"'}AB.str+=">"}}break;case lingWRITE.TAG_CLOZEEDIT:var P=lingWRITE.getAttribute(m,"ANSWERS");p=lingWRITE.getAttribute(m,"HIDDEN");if(P!=null&&P.length>0&&(p==null||p.toUpperCase()!="TRUE")){var T="WcAnswerBox"+Math.floor(Math.random()*1000000);AB.str+="<span id='div"+T+"'><input type='text' answers='"+P+"' onkeypress='javascript:return false;' onmouseup='javascript:lingWRITE.openEditBlank(\""+T+"\");return false;' id='"+T+"'";p=lingWRITE.getAttribute(m,"SIZE");if(p!=null){AB.str+=" size='"+p+"'"}p=lingWRITE.getAttribute(m,"READONLY");if(p!=null){AB.str+=" readonly='"+p+"'"}p=lingWRITE.getAttribute(m,"DISABLED");if(p!=null){AB.str+=" disabled='"+p+"'"}p=lingWRITE.getAttribute(m,"VALUE");if(p!=null){AB.str+=' value="'+strParam(p)+'"'}AB.str+=">";AB.str+="<input type='button' class='header12' value='Edit' onmousedown='lingWRITE.openEditBlank(\""+T+"\")' /><input type='button' class='header12' value='Remove' onmousedown='lingWRITE.removeBlank(\""+T+"\");' /></span>"}break;case lingWRITE.TAG_EMBED:if(AB.prefs&&AB.prefs.editorToWC){var A=lingWRITE.getAttribute(m,"WIDTH");var E=lingWRITE.getAttribute(m,"HEIGHT");if(A==null){A=0}else{try{A=parseInt(A)}catch(AI){}}if(E==null){E=0}else{try{E=parseInt(E)}catch(AI){}}var AC=lingWRITE.getAttribute(m,"FLASHVARS");if(AC&&AC.length>=21&&AC.substring(0,21)=="url=GetFLVPlaylist.do"){var f=AC.indexOf("itemID=");var S=AC.indexOf("&",f);var w=(S>0?AC.substring(f,S):AC.substring(f)).replace(/[^0-9]/g,"");AB.str+="<video id='"+w+"'";if(A&&E){AB.str+=" width='"+A+"' height='"+E+"'"}AB.str+="/>"}else{var c=lingWRITE.getAttribute(m,"SRC");if(c&&c.length>25&&c.substring(0,25)=="http://www.youtube.com/v/"){var G=c.substring(25).replace(/[^0-9a-zA-Z]/g,"");AB.str+="<youtube id='"+G+"'";if(A&&E){AB.str+=" width='"+A+"' height='"+E+"'"}AB.str+="/>"}}}break;case lingWRITE.TAG_INPUT:var c=lingWRITE.getAttribute(m,"NAME");if(c&&c.length>=11&&c.substring(0,11)=="WcAnswerBox"){AB.str+=('<input type="text" style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" maxlength="255" ');AB.str+=(' id="'+c+'" ');p=lingWRITE.getAttribute(m,"SIZE");if(p!=null){AB.str+=(' size="'+p+'"')}p=lingWRITE.getAttribute(m,"READONLY");if(p!=null){AB.str+=(' readonly="'+p+'"')}p=lingWRITE.getAttribute(m,"ANSWERS");if(p!=null){AB.str+=(' answers="'+p+'"')}p=lingWRITE.getAttribute(m,"DISABLED");if(p!=null){AB.str+=(' disabled="'+p+'"')}p=lingWRITE.getAttribute(m,"VALUE");if(p!=null){AB.str+=(' value="'+strParam(p)+'"')}AB.str+="/>";break}break;case lingWRITE.TAG_TEXTAREA:var c=lingWRITE.getAttribute(m,"NAME");if(c&&c.length>=11&&c.substring(0,11)=="WcAnswerBox"){AB.str+=('<textarea style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" ');AB.str+=(' id="'+c+'" ');p=lingWRITE.getAttribute(m,"ROWS");if(p!=null){AB.str+=(' rows="'+p+'"')}p=lingWRITE.getAttribute(m,"COLS");if(p!=null){AB.str+=(' cols="'+p+'"')}p=lingWRITE.getAttribute(m,"ANSWERS");if(p!=null){AB.str+=(' answers="'+p+'"')}p=lingWRITE.getAttribute(m,"VALUE");if(p!=null){AB.str+=(' value="'+strParam(p)+'"')}AB.str+=("></textarea>");break}break;case lingWRITE.TAG_CHOICE:var AH=lingWRITE.getAttribute(m,"CORRECT");var P=lingWRITE.getAttribute(m,"ANSWERS");if(AH!=null&&P!=null){AB.str+="<table name='WcMultipleChoice"+Math.floor(Math.random()*1000000)+"' cellspacing='0' cellpadding='0'";AB.str+=' correct="'+AH+'"';AB.str+=' answers="'+P+'"';p=lingWRITE.getAttribute(m,"WIDTH");if(p!=null){AB.str+=' width="'+p+'"'}p=lingWRITE.getAttribute(m,"ALIGN");if(p!=null){AB.str+=' align="'+p+'"'}p=lingWRITE.getAttribute(m,"CLASS");if(p!=null){AB.str+=' class="'+p+'"'}p=lingWRITE.getAttribute(m,"VERTICAL");var Z=p!=null&&p.toLowerCase()=="true";p=lingWRITE.getAttribute(m,"DISABLED");if(null==p){p=lingWRITE.getAttribute(m,"TDISABLED")}var o=p!=null&&p.toLowerCase()=="true";AB.str+="><tr>";var g=new Array();AH=trim(decodeUTF8(AH));var Y=AH;var V=P.split(";");for(var AG=0;AG<V.length;AG++){p=trim(decodeUTF8(V[AG]));if(p.length>0){g.push(p);if(AH==p){AH=null}}}if(AH!=null){g.push(AH)}else{p=lingWRITE.getAttribute(m,"RANDOM");if(p==null||p.toUpperCase()=="TRUE"){for(var AG=0;AG<g.length*2;AG++){var AM=Math.floor(Math.random()*g.length);var AK=Math.floor(Math.random()*g.length);var J=g[AM];g[AM]=g[AK];g[AK]=J}}}for(var AG=0;AG<g.length;AG++){if(Z&&AG>0){AB.str+="</tr><tr>"}if(o){if(g[AG]==Y){AB.str+='<td class="padLeft5 padRight5" width="'+Math.floor(100/g.length)+'%" valign="top"><div class="navboxYellow center orange">'+g[AG]+"</div></td>"}else{AB.str+='<td class="padLeft5 padRight5" width="'+Math.floor(100/g.length)+'%" valign=\'top\'><div class="navbox center blue">'+g[AG]+"</div></td>"}}else{AB.str+='<td class="padLeft5 padRight5" width="'+Math.floor(100/g.length)+'%" valign="top"><div class="navbox center blue" onmouseover="lingCOMMON.navboxOnOver(this)" onmouseout="lingCOMMON.navboxOnOut(this)">'+g[AG]+"</div></td>"}}AB.str+="</tr></table>"}break;case lingWRITE.TAG_VIDEO:p=lingWRITE.getAttribute(m,"ID");if(p!=null){var A=lingWRITE.getAttribute(m,"WIDTH");var E=lingWRITE.getAttribute(m,"HEIGHT");if(A==null){A=320}else{try{A=parseInt(A)}catch(AI){}}if(E==null){E=320}else{try{E=parseInt(E)}catch(AI){}}if(t){AB.str+="&lt;video&gt;"}else{var H=lingUTIL.buildAbsoluteUrl("GetFLVPlaylist.do?itemID="+p+"&r="+Math.random());AB.str+="<div align='center'>";AB.str+="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+A+"' height='"+E+"' id='WCMoviePlayer' align='middle'>";AB.str+="<param name='allowScriptAccess' value='sameDomain' />";AB.str+="<param name='allowFullScreen' value='false' />";AB.str+="<param name='movie' value='"+lingUTIL.buildAbsoluteUrl("applets/WCMoviePlayer.swf")+"' />";AB.str+="<param name='quality' value='high' />";AB.str+="<param name='bgcolor' value='#ffffff' />";AB.str+="<param name='FlashVars' value='url="+H+"'/>";AB.str+="<embed src='"+lingUTIL.buildAbsoluteUrl("applets/WCMoviePlayer.swf")+"' quality='high' bgcolor='#ffffff' FlashVars='url="+H+"' width='"+A+"' height='"+E+"' name='WCMoviePlayer' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";AB.str+="</object>";AB.str+="</div>"}}break;case lingWRITE.TAG_TABLE:case lingWRITE.TAG_TR:case lingWRITE.TAG_TD:case lingWRITE.TAG_BLOCKQUOTE:case lingWRITE.TAG_UL:case lingWRITE.TAG_OL:case lingWRITE.TAG_LI:case lingWRITE.TAG_DIV:if(AB.hideTRTD&&(AE==lingWRITE.TAG_TD||AE==lingWRITE.TAG_TR||AE==lingWRITE.TAG_DIV)){break}lingWRITE.popLink(AB,h,AD,q);lingWRITE.openBlock(AB,U,h,AE,AD,q);AB.str+="<"+AB.tagNamesOut[AE];p=lingWRITE.getAttribute(m,"WIDTH");if(p!=null){AB.str+=" width='"+p+"'"}p=lingWRITE.getAttribute(m,"STYLE");if(p!=null){AB.str+=" style='"+p+"'"}p=lingWRITE.getAttribute(m,"ALIGN");if(p!=null){AB.str+=" align='"+p+"'"}p=lingWRITE.getAttribute(m,"CLASS");if(p!=null){if(AE==lingWRITE.TAG_UL||AE==lingWRITE.TAG_OL||AE==lingWRITE.TAG_LI){AB.str+=" class='"+p+" nomargin' "}else{AB.str+=" class='"+p+"'"}}else{if(AE==lingWRITE.TAG_UL||AE==lingWRITE.TAG_OL||AE==lingWRITE.TAG_LI){AB.str+=" class='nomargin' "}}switch(AE){case lingWRITE.TAG_UL:case lingWRITE.TAG_OL:U.suppressBreak=true;U.okToUseNbsp=false;break;case lingWRITE.TAG_LI:U.suppressBreak=U.suppressAllBreaks||false;U.okToUseNbsp=true;break;case lingWRITE.TAG_TD:U.suppressBreak=U.suppressAllBreaks||false;U.okToUseNbsp=true;p=lingWRITE.getAttribute(m,"VALIGN");if(p!=null){AB.str+=" valign='"+p+"'"}p=lingWRITE.getAttribute(m,"COLSPAN");if(p!=null){AB.str+=" colspan='"+p+"'"}p=lingWRITE.getAttribute(m,"ROWSPAN");if(p!=null){AB.str+=" rowspan='"+p+"'"}p=lingWRITE.getAttribute(m,"BORDER");if(p!=null){AB.str+=" border='"+p+"'"}p=lingWRITE.getAttribute(m,"BGCOLOR");if(p!=null){AB.str+=" bgcolor='"+p+"'"}p=lingWRITE.getAttribute(m,"STYLE");if(p!=null){AB.str+=" style='"+p+"'"}break;case lingWRITE.TAG_TABLE:U.suppressBreak=true;U.okToUseNbsp=false;p=lingWRITE.getAttribute(m,"CELLPADDING");if(p!=null){AB.str+=" cellpadding='"+p+"'"}p=lingWRITE.getAttribute(m,"CELLSPACING");if(p!=null){AB.str+=" cellspacing='"+p+"'"}p=lingWRITE.getAttribute(m,"BORDER");if(p!=null){AB.str+=" border='"+p+"'"}p=lingWRITE.getAttribute(m,"BGCOLOR");if(p!=null){AB.str+=" bgcolor='"+p+"'"}break}AB.str+=">";h.push(AE);break;default:lingWRITE.popLink(AB,h,AD,q);switch(AE){case lingWRITE.TAG_A:p=lingWRITE.getAttribute(m,"HREF");if(p!=null){p=trim(p);if(p.length>=25&&p.substring(0,25)=="javascript:playItemAudio("){if(AB.prefs&&AB.prefs.editorToWC){var s=p.substring(0,p.indexOf(")")).replace(/[^0-9]/g,"");AB.str+="<audio id='"+s+"'>";h.push(lingWRITE.TAG_AUDIO)}else{AB.str+=("<a href='"+p+"'><img border='0' src='img/audioSmall.gif'/></a>")}break}if(p.length>=8&&(p.substring(0,7)=="http://"||p.substring(0,8)=="https://"||p.indexOf("Asset.do")>0)){AB.str+="<a rel='nofollow' href='"+p+"' target='_blank'>";h.push(AE);AD.str=p.substring(p.indexOf("//")+2,p.length);var D=AD.str.indexOf("?");if(D>=0){AD.str=AD.str.substring(0,D)}var AA=AD.str.indexOf("/");if(AA>=0){AD.str=AD.str.substring(0,AA)}q.str=p}else{if(p.substring(0,4)=="www."||(p.indexOf(".")>0&&p.indexOf(":")==-1)){AB.str+="<a rel='nofollow' href='http://"+p+"' target='_blank'>";h.push(AE);AD.str=p;var D=AD.str.indexOf("?");if(D>=0){AD.str=AD.str.substring(0,D)}var AA=AD.str.indexOf("/");if(AA>=0){AD.str=AD.str.substring(0,AA)}q.str=p}}}break;case lingWRITE.TAG_BUTTON:p=lingWRITE.getAttribute(m,"HREF");if(p!=null){p=trim(p);if(p.substring(0,26)=="www.wordchamp.com/"){p=p.substring(26)}AB.str+="<table align='center'><tr><td class='navboxYellow header13 orange' style='padding:6px' onmouseover='lingCOMMON.navboxYellowOnOver(this)' onmouseout='lingCOMMON.navboxYellowOnOut(this)' onclick='location.href=\""+p+"\"'>";h.push(AE);AD.str=p.substring(p.indexOf("//")+2,p.length);var D=AD.str.indexOf("?");if(D>=0){AD.str=AD.str.substring(0,D)}var AA=AD.str.indexOf("/");if(AA>=0){AD.str=AD.str.substring(0,AA)}q.str=p}break;case lingWRITE.TAG_LESSON:p=lingWRITE.getAttribute(m,"ID");if(p!=null){AB.str+="<a href='Lesson.do?lessonID="+p;p=lingWRITE.getAttribute(m,"ACTIVITYID");if(p!=null){AB.str+="&activityID="+p}AB.str+="'>";h.push(AE)}break;case lingWRITE.TAG_HINT:var r=lingWRITE.getAttribute(m,"ID");if(r!=null){AB.str+="<span id='showHint"+r+"'>";AB.str+="<input type='button' value=\"";p=lingWRITE.getAttribute(m,"VALUE");if(p!=null){AB.str+=strParam(decodeUTF8(p))}else{AB.str+="Show Hint"}AB.str+='"';AB.str+=" onclick='hideElement(\"showHint"+r+'");showElement("hideHint'+r+"\")'></span>";AB.str+="<span id='hideHint"+r+"' style='visibility:hidden;display:none'>";AB.str+="<input type='button' value=\"";var y=lingWRITE.getAttribute(m,"HIDEVALUE");if(y!=null){AB.str+=strParam(decodeUTF8(y))}else{AB.str+="Hide Hint"}AB.str+='"';AB.str+=" onclick='hideElement(\"hideHint"+r+'");showElement("showHint'+r+"\")'> ";var L=lingWRITE.getAttribute(m,"MESSAGE");if(L!=null){AB.str+=strWS(decodeUTF8(L),false)+"</span>"}else{h.push(AE)}}break;case lingWRITE.TAG_AUDIO:p=lingWRITE.getAttribute(m,"ID");if(p!=null){AB.str+="<a href='javascript:playItemAudio(\""+p+"\");void 0;'>";h.push(AE)}break;case lingWRITE.TAG_LIST:p=lingWRITE.getAttribute(m,"ID");if(p!=null){AB.str+="<a href='List.do?packItemID="+p+"'>";h.push(AE)}break;case lingWRITE.TAG_READ:AB.str+="<a href='#'>";h.push(AE);break;case lingWRITE.TAG_DRILL:AB.str+="<a href='#'>";h.push(AE);break;case lingWRITE.TAG_VERB:p=lingWRITE.getAttribute(m,"TEXT");if(p!=null){AB.str+="<a href='Verb.do?text="+encodeUTF8(decodeUTF8(p));p=lingWRITE.getAttribute(m,"LID");var AF=parseInt(p);AB.str+="&languageID="+AF;p=lingWRITE.getAttribute(m,"PID");if(p!=null){u=parseInt(p);AB.str+="&pronunciationID="+u}AB.str+="'>";h.push(AE)}break;case lingWRITE.TAG_WORD:p=lingWRITE.getAttribute(m,"TEXT");if(p!=null){AB.str+="<a href='Word.do?text="+encodeUTF8(decodeUTF8(p));p=lingWRITE.getAttribute(m,"LID");var AF=parseInt(p);AB.str+="&languageID="+AF;p=lingWRITE.getAttribute(m,"PID");if(p!=null){u=parseInt(p);AB.str+="&pronunciationID="+u}AB.str+="'>";h.push(AE)}break}break}}}}}if(R==null){AB.str=""}}else{var G;var N=0;for(d=l;d<x.length&&(G=x.charCodeAt(d))!=60&&W.ref<K;d++){switch(G){case 62:AB.str+=lingWRITE.ENTITY_GT;break;case 38:AB.str+=lingWRITE.ENTITY_AMP;break;case 13:if(!U.suppressBreak){AB.str+=lingWRITE.BR}break;case 10:if(!U.suppressBreak&&N!=13){AB.str+=lingWRITE.BR}break;case 32:case 9:if(!U.okToUseNbsp||!AJ){AB.str+=" "}else{AB.str+=lingWRITE.ENTITY_NBSP}AJ=!AJ;W.ref++;break;default:if(!AB.hideTRTD){if(G>32&&(G<128||G>=160)){AB.str+=String.fromCharCode(G)}else{AB.str+="&#"+G+";"}}W.ref++;break}if(G!=32){AJ=false}N=G}}return d};lingWRITE.text=function(N,B,J,F,O){if(N==null||N.length==0){return""}if(!B){B=1000000}var E="";var L={str:"",hideTRTD:false,prefs:O,tagNamesOut:(!O||!O.editorToWC?lingWRITE.TAG_NAMES_OUT:lingWRITE.TAG_NAMES_OUT_EDITOR_TO_WC),srcPrefix:(!O||!O.wcToEditor?"":"/")};var A={str:""};var M={str:""};var K=N.toUpperCase();var H=K.indexOf("<P")>=0||K.indexOf("<BR")>=0||K.indexOf("<TABLE")>=0||K.indexOf("<DIV")>=0;var C={suppressAllBreaks:H,suppressBreak:H,okToUseNbsp:true};var D=new Array();var I=0;var G={ref:0};N=lingWRITE.decodeEntities(N);while(I!=-1&&I<N.length&&G.ref<B){I=lingWRITE.getTextSpan(N,I,C,L,D,A,M,G,B,F);E+=L.str}L.str="";lingWRITE.popTags(L,C,D,-1,A,M);E+=L.str;if(J&&I<N.length){E+=J}return E};lingWRITE.editorToWC=function(A){return lingWRITE.text(A,0,null,false,{editorToWC:true})};lingWRITE.wcToEditor=function(A){return lingWRITE.text(A,0,null,false,{wcToEditor:true})};lingWRITE.verbs=function(H,E,D,A){var G="";if(E!=null&&E.length>0){G+="<i>"+lingRESOURCES.write("Common.verbChart","conjugation chart:")+"</i>&nbsp; ";for(var C=0;C<E.length;C++){var F=E[C];if(C>0){G+=", "}G+="<a href='Verb.do?text="+F.getAttribute("T")+"&languageID="+H;var B=parseInt(F.getAttribute("P"));if(B!=0){G+="&pronunciationID="+B}G+="'";if(D!=null){G+=" class='"+D+"'"}G+=">"+strWS(decodeUTF8(F.getAttribute("T")))+"</a>"}if(A!=null&&(H==lingLANG.FRENCH||H==lingLANG.GERMAN||H==lingLANG.ITALIAN||H==lingLANG.SPANISH)){G+="<div><i>"+lingRESOURCES.write("Common.practiceVerb","practice conjugations:")+"</i>&nbsp; ";for(C=0;C<E.length;C++){var F=E[C];if(C>0){G+=", "}G+="<a href='Drill.do?kind="+lingCOMMON.DRILL_TYPE_VERB+"&wordID="+F.getAttribute("W");var B=parseInt(F.getAttribute("P"));if(B!=0){G+="&pronunciationID="+B}G+="&fromID="+H+"&returnURL="+encodeUTF8(A)+"'";if(D!=null){G+=" class='"+D+"'"}G+=">"+strWS(decodeUTF8(F.getAttribute("T")))+"</a>"}G+="</div>"}}return G};lingWRITE.normalize=function(A){A=A.replace("\xdf","ss");return A};lingWRITE.composeName=function(C,B,A){if(C==null||C.length==0){return B}else{if(B==null||B.length==0){return C}}switch(A){case lingLANG.CHINESE_CANTONESE:case lingLANG.CHINESE_MANDARIN:case lingLANG.HUNGARIAN:case lingLANG.JAPANESE:case lingLANG.KOREAN:return B+" "+C;default:return C+" "+B}};lingWRITE.entityPairs=[{name:"amp",code:38},{name:"lt",code:60},{name:"gt",code:62},{name:"nbsp",code:160},{name:"iexcl",code:161},{name:"cent",code:162},{name:"pound",code:163},{name:"curren",code:164},{name:"yen",code:165},{name:"brvbar",code:166},{name:"sect",code:167},{name:"uml",code:168},{name:"copy",code:169},{name:"ordf",code:170},{name:"laquo",code:171},{name:"not",code:172},{name:"shy",code:173},{name:"reg",code:174},{name:"macr",code:175},{name:"deg",code:176},{name:"plusmn",code:177},{name:"sup2",code:178},{name:"sup3",code:179},{name:"acute",code:180},{name:"micro",code:181},{name:"para",code:182},{name:"middot",code:183},{name:"cedil",code:184},{name:"sup1",code:185},{name:"ordm",code:186},{name:"raquo",code:187},{name:"frac14",code:188},{name:"frac12",code:189},{name:"frac34",code:190},{name:"iquest",code:191},{name:"Agrave",code:192},{name:"Aacute",code:193},{name:"Acirc",code:194},{name:"Atilde",code:195},{name:"Auml",code:196},{name:"Aring",code:197},{name:"AElig",code:198},{name:"Ccedil",code:199},{name:"Egrave",code:200},{name:"Eacute",code:201},{name:"Ecirc",code:202},{name:"Euml",code:203},{name:"Igrave",code:204},{name:"Iacute",code:205},{name:"Icirc",code:206},{name:"Iuml",code:207},{name:"ETH",code:208},{name:"Ntilde",code:209},{name:"Ograve",code:210},{name:"Oacute",code:211},{name:"Ocirc",code:212},{name:"Otilde",code:213},{name:"Ouml",code:214},{name:"Oslash",code:216},{name:"Ugrave",code:217},{name:"Uacute",code:218},{name:"Ucirc",code:219},{name:"Uuml",code:220},{name:"Yacute",code:221},{name:"THORN",code:222},{name:"szlig",code:223},{name:"agrave",code:224},{name:"aacute",code:225},{name:"acirc",code:226},{name:"atilde",code:227},{name:"auml",code:228},{name:"aring",code:229},{name:"aelig",code:230},{name:"ccedil",code:231},{name:"egrave",code:232},{name:"eacute",code:233},{name:"ecirc",code:234},{name:"euml",code:235},{name:"igrave",code:236},{name:"iacute",code:237},{name:"icirc",code:238},{name:"iuml",code:239},{name:"eth",code:240},{name:"ntilde",code:241},{name:"ograve",code:242},{name:"oacute",code:243},{name:"ocirc",code:244},{name:"otilde",code:245},{name:"ouml",code:246},{name:"oslash",code:248},{name:"ugrave",code:249},{name:"uacute",code:250},{name:"ucirc",code:251},{name:"uuml",code:252},{name:"yacute",code:253},{name:"thorn",code:254},{name:"yuml",code:255},{name:"OElig",code:338},{name:"oelig",code:339},{name:"Scaron",code:352},{name:"scaron",code:353},{name:"Yuml",code:376},{name:"Alpha",code:913},{name:"Beta",code:914},{name:"Gamma",code:915},{name:"Delta",code:916},{name:"Epsilon",code:917},{name:"Zeta",code:918},{name:"Eta",code:919},{name:"Theta",code:920},{name:"Iota",code:921},{name:"Kappa",code:922},{name:"Lambda",code:923},{name:"Mu",code:924},{name:"Nu",code:925},{name:"Xi",code:926},{name:"Omicron",code:927},{name:"Pi",code:928},{name:"Rho",code:929},{name:"Sigma",code:931},{name:"Tau",code:932},{name:"Upsilon",code:933},{name:"Phi",code:934},{name:"Chi",code:935},{name:"Psi",code:936},{name:"Omega",code:937},{name:"alpha",code:945},{name:"beta",code:946},{name:"gamma",code:947},{name:"delta",code:948},{name:"epsilon",code:949},{name:"zeta",code:950},{name:"eta",code:951},{name:"theta",code:952},{name:"iota",code:953},{name:"kappa",code:954},{name:"lambda",code:955},{name:"mu",code:956},{name:"nu",code:957},{name:"xi",code:958},{name:"omicron",code:959},{name:"pi",code:960},{name:"rho",code:961},{name:"sigmaf",code:962},{name:"sigma",code:963},{name:"tau",code:964},{name:"upsilon",code:965},{name:"phi",code:966},{name:"chi",code:967},{name:"psi",code:968},{name:"omega",code:969},{name:"thetasym",code:977},{name:"upsih",code:978},{name:"piv",code:982},{name:"lArr",code:8656},{name:"uArr",code:8657},{name:"rArr",code:8658},{name:"dArr",code:8659},{name:"lrm",code:8206},{name:"rlm",code:8207},{name:"ldquo",code:8220},{name:"rdquo",code:8221},{name:"sbquo",code:8218},{name:"bdquo",code:8222},{name:"rsquo",code:8217},{name:"lsquo",code:8216},{name:"lsaquo",code:8249},{name:"ndash",code:8211},{name:"mdash",code:8212},{name:"rsaquo",code:8250}];lingWRITE.removeChars=[8226,149,183,46,44,34];lingWRITE.decodeEntities=function(H){var D,E;var A;var F;for(var G=H.indexOf("&");G!=-1;G=H.indexOf("&",G+1)){if(H.length<G+2){return H}if(H.charCodeAt(G+1)==35){A=H.charCodeAt(G+2);var B=(A==120||A==88);for(E=G+2;E<H.length;E++){A=H.charAt(E).toUpperCase().charCodeAt(0);if((A<48||A>57)&&(E>G+2||A!=88)&&(!B||A<65||A>70)){break}}if(B){F="0"+H.substring(G+2,E)}else{F=H.substring(G+2,E)}A=parseInt(F);if(A==156){A=339}else{if(A==140){A=338}}if(E<H.length){H=H.substring(0,G)+String.fromCharCode(A)+H.substring(E+1)}else{H=H.substring(0,G)+String.fromCharCode(A)}}else{E=H.indexOf(";",G);if(E==-1){var I=H.substring(G+1);for(D=0;D<lingWRITE.entityPairs.length;D++){if(I.substring(0,lingWRITE.entityPairs[D].name.length)==lingWRITE.entityPairs[D].name){E=G+lingWRITE.entityPairs[D].name.length;if(E<H.length){H=H.substring(0,G)+String.fromCharCode(lingWRITE.entityPairs[D].code)+H.substring(E+1)}else{H=H.substring(0,G)+String.fromCharCode(lingWRITE.entityPairs[D].code)}break}}return H}else{var C=H.substring(G+1,E);for(D=0;D<lingWRITE.entityPairs.length;D++){if(C==lingWRITE.entityPairs[D].name){if(E<H.length){H=H.substring(0,G)+String.fromCharCode(lingWRITE.entityPairs[D].code)+H.substring(E+1)}else{H=H.substring(0,G)+String.fromCharCode(lingWRITE.entityPairs[D].code)}break}}if(D==lingWRITE.entityPairs.length){if(E<H.length){H=H.substring(0,G)+" "+H.substring(E+1)}else{H=H.substring(0,G)+" "}}}}}return H};lingWRITE.processWithBreaks=function(E){var D=0;var A="";for(var B=0;B<E.length;B++){D++;var C=E.charCodeAt(B);if(C==32){A+=String.fromCharCode(C);D=0}else{if((C>=41&&C<=47)||C==58||C==59||C==33||C==93){A+=String.fromCharCode(C);if(D>15){A+="<wbr>";D=0}}else{if(C!=34&&C!=38&&C!=60&&C!=62){A+=String.fromCharCode(C)}else{A+="&#";A+=C;A+=";"}}}if(D>20){A+="<wbr>";D=0}}return A};lingWRITE.strWBR=function(A){if(A==null){return""}if(A.length==0){return A}return lingWRITE.processWithBreaks(A)};lingWRITE.stripHTML=function(A){return A.replace(/<[^>]*>/g,"")};var lingNET=new Object();lingNET.STATE_UNINITIALIZED=0;lingNET.STATE_LOADING=1;lingNET.STATE_LOADED=2;lingNET.STATE_INTERACTIVE=3;lingNET.STATE_COMPLETE=4;lingNET.ContentLoader=function(B,C,E,A,D,F){this.url=B;this.req=null;this.onload=E;this.onerror=(A)?A:this.defaultError;this.data=D;this.loadXMLDoc(B,C,F)};lingNET.ContentLoader.prototype={loadXMLDoc:function(B,D,E){if(window.XMLHttpRequest){this.req=new XMLHttpRequest()}else{if(window.ActiveXObject){this.req=new ActiveXObject("Microsoft.XMLHTTP")}}if(this.req){try{var A=this;this.req.onreadystatechange=function(){A.onReadyState.call(A)};if(E){this.req.open(E,B,true)}else{this.req.open("GET",B,true)}if(D){this.req.setRequestHeader("Content-Type","text/xml")}this.req.send(D)}catch(C){this.onerror.call(this)}}},onReadyState:function(){var C=this.req;var B=C.readyState;if(B==lingNET.STATE_COMPLETE){var A=C.status;if(A==200||A==0){if(this.onload){this.onload.call(this)}}else{this.onerror.call(this)}}},abort:function(){this.req.abort()},defaultError:function(){alert(lingRESOURCES.write("Common.xmlError","An error occurred while trying to send this command!"))}};var lingHELP=new Object();lingHELP.DISPLAY_RIGHT=1;lingHELP.DISPLAY_BOTTOM=2;lingHELP.DISPLAY_LEFT=3;lingHELP.DISPLAY_BOTTOM_LEFT=4;lingHELP.DISPLAY_BOTTOM_CENTER=8;lingHELP.DESC_WIDTH=200;lingHELP.DIACRITICS=0;lingHELP.PINYIN=1;lingHELP.isSafari=(navigator.userAgent.indexOf("Safari")!=-1);lingHELP.returnOnFocus=null;lingHELP.hideAccentsTO=null;lingHELP.hideAll=function(B){div=xGetElementById(B);for(var A=0;A<div.childNodes.length;A++){hideElement(div.childNodes[A])}};lingHELP.Display=function(F,B,K,G,A,H,J,D,E,I,C){this.width=(C?C:lingHELP.DESC_WIDTH);this.borderWidth=A;this.oldborder=J;this.bordercolor=H;this.innercolor=D?D:"#ffffcc";this.where=E?E:lingHELP.DISPLAY_RIGHT;this.hideOnClick=G;this.deltaX=5;this.deltaY=0;if(F){this.addObj(F)}this.desc=document.createElement("div");this.desc.className="text11";this.desc.innerHTML=B==null?K:"<span class='header12'>"+B+"</span><br>"+K;this.desc.align="left";this.desc.style.verticalAlign="top";this.desc.style.position="absolute";this.desc.style.visibility="hidden";this.desc.style.display="none";this.desc.style.padding="0px";this.desc.style.border=A+"px solid "+H;this.desc.style.zIndex="65535";this.desc.style.direction="ltr";this.desc.style.backgroundColor=this.innercolor;xGetElementById(I?I:"lingDescs").appendChild(this.desc)};lingHELP.Display.prototype={addObj:function(A){A=xGetElementById(A);A.lingDisplay=this;A.onmouseover=function(){this.lingDisplay.onMouseOver(this)};A.onmouseout=function(){this.lingDisplay.onMouseOut(this)};if(this.hideOnClick){A.onclick=function(){this.lingDisplay.onMouseOut(this)}}},onMouseOver:function(B){if(typeof (lingHELP)=="undefined"){return }B.style.border=this.borderWidth+"px solid "+this.bordercolor;if(this.where==lingHELP.DISPLAY_RIGHT){xMoveTo(this.desc,xWidth(B)+xPageX(B)+this.deltaX,xPageY(B)+this.deltaY)}else{if(this.where==lingHELP.DISPLAY_BOTTOM){var A=xPageX(B);var C=xClientWidth()+xScrollLeft();if(A+this.width>C){A=C-this.width-this.deltaX}xMoveTo(this.desc,A,xHeight(B)+xPageY(B)+5+this.deltaY)}else{if(this.where==lingHELP.DISPLAY_LEFT){var A=xPageX(B)-this.width-this.deltaX;if(A<0){A=0}xMoveTo(this.desc,A,xPageY(B)+this.deltaY)}}}xWidth(this.desc,this.width);showElement(this.desc)},onMouseOut:function(A){if(typeof (hideElement)=="undefined"){return }if(this.oldborder==null){A.style.border=""}else{A.style.border=this.borderWidth+"px solid "+this.oldborder}hideElement(this.desc)}};lingHELP.showImage=function(B,A,C,D){if(!A){A=512}if(!C){C=378}if(!D){D=".gif"}window.open("img/"+B+D,B,"width="+A+",height="+C+",status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")};lingHELP.rateImage=function(B,A){var C=xGetElementById(B);if(C){var D=xGetElementById(C.parentObj).lingImage;var E=trim(xGetElementById(B+"Comment").value);D.ratingCB.call(D.ratingData,A,E,D)}};lingHELP.onOutCB=function(C){var A=xGetElementById(C);var B=A.parentObj.lingImage.onOutCB;if(B){B.call(A.parentObj.lingImage.onOutData)}else{hideElement(C)}};lingHELP.Image=function(F,A,C,M,I,B,H,G,D,E,J,L){this.borderWidth=B;this.bordercolor=H;this.where=G?G:lingHELP.DISPLAY_BOTTOM;var K=lingUTIL.getScaledDimensions({width:C,height:M},300,250);this.imageWidth=K.width;this.imageHeight=K.height;this.deltaX=0;this.deltaY=0;this.ratingCB=D;this.ratingData=E;this.onOutCB=J;this.onOutData=L;this.src=A;if(F){this.addObj(F)}this.table=document.createElement("table");this.table.cellPadding="0";this.table.cellSpacing="0";this.table.className="squeeze";this.table.style.position="absolute";this.table.style.visibility="hidden";this.table.style.display="none";this.table.style.zIndex="65535";this.table.style.backgroundColor="white";this.table.id="tblImage"+Math.random();this.table.hideTimer=null;this.table.onmouseover=function(){if(this.hideTimer){clearTimeout(this.hideTimer);this.hideTimer=null}};this.table.onmouseout=function(){this.hideTimer=setTimeout("lingHELP.onOutCB('"+this.id+"')",10)};if(F){F=xGetElementById(F);this.table.parentObj=F}xGetElementById(I?I:"lingDescs").appendChild(this.table)};lingHELP.Image.prototype={addObj:function(A){A=xGetElementById(A);A.lingImage=this;A.onmouseover=function(){this.lingImage.onMouseOver(this)};A.onmouseout=function(){this.lingImage.onMouseOut(this)};A.style.cursor="pointer";if(this.table){this.table.parentObj=A}},onMouseOver:function(C){if(typeof (lingHELP)=="undefined"){return }removeAllRows(this.table);showElement(this.table);if(this.where==lingHELP.DISPLAY_BOTTOM_CENTER){var A=xPageX(C)+(xWidth(C)-this.imageWidth)/2;var E=xClientWidth();if(A+this.imageWidth/2>E){A=E-this.imageWidth/2-this.deltaX}xMoveTo(this.table,A,xPageY(C)+xHeight(C))}else{if(this.where==lingHELP.DISPLAY_LEFT){var A=xPageX(C)-this.imageWidth;xMoveTo(this.table,A,xPageY(C))}else{if(this.where==lingHELP.DISPLAY_BOTTOM_LEFT){var A=xPageX(C)+xWidth(C)-this.imageWidth;xMoveTo(this.table,A,xHeight(C)+xPageY(C)+this.deltaY)}else{if(this.where==lingHELP.DISPLAY_RIGHT){xMoveTo(this.table,xWidth(C)+xPageX(C)+this.deltaX,xPageY(C)+this.deltaY)}else{if(this.where==lingHELP.DISPLAY_BOTTOM){var A=xPageX(C);var E=xClientWidth();if(A+this.imageWidth>E){A=E-this.imageWidth-this.deltaX}xMoveTo(this.table,A,xHeight(C)+xPageY(C)+5+this.deltaY)}}}}}this.table.style.border="2px solid "+this.bordercolor;var B=this.table.insertRow(0);var F=B.insertCell(0);F.align="center";F.innerHTML="<img src='"+this.src+"' width='"+this.imageWidth+"' height='"+this.imageHeight+"'/>";F.childNodes[0].lingImage=this;if(this.ratingCB&&this.ratingData){B=this.table.insertRow(this.table.rows.length);B.id="trImageRate";F=B.insertCell(0);F.align="center";var D="<table cellpadding='0' cellspacing='0' width='100%' align='center' style='margin:4px'>";D+="<tr><td class='header12 center' colspan='3'>"+lingRESOURCES.write("Help.isGoodPicture","Is this a good picture for this word?")+"</td></tr>";D+="<tr><td class='header12 center'><a href='javascript:lingHELP.rateImage(\""+this.table.id+"\",0);void 0;'>"+lingRESOURCES.write("Help.Yes","Yes")+"</a></td><td class='header12 center'><a href='javascript:lingHELP.rateImage(\""+this.table.id+"\",1);void 0;'>"+lingRESOURCES.write("Help.No","No")+"</a></td><td class='header12 center'><a class='red' href='javascript:lingHELP.rateImage(\""+this.table.id+"\",2);void 0;'>"+lingRESOURCES.write("Help.ReportThis","Report This")+"</a></td></tr>";D+="<tr><td class='squeeze' colspan='3'><img src='img/bigSpacer.gif' width='160' height='3'></td></tr>";D+="<tr><td class='header12 center' colspan='3'>"+lingRESOURCES.write("Help.comment","Comment:")+" <input type='text' size='15' id='"+this.table.id+"Comment'></td></tr>";D+="</table>";F.innerHTML=D}},onMouseOut:function(A){this.table.hideTimer=setTimeout("lingHELP.onOutCB('"+this.table.id+"')",100)},close:function(A){hideElement(this.table.id)}};var lingCOMMON=new Object();lingCOMMON.DB_NAME="WORDCHAMP";lingCOMMON.searchName="txtSearch";lingCOMMON.httpBase="";lingCOMMON.userID=0;lingCOMMON.SHOW_LOGIN=0;lingCOMMON.SHOW_FORGOTPASSWORD=1;lingCOMMON.SHOW_SENDINGPASSWORD=2;lingCOMMON.PACK_FLAG_FOLDER=1<<0;lingCOMMON.PACK_FLAG_LIST=1<<1;lingCOMMON.PACK_HAS_CHILDREN=1<<2;lingCOMMON.PACK_CAN_EDIT_CONTENTS=1<<19;lingCOMMON.PACK_CAN_EDIT_PROPS=1<<20;lingCOMMON.PACK_REQUEST_TRANSLATIONS=1<<23;lingCOMMON.PACK_REQUEST_PROOFREADING=1<<24;lingCOMMON.PACK_REQUEST_AUDIO=1<<25;lingCOMMON.PACK_REQUEST_IMAGES=1<<26;lingCOMMON.PACK_KIND_FOLDER=0;lingCOMMON.PACK_KIND_TRANSLATIONS=1;lingCOMMON.PACK_KIND_QUESTION_ANSWER=2;lingCOMMON.PACK_KIND_SYNONYM=3;lingCOMMON.PACK_KIND_ANTONYM=4;lingCOMMON.PACK_KIND_DEFINITION=5;lingCOMMON.PACK_KIND_FIRST=lingCOMMON.PACK_KIND_TRANSLATIONS;lingCOMMON.PACK_KIND_LAST=lingCOMMON.PACK_KIND_DEFINITION;lingCOMMON.DIFFICULTY_BEGINNER=1;lingCOMMON.DIFFICULTY_INTERMEDIATE=2;lingCOMMON.DIFFICULTY_ADVANCED=3;lingCOMMON.WORD_KIND_NORMAL=0;lingCOMMON.WORD_KIND_QUESTION=1;lingCOMMON.WORD_KIND_ANSWER=2;lingCOMMON.WORD_KIND_ANTONYM=3;lingCOMMON.WORD_KIND_SYNONYM=4;lingCOMMON.WORD_KIND_DEFINITION=5;lingCOMMON.SEARCH_WORDS=1;lingCOMMON.SEARCH_PACKS=2;lingCOMMON.SEARCH_USERS=4;lingCOMMON.TYPE_FOLDER=1;lingCOMMON.TYPE_LIST=2;lingCOMMON.TYPE_TAG=3;lingCOMMON.TYPE_RATING=4;lingCOMMON.TYPE_DIALOGUE=6;lingCOMMON.TYPE_DIALOGUE_LINE=7;lingCOMMON.TYPE_DIALOGUE_SPEAKER=8;lingCOMMON.TYPE_BUNDLE=11;lingCOMMON.TYPE_PRIVILEGE=12;lingCOMMON.TYPE_ESSAY=13;lingCOMMON.TYPE_LESSON=16;lingCOMMON.TYPE_ACTIVITIES_START=32;lingCOMMON.TYPE_ACTIVITIES_END=79;lingCOMMON.TYPE_PACKDRILL=34;lingCOMMON.TYPE_ESSAY_WRITE=35;lingCOMMON.TYPE_MESSAGE=36;lingCOMMON.TYPE_CLOZE=37;lingCOMMON.TYPE_QUIZ=38;lingCOMMON.TYPE_QUESTION=39;lingCOMMON.TYPE_DIALOGUE_ACTIVITY=40;lingCOMMON.TYPE_VIEW_FLASHCARDS=41;lingCOMMON.TYPE_SENTENCE_ACTIVITY=42;lingCOMMON.TYPE_RESULT_START=80;lingCOMMON.TYPE_RESULT=80;lingCOMMON.TYPE_RESULT_PACKDRILL=82;lingCOMMON.TYPE_RESULT_MC=83;lingCOMMON.TYPE_RESULT_FIB=84;lingCOMMON.TYPE_RESULT_URL=85;lingCOMMON.TYPE_RESULT_END=127;lingCOMMON.TYPE_AUDIO=129;lingCOMMON.TYPE_IMAGE=130;lingCOMMON.TYPE_VIDEO=131;lingCOMMON.DRILL_TYPE_TRANSLATION=0;lingCOMMON.DRILL_TYPE_LISTENING_COMPREHENSION=1;lingCOMMON.DRILL_TYPE_READING_ALOUD=2;lingCOMMON.DRILL_TYPE_TRANSLATING_ALOUD=3;lingCOMMON.DRILL_TYPE_PRONUNCIATION=4;lingCOMMON.DRILL_TYPE_DICTATION=5;lingCOMMON.DRILL_TYPE_KANJI_TO_KANA=6;lingCOMMON.DRILL_TYPE_AUTO_PACK=7;lingCOMMON.DRILL_TYPE_IMAGE=8;lingCOMMON.DRILL_TYPE_SUPPLEMENT=9;lingCOMMON.DRILL_TYPE_VERB=10;lingCOMMON.DRILL_TYPE_IMAGE_PRACTICE=11;lingCOMMON.DRILL_TYPE_NUMBER_LISTENING_COMPREHENSION=12;lingCOMMON.DRILL_TYPE_NUMBER_TRANSLATION=13;lingCOMMON.DRILL_TYPE_QUESTION_AND_ANSWERS=14;lingCOMMON.DRILL_TYPE_SYNONYMS=15;lingCOMMON.DRILL_TYPE_ANTONYMS=16;lingCOMMON.DRILL_TYPE_DEFINITIONS=17;lingCOMMON.DRILL_TYPE_PRINCIPAL_PARTS=18;lingCOMMON.PACK_RATING_WRONG=1<<0;lingCOMMON.PACK_RATING_TYPOS=1<<1;lingCOMMON.PACK_RATING_EASY=1<<2;lingCOMMON.PACK_RATING_HARD=1<<3;lingCOMMON.PACK_RATING_SHORT=1<<4;lingCOMMON.PACK_RATING_LONG=1<<5;lingCOMMON.USER_COUNTRY_BIRTH=1;lingCOMMON.USER_COUNTRY_NATIONALITY=2;lingCOMMON.USER_COUNTRY_HOME=3;lingCOMMON.USER_COUNTRY_HAVE_VISITED=4;lingCOMMON.USER_COUNTRY_HAVE_LIVED=5;lingCOMMON.USER_COUNTRY_WANT_TO_GO=6;lingCOMMON.USER_COUNTRY_CURRENT=7;lingCOMMON.RATING_AWFUL=0;lingCOMMON.RATING_BAD=1;lingCOMMON.RATING_POOR=2;lingCOMMON.RATING_AVERAGE=3;lingCOMMON.RATING_GOOD=4;lingCOMMON.RATING_GREAT=5;lingCOMMON.RATING_ABUSE=6;lingCOMMON.wordKind=new Array();lingCOMMON.wordKind[lingCOMMON.WORD_KIND_NORMAL]="{0}";lingCOMMON.wordKind[lingCOMMON.WORD_KIND_QUESTION]=lingRESOURCES.write("Common.question","Question");lingCOMMON.wordKind[lingCOMMON.WORD_KIND_ANSWER]=lingRESOURCES.write("Common.answer","Answer");lingCOMMON.wordKind[lingCOMMON.WORD_KIND_SYNONYM]=lingRESOURCES.write("Common.synonym","Synonym");lingCOMMON.wordKind[lingCOMMON.WORD_KIND_ANTONYM]=lingRESOURCES.write("Common.antonym","Antonym");lingCOMMON.wordKind[lingCOMMON.WORD_KIND_DEFINITION]=lingRESOURCES.write("Common.definition","Definition");lingCOMMON.skillImg=["img/skill0.gif","img/skill1.gif","img/skill2.gif","img/skill3.gif","img/skill4.gif","img/skill5.gif"];lingCOMMON.skillBlueImg=["img/skill0Blue.gif","img/skill1Blue.gif","img/skill2Blue.gif","img/skill3Blue.gif","img/skill4Blue.gif","img/skill5Blue.gif"];lingCOMMON.searchImg={search0:"img/search0.gif",search8:"img/search8.gif",search13:"img/search13.gif",search16:"img/search16.gif",search45:"img/search45.gif"};lingCOMMON.fluencyArray=[lingRESOURCES.write("Common.fluency0","Want to learn"),lingRESOURCES.write("Common.fluency1","Beginner"),lingRESOURCES.write("Common.fluency2","Intermediate"),lingRESOURCES.write("Common.fluency3","Advanced"),lingRESOURCES.write("Common.fluency4","Fluent"),lingRESOURCES.write("Common.fluency5","Native")];lingCOMMON.isRtol=false;lingCOMMON.getLeft=function(){return lingCOMMON.isRtol?"Right":"Left"};lingCOMMON.getRight=function(){return lingCOMMON.isRtol?"Left":"Right"};lingCOMMON.isPackTwoLanguage=function(A){return A==lingCOMMON.PACK_KIND_TRANSLATIONS};lingCOMMON.getIsFrom=function(B,A,C){if(B==lingCOMMON.WORD_KIND_NORMAL){return C==A}return B==lingCOMMON.WORD_KIND_QUESTION};lingCOMMON.loginCB=function(){lingCOMMON.loginCBSub.call(this)};lingCOMMON.loginCBSub=function(){var B=this.req.responseXML.documentElement;if(B.tagName=="SUCCESS"){var D=new Date();D.setDate(D.getDate()+parseInt(50));var C=B.getAttribute("nickName");xDeleteCookie("nickName","/");xSetCookie("nickName",C,D,"/");if(xGetElementById("chkRememberMe")&&xGetElementById("chkRememberMe").checked){var E=B.getAttribute("loginCode");xDeleteCookie("loginCode","/");xSetCookie("loginCode",E,D,"/")}location.replace(this.data&&this.data.returnURL?this.data.returnURL:location.href)}else{var A=parseInt(B.getAttribute("ERROR"));switch(A){case -1100:case -1101:alert(lingRESOURCES.write("Common.alert_badLogin",'The login ID and password could not be found. Please check to make sure that you have entered them correctly. If you have forgotten your password, please click the "forgot your password?" link under the "log in" button, and follow the instructions.'));break;default:alert(lingRESOURCES.write("Common.alert_loginFailed","An unknown error ({0}) occurred while trying to log in.",false,[A]));break}}};lingCOMMON.login=function(A,B){var D=trim(document.getElementById("mainLoginID").value);var C=document.getElementById("mainPassword").value;xSetCookie("tzOffset",(new Date()).getTimezoneOffset());if(B){lingAPI.loginSSL(D,C,lingCOMMON.loginCB,null,{returnURL:(A?decodeUTF8(A):null)})}else{lingAPI.login(D,C,lingCOMMON.loginCB,null,{returnURL:(A?decodeUTF8(A):null)})}};lingCOMMON.logoutCB=function(){location.replace(lingCOMMON.httpBase+"Home.do")};lingCOMMON.logout=function(){xDeleteCookie("nickName","/");xDeleteCookie("loginCode","/");xDeleteCookie("packItemIDs","/");xDeleteCookie("lingWORDS","/");lingAPI.logout(lingCOMMON.logoutCB,lingCOMMON.logoutCB)};lingCOMMON.setLanguage=function(B){var A=new Date();A.setDate(A.getDate()+parseInt(103));xDeleteCookie("languageID","/");xSetCookie("languageID",B,A,"/")};lingCOMMON.getFromLanguage=function(){var A=xGetCookie("fromLanguageID","/");return A?parseInt(A):-1};lingCOMMON.getToLanguage=function(){var A=xGetCookie("toLanguageID","/");return A?parseInt(A):-1};lingCOMMON.setFromLanguage=function(B){var A=new Date();A.setDate(A.getDate()+parseInt(103));xDeleteCookie("fromLanguageID","/");xSetCookie("fromLanguageID",B,A,"/")};lingCOMMON.setToLanguage=function(B){var A=new Date();A.setDate(A.getDate()+parseInt(103));xDeleteCookie("toLanguageID","/");xSetCookie("toLanguageID",B,A,"/")};lingCOMMON.clearLanguage=function(){xDeleteCookie("languageID","/")};lingCOMMON.clearFromLanguage=function(){xDeleteCookie("fromLanguageID","/")};lingCOMMON.clearToLanguage=function(){xDeleteCookie("toLanguageID","/")};lingCOMMON.bookmarkAddCB=function(){var E=this.req.responseXML.documentElement;if(E.tagName=="SUCCESS"){var D=this.data.itemID;var C=this.data.name;var A=xGetElementById("bookmarks");var B=A.insertRow(A.rows.length);B.id="bookmark"+D;var F=B.insertCell(0);F.align="left";F.width="28";F.className="padLeft5";F.innerHTML="<a href='"+lingCOMMON.httpBase+"List.do?packItemID="+D+"'><img src='img/listSmall.gif' border='0'></a>";F=B.insertCell(1);F.className="left text12";F.innerHTML="<a href='"+lingCOMMON.httpBase+"List.do?packItemID="+D+"'>"+strWS(C)+"</a> &nbsp; &nbsp; <a class='text11 red italic' href='javascript:lingCOMMON.bookmarkRemove(\""+D+"\",lingCOMMON.bookmarkRemoveCB);void 0;'>"+lingRESOURCES.write("Common.remove","remove")+"</a>";showElement("bookmarks");hideElement("bookmarksNone")}};lingCOMMON.bookmarkAdd=function(D,A,C){if(xGetElementById("bookmark"+D)==null){var B=new Object();B.itemID=D;B.name=A;lingAPI.bookmarkAdd(D,C,null,B)}};lingCOMMON.packParentAdd=function(B,C,A){lingAPI.packParentAdd(B,C,A)};lingCOMMON.removeBookmarkNode=function(B){var A=xGetElementById("bookmark"+B);if(A){A.parentNode.removeChild(A);if(xGetElementById("bookmarks").rows.length==0){hideElement("bookmarks");showElement("bookmarksNone")}}};lingCOMMON.bookmarkRemoveCB=function(){var A=this.req.responseXML.documentElement;if(A.tagName=="SUCCESS"){lingCOMMON.removeBookmarkNode(this.data)}};lingCOMMON.bookmarkRemove=function(B,A){lingAPI.bookmarkRemove(B,A,null,B)};lingCOMMON.displayLoginArea=function(A){switch(A){case lingCOMMON.SHOW_LOGIN:showElement("loginArea");hideElement("forgotPassword");hideElement("sendingPassword");xGetElementById("mainLoginID").focus();break;case lingCOMMON.SHOW_FORGOTPASSWORD:showElement("forgotPassword");hideElement("loginArea");hideElement("sendingPassword");var B=xGetElementById("forgotEmail");B.value="";B.focus();break;case lingCOMMON.SHOW_SENDINGPASSWORD:hideElement("loginArea");hideElement("forgotPassword");showElement("sendingPassword");break}};lingCOMMON.doSendEmailCB=function(){var B=this.req.responseXML.documentElement;if(B.tagName=="SUCCESS"){alert(lingRESOURCES.write("Common.emailSent","The email has been sent! Depending on your Internet service provider, it might take a couple of moments to arrive. If it doesn't appear in your Inbox, please make sure that it hasn't been redirected to your junk mail folder."));lingCOMMON.displayLoginArea(lingCOMMON.SHOW_LOGIN)}else{if(B.tagName=="FAILURE"){var A=parseInt(B.getAttribute("code"));if(A==-1500){alert(lingRESOURCES.write("Common.emailNotFound","The specified email could not be found - please check the email address and try again!"))}lingCOMMON.displayLoginArea(lingCOMMON.SHOW_FORGOTPASSWORD);xGetElementById("forgotEmail").focus()}}};lingCOMMON.doSendEmail=function(){var C=xGetElementById("txtEmail").value;C=trim(C);var D=false;if(C.length>=5){var A=C.indexOf("@");if(A>0&&A<C.length-3){var B=C.lastIndexOf(".");if(B>A&&B<C.length-1){D=true;lingAPI.sendPassword(C,lingCOMMON.doSendEmailCB)}}}if(!D){alert(lingRESOURCES.write("Common.badEmail",'"{0}" is not a valid email address!',false,[C]))}else{lingCOMMON.displayLoginArea(lingCOMMON.SHOW_SENDINGPASSWORD)}};lingCOMMON.doSearch=function(){var A=trim(xGetElementById(lingCOMMON.searchName).value);location.href=lingCOMMON.httpBase+"Search.do?str="+encodeUTF8(A)};lingCOMMON.doOnChangeLanguage=function(C,B){var A=lingUTIL.getSelectValue(C);if(B){lingCOMMON.setLanguage(A)}return A};lingCOMMON.doOnChangeFromLanguage=function(C,B){var A=lingUTIL.getSelectValue(C);if(B){lingCOMMON.setFromLanguage(A)}return A};lingCOMMON.doOnChangeToLanguage=function(C,B){var A=lingUTIL.getSelectValue(C);if(B){lingCOMMON.setToLanguage(A)}return A};lingCOMMON.readWebsite=function(A){A=xGetElementById(A);if(A){location.href=lingCOMMON.httpBase+"ReaderProgress.do?url="+escape(A.value)}};lingCOMMON.openSetup=function(A){window.open(lingCOMMON.httpBase+"HelpSetup"+A+".do","HelpSetup"+A,"width=440,height=450,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")};lingCOMMON.openAccents=function(){window.open(lingCOMMON.httpBase+"Accents.do","EnteringAccents","width=440,height=500,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")};lingCOMMON.openPinyin=function(){window.open(lingCOMMON.httpBase+"Pinyin.do","EnteringPinyin","width=440,height=500,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")};lingCOMMON.trustHelp=function(){window.open(lingCOMMON.httpBase+"HelpUserTranslations.do","HelpUserTranslations","width=440,height=250,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")};lingCOMMON.uploadHelp=function(){window.open(lingCOMMON.httpBase+"HelpUpload.do","HelpUpload")};lingCOMMON.openHelpTags=function(){window.open(lingCOMMON.httpBase+"HelpTags.do","Tags","width=400,height=150,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")};lingCOMMON.openHelpPodcast=function(){window.open(lingCOMMON.httpBase+"HelpPodcast.do","HelpPodcast","width=400,height=400,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")};lingCOMMON.openHelpMobile=function(A){window.open(lingCOMMON.httpBase+"HelpMobile.do?packID="+A,"HelpPodcast","width=600,height=400,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")};lingCOMMON.gotoExplore=function(){if(lingCOMMON.userID==0){if(confirm(lingRESOURCES.write("Common.confirm_noFolder_register","You must be logged in to create your own flashcards. Would you like to join WordChamp? (it's free!)"))){location.href=lingCOMMON.httpBase+"Register.do"}}else{location.href=lingCOMMON.httpBase+"Folder.do"}};lingCOMMON.gotoForgotPassword=function(){location.href=lingCOMMON.httpBase+"ForgotPassword.do?returnURL="+encodeUTF8(location.href)};lingCOMMON.openLangMenu=function(B,D,C,A){lingMENU.showStaticMenu(B,[["&rlm;&#x639;&#x631;&#x628;&#x64A;&rlm;","lingCOMMON.setInterfaceLanguage(0)"],["&#x4e2d;&#x6587;","lingCOMMON.setInterfaceLanguage(8)"],["English","lingCOMMON.setInterfaceLanguage(13)"],["Espa&ntilde;ol","lingCOMMON.setInterfaceLanguage(45)"],["Fran&ccedil;ais","lingCOMMON.setInterfaceLanguage(16)"]],D,"readerMenu",C,"#79a1d1","#326DB0","#ff9900",A?A:"text12 white",null,2)};lingCOMMON.openReaderMenu=function(B,D,C,A){lingMENU.showStaticMenu(B,[[lingRESOURCES.write("Common.downloadToolbar","Download the WordChamp Language Toolbar"),"lingCOMMON.openToolbarDownload()"],[lingRESOURCES.write("Common.readForeignWebsites","Read Foreign Websites"),"location.href='"+lingCOMMON.httpBase+"Reader.do'"]],D,"readerMenu",C,"#79a1d1","#326DB0","#ff9900",A?A:"text12 white",null,2)};lingCOMMON.openLearnMenu=function(C,E,D,B){var A=xGetCookie("packItemIDs");if(lingCOMMON.pageID==17920){lingMENU.showStaticMenu(C,[[lingRESOURCES.write("Common.trySampleDrill","Try a sample drill"),"location.href='"+lingCOMMON.httpBase+"QuickDemo.do';"],[lingRESOURCES.write("Common.browseLists","Find flashcards"),"location.href='"+lingCOMMON.httpBase+"Browse.do';"],[lingRESOURCES.write("Common.createToPractice","Create and edit flashcards"),"lingCOMMON.gotoExplore()"]],E,"learnMenu",D,"#79a1d1","#326DB0","#ff9900",B?B:"text12 white",null,2)}else{if(A==null||A.length==0){lingMENU.showStaticMenu(C,[[lingRESOURCES.write("Common.trySampleDrill","Try a sample drill"),"location.href='"+lingCOMMON.httpBase+"QuickDemo.do';"],[lingRESOURCES.write("Common.browseLists","Find flashcards"),"location.href='"+lingCOMMON.httpBase+"Browse.do';"],[lingRESOURCES.write("Common.createToPractice","Create and edit flashcards"),"lingCOMMON.gotoExplore()"],[lingRESOURCES.write("Common.practiceAbsRecall","Practice with Absolute Recall&#153;"),"location.href='"+lingCOMMON.httpBase+"AbsoluteRecall.do'",null,"#0000cc"]],E,"learnMenu",D,"#79a1d1","#326DB0","#ff9900",B?B:"text12 white",null,2)}else{lingMENU.showStaticMenu(C,[[lingRESOURCES.write("Common.trySampleDrill","Try a sample drill"),"location.href='"+lingCOMMON.httpBase+"QuickDemo.do';"],[lingRESOURCES.write("Common.browseLists","Find flashcards"),"location.href='"+lingCOMMON.httpBase+"Browse.do';"],[lingRESOURCES.write("Common.practiceSelected","Practice flashcards you've already selected"),"location.href='"+lingCOMMON.httpBase+"DrillChoose.do';"],[lingRESOURCES.write("Common.createToPractice","Create and edit flashcards"),"lingCOMMON.gotoExplore()"],[lingRESOURCES.write("Common.practiceAbsRecall","Practice with Absolute Recall&#153;"),"location.href='"+lingCOMMON.httpBase+"AbsoluteRecall.do'",null,"#0000cc"]],E,"learnMenu",D,"#79a1d1","#326DB0","#ff9900",B?B:"text12 white")}}};lingCOMMON.openUIMenu=function(B,D,C,A){lingMENU.showStaticMenu(B,[["<div class='padLeft6'>&#x639;&#x631;&#x628;&#x64A;</div>","lingCOMMON.setInterfaceLanguage(lingLANG.ARABIC)"],["<div class='padLeft6'>&#x4e2d;&#x6587;</div>","lingCOMMON.setInterfaceLanguage(lingLANG.CHINESE_MANDARIN)"],["<div class='padLeft6'>English</div>","lingCOMMON.setInterfaceLanguage(lingLANG.ENGLISH)"],["<div class='padLeft6'>Espa&ntilde;ol</div>","lingCOMMON.setInterfaceLanguage(lingLANG.SPANISH)"],["<div class='padLeft6'>Fran&ccedil;ais</div>","lingCOMMON.setInterfaceLanguage(lingLANG.FRENCH)"]],D,"uiMenu",C,"#79a1d1","#326DB0","#ff9900",A?A:"text12 white",120,1)};lingCOMMON.setTrust=function(B){if(lingCOMMON.showAll!=B){lingCOMMON.showAll=B;var C=xGetElementById("aTrust");C.innerHTML=B?lingRESOURCES.write("Common.hideUserTranslations","hide user translations",true):lingRESOURCES.write("Common.showUserTranslations","show user translations",true);if(lingCOMMON.userID>0){lingAPI.setUserPrefs("showUntrusted="+lingCOMMON.showAll)}else{var D=new Date();xDeleteCookie("readerShowAll");xSetCookie("readerShowAll",B)}var A=0;C=document.getElementById("untrusted"+A);while(C){setVisibility(C,B);A++;C=document.getElementById("untrusted"+A)}}};lingCOMMON.setInterfaceLanguage=function(B){var A=new Date();A.setDate(A.getDate()+parseInt(50));xDeleteCookie("uiLangID","/");xSetCookie("uiLangID",B,A,"/");location.href=lingCOMMON.httpBase+"SetInterfaceLanguage.do?languageID="+B+"&returnURL="+escape(location.href)};lingCOMMON.setShowLocalize=function(A){xDeleteCookie("showLocalize","/");xSetCookie("showLocalize",A?1:0);location.reload()};lingCOMMON.navboxCustomOnOver=function(B,A){B.style.backgroundColor=A};lingCOMMON.navboxCustomOnOut=function(B,A){B.style.backgroundColor=A};lingCOMMON.navboxYellowOnOver=function(A){A.style.backgroundColor="#ffff33"};lingCOMMON.navboxYellowOnOut=function(A){A.style.backgroundColor="#ffffcc"};lingCOMMON.navboxOnOver=function(A){A.style.backgroundColor="#ffff66"};lingCOMMON.navboxOnOut=function(A){A.style.backgroundColor="#f0f0ff"};lingCOMMON.navboxLessonOnOver=function(A){A.style.backgroundColor="#ffff66"};lingCOMMON.navboxLessonOnOut=function(B,A){B.style.backgroundColor=A};lingCOMMON.tabOnOver=function(A){if(A){A.backgroundColorOld=A.style.backgroundColor;A.style.backgroundColor="#ff9900"}};lingCOMMON.tabOnOut=function(A){if(A&&A.backgroundColorOld){A.style.backgroundColor=A.backgroundColorOld}};lingCOMMON.tabToColor=function(E,A,B,D){var C=xGetElementById(E);C.style.backgroundColor=B;if(D){C.style.borderTop="1px solid #faf2dc";C.style.borderBottom="2px solid #faf2dc";C.style.cursor="pointer";C.onmouseover=function(){lingCOMMON.tabOnOver(this)};C.onmouseout=function(){lingCOMMON.tabOnOut(this)};C.onclick=function(){D.call(null,A)}}else{C.style.borderTop="";C.style.borderBottom="";C.style.cursor="";C.onmouseover=null;C.onmouseout=null;C.onclick=null}};lingCOMMON.setTabSelected=function(F,B,A,E){var C=xGetElementById(F);var D=C.rows[0];if(A==E){showElement(B);D.cells[0].className="tabInnerLeftSelected";D.cells[1].className="tabInnerMiddleSelected padLeft10 padRight10 header12 nowrap";D.cells[2].className="tabInnerRightSelected"}else{D.cells[0].className="tabInnerLeftUnselected";D.cells[1].className="tabInnerMiddleUnselected padLeft10 padRight10 header12 nowrap brown";D.cells[2].className="tabInnerRightUnselected"}};lingCOMMON.addList=function(F){var B=xGetCookie("packItemIDs","/");var D=false;var E="";if(B&&B.length>0){var A=decodeUTF8(B).split(",");for(var C=0;C<A.length;C++){if(A[C]==F){D=true}if(E.length>0){E+=","}E+=A[C]}}if(!D){if(E.length>0){E+=","}E+=F;xDeleteCookie("packItemIDs","/");xSetCookie("packItemIDs",E,null,"/")}if(confirm(lingRESOURCES.write("Common.confirm_practiceNow","The flashcards have been added to your practice list. Would you like to practice them now?"))){location.href=lingCOMMON.httpBase+"DrillChoose.do"}};lingCOMMON.openToolbarDownload=function(){if(navigator.userAgent.indexOf("Firefox")>=0){window.open(lingCOMMON.httpBase+"ToolbarDownload.do","ToolbarDownload","width=400,height=180,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")}else{if(navigator.userAgent.indexOf("MSIE")>=0){window.open(lingCOMMON.httpBase+"ToolbarDownload.do","ToolbarDownload","width=620,height=480,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")}}};lingCOMMON.openToolbarTerms=function(){if(navigator.userAgent.indexOf("Firefox")>=0||navigator.userAgent.indexOf("MSIE")>=0){window.open(lingCOMMON.httpBase+"TermsToolbar.do","TermsToolbar","width=600,height=340,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")}};lingCOMMON.doDownloadToolbar=function(){if(navigator.userAgent.indexOf("Firefox")>=0){location.href=lingCOMMON.httpBase+"GetFirefoxToolbar.do"}else{if(navigator.userAgent.indexOf("MSIE")>=0){location.href=lingCOMMON.httpBase+"GetMSIEToolbar.do"}}};lingCOMMON.downloadToolbar=function(){if(navigator.userAgent.indexOf("Firefox")>=0){opener.lingCOMMON.doDownloadToolbar();close()}else{if(navigator.userAgent.indexOf("MSIE")>=0){lingCOMMON.doDownloadToolbar()}}};lingCOMMON.openHelpToolbar=function(){window.open(lingCOMMON.httpBase+"HelpToolbar.do?site=true","HelpToolbar","width=500,height=400,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")};lingCOMMON.openTutorial=function(B,A){if(A){location.href="/tutorials/"+B+"/Tutorial.jsp?name="+B}else{window.open("/tutorials/"+B+"/Tutorial.jsp?name="+B,"Tutorial_"+B,"width=1024,height=740")}};lingCOMMON.openReaderAPIDoc=function(){window.open(lingCOMMON.httpBase+"ReaderAPIDoc.do","DocReaderAPI","width=600,height=340,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")};lingCOMMON.openReaderAPITerms=function(){window.open(lingCOMMON.httpBase+"ReaderAPITerms.do","TermsReaderAPI","width=600,height=340,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")};lingCOMMON.doReaderAPIRegister=function(A){location.href=lingCOMMON.httpBase+"GetReaderAPI.do?domainName="+encodeUTF8(A)};lingCOMMON.openVideo=function(A){window.open(lingCOMMON.httpBase+"VideoAsset.do?itemID="+A+"&type="+lingCOMMON.TYPE_VIDEO,"Video"+A,"width=380,height=320,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")};lingCOMMON.openHelpRatings=function(){window.open(lingCOMMON.httpBase+"HelpRatings.do","HelpRatings","width=300,height=150,status=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes")};lingCOMMON.onSearchFocus=function(){xGetElementById(lingCOMMON.searchName).style.backgroundImage=""};lingCOMMON.onSearchBlur=function(){if(!xGetElementById(lingCOMMON.searchName)){return }xGetElementById(lingCOMMON.searchName).value=trim(xGetElementById(lingCOMMON.searchName).value);if(xGetElementById(lingCOMMON.searchName).value==""){xGetElementById(lingCOMMON.searchName).style.backgroundImage="url("+lingCOMMON.searchImg["search"+lingCOMMON.uiLangID]+")"}else{xGetElementById(lingCOMMON.searchName).style.backgroundImage=""}};lingCOMMON.renderCourseMenu=function(A,E,G,F,D){var C=[[lingRESOURCES.write("Common.CMHelp","Course Management Help"),"location.href='"+lingCOMMON.httpBase+"HelpCM.do'"]];if(typeof (lingHOME)!="undefined"&&lingHOME&&lingHOME.openNewClass){C.push([lingRESOURCES.write("Common.CreateNewClass","Create a New Class"),"lingHOME.openNewClass()"])}else{C.push([lingRESOURCES.write("Common.CreateNewClass","Create a New Class"),"location.href='"+lingCOMMON.httpBase+"Home.do?action=createClass'"])}for(var B=0;B<A.length;B++){C.push([strWS(A[B].name),"location.href='"+lingCOMMON.httpBase+"Course.do?courseID="+A[B].courseID+"'"])}lingMENU.showStaticMenu(E,C,G,"courseMenu",F,"#79a1d1","#326DB0","#ff9900",D?D:"text12 white",null,2)};lingCOMMON.openCourseMenuCB=function(){var A=[];var C=this.req.responseXML.documentElement;if(C.tagName=="SUCCESS"){for(var B=0;B<C.childNodes.length;B++){A.push({courseID:parseInt(C.childNodes[B].getAttribute("I")),name:decodeUTF8(C.childNodes[B].getAttribute("N"))})}}lingCOMMON.renderCourseMenu(A,this.data.base,this.data.div,this.data.loc,this.data.className)};lingCOMMON.openCourseMenu=function(B,D,C,A){lingAPI.getCourses(0,40,lingCOMMON.openCourseMenuCB,null,{base:B,div:D,loc:C,className:A})};lingCOMMON.dump=function(A){var B="";if(!A){B="null"}else{for(a in A){B+=a+"="+A[a]+"\n"}}alert(B)};lingCOMMON.hideHelpBubble=function(A,B){removeAllNodes(A);if(B){B()}};lingCOMMON.showHelpBubble=function(C,I,G,B,D,H,E){var A=document.createElement("div");A.style.width=B+"px";A.style.position="absolute";A.className="squeeze";A.style.top=G+"px";A.style.left=I+"px";A.style.zIndex=H?H:64000;var F="<table cellpadding='0' cellspacing='0' width='"+B+"px'>";F+="<tr><td style='background-image:url(img/black.gif);background-repeat:repeat-x;background-position:bottom' width='1'><img src='img/bigSpacer.gif' width='1' height='7'/></td><td style='background-image:url(img/black.gif);background-repeat:repeat-x;background-position:bottom' width='20'><img src='img/bigSpacer.gif' width='20' height='7'/></td><td><img src='img/tipUpffffcc.gif' width='11' height='7'/></td><td style='background-image:url(img/black.gif);background-repeat:repeat-x;background-position:bottom' width='"+(B-27)+"'><img src='img/bigSpacer.gif' width='"+(B-33)+"' height='7'/></td><td style='background-image:url(img/black.gif);background-repeat:repeat-x;background-position:bottom' width='1'><img src='img/bigSpacer.gif' width='1' height='7'/></td></tr>";F+="<tr><td style='background-color:black'></td><td style='background-color:#ffffdd;padding:5px' colspan='3'>";F+="<div style='float:right' class='header13 padLeft10 padBottom10'><a href='javascript:lingCOMMON.hideHelpBubble(\""+C+'"'+(E?","+E:"")+");void 0;'>X</a></div>";F+=D;F+="</td><td style='background-color:black'></td></tr>";F+="<tr><td colspan='5' style='background-color:black'><img src='img/bigSpacer.gif' width='1' height='1'/></td></tr>";F+="</table>";A.innerHTML=F;removeAllNodes(C).appendChild(A)};var lingMENU=new Object();lingMENU.FOLDER=1;lingMENU.LIST=2;lingMENU.CAN_SELECT_FOLDERS=1;lingMENU.CAN_SELECT_LISTS=2;lingMENU.NEW_FOLDER=-1;lingMENU.NEW_LIST=-2;lingMENU.UPLOAD_LIST=-3;lingMENU.STATIC_LIST=-4;lingMENU.NEW_LIST_INLINE=-5;lingMENU.DISPLAY_RIGHT=1;lingMENU.DISPLAY_LEFT=4;lingMENU.tables=new Object();lingMENU.openRows=new Array();lingMENU.rowsToHide=new Array();lingMENU.hideAllTimeout=null;lingMENU.hilite="#ff9900";lingMENU.selectedRow=null;lingMENU.width=200;lingMENU.isSafari=(navigator.userAgent.indexOf("Safari")!=-1);lingMENU.hideStaticMenuTimeout=null;lingMENU.staticMenuTableID=null;lingMENU.staticMenuBase=null;lingMENU.colors=[{bgcolor:"#eef8ff",border:"#333399"},{bgcolor:"#eeeeff",border:"#333399"},{bgcolor:"#f8ffee",border:"#333399"},{bgcolor:"#eefff8",border:"#333399"}];lingMENU.clear=function(B,A){removeAllNodes(B);if(A){xGetElementById(A).ling=null}lingMENU.tables=new Object();lingMENU.openRows=new Array();lingMENU.rowsToHide=new Array();lingMENU.selectedRow=null};lingMENU.onMouseOver=function(){clearTimeout(lingMENU.hideAllTimeout);lingMENU.selectedRow=this;lingMENU.removeRowFromHideList(this);lingMENU.removeRowFromHideList(this.ling.rowParent);var B=this.ling.level;for(var A=lingMENU.openRows.length-1;A>=0;A--){if(lingMENU.openRows[A]!=this&&lingMENU.openRows[A].ling.level>=B){lingMENU.addRowToHideList(lingMENU.openRows[A])}}lingMENU.hideRows();lingMENU.addRowToOpenRows(this);if((this.ling.packFlags&lingMENU.FOLDER)!=0){this.style.cursor="wait";lingMENU.getHierarchyMenu(this.ling.divParent,this,this.ling.packID,this.ling.packItemID,this.ling.selectFlags,this.ling.level+1,this.ling.onSelectCB,this.ling.parent.ling.createFolder,this.ling.parent.ling.createList)}};lingMENU.rowHilite=function(B){var A=xGetElementById("img"+B.ling.packID);if(A){removeAllNodes(A);A.appendChild(B.imgHilite)}};lingMENU.rowUnHilite=function(B){var A=xGetElementById("img"+B.ling.packID);if(A){removeAllNodes(A);A.appendChild(B.img)}};lingMENU.onMouseOverHilite=function(){this.style.backgroundColor=lingMENU.hilite;lingMENU.rowHilite(this);lingMENU.onMouseOver.call(this)};lingMENU.onMouseOut=function(){lingMENU.selectedRow=null;lingMENU.addRowToHideList(this);setTimeout("lingMENU.hideRows()",500);lingMENU.hideAllTimeout=setTimeout("lingMENU.hideAll()",500)};lingMENU.removeRowFromHideList=function(B){for(var A=lingMENU.rowsToHide.length-1;A>=0;A--){if(lingMENU.rowsToHide[A]==B){lingMENU.rowsToHide.splice(A,1)}}};lingMENU.addRowToHideList=function(A){lingMENU.rowsToHide[lingMENU.rowsToHide.length]=A};lingMENU.addRowToOpenRows=function(A){lingMENU.openRows[lingMENU.openRows.length]=A};lingMENU.hideAll=function(){for(var A=lingMENU.openRows.length-1;A>=0;A--){if(lingMENU.openRows[A].ling.rowParent!=null){lingMENU.openRows[A].style.backgroundColor=lingMENU.openRows[A].unhiliteColor?lingMENU.openRows[A].unhiliteColor:lingMENU.colors[lingMENU.openRows[A].ling.level%lingMENU.colors.length].bgcolor}lingMENU.rowUnHilite(lingMENU.openRows[A])}for(tbl in lingMENU.tables){hideElement(lingMENU.tables[tbl])}lingMENU.openRows.length=0;lingMENU.rowsToHide.length=0};lingMENU.hideRows=function(){for(var B=0;B<lingMENU.rowsToHide.length;B++){if(lingMENU.rowsToHide[B].ling.rowParent!=null){lingMENU.rowsToHide[B].style.backgroundColor=lingMENU.rowsToHide[B].unhiliteColor?lingMENU.rowsToHide[B].unhiliteColor:lingMENU.colors[lingMENU.rowsToHide[B].ling.level%lingMENU.colors.length].bgcolor}lingMENU.rowUnHilite(lingMENU.rowsToHide[B]);if(lingMENU.rowsToHide[B].ling.tableChild){hideElement(lingMENU.rowsToHide[B].ling.tableChild)}for(var A=lingMENU.openRows.length-1;A>=0;A--){if(lingMENU.openRows[A]==lingMENU.rowsToHide[B]){lingMENU.openRows.splice(A,1)}}}lingMENU.rowsToHide.length=0};lingMENU.showTable=function(E){var B=E.ling.rowParent;B.ling.tableChild=E;B.style.cursor=((B.ling.packFlags&B.ling.selectFlags)!=0)?"pointer":"default";lingMENU.addRowToOpenRows(B);if(lingMENU.isSafari){var H=(B.ling.parent?xPageY(B.cells[0])-2*B.ling.parent.cellPadding-3:xPageY(B));var D=(B.ling.parent?xPageX(B.ling.parent)+xWidth(B.ling.parent)-2*B.ling.parent.cellPadding-3:xPageX(B)+xWidth(B));var F=lingMENU.width-2*E.cellSpacing;if(D+F>xClientWidth()){D=(B.ling.parent?xPageX(B.ling.parent)-F-3:xPageX(B)-F)}xMoveTo(E,D,H);var C=xClientHeight();var G=xScrollTop();if(lingMENU.selectedRow==B&&E.rows.length>0){showElement(E)}var A=xHeight(E);if(H+A>G+C){H=G+C-A;xMoveTo(E,D,H)}}else{var H=xPageY(B);if(B.ling.parent){H-=B.ling.parent.cellPadding}var D=xPageX(B)+xWidth(B);var F=lingMENU.width;if(D+F>xClientWidth()){D=xPageX(B)-F}xMoveTo(E,D,H);var C=xClientHeight();var G=xScrollTop();if(lingMENU.selectedRow==B&&E.rows.length>0){showElement(E)}var A=xHeight(E);if(H+A>G+C){H=G+C-A;xMoveTo(E,D,H)}}};lingMENU.packCreateCB=function(){var B=this.req.responseXML.documentElement;if(B.tagName=="SUCCESS"){var A=this.data;if(A.onSelectCB){A.packID=B.getAttribute("I");A.packItemID=B.getAttribute("II");A.packName=decodeUTF8(B.getAttribute("N"));A.onSelectCB.call(A)}}};lingMENU.onGotPackName=function(H,B){if(B){B=trim(B);if(B.length==0){alert(lingRESOURCES.write("Menu.alert_newPack_name","You must enter a name in order to create a list of flashcards!"));return false}var C=H.parent.ling.createList.kind;var F=H.parent.ling.createList.fromID;var G=H.parent.ling.createList.toID;var A=H.parent.ling.createList.difficulty;var E=H.parent.ling.packID;var D=H.parent.ling.createList.data;D.onSelectCB=H.parent.ling.onSelectCB;lingAPI.packCreate(E,lingCOMMON.PACK_FLAG_LIST,B,"",C,F,G,A,null,lingMENU.packCreateCB,null,D);return true}};lingMENU.onClick=function(){if(this.ling.packID==lingMENU.NEW_FOLDER){location.href="Folder.do?itemID="+this.ling.parent.ling.packItemID+"&action=newFolder"+(this.ling.parent.ling.params?this.ling.parent.ling.params:"")}else{if(this.ling.packID==lingMENU.NEW_LIST){location.href="Folder.do?itemID="+this.ling.parent.ling.packItemID+"&action=newList"+(this.ling.parent.ling.params?this.ling.parent.ling.params:"")}else{if(this.ling.packID==lingMENU.NEW_LIST_INLINE){lingMENU.hideAll();lingPROMPT.openModal(lingRESOURCES.write("Menu.prompt_newPack_name","What would you like to name your new list of flashcards?"),null,400,"",this.ling,{value:lingRESOURCES.write("Common.Create","Create"),onclick:"lingMENU.onGotPackName"},{value:lingRESOURCES.write("Common.Cancel","Cancel"),onclick:""},null)}else{if(this.ling.packID==lingMENU.UPLOAD_LIST){location.href="Folder.do?itemID="+this.ling.parent.ling.packItemID+"&action=uploadList"+(this.ling.parent.ling.params?this.ling.parent.ling.params:"")}else{if((this.ling.selectFlags&this.ling.packFlags)!=0){lingMENU.hideAll();if(this.ling.onSelectCB){this.ling.onSelectCB.call(this.ling)}}}}}}};lingMENU.addRowToTable=function(E,B,G,D,C){var F=E.insertRow(E.rows.length);F.ling=new Object();F.ling.parent=E;F.ling.divParent=E.ling.divParent;F.ling.rowParent=E.ling.rowParent;F.ling.level=E.ling.level;F.ling.pack=B;F.ling.packID=B.packID;F.ling.packItemID=B.itemID;F.ling.packFlags=B.flags;F.ling.packName=B.name;F.ling.packNumWords=B.numWords;F.ling.selectFlags=E.ling.selectFlags;F.ling.onSelectCB=E.ling.onSelectCB;F.style.cursor=((F.ling.packFlags&F.ling.selectFlags)!=0)?"pointer":"default";F.onmouseover=function(){lingMENU.onMouseOverHilite.call(this)};F.onmouseout=function(){lingMENU.onMouseOut.call(this)};F.onclick=function(){lingMENU.onClick.call(this)};var H=F.insertCell(F.cells.length);H.id="img"+Math.abs(B.packID);H.width=30;if(G){H.style.borderTop="1px solid #aaaaaa"}H.style.verticalAlign="middle";F.img=document.createElement("img");F.img.border="0";F.imgHilite=document.createElement("img");F.imgHilite.border="0";if((B.flags&lingMENU.FOLDER)!=0){F.img.src="img/folderSmall.gif";F.imgHilite.src="img/folderSmallff9900.gif"}else{F.img.src="img/listSmall.gif";F.imgHilite.src="img/listSmallff9900.gif"}H.appendChild(F.img);H=F.insertCell(F.cells.length);if(D){for(var A=0;A<D.length;A++){F.style[D[A][0]]=D[A][1]}}F.unhiliteColor=F.style.backgroundColor;if(C){H.className=C}else{H.className="header12 left"}H.style.verticalAlign="middle";if(G){H.style.borderTop="1px solid #aaaaaa"}H.innerHTML=strWS(B.name)};lingMENU.getHierarchyMenuCB=function(){var L=this.req.responseXML.documentElement;if(L.tagName=="SUCCESS"){var N=this.data;var C=L.getAttribute("II");if(C!=null){var O=L.getAttribute("I");var H=parseInt(L.getAttribute("F"));var B=parseInt(L.getAttribute("NW"));var K=parseInt(L.getAttribute("FI"));var I=parseInt(L.getAttribute("TI"));var E=parseInt(L.getAttribute("K"));lingMENU.addRowToTable(N,{packID:O,itemID:C,kind:E,flags:H,name:lingRESOURCES.write("Menu.myFlashcards","My Flashcards"),numWords:B,fromID:K,toID:I});xGetElementById(N.ling.divParent).appendChild(N);lingMENU.showTable(N)}else{var M=parseInt(L.getAttribute("SI"));var F=parseInt(L.getAttribute("NR"));var J=0;var D=L.childNodes;for(var G=0;G<D.length;G++){J++;var A=decodeUTF8(D[G].getAttribute("N"));var O=D[G].getAttribute("I");var C=D[G].getAttribute("II");var H=parseInt(D[G].getAttribute("F"));var B=parseInt(D[G].getAttribute("NW"));var K=parseInt(D[G].getAttribute("FI"));var I=parseInt(D[G].getAttribute("TI"));var E=parseInt(D[G].getAttribute("K"));lingMENU.addRowToTable(N,{packID:O,itemID:C,kind:E,flags:H,name:A,numWords:B,fromID:K,toID:I},J!=0)}if(M==0){if(N.ling.onEmpty&&F==0){N.ling.onEmpty.call(null,N.ling.packID);return }if(N.ling.packID!=lingMENU.STATIC_LIST){if(N.ling.createFolder){lingMENU.addRowToTable(N,{packID:lingMENU.NEW_FOLDER,itemID:"0",kind:0,flags:lingMENU.FOLDER,name:lingRESOURCES.write("Menu.createFolder","Create a New Folder"),numWords:0,fromID:-1,toID:-1},J!=0,[["backgroundColor","#ffff00"]],"header13 blue left");J++}if(N.ling.createList){if(N.ling.createList.isInline){if(N.ling.createList.showCreate){lingMENU.addRowToTable(N,{packID:lingMENU.NEW_LIST_INLINE,itemID:"0",kind:0,flags:lingMENU.LIST,name:lingRESOURCES.write("Menu.createList","Create a New List"),numWords:0,fromID:-1,toID:-1},J!=0,[["backgroundColor","#ffff00"]],"header13 blue left");J++}}else{if(N.ling.createList.showCreate){lingMENU.addRowToTable(N,{packID:lingMENU.NEW_LIST,itemID:"0",kind:0,flags:lingMENU.LIST,name:lingRESOURCES.write("Menu.createList","Create a New List"),numWords:0,fromID:-1,toID:-1},J!=0,[["backgroundColor","#ffff00"]],"header13 blue left");J++}if(N.ling.createList.showUpload){lingMENU.addRowToTable(N,{packID:lingMENU.UPLOAD_LIST,itemID:"0",kind:0,flags:lingMENU.LIST,name:lingRESOURCES.write("Menu.uploadList","Upload a New List"),numWords:0,fromID:-1,toID:-1},J!=0,[["backgroundColor","#ffff99"]],"header13 blue left");J++}}}if(N.ling.staticList&&N.ling.staticList.length>0){lingMENU.addRowToTable(N,{packID:lingMENU.STATIC_LIST,itemID:"0",kind:0,flags:lingMENU.FOLDER,name:lingRESOURCES.write("Menu.sampleLists","Sample Lists"),numWords:0,fromID:-1,toID:-1},J!=0,[["backgroundColor","#99ff99"]],"header13 blue left");J++}}}xGetElementById(N.ling.divParent).appendChild(N);lingMENU.showTable(N)}}};lingMENU.openHierarchyMenu=function(D,K,L,H,G,A,J,I,B,C,E,F){if(K.ling){K.ling=null}lingMENU.getHierarchyMenu(D,K,L,H,G,A,J,I,B,C,E,F)};lingMENU.getHierarchyMenu=function(F,P,Q,K,I,A,M,L,C,E,G,H){P=xGetElementById(P);if(!P.ling){lingMENU.selectedRow=P;P.ling=new Object();P.divParent=F;P.onmouseover=function(){lingMENU.onMouseOver.call(this)};P.onmouseout=function(){lingMENU.onMouseOut.call(this)};lingMENU.addRowToOpenRows(P)}var O=lingMENU.tables["tbl"+Q];if(O){O.ling.level=A;O.ling.rowParent=P;O.ling.createFolder=L;O.ling.createList=C;O.ling.onEmpty=E;O.ling.params=G;O.ling.staticList=H;for(var J=0;J<O.rows.length;J++){O.rows[J].ling.level=A}lingMENU.showTable(O)}else{var N=new Object();N.divParent=F;N.rowParent=P;N.selectFlags=I;N.packID=Q;N.onSelectCB=M;N.level=A;N.createFolder=L;N.createList=C;N.onEmpty=E;N.params=G;N.staticList=H;var O=document.createElement("table");lingMENU.tables["tbl"+Q]=O;O.width=lingMENU.width;O.cellPadding="2";O.cellSpacing="0";O.style.backgroundColor=lingMENU.colors[A%lingMENU.colors.length].bgcolor;O.style.border="2px solid "+lingMENU.colors[A%lingMENU.colors.length].border;O.style.position="absolute";O.style.zIndex=(65000+A);O.style.display="none";O.style.visibility="hidden";O.ling=N;if(Q==lingMENU.STATIC_LIST){var D=P.ling.parent.ling.staticList;if(D){for(var J=0;J<D.length;J++){lingMENU.addRowToTable(O,{packID:D[J].packID,itemID:D[J].itemID,kind:D[J].kind,flags:D[J].packFlags,name:D[J].packName,numWords:D[J].numTuples,fromID:D[J].fromLanguageID,toID:D[J].toLanguageID},J!=0)}xGetElementById(O.ling.divParent).appendChild(O);lingMENU.showTable(O)}}else{var B=(I&lingMENU.CAN_SELECT_LISTS)!=0?0:lingMENU.FOLDER;lingAPI.getPackChildren(K,B,0,false,0,0,lingMENU.getHierarchyMenuCB,null,O)}}};lingMENU.getRootMenu=function(D,L,M,G,E,A,I,H,B,C){L=xGetElementById(L);if(!L.ling){lingMENU.selectedRow=L;L.ling=new Object();L.divParent=D;L.onmouseover=function(){lingMENU.onMouseOver.call(this)};L.onmouseout=function(){lingMENU.onMouseOut.call(this)};lingMENU.addRowToOpenRows(L)}var K=lingMENU.tables.tblroot;if(K){K.ling.level=0;K.ling.rowParent=L;for(var F=0;F<K.rows.length;F++){K.rows[F].ling.level=A}lingMENU.showTable(K)}else{var J=new Object();J.divParent=D;J.rowParent=L;J.selectFlags=E;J.packID=M;J.packItemID=G;J.onSelectCB=I;J.level=A;J.createFolder=H;J.createList=B;J.onEmpty=C;var K=document.createElement("table");lingMENU.tables.tblroot=K;K.width=lingMENU.width;K.cellPadding="2";K.cellSpacing="0";K.style.backgroundColor=lingMENU.colors[A%lingMENU.colors.length].bgcolor;K.style.border="2px solid "+lingMENU.colors[A%lingMENU.colors.length].border;K.style.position="absolute";K.style.zIndex=(65000+A);K.style.display="none";K.style.visibility="hidden";K.ling=J;lingAPI.getPack(G,false,lingMENU.getHierarchyMenuCB,null,K)}};lingMENU.hideStaticMenu=function(A,C){var B=xGetElementById(A);if(B){B.parentNode.removeChild(B)}if(lingMENU.hideStaticMenuTimeout){clearTimeout(lingMENU.hideStaticMenuTimeout);lingMENU.hideStaticMenuTimeout=null}lingMENU.staticMenuTableID=null;lingMENU.staticMenuBase=null;if(C){C=xGetElementById(C);if(C){C.onmouseover=C.ling.onmouseover;C.onmouseout=C.ling.onmouseout;if(C.onmouseout){C.onmouseout.call(C)}}}lingMENU.staticMenuUnHiliteRow=null;if(lingMENU.staticMenuUnHiliteTimeout){clearTimeout(lingMENU.staticMenuUnHiliteTimeout);lingMENU.staticMenuUnHiliteTimeout=null}};lingMENU.staticMenuOnMouseOver=function(A){if(this.ling.tableID==lingMENU.staticMenuTableID){if(lingMENU.staticMenuUnHiliteTimeout){clearTimeout(lingMENU.staticMenuUnHiliteTimeout);lingMENU.staticMenuUnHiliteTimeout=null}if(lingMENU.staticMenuUnHiliteRow&&lingMENU.staticMenuUnHiliteRow!=this){lingMENU.staticMenuUnHilite()}if(A){this.style.backgroundColor=this.ling.hiliteColor;if(this.ling.contents[2]){this.cells[0].innerHTML=this.ling.contents[2]}}if(lingMENU.hideStaticMenuTimeout){clearTimeout(lingMENU.hideStaticMenuTimeout);lingMENU.hideStaticMenuTimeout=null}}};lingMENU.staticMenuUnHiliteRow=null;lingMENU.staticMenuUnHilite=function(){if(lingMENU.staticMenuUnHiliteRow){lingMENU.staticMenuUnHiliteRow.style.backgroundColor=lingMENU.staticMenuUnHiliteRow.ling.backgroundColor;lingMENU.staticMenuUnHiliteRow.cells[0].innerHTML=lingMENU.staticMenuUnHiliteRow.ling.contents[0];lingMENU.staticMenuUnHiliteRow=null}if(lingMENU.staticMenuUnHiliteTimeout){clearTimeout(lingMENU.staticMenuUnHiliteTimeout);lingMENU.staticMenuUnHiliteTimeout=null}};lingMENU.staticMenuOnMouseOut=function(A){if(A){lingMENU.staticMenuUnHiliteRow=this;if(lingMENU.staticMenuUnHiliteTimeout){clearTimeout(lingMENU.staticMenuUnHiliteTimeout)}lingMENU.staticMenuUnHiliteTimeout=setTimeout("lingMENU.staticMenuUnHilite()",10)}if(lingMENU.hideStaticMenuTimeout){clearTimeout(lingMENU.hideStaticMenuTimeout);lingMENU.hideStaticMenuTimeout=null}lingMENU.hideStaticMenuTimeout=setTimeout("lingMENU.hideStaticMenu('"+this.ling.tableID+"','"+this.id+"')",500)};lingMENU.showStaticMenu=function(base,contents,div,tableID,loc,borderColor,backgroundColor,hiliteColor,className,width,borderSize){lingMENU.clear(div);if(!borderColor){borderColor="#4080c0"}if(!borderSize){borderSize=2}if(!backgroundColor){backgroundColor="#efefff"}if(!hiliteColor){hiliteColor="#ffff00"}if(lingMENU.staticMenuTableID!=null){if(lingMENU.hideStaticMenuTimeout!=null){clearTimeout(lingMENU.hideStaticMenuTimeout);lingMENU.hideStaticMenuTimeout=null}lingMENU.hideStaticMenu(lingMENU.staticMenuTableID,lingMENU.staticMenuBase);lingMENU.staticMenuTableID=null;lingMENU.staticMenuBase=null}lingMENU.staticMenuTableID=tableID;lingMENU.staticMenuBase=base;base=xGetElementById(base);base.ling=new Object();base.ling.tableID=tableID;base.ling.borderColor=borderColor;base.ling.backgroundColor=backgroundColor;base.ling.hiliteColor=hiliteColor;base.ling.onmouseover=base.onmouseover;base.ling.onmouseout=base.onmouseout;base.onmouseover=function(){lingMENU.staticMenuOnMouseOver.call(this,false)};base.onmouseout=function(){lingMENU.staticMenuOnMouseOut.call(this,false)};div=xGetElementById(div);var table=document.createElement("table");table.id=tableID;table.cellPadding="2";table.cellSpacing="0";table.style.border=borderSize+"px solid "+borderColor;table.style.position=(loc&&loc.position?loc.position:"absolute");table.style.zIndex=(loc&&loc.zIndex?loc.zIndex:65000);table.style.display="none";table.style.visibility="hidden";table.className=className?className:"header12 blue";if(width){table.width=width}div.appendChild(table);for(var i=0;i<contents.length;i++){var tr=table.insertRow(table.rows.length);tr.ling={tableID:tableID,borderColor:borderColor,backgroundColor:contents[i][3]?contents[i][3]:backgroundColor,hiliteColor:hiliteColor,contents:contents[i]};tr.style.backgroundColor=tr.ling.backgroundColor;tr.style.cursor="pointer";tr.onmouseover=function(){lingMENU.staticMenuOnMouseOver.call(this,true)};tr.onmouseout=function(){lingMENU.staticMenuOnMouseOut.call(this,true)};tr.onclick=function(){lingMENU.hideStaticMenu(this.ling.tableID);eval(this.ling.contents[1])};var td=tr.insertCell(0);if(i>0){td.style.borderTop="1px solid "+borderColor}td.style.paddingRight="5px";td.innerHTML=contents[i][0]}showElement(table);var x;var y=xHeight(base)+xPageY(base);if(lingCOMMON.isRtol){x=xPageX(base)+xWidth(base)-xWidth(table);if(loc){if(loc&&loc.justify==lingMENU.DISPLAY_RIGHT){x=xPageX(base)}if(loc.deltaX){x-=loc.deltaX}if(loc.deltaY){y+=loc.deltaY}}}else{x=xPageX(base);if(loc){if(loc.justify==lingMENU.DISPLAY_RIGHT){x=xPageX(base)+xWidth(base)-xWidth(table)}if(loc.deltaX){x+=loc.deltaX}if(loc.deltaY){y+=loc.deltaY}}}xMoveTo(table,x,y)};var lingTEMPLATE=new Object();lingTEMPLATE.buttonBlueOnOver=function(A,B){document.getElementById("tdLeft"+A).className="buttonBlueLeftOver";document.getElementById(B).className="header12 buttonBlueOver";document.getElementById("tdRight"+A).className="buttonBlueRightOver"};lingTEMPLATE.buttonBlueOnOut=function(A,B){document.getElementById("tdLeft"+A).className="buttonBlueLeft";document.getElementById(B).className="header12 buttonBlue";document.getElementById("tdRight"+A).className="buttonBlueRight"};lingTEMPLATE.buttonOnOver=function(A,B){document.getElementById("tdLeft"+A).className="buttonLeftOver";document.getElementById(B).className="text12 buttonOver";document.getElementById("tdRight"+A).className="buttonRightOver"};lingTEMPLATE.buttonOnOut=function(A,B){document.getElementById("tdLeft"+A).className="buttonLeft";document.getElementById(B).className="text12 button";document.getElementById("tdRight"+A).className="buttonRight"};lingTEMPLATE.button=function(J,K,C,B,G,D,H,E,F){var A=Math.random();if(!C){C="id"+A}var I=null;if(F){I='<table cellpadding="0" cellspacing="0" class="squeeze"><tr>'}else{I='<table cellpadding="0" cellspacing="0" class="squeeze pointer" onmouseover="lingTEMPLATE.buttonOnOver('+A+",'"+C+'\')" onmouseout="lingTEMPLATE.buttonOnOut('+A+",'"+C+"')\"";if(!G&&K){I+=' onclick="'+K+'"'}I+="><tr>"}I+='<td class="buttonLeft" id="tdLeft'+A+'"><img src="img/bigSpacer.gif" width="5" height="20"></td>';if(G){I+='<td><input class="text12 button" type="submit" value="'+strParam(J)+'"';if(K){I+=' onclick="'+K+';event.cancelBubble=true;return false;"'}if(B){I+=' name="'+B+'"'}if(D){I+=' tabIndex="'+D+'"'}I+=' id="'+C+'"';if(F){I+=' disabled style="color:gray;cursor:default"'}I+="></td>"}else{I+='<td class="text12 button"';if(B){I+=' name="'+B+'"'}I+=' id="'+C+'"';if(F){I+=' style="color:gray;cursor:default"'}I+=">";if(!F){I+='<a href="javascript:void 0;"';if(K){I+=' onclick="'+K+';event.cancelBubble=true;return false;"'}if(D){I+=' tabIndex="'+D+'"'}I+=' class="';if(H){I+=H}else{I+="aButton"}I+='"';if(E){I+=' id="'+E+'"'}I+=">"}I+=J;if(!F){I+="</a>"}I+="</td>"}I+='<td class="buttonRight" id="tdRight'+A+'"><img src="img/bigSpacer.gif" width="5" height="20"></td>';I+="</tr></table>";return I};lingTEMPLATE.bubblePlain=function(S,N,K,L,I,D,B,G,O,C,E,R,H,J,Q){if(!E){E=""}if(!Q){Q="#4080c0"}var P=document.createElement("table");P.cellSpacing="0";P.cellPadding="0";P.width=(K?K:"100%");P.height=(H?H:"100%");P.style.lineHeight="1.3em";if(J){P.id=J}if(G){for(var M=0;M<G.length;M++){P.style[G[M][0]]=G[M][1]}}var A,F;A=P.insertRow(P.rows.length);A.className="squeeze";A.style.lineHeight="1.3em";F=A.insertCell(0);F.width="1";F.height="1";F.style.backgroundColor=Q;F.innerHTML='<img src="'+E+'img/bigSpacer.gif" width="1" height="1">';F=A.insertCell(1);F.style.backgroundColor=Q;F=A.insertCell(2);F.width="1";F.height="1";F.innerHTML='<img src="'+E+'img/bigSpacer.gif" width="1" height="1">';F.style.backgroundColor=Q;F=A.insertCell(3);F.width="1";F.height="1";F.innerHTML='<img src="'+E+'img/bigSpacer.gif" width="1" height="1">';if(S){A=P.insertRow(P.rows.length);A.className="squeeze";A.style.lineHeight="1.3em";F=A.insertCell(0);F.style.backgroundColor=Q;F=A.insertCell(1);F.style.backgroundColor=Q;F.style.paddingBottom="3px";F.style.paddingTop="2px";F.className="header14 white padLeft6 left";if(L){F.align=L}if(typeof (S)=="string"){F.innerHTML=S}else{F.appendChild(S)}F=A.insertCell(2);F.style.backgroundColor=Q;F=A.insertCell(3);F.style.backgroundColor="#cccccc"}A=P.insertRow(P.rows.length);A.className="squeeze";A.style.lineHeight="1.3em";if(O){A.id=O}F=A.insertCell(0);F.style.backgroundColor=Q;F=A.insertCell(1);F.className="text12";if(typeof (N)=="string"){F.innerHTML=N}else{F.appendChild(N)}F=A.insertCell(2);F.style.backgroundColor=Q;F=A.insertCell(3);F.style.backgroundColor="#cccccc";A=P.insertRow(P.rows.length);A.className="squeeze";A.style.lineHeight="1.3em";F=A.insertCell(0);F.height="1";F.style.backgroundColor=Q;F=A.insertCell(1);F.height="1";F.style.backgroundColor=Q;if(K){F.innerHTML='<img src="'+E+'img/bigSpacer.gif" width="'+(parseInt(K)-3)+'" height="1">'}F=A.insertCell(2);F.height="1";F.style.backgroundColor=Q;F=A.insertCell(3);F.height="1";F.style.backgroundColor="#cccccc";A=P.insertRow(P.rows.length);A.className="squeeze";A.style.lineHeight="1.3em";F=A.insertCell(0);F=A.insertCell(1);F.height="1";F.style.backgroundColor="#cccccc";F=A.insertCell(2);F.height="1";F.style.backgroundColor="#cccccc";F=A.insertCell(3);F.height="1";F.style.backgroundColor="#cccccc";return P};lingTEMPLATE.bubbleSmall=function(F,P,D,C,L,H,M,B,G,K,A,O,J){var Q=document.createElement("table");Q.cellSpacing="0";Q.cellPadding="0";Q.width=(C?C:"100%");Q.style.lineHeight="1.3em";if(!J){J=""}if(B){Q.style.backgroundImage="url("+J+"img/"+B+".gif)";Q.style.backgroundRepeat=G?G:"repeat-x"}if(K){for(var I=0;I<K.length;I++){Q.style[K[I][0]]=K[I][1]}}var N,E;if(H){N=Q.insertRow(Q.rows.length);N.className="squeeze";N.style.lineHeight="1.3em";E=N.insertCell(0);E.colSpan="3";E.innerHTML='<img src="img/ffffff.gif" height="'+J+'" width="100%">'}N=Q.insertRow(Q.rows.length);N.className="squeeze";N.style.lineHeight="1.3em";E=N.insertCell(0);E.width="8";E.innerHTML='<img src="'+J+"img/bubbleSmall"+F+"Top"+lingCOMMON.getLeft()+'.gif" width="8" height="34">';E=N.insertCell(1);E.width="100%";E.style.backgroundImage="url("+J+"img/bubbleSmall"+F+"TopMiddle.gif)";E.style.backgroundRepeat="repeat-x";if(L){E.align=L}E.style.verticalAlign="middle";E.className=M?"header14 "+M:"header14";E.style.lineHeight="1.3em";E.appendChild(P);E=N.insertCell(2);E.width="8";E.innerHTML='<img src="'+J+"img/bubbleSmall"+F+"Top"+lingCOMMON.getRight()+'.gif" width="8" height="34">';N=Q.insertRow(Q.rows.length);if(A){N.id=A}if(O){N.style.visibility="hidden";N.style.display="none"}E=N.insertCell(0);E.width="8";E.height="100%";E.style.backgroundImage="url("+J+"img/bubbleSmallMiddle"+lingCOMMON.getLeft()+".gif)";E.style.backgroundRepeat="repeat-y";E=N.insertCell(1);if(typeof (D)=="string"){E.innerHTML=D}else{E.appendChild(D)}E=N.insertCell(2);E.width="8";E.height="100%";E.style.backgroundImage="url("+J+"img/bubbleSmallMiddle"+lingCOMMON.getRight()+".gif)";E.style.backgroundRepeat="repeat-y";N=Q.insertRow(Q.rows.length);N.className="squeeze";N.style.lineHeight="1.3em";E=N.insertCell(0);E.height="8";E.innerHTML='<img src="'+J+"img/bubbleSmallBottom"+lingCOMMON.getLeft()+'.gif" width="8" height="8">';E=N.insertCell(1);E.height="8";E.style.backgroundImage="url("+J+"img/bubbleSmallBottomMiddle.gif)";E.style.backgroundRepeat="repeat-x";if(C){E.innerHTML='<img src="'+J+'img/bigSpacer.gif" width="'+(C-16)+'" height="1">'}E=N.insertCell(2);E.height="8";E.innerHTML='<img src="'+J+"img/bubbleSmallBottom"+lingCOMMON.getRight()+'.gif" width="8" height="8">';return Q};var lingPROMPT={modal:null,moveTo:function(A,B){xMoveTo(this.modal,A,B)},moveToX:function(A){xMoveTo(this.modal,A,xTop(this.modal))},moveToY:function(A){xMoveTo(this.modal,xLeft(this.modal),A)},recenter:function(){xMoveTo(this.modal,(xClientWidth()-xWidth(this.modal))/2,(xClientHeight()-xHeight(this.modal))/2)},recenterY:function(){xMoveTo(this.modal,xLeft(this.modal),(xClientHeight()-xHeight(this.modal))/2)},openModal:function(B,N,A,K,D,G,F,E){this.data=D;var M=true;if(typeof (N)=="undefined"||N==null){N=new Object()}if(typeof (N.zIndex)=="undefined"){N.zIndex=5000}if(navigator.userAgent.indexOf("MSIE")>=0){M=false;N.isAbsolute=true;if(typeof (N.y)=="undefined"){N.y=xScrollTop()+100}}var L=N.parent;if(!L){L=document.getElementsByTagName("body")[0]}if(this.background!=null&&this.background.parentNode){this.background.parentNode.removeChild(this.background)}this.background=document.createElement("div");this.background.style.position=M?"fixed":"absolute";this.background.style.zIndex=N.zIndex;this.background.style.height="100%";this.background.style.width="100%";this.background.style.backgroundColor="black";this.background.style.opacity=".4";this.background.style.filter="alpha(opacity=40)";L.appendChild(this.background);showElement(this.background);if(M){xMoveTo(this.background,0,0)}else{xMoveTo(this.background,xScrollLeft(),xScrollTop())}if(!this.modal){this.modal=document.createElement("div")}if(N&&N.isFixed){this.modal.style.position="fixed"}else{if(N&&N.isAbsolute){this.modal.style.position="absolute"}else{this.modal.style.position="fixed"}}this.modal.style.zIndex=N.zIndex+1;this.modal.align="center";this.modal.style.visibility="hidden";this.modal.style.display="none";A=new String(A);if(A.indexOf("%")<0&&A.indexOf("px")<0){A+="px"}this.modal.style.width=A;if(typeof (B)=="string"){var H="<div style='padding:4px;border:2px solid #cc0000'>";H+="<table cellpadding='0' cellspacing='4' width='"+A+"' align='center'>";H+="<tr>";H+="<td class='header13 left' id='tdPromptContents'>"+lingWRITE.text(B)+"</td>";H+="</tr>";H+="<tr><td align='center' style='padding-top:4px'><input type='text' id='txtPrompt' value='"+(K?K:"")+"' size='30' onkeydown='return mangleKD(event,this,-1)' onkeypress='return mangleKP(event,this,lingPROMPT.onclick,lingPROMPT,"+G.onclick+")'></td></tr>";H+="<tr><td align='center' style='padding-top:4px'>";H+="<input class='header12' type='button' value='"+G.value+"' onclick='lingPROMPT.onclick("+G.onclick+")'>";if(F){H+=" &nbsp; &nbsp; <input class='header12' type='button' value='"+strWS(F.value)+"' onclick='lingPROMPT.onclick("+F.onclick+")'>"}if(E){H+=" &nbsp; &nbsp; <input class='header12' type='button' value='"+strWS(E.value)+"' onclick='lingPROMPT.onclick("+E.onclick+")'>"}H+="</td></tr>";H+="</table>";H+="</div>";this.modal.appendChild(lingTEMPLATE.bubblePlain(null,H,A,null,null,null,null,[["backgroundColor","white"]],null,null,null,"Tiny",null,null,"#cc0000"))}else{for(var C=0;C<this.modal.childNodes.length;C++){hideElement(this.modal.childNodes[C])}if(B!=null&&B.parentNode){B.parentNode.removeChild(B)}this.modal.appendChild(B);showElement(B)}L.appendChild(this.modal);showElement(this.modal);var J=(xClientWidth()-xWidth(this.modal))/2;var I=(xClientHeight()-xHeight(this.modal))/2;if(N&&typeof (N.x)!="undefined"){J=N.x}if(N&&typeof (N.y)!="undefined"){I=N.y}this.moveTo(J,I);if(xGetElementById("txtPrompt")){xGetElementById("txtPrompt").focus()}},onclick:function(A){if(typeof (A)=="undefined"||!A||A.call(null,this.data,xGetElementById("txtPrompt").value)){hideElement(this.modal);this.background.parentNode.removeChild(this.background)}},close:function(){if(this.modal){hideElement(this.modal);this.background.parentNode.removeChild(this.background)}}};var lingWIZARD={open:function(F,G,E,C){if(F.initCB){F.initCB.call(this)}if(F.prompt){lingPROMPT.openModal(xGetElementById(F.divID),F.promptParams,F.width)}if(!F.stepOffset){F.stepOffset=0}for(var B=0;B<F.steps.length;B++){var D=F.steps[B];if(D.hideIDs){for(var A=0;A<D.hideIDs.length;A++){hideElement(D.hideIDs[A])}}if(D.stepIDs){for(var A=0;A<D.stepIDs.length;A++){hideElement(D.stepIDs[A])}}if(D.buttonIDs){for(var A=0;A<D.buttonIDs.length;A++){hideElement(D.buttonIDs[A])}}if(D.infoIDs){for(var A=0;A<D.infoIDs.length;A++){hideElement(D.infoIDs[A]);D.displayInfo=false}}}F.currentStep=(typeof (G)!="undefined"&&G!=null)?G:(typeof (F.firstStep)=="undefined"||F.firstStep==null)?1:F.firstStep;if(E&&C){for(var B=0;B<E.length;B++){E[B].displayInfo=true}}F.stack=E?E:[];this.gotoStep(F,F.currentStep)},close:function(A){if(A.prompt){lingPROMPT.close()}},gotoNextStep:function(D){var C=null;for(var A=0;A<D.steps.length;A++){var B=D.steps[A];if(B.id==D.currentStep){C=B;B.displayInfo=true;if(B.isPush){D.stack.push(B)}}}if(C&&typeof (C.nextID)!="undefined"){D.currentStep=C.nextID}else{D.currentStep++}this.displayStep(D)},gotoStep:function(C,D){for(var A=0;A<C.steps.length;A++){var B=C.steps[A];if(B.id==C.currentStep&&C.currentStep!=D){B.displayInfo=true;if(B.isPush){C.stack.push(B)}}}C.currentStep=D;this.displayStep(C)},gotoPrevStep:function(B){var A=B.stack.pop();A.displayInfo=false;B.currentStep=A.id;this.displayStep(B)},popToStep:function(B,C){while(B.stack.length>0){var A=B.stack.pop();A.displayInfo=false;if(A.id==C){break}}B.currentStep=C;this.displayStep(B)},popStep:function(B){if(B.stack.length>0){var A=B.stack.pop();A.displayInfo=false;B.currentStep=A.id;this.displayStep(B)}},displayStep:function(H){var E=null;var I=false;for(var G=0;G<H.steps.length;G++){var C=H.steps[G];if(C.id==H.currentStep){E=C}else{if(C.hideIDs){for(var F=0;F<C.hideIDs.length;F++){hideElement(C.hideIDs[F])}}if(C.stepIDs){for(var F=0;F<C.stepIDs.length;F++){hideElement(C.stepIDs[F])}}if(C.buttonIDs){for(var F=0;F<C.buttonIDs.length;F++){hideElement(C.buttonIDs[F])}}if(C.infoIDs){for(var F=0;F<C.infoIDs.length;F++){setVisibility(C.infoIDs[F],C.displayInfo);I=I||(C.displayInfo)}}}}if(H.infoPadding){setVisibility(H.infoPadding,I)}if(E!=null&&E.preInitCB){E.preInitCB.call(H)}if(H.breadcrumbID){var A=removeAllNodes(H.breadcrumbID);if(H.breadcrumbs&&H.breadcrumbs.length>0){var J="<table cellpadding='0' cellspacing='0' width='100%' class='squeeze'>";J+="<tr>";var L=0;var K=75/H.breadcrumbs.length;for(var G=0;G<H.breadcrumbs.length;G++){L+=H.breadcrumbs[G].length+K}for(var G=0;G<H.breadcrumbs.length;G++){var B=Math.floor((H.breadcrumbs[G].length+K)*100/L);if(G==H.stack.length+H.breadcrumbOffset){if(G<H.breadcrumbs.length-1){J+="<td width='"+B+"%'><table cellpadding='0' cellspacing='0' width='100%'><tr><td width='50%' style='background-image:url(img/4080c0.gif);background-repeat:repeat-x;background-position:center'></td><td><img src='img/breadcrumb0000cc.gif' height='11' width='11'></td><td width='50%' style='background-image:url(img/cccccc.gif);background-repeat:repeat-x;background-position:center'></td></tr></table></td>"}else{J+="<td width='"+B+"%'><table cellpadding='0' cellspacing='0' width='100%'><tr><td width='50%' style='background-image:url(img/4080c0.gif);background-repeat:repeat-x;background-position:center'></td><td><img src='img/breadcrumb0000cc.gif' height='11' width='11'></td><td width='50%'></td></tr></table></td>"}}else{if(G<H.stack.length+H.breadcrumbOffset){J+="<td width='"+B+"%'><table cellpadding='0' cellspacing='0' width='100%'><tr><td width='50%' style='background-image:url(img/4080c0.gif);background-repeat:repeat-x;background-position:center'></td><td><img src='img/breadcrumb4080c0.gif' height='9' width='9'></td><td width='50%' style='background-image:url(img/4080c0.gif);background-repeat:repeat-x;background-position:center'></td></tr></table></td>"}else{if(G<H.breadcrumbs.length-1){J+="<td width='"+B+"%'><table cellpadding='0' cellspacing='0' width='100%'><tr><td width='50%' style='background-image:url(img/cccccc.gif);background-repeat:repeat-x;background-position:center'></td><td><img src='img/breadcrumbcccccc.gif' height='9' width='9'></td><td width='50%' style='background-image:url(img/cccccc.gif);background-repeat:repeat-x;background-position:center'></td></tr></table></td>"}else{J+="<td width='"+B+"%'><table cellpadding='0' cellspacing='0' width='100%'><tr><td width='50%' style='background-image:url(img/cccccc.gif);background-repeat:repeat-x;background-position:center'></td><td><img src='img/breadcrumbcccccc.gif' height='9' width='9'></td><td width='50%'></td></tr></table></td>"}}}}J+="</tr>";J+="<tr>";for(var G=0;G<H.breadcrumbs.length;G++){var D=G<H.stack.length+H.breadcrumbOffset?" ltblue":G==H.stack.length+H.breadcrumbOffset?" blue":" gray";J+="<td class='header12 nowrap center"+D+"'>"+H.breadcrumbs[G]+"</td>"}J+="<td></td>";J+="</tr>";J+="</table>";A.innerHTML=J}}if(E!=null){if(E.stepLabelID){xGetElementById(E.stepLabelID).innerHTML=lingRESOURCES.write("Common.StepN_","Step {0}:",false,[H.stepOffset+H.stack.length+1])}if(E.hideIDs){for(var F=0;F<E.hideIDs.length;F++){hideElement(E.hideIDs[F])}}if(E.stepIDs){for(var F=0;F<E.stepIDs.length;F++){showElement(E.stepIDs[F])}}if(E.buttonIDs){for(var F=0;F<E.buttonIDs.length;F++){showElement(E.buttonIDs[F])}}if(E.infoIDs){for(var F=0;F<E.infoIDs.length;F++){hideElement(E.infoIDs[F])}}if(E.focusID){xGetElementById(E.focusID).focus()}if(E.postInitCB){E.postInitCB.call(H)}}}};var lingAPI=new Object();lingAPI.makeRandom=function(A){return(A?"&r=":"?r=")+Math.random()};lingAPI.activityDelete=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=ActivityDelete&itemID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.addAutoTuples=function(F,D,E,C,A,B){new lingNET.ContentLoader("Command.do?cmd=AddAutoTuples&packItemID="+F+"&isAddToLeitner="+D+"&toLanguageID="+E+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.assetWordAdd=function(F,E,H,C,A,I,B,G,D){new lingNET.ContentLoader("Command.do?cmd=AssetWordAdd&tupleID="+F+"&wordID="+E+"&pronunciationID="+H+"&assetID="+C+"&name="+encodeUTF8(A)+"&description="+encodeUTF8(I)+lingAPI.makeRandom(true),null,B,G,D)};lingAPI.assetWordRemove=function(B,C,F,E,A,D){new lingNET.ContentLoader("Command.do?cmd=AssetWordRemove&tupleID="+B+"&wordID="+C+"&pronunciationID="+F+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.blogCreate=function(G,D,H,A,E,I,B,F,C){new lingNET.ContentLoader("Command.do?cmd=BlogCreate&title="+encodeUTF8(G)+((D)?("&desc="+encodeUTF8(D)):"")+"&parent="+H+"&flags="+A+"&isPrivate="+E+((I)?("&tags="+encodeUTF8(I)):"")+lingAPI.makeRandom(true),null,B,F,C)};lingAPI.blogModify=function(F,H,D,I,A,E,J,B,G,C){new lingNET.ContentLoader("Command.do?cmd=BlogModify&forum="+F+"&title="+encodeUTF8(H)+((D)?("&desc="+encodeUTF8(D)):"")+"&andFlags="+I+"&orFlags="+A+"&isPrivate="+E+((J)?("&tags="+encodeUTF8(J)):"")+lingAPI.makeRandom(true),null,B,G,C)};lingAPI.blogPost=function(E,D,H,C,B,G,A,F){new lingNET.ContentLoader("Command.do?cmd=BlogPost&forum="+E+"&subject="+encodeUTF8(D)+"&langID="+H+((C)?("&tags="+encodeUTF8(C)):"")+"&body="+encodeUTF8(B)+lingAPI.makeRandom(true),null,G,A,F)};lingAPI.bookmarkAdd=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=BookmarkAdd&packItemID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.bookmarkRemove=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=BookmarkRemove&packItemID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.bundleChildAdd=function(F,B,D,E,A,C){new lingNET.ContentLoader("Command.do?cmd=BundleChildAdd&bundleID="+B+"&childItemID="+F+"&zOrder="+D+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.bundleChildMove=function(F,B,C,E,A,D){new lingNET.ContentLoader("Command.do?cmd=BundleChildMove&oldParentItemID="+B+"&newParentItemID="+C+"&childItemID="+F+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.bundleChildRemove=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=BundleChildRemove&bundleID="+B+"&childItemID="+E+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.bundleCreate=function(J,B,H,C,A,K,G,E,I,F){var D="&parentItemID="+J+"&name="+encodeUTF8(B)+"&desc="+encodeUTF8(H)+"&fromLanguageID="+C+"&toLanguageID="+A;if(typeof (K)!="undefined"&&K!=null){D+="&tags="+encodeUTF8(K)}if(typeof (G)!="undefined"&&G!=null){D+="&categories="+G.toString()}new lingNET.ContentLoader("Command.do?cmd=BundleCreate"+D+lingAPI.makeRandom(true),null,E,I,F)};lingAPI.bundleModify=function(C,B,I,D,A,K,H,F,J,G){var E="&itemID="+C;if(typeof (B)!="undefined"&&B!=null){E+="&name="+encodeUTF8(B)}if(typeof (I)!="undefined"&&I!=null){E+="&desc="+encodeUTF8(I)}if(typeof (D)!="undefined"&&D!=null&&D>=0){E+="&fromLanguageID="+D}if(typeof (A)!="undefined"&&A!=null&&A>=0){E+="&toLanguageID="+A}if(typeof (K)!="undefined"&&K!=null){E+="&tags="+encodeUTF8(K)}if(typeof (H)!="undefined"&&H!=null){E+="&categories="+H.toString()}new lingNET.ContentLoader("Command.do?cmd=BundleModify"+E+lingAPI.makeRandom(true),null,F,J,G)};lingAPI.courseCreate=function(R,N,H,M,L,C,E,O,G,K,I,D,J,B,F,P,A,Q){new lingNET.ContentLoader("Command.do?cmd=CourseCreate&name="+encodeUTF8(R)+"&desc="+encodeUTF8(N)+"&textbook="+encodeUTF8(H)+"&fromLanguageID="+M+"&toLanguageID="+L+"&restrictStudents="+C+"&fromYear="+E+"&fromMonth="+O+"&fromDay="+G+"&toYear="+K+"&toMonth="+I+"&toDay="+D+"&maxStudents="+J+"&classLevel="+B+"&type="+F+lingAPI.makeRandom(true),null,P,A,Q,"POST")};lingAPI.courseDelete=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=CourseDelete&courseID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.courseJoin=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=CourseJoin&accessCode="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.courseModify=function(R,T,O,H,L,C,E,P,G,K,I,D,M,J,B,F,Q,A,S){var N="Command.do?cmd=CourseModify&courseID="+R;if(T!=null){N+="&name="+encodeUTF8(T)}if(O!=null){N+="&desc="+encodeUTF8(O)}if(H!=null){N+="&textbook="+encodeUTF8(H)}if(L!=null){N+="&languageID="+L}if(C!=null){N+="&restrictStudents="+C}if(E!=null){N+="&fromYear="+E}if(P!=null){N+="&fromMonth="+P}if(G!=null){N+="&fromDay="+G}if(K!=null){N+="&toYear="+K}if(I!=null){N+="&toMonth="+I}if(D!=null){N+="&toDay="+D}if(M!=null){N+="&accessCode="+M}if(J!=null){N+="&maxStudents="+J}if(B!=null){N+="&classLevel="+B}if(F!=null){N+="&type="+F}new lingNET.ContentLoader(N+lingAPI.makeRandom(true),null,Q,A,S,"POST")};lingAPI.courseUserRemove=function(E,D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=CourseUserRemove&courseID="+E+"&userItemIDs="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.dialogueCreate=function(H,A,E,I,C,F,B,G,D){new lingNET.ContentLoader("Command.do?cmd=DialogueCreate&parentID="+H+"&name="+encodeUTF8(A)+"&desc="+encodeUTF8(E)+"&tags="+encodeUTF8(I)+"&difficulty="+C+"&languageID="+F+lingAPI.makeRandom(true),null,B,G,D)};lingAPI.dialogueDelete=function(B,E,D,A,C){new lingNET.ContentLoader("Command.do?cmd=DialogueDelete&parentItemID="+B+"&itemID="+E+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.dialogueGetHeaders=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=DialogueGetHeaders&languageID="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.dialogueLineCreate=function(I,A,H,C,F,B,D,G,E){new lingNET.ContentLoader("Command.do?cmd=DialogueLineCreate&dialogueID="+I+"&speakerID="+A+"&text="+encodeUTF8(H)+"&audioID="+C+"&imageID="+F+"&videoID="+B+lingAPI.makeRandom(true),null,D,G,E)};lingAPI.dialogueLineModify=function(C,A,J,D,G,B,E,I,F){var H="Command.do?cmd=DialogueLineModify&itemID="+C;if(A!=null){H+="&speakerID="+A}if(J!=null){H+="&text="+encodeUTF8(J)}if(D!=null){H+="&audioID="+D}if(G!=null){H+="&imageID="+G}if(B!=null){H+="&videoID="+B}H+=lingAPI.makeRandom(true);new lingNET.ContentLoader(H,null,E,I,F)};lingAPI.dialogueModify=function(C,B,L,M,F,H,D,I,A,E,K,G){var J="Command.do?cmd=DialogueModify&itemID="+C;if(B!=null){J+="&name="+encodeUTF8(B)}if(L!=null){J+="&introduction="+encodeUTF8(L)}if(M!=null){J+="&tags="+encodeUTF8(M)}if(F!=null){J+="&difficulty="+F}if(H!=null){J+="&languageID="+H}if(D!=null){J+="&audioID="+D}if(I!=null){J+="&imageID="+I}if(A!=null){J+="&videoID="+A}J+=lingAPI.makeRandom(true);new lingNET.ContentLoader(J,null,E,K,G)};lingAPI.dialogueSpeakerCreate=function(B,C,F,E,A,D){new lingNET.ContentLoader("Command.do?cmd=DialogueSpeakerCreate&dialogueID="+B+"&name="+encodeUTF8(C)+"&desc="+encodeUTF8(F)+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.dialogueSpeakerDelete=function(B,E,D,A,C){new lingNET.ContentLoader("Command.do?cmd=DialogueSpeakerDelete&dialogueID="+B+"&itemID="+E+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.dialogueSpeakerModify=function(B,A,I,C,F,D,H,E){var G="Command.do?cmd=DialogueSpeakerModify&itemID="+B;if(A!=null){G+="&name="+encodeUTF8(A)}if(I!=null){G+="&description="+encodeUTF8(I)}if(C!=null){G+="&audioID="+C}if(F!=null){G+="&imageID="+F}G+=lingAPI.makeRandom(true);new lingNET.ContentLoader(G,null,D,H,E)};lingAPI.drillPostResults=function(K,I,C,F,E,L,D,H,Q,P,G,J,B,M,N,O,A,R){new lingNET.ContentLoader("Command.do?cmd=DrillPostResults&testType="+K+"&fromLanguageID="+I+"&toLanguageID="+C+"&timeElapsed="+F+"&numSkipped="+E+"&numOverridden="+L+"&numTestFlashcards="+D+"&seed="+H+"&numStats="+Q+"&assignmentID="+G+"&activityID="+J+"&homeworkID="+B+"&uuid="+encodeUTF8(M)+"&packItemIDs="+P+lingAPI.makeRandom(true),"<TESTDATA>"+N+"</TESTDATA>",O,A,R,"POST")};lingAPI.findAudio=function(G,C,F,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=FindAudio&text="+encodeUTF8(G)+"&languageID="+C+"&startIndex="+F+"&maxResults="+B+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.findImages=function(F,C,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=FindImages&text="+encodeUTF8(F)+"&languageID="+C+"&maxResults="+B+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.findLessons=function(L,C,A,E,H,B,K,G,J,D,I,F){new lingNET.ContentLoader("Command.do?cmd=FindLessons&text="+encodeUTF8(L)+"&fromLanguageID="+C+"&toLanguageID="+A+"&difficulty="+E+"&skill="+H+"&level="+B+"&sortID="+K+"&page="+G+"&pageSize="+J+lingAPI.makeRandom(true),null,D,I,F)};lingAPI.findPacks=function(K,B,A,D,E,G,H,J,C,I,F){new lingNET.ContentLoader("Command.do?cmd=FindPacks&searchString="+encodeUTF8(K)+"&fromLanguageID="+B+"&toLanguageID="+A+"&numTuples="+D+"&difficulty="+E+"&sort="+G+"&page="+H+"&pageSize="+J+lingAPI.makeRandom(true),null,C,I,F)};lingAPI.findUsers=function(A,B,E,G,F,H,C,I,D){new lingNET.ContentLoader("Command.do?cmd=FindUsers&fromLanguageID="+A+"&chkTutor="+B+"&chkStudent="+E+"&homeCountryID="+G+"&page="+F+"&pageSize="+H+lingAPI.makeRandom(true),null,C,I,D)};lingAPI.forumCreate=function(G,D,H,E,A,I,B,F,C){new lingNET.ContentLoader("Command.do?cmd=ForumCreate&title="+encodeUTF8(G)+((D)?("&desc="+encodeUTF8(D)):"")+"&parent="+H+"&type="+E+"&flags="+A+((I)?("&tags="+encodeUTF8(I)):"")+lingAPI.makeRandom(true),null,B,F,C)};lingAPI.forumCreateRating=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=ForumCreateRating&itemID="+E+"&rating="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.forumGetOpenInvites=function(C,E,G,B,F,A,D){new lingNET.ContentLoader("Command.do?cmd=ForumGetOpenInvites&forumItemID="+C+"&page="+E+"&startIndex="+G+"&pageSize="+B+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.forumGetPost=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=ForumGetPost&post="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.forumModify=function(F,H,D,I,A,E,J,B,G,C){new lingNET.ContentLoader("Command.do?cmd=ForumModify&forum="+F+"&title="+encodeUTF8(H)+((D)?("&desc="+encodeUTF8(D)):"")+"&andFlags="+I+"&orFlags="+A+"&isPrivate="+E+((J)?("&tags="+encodeUTF8(J)):"")+lingAPI.makeRandom(true),null,B,G,C)};lingAPI.forumCreateFolder=function(C,H,E,D,B,G,A,F){new lingNET.ContentLoader("Command.do?cmd=ForumCreateFolder&name="+encodeUTF8(C)+((H)?("&desc="+encodeUTF8(H)):"")+"&type="+E+"&parent="+D+((B)?("&tags="+encodeUTF8(B)):"")+lingAPI.makeRandom(true),null,G,A,F)};lingAPI.forumPost=function(E,A,H,G,D,J,I,B,F,C){new lingNET.ContentLoader("Command.do?cmd=ForumPost&forumItemID="+E+"&threadItemID="+A+"&replyToItemID="+H+"&subject="+encodeUTF8(G)+"&languageID="+D+((J!=null&&J.length>0)?("&tags="+encodeUTF8(J)):"")+lingAPI.makeRandom(true),"<TEXT>"+encodeUTF8(I)+"</TEXT>",B,F,C,"POST")};lingAPI.forumModifyPost=function(H,D,C,B,G,F,A,E){new lingNET.ContentLoader("Command.do?cmd=ForumModifyPost&postItemID="+H+"&subject="+encodeUTF8(D)+"&languageID="+C+((B!=null&&B.length>0)?("&tags="+encodeUTF8(B)):"")+lingAPI.makeRandom(true),"<TEXT>"+encodeUTF8(G)+"</TEXT>",F,A,E,"POST")};lingAPI.forumMove=function(B,E,D,A,C){new lingNET.ContentLoader("Command.do?cmd=ForumMove&forumItemID="+B+"&toParentItemID="+E+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.forumResolvePostNotification=function(B,E,D,A,C){new lingNET.ContentLoader("Command.do?cmd=ForumResolvePostNotification&forumItemID="+B+"&postItemID="+E+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.forumSendNotification=function(D,B,H,C,G,F,A,E){new lingNET.ContentLoader("Command.do?cmd=ForumSendNotification&forumItemID="+D+"&threadItemID="+B+"&postItemID="+H+"&replyToThreadItemID="+C+"&replyToPostItemID="+G+lingAPI.makeRandom(true),null,F,A,E)};lingAPI.updateFolder=function(G,F,B,C,E,A,D){new lingNET.ContentLoader("Command.do?cmd=UpdateFolder&title="+encodeUTF8(G)+((F)?("&desc="+encodeUTF8(F)):"")+"&folder="+B+((C)?("&tags="+encodeUTF8(C)):"")+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.groupInvite=function(E,F,D,B,C,H,A,G){new lingNET.ContentLoader("Command.do?cmd=GroupInvite&email="+encodeUTF8(E)+"&message="+encodeUTF8(F)+"&languageID="+D+(B?"&flags="+B:"")+"&groupID="+C+lingAPI.makeRandom(true),null,H,A,G)};lingAPI.addGroupFolder=function(C,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=AddGroupFolder&groupId="+C+"&folderId="+B+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.getGroupFolders=function(B,E,C,F,A,D){new lingNET.ContentLoader("Command.do?cmd=GetGroupFolders&folderID="+B+"&page="+E+"&pageSize="+C+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.removeGroupFolder=function(C,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=RemoveGroupFolder&groupId="+C+"&folderId="+B+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.removeSubCategory=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=RemoveSubCategory&parentFolderId="+E+"&folderId="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.addSubCategory=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=AddSubCategory&parentFolderId="+E+"&folderId="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.deleteCategory=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=DeleteCategory&folderId="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.forumCreateJoin=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=ForumCreateJoin&forum="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.forumDelete=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=ForumDelete&forumItemID="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.forumDeleteItem=function(C,E,B,F,A,D){new lingNET.ContentLoader("Command.do?cmd=ForumDeleteItem&itemIDs="+C+"&force="+E+"&forum="+B+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.forumVerifyPostEditable=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=ForumVerifyPostEditable&post="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.forumGetForums=function(B,E,G,C,F,A,D){new lingNET.ContentLoader("Command.do?cmd=ForumGetForums&folderItemID="+B+"&page="+E+"&startIndex="+G+"&pageSize="+C+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.forumSearchForums=function(G,D,F,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=ForumSearchForums&str="+G+"&page="+D+"&startIndex="+F+"&pageSize="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.forumGetJoinRequests=function(D,C,F,H,B,G,A,E){new lingNET.ContentLoader("Command.do?cmd=ForumGetJoinRequests&forum="+D+"&status="+C+"&page="+F+"&startIndex="+H+"&pageSize="+B+lingAPI.makeRandom(true),null,G,A,E)};lingAPI.forumGetMostActiveThreadsTrees=function(C,F,H,B,E,G,A,D){new lingNET.ContentLoader("Command.do?cmd=ForumGetMostActiveThreads&forum="+C+"&page="+F+"&startIndex="+H+"&pageSize="+B+"&treeLevels="+E+lingAPI.makeRandom(true),null,G,A,D)};lingAPI.forumGetPostingHistory=function(C,E,G,B,F,A,D){new lingNET.ContentLoader("Command.do?cmd=ForumGetPostingHistory&forum="+C+"&page="+E+"&startIndex="+G+"&pageSize="+B+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.forumGetPosts=function(H,E,I,F,D,C,A,G,B){new lingNET.ContentLoader("Command.do?cmd=ForumGetPosts&thread="+H+"&page="+E+"&startIndex="+I+"&pageSize="+F+"&reader="+D+"&wordIndex="+C+lingAPI.makeRandom(true),null,A,G,B)};lingAPI.forumGetPostsInForum=function(F,G,L,I,A,J,K,E,D,B,H,C){new lingNET.ContentLoader("Command.do?cmd=ForumGetPostsInForum&forumItemID="+F+"&page="+G+"&startIndex="+L+"&pageSize="+I+((A!=null)?("&mstr="+A):"")+"&fromDate="+J+"&toDate="+K+"&reader="+E+"&wordIndex="+D+lingAPI.makeRandom(true),null,B,H,C)};lingAPI.forumGetRepliesToPosts=function(C,D,I,E,G,H,A,F,B){new lingNET.ContentLoader("Command.do?cmd=ForumGetRepliesToPosts&postItemIDs="+C+"&page="+D+"&startIndex="+I+"&pageSize="+E+"&fromDate="+G+"&toDate="+H+lingAPI.makeRandom(true),null,A,F,B)};lingAPI.forumGetThreads=function(A,E,J,G,H,I,K,D,B,F,C){new lingNET.ContentLoader("Command.do?cmd=ForumGetThreads&forum="+A+"&page="+E+"&startIndex="+J+"&pageSize="+G+"&fromDate="+H+"&toDate="+I+"&numPosts="+K+"&reader="+D+lingAPI.makeRandom(true),null,B,F,C)};lingAPI.forumGetThreadsTrees=function(D,E,J,G,H,I,K,C,A,F,B){new lingNET.ContentLoader("Command.do?cmd=ForumGetThreads&forum="+D+"&page="+E+"&startIndex="+J+"&pageSize="+G+"&fromDate="+H+"&toDate="+I+"&numPosts=0&treeLevels="+K+"&reader="+C+lingAPI.makeRandom(true),null,A,F,B)};lingAPI.forumGetThreadsHistory=function(C,E,G,B,F,A,D){new lingNET.ContentLoader("Command.do?cmd=ForumGetThreadsHistory&forum="+C+"&page="+E+"&startIndex="+G+"&pageSize="+B+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.forumGetUserByNickName=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=ForumGetUserByNickName&nickName="+encodeUTF8(E)+"&forum="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.forumGetUsersEx=function(F,A,B,G,K,E,H,L,J,C,I,D){new lingNET.ContentLoader("Command.do?cmd=ForumGetUsersEx&forum="+F+"&flags="+A+"&order="+B+"&reverse="+G+"&fromDate="+K+"&toDate="+E+"&page="+H+"&startIndex="+L+"&pageSize="+J+lingAPI.makeRandom(true),null,C,I,D)};lingAPI.forumLockToFolder=function(C,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=ForumLockToFolder&forumItemID="+C+"&lock="+B+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.forumModifyUser=function(E,B,D,C,G,A,F){new lingNET.ContentLoader("Command.do?cmd=ForumModifyUser&forum="+E+"&userIDs="+B+"&andUserFlags="+D+"&orUserFlags="+C+lingAPI.makeRandom(true),null,G,A,F)};lingAPI.forumReplaceUser=function(C,D,B,F,A,E){new lingNET.ContentLoader("Command.do?cmd=ForumReplaceUser&user="+C+"&forum="+D+"&userFlags="+B+lingAPI.makeRandom(true),null,F,A,E)};lingAPI.forumRequestJoin=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=ForumRequestJoin&forum="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.forumRespondInvite=function(G,C,B,F,E,A,D){new lingNET.ContentLoader("Command.do?cmd=ForumRespondInvite&resp="+encodeUTF8(G)+"&forum="+C+"&code="+encodeUTF8(B)+"&block="+F+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.forumRespondJoin=function(F,B,E,D,A,C){new lingNET.ContentLoader("Command.do?cmd=ForumRespondJoin&joinIDs="+F+"&accept="+B+"&block="+E+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.friendCancelInvite=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=FriendCancelInvite&inviteID="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.friendDropFriend=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=FriendDropFriend&friendUserIDs="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.friendGetReceivedInvites=function(D,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=FriendGetReceivedInvites&page="+D+"&pageSize="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.friendGetSentInvites=function(D,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=FriendGetSentInvites&page="+D+"&pageSize="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.friendGetFriends=function(G,D,F,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=FriendGetFriends&getReverseFlags="+G+"&page="+D+"&startIndex="+F+"&pageSize="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.friendInvite=function(C,D,B,F,A,E){new lingNET.ContentLoader("Command.do?cmd=FriendInvite&email="+encodeUTF8(C)+"&message="+encodeUTF8(D)+"&languageID="+B+lingAPI.makeRandom(true),null,F,A,E)};lingAPI.friendInviteByUserID=function(F,C,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=FriendInvite&userItemID="+F+"&message="+encodeUTF8(C)+"&languageID="+B+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.friendModifyPermissions=function(C,B,E,F,A,D){new lingNET.ContentLoader("Command.do?cmd=FriendModifyPermissions&friendUserID="+C+"&"+B+"="+E+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.friendRespond=function(D,B,C,F,A,E){new lingNET.ContentLoader("Command.do?cmd=FriendRespond&code="+encodeUTF8(D)+"&accept="+B+"&inviteeFlags="+C+lingAPI.makeRandom(true),null,F,A,E)};lingAPI.getActivities=function(C,G,F,E,B,H,A,D){new lingNET.ContentLoader("Command.do?cmd=GetActivities&lessonID="+C+"&getDetails="+G+"&getTags="+F+"&page="+E+"&pageSize="+B+lingAPI.makeRandom(true),null,H,A,D)};lingAPI.getSentenceActivity=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=GetSentenceActivity&itemID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.getBookmarks=function(C,A,B){new lingNET.ContentLoader("Command.do?cmd=GetBookmarks"+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.getComplementWords=function(G,C,B,F,E,A,D){return new lingNET.ContentLoader("Command.do?cmd=GetComplementWords&text="+encodeUTF8(G)+"&fromID="+C+"&toID="+B+"&packKind="+F+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.getCoreFolders=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=GetCoreFolders&languageID="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.getCourseDifficultWords=function(G,C,E,H,B,F,A,D){new lingNET.ContentLoader("Command.do?cmd=GetCourseDifficultWords&courseID="+G+"&whichWeek="+C+"&page="+E+"&startIndex="+H+"&pageSize="+B+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.getCourses=function(D,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=GetCourses&page="+D+"&pageSize="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.getCourseStudents=function(F,D,G,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=GetCourseStudents&courseID="+F+"&page="+D+"&startIndex="+G+"&pageSize="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.getDBStatsUpdate=function(C,A,B){new lingNET.ContentLoader("Command.do?cmd=GetDBStatsUpdate"+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.getImgDates=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=GetImgDates&tdelta="+B+"&scale="+E+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.getIsHasVerifiedEmail=function(C,A,B){new lingNET.ContentLoader("Command.do?cmd=GetIsHasVerifiedEmail"+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.getItem=function(E,C,F,D,A,B){new lingNET.ContentLoader("Command.do?cmd=GetItem&itemID="+E+"&getDetails="+C+"&requiredType="+F+lingAPI.makeRandom(true),null,D,A,B)};lingAPI.getMessageFolders=function(D,F,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=GetMessageFolders&page="+D+"&startIndex="+F+"&pageSize="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.getMessageHeaders=function(E,G,C,B,F,A,D){new lingNET.ContentLoader("Command.do?cmd=GetMessageHeaders&page="+E+"&startIndex="+G+"&pageSize="+C+"&folderID="+B+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.getMyGroups=function(D,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=GetMyGroups&page="+D+"&pageSize="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.getNewestPacks=function(B,A,F,I,G,D,C,H,E){new lingNET.ContentLoader("Command.do?cmd=GetNewestPacks&fromLanguageID="+B+"&toLanguageID="+A+"&page="+F+"&startIndex="+I+"&pageSize="+G+"&difficulty="+D+lingAPI.makeRandom(true),null,C,H,E)};lingAPI.getNumActivitiesDone=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=GetNumActivitiesDone&itemID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.getNumCourseResultsByActivityType=function(F,B,E,D,A,C){new lingNET.ContentLoader("Command.do?cmd=GetNumCourseResultsByActivityType&courseID="+F+"&startDate="+B+"&endDate="+E+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.getNumTuplesWithAudio=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=GetNumTuplesWithAudio&packItemID="+E+"&languageID="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.getNumTuplesWithImages=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=GetNumTuplesWithImages&packItemID="+E+"&languageID="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.getNumTuplesWithReadings=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=GetNumTuplesWithReadings&packItemID="+E+"&languageID="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.getNumTuplesWithTwoKinds=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=GetNumTuplesWithTwoKinds&packItemID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.getNumTuplesWithTwoLangs=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=GetNumTuplesWithTwoLangs&packItemID="+E+"&audioLanguageID="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.getNumWordsWithConjugations=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=GetNumWordsWithConjugations&packItemID="+E+"&languageID="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.getPack=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=GetPack&packItemID="+E+"&tags="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.getPackChildren=function(D,A,I,E,H,F,B,G,C){new lingNET.ContentLoader("Command.do?cmd=GetPackChildren&packItemID="+D+"&flags="+A+"&getTags="+I+"&page="+E+"&startIndex="+H+"&pageSize="+F+lingAPI.makeRandom(true),null,B,G,C)};lingAPI.getPacksByTag=function(B,A,G,J,D,F,I,C,H,E){new lingNET.ContentLoader("Command.do?cmd=GetPacksByTag&tagID="+G+"&fromLanguageID="+B+"&toLanguageID="+A+"&getTags="+J+"&difficulty="+D+"&page="+F+"&pageSize="+I+lingAPI.makeRandom(true),null,C,H,E)};lingAPI.getPackChildrenNames=function(H,C,E,G,B,F,A,D){new lingNET.ContentLoader("Command.do?cmd=GetPackChildrenNames&packItemID="+H+"&flags="+C+"&page="+E+"&startIndex="+G+"&pageSize="+B+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.getParentHierarchy=function(F,D,G,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=GetParentHierarchy&itemID="+F+"&numLevels="+D+"&getChildren="+G+"&getWriteFlags="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.getPopularPacks=function(C,A,B,G,J,I,E,D,H,F){new lingNET.ContentLoader("Command.do?cmd=GetPopularPacks&fromLanguageID="+C+"&toLanguageID="+A+"&maxTime="+B+"&page="+G+"&startIndex="+J+"&pageSize="+I+"&difficulty="+E+lingAPI.makeRandom(true),null,D,H,F)};lingAPI.getRatings=function(B,E,C,F,A,D){new lingNET.ContentLoader("Command.do?cmd=GetRatings&packID="+B+"&page="+E+"&pageSize="+C+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.getRecentlyEditedPacks=function(D,F,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=GetRecentlyEditedPacks&page="+D+"&startIndex="+F+"&pageSize="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.getRecentReadings=function(D,F,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=GetRecentReadings&page="+D+"&startIndex="+F+"&pageSize="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.getRecentTestPacks=function(D,F,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=GetRecentTestPacks&page="+D+"&startIndex="+F+"&pageSize="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.getRelatedItems=function(D,H,A,K,L,J,E,I,G,B,F,C){new lingNET.ContentLoader("Command.do?cmd=GetRelatedItems&childItemID="+D+"&parentItemID="+H+"&flags="+A+"&getDetails="+K+"&getTags="+L+"&getRatings="+J+"&page="+E+"&startIndex="+I+"&pageSize="+G+lingAPI.makeRandom(true),null,B,F,C)};lingAPI.getResultHeader=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=GetResultHeader&resultID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.getTagCloud=function(F,G,E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=GetTagCloud&fromLanguageID="+F+"&toLanguageID="+G+"&startIndex="+E+"&pageSize="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.getTestDetails=function(G,C,E,B,F,A,D){new lingNET.ContentLoader("Command.do?cmd=GetTestDetails&id="+G+"&userID="+C+"&page="+E+"&pageSize="+B+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.getTestList=function(I,A,D,E,H,F,B,G,C){new lingNET.ContentLoader("Command.do?cmd=GetTestList&userID="+I+"&scale="+A+"&tdelta="+D+"&page="+E+"&startIndex="+H+"&pageSize="+F+lingAPI.makeRandom(true),null,B,G,C)};lingAPI.getUserResultHeaders=function(H,B,G,E,C,F,A,D){new lingNET.ContentLoader("Command.do?cmd=GetUserResultHeaders&userItemID="+H+"&startDate="+B.getTime()+"&endDate="+G.getTime()+"&page="+E+"&pageSize="+C+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.groupCreate=function(G,D,H,A,E,I,B,F,C){new lingNET.ContentLoader("Command.do?cmd=GroupCreate&title="+encodeUTF8(G)+((D)?("&desc="+encodeUTF8(D)):"")+"&parent="+H+"&flags="+A+"&isPrivate="+E+((I)?("&tags="+encodeUTF8(I)):"")+lingAPI.makeRandom(true),null,B,F,C)};lingAPI.groupSetCategories=function(B,E,D,A,C){new lingNET.ContentLoader("Command.do?cmd=GroupSetCategories&forumItemID="+B+((E&&E.length>0)?("&tagIDs="+E):(""))+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.getGroupsInCategories=function(F,D,G,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=GetGroupsInCategories"+((F&&F.length>0)?("&tagIDs="+F):(""))+"&page="+D+"&startIndex="+G+"&pageSize="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.getGroupsRelatedToFolder=function(B,E,G,C,F,A,D){new lingNET.ContentLoader("Command.do?cmd=GetGroupsRelatedToFolder&folderItemID="+B+"&page="+E+"&startIndex="+G+"&pageSize="+C+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.homeworkCopy=function(F,H,E,A,D){var B="<HW>";for(var C=0;C<H.length;C++){B+="<H I='"+H[C].id+"' DD='"+H[C].dueDate.getTime()+"'/>"}B+="</HW>";var G="&courseID="+F;new lingNET.ContentLoader("Command.do?cmd=HomeworkCopy"+G+lingAPI.makeRandom(true),B,E,A,D,"POST")};lingAPI.homeworkDelete=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=HomeworkDelete&homeworkID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.homeworkGetHW=function(G,C,E,B,F,A,D){var H="&courseID="+G+"&page="+E+"&pageSize="+B;if(C!=null){H+="&whichWeek="+C}new lingNET.ContentLoader("Command.do?cmd=HomeworkGetHW"+H+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.homeworkGetResults=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=HomeworkGetResults&courseID="+E+"&whichWeek="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.homeworkModify=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=HomeworkModify&homeworkID="+E+"&dueDate="+B.getTime()+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.itemCopy=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=ItemCopy&childItemID="+E+"&parentItemID="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.itemDelete=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=ItemDelete&itemID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.itemGetChildren=function(C,B,E,F,A,D){new lingNET.ContentLoader("Command.do?cmd=ItemGetChildren&parentItemID="+C+"&flags="+B+"&getDetails="+E+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.itemMove=function(F,B,C,E,A,D){new lingNET.ContentLoader("Command.do?cmd=ItemMove&childItemID="+F+"&oldParentItemID="+B+"&newParentItemID="+C+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.itemRatingCreate=function(B,C,F,E,A,D){new lingNET.ContentLoader("Command.do?cmd=ItemRatingCreate&ratedItemID="+B+"&rating="+C+"&comment="+encodeUTF8(F)+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.itemReorder=function(G,C,E,A,D){var F="";for(var B=0;B<C.length;B++){if(B>0){F+=","}F+=C[B]}new lingNET.ContentLoader("Command.do?cmd=ItemReorder&parentID="+G+lingAPI.makeRandom(true),"<IDS>"+F+"</IDS>",E,A,D,"POST")};lingAPI.leitnerAddMostTested=function(C,A,B,I,H,E,D,G,F){new lingNET.ContentLoader("Command.do?cmd=LeitnerAddMostTested&fromLanguageID="+C+"&toLanguageID="+A+"&trustedOnly="+B+"&activityTypes="+I+"&startIndex="+H+"&maxResults="+E+lingAPI.makeRandom(true),null,D,G,F)};lingAPI.leitnerAddPack=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=LeitnerAddPack&packItemID="+E+"&activityTypes="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.leitnerAddTuple=function(D,C,B,F,A,E){new lingNET.ContentLoader("Command.do?cmd=LeitnerAddTuple&leitnerID="+D+"&activityType="+C+"&learningLanguageID="+B+lingAPI.makeRandom(true),null,F,A,E)};lingAPI.leitnerGetItems=function(D,B,E,G,C,H,A,F){new lingNET.ContentLoader("Command.do?cmd=LeitnerGetItems&languageID="+D+"&isShowDeleted="+B+"&sort="+E+"&page="+G+"&pageSize="+C+lingAPI.makeRandom(true),null,H,A,F)};lingAPI.leitnerGetLanguageStats=function(C,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=LeitnerGetLanguageStats&languageID="+C+"&activityTypes="+B+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.leitnerGetNextItems=function(D,C,G,B,F,A,E){new lingNET.ContentLoader("Command.do?cmd=LeitnerGetNextItems&activityTypes="+C+"&languageID="+D+"&startIndex="+G+"&maxResults="+B+lingAPI.makeRandom(true),null,F,A,E)};lingAPI.leitnerGetItemsToGo=function(D,C,G,B,F,A,E){new lingNET.ContentLoader("Command.do?cmd=LeitnerGetItemsToGo&activityTypes="+C+"&languageID="+D+"&startIndex="+G+"&maxResults="+B+lingAPI.makeRandom(true),null,F,A,E)};lingAPI.leitnerInitUser=function(C,A,B){new lingNET.ContentLoader("Command.do?cmd=LeitnerInitUser"+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.syncResultsToXML=function(C){var A=[];A.push("<RESULTS>");for(var B=0;B<C.length;B++){A.push("<R ID='"+C[B].leitner_item_id+"' S='"+C[B].state+"' TE='"+C[B].time_elapsed+"' WR='"+C[B].when_recorded+"'/>")}A.push("</RESULTS>");return A.join("")};lingAPI.leitnerSyncResults=function(C,E,A,D){var B=lingAPI.syncResultsToXML(C);new lingNET.ContentLoader("Command.do?cmd=LeitnerSyncResults"+lingAPI.makeRandom(true),B,E,A,D,"POST")};lingAPI.leitnerUpdate=function(D,B,G,F,C,H,A,E){new lingNET.ContentLoader("Command.do?cmd=LeitnerUpdate&leitnerID="+D+"&languageID="+B+"&action="+G+"&state="+F+"&timeElapsed="+C+lingAPI.makeRandom(true),null,H,A,E)};lingAPI.lessonCreate=function(F,B,H,L,D,I,A,K,G,C,J,E){new lingNET.ContentLoader("Command.do?cmd=LessonCreate&packItemID="+F+"&name="+encodeUTF8(B)+"&desc="+encodeUTF8(H)+"&tags="+encodeUTF8(L)+"&difficulty="+D+"&skill="+I+"&level="+A+"&fromID="+K+"&toID="+G+lingAPI.makeRandom(true),null,C,J,E)};lingAPI.lessonDelete=function(B,E,D,A,C){new lingNET.ContentLoader("Command.do?cmd=LessonDelete&parentItemID="+B+"&itemID="+E+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.lessonModify=function(C,B,J,K,D,A,F,E,I,G){var H="Command.do?cmd=LessonModify&itemID="+C;if(B!=null){H+="&name="+encodeUTF8(B)}if(J!=null){H+="&description="+encodeUTF8(J)}if(K!=null){H+="&tags="+encodeUTF8(K)}if(D!=null){H+="&fromLanguageID="+D}if(A!=null){H+="&toLanguageID="+A}if(F!=null){H+="&difficulty="+F}H+=lingAPI.makeRandom(true);new lingNET.ContentLoader(H,null,E,I,G)};lingAPI.login=function(D,C,F,B,E){var A=(new Date()).getTimezoneOffset();new lingNET.ContentLoader("Command.do?cmd=Login&name="+encodeUTF8(D)+"&password="+encodeUTF8(C)+"&tzOffset="+A+lingAPI.makeRandom(true),null,F,B,E)};lingAPI.loginSSL=function(D,C,F,B,E){var A=(new Date()).getTimezoneOffset();new lingNET.ContentLoader("https://"+location.hostname+location.pathname.substring(0,location.pathname.indexOf("/",1))+"/Command.do?cmd=Login&name="+encodeUTF8(D)+"&password="+encodeUTF8(C)+"&tzOffset="+A+lingAPI.makeRandom(true),null,F,B,E)};lingAPI.logout=function(C,A,B){new lingNET.ContentLoader("Command.do?cmd=Logout"+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.mapAddLocation=function(D,M,F,C,J,E,G,A,B,K,H,L,I){new lingNET.ContentLoader("Command.do?cmd=MapAddLocation&name="+encodeUTF8(D)+"&address="+encodeUTF8(M)+"&country="+encodeUTF8(F)+"&state="+C+"&xpos="+J+"&ypos="+E+"&kindID="+G+"&languageID="+A+"&website="+encodeUTF8(B)+"&desc="+encodeUTF8(K)+lingAPI.makeRandom(true),null,H,L,I)};lingAPI.mapDeleteLocation=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=MapDeleteLocation&id="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.mapFindLocations=function(H,E,C,A,B,G,I,L,K,D,J,F){new lingNET.ContentLoader("Command.do?cmd=MapFindLocations&languageID="+H+"&kindID="+E+"&country="+encodeUTF8(C)+"&state="+encodeUTF8(A)+"&name="+encodeUTF8(B)+"&detail="+G+"&page="+I+"&startIndex="+L+"&pageSize="+K+lingAPI.makeRandom(true),null,D,J,F)};lingAPI.mapGetGeoCode=function(B,D,A,C){new lingNET.ContentLoader("GeoCode.do?address="+escape(B),null,D,A,C)};lingAPI.mapGetLocation=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=MapGetLocation&id="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.mapGetMyLocations=function(D,F,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=MapGetMyLocations&page="+D+"&startIndex="+F+"&pageSize="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.messageAddFolder=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=MessageAddFolder&folderName="+encodeUTF8(D)+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.messageDelete=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=MessageDelete&messageID="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.messageFolderDelete=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=MessageFolderDelete&folder="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.messageFolderDeleteAllMessages=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=MessageFolderDeleteAllMessages&folder="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.messageFolderModify=function(B,E,D,A,C){new lingNET.ContentLoader("Command.do?cmd=MessageFolderModify&folder="+B+"&folderName="+encodeUTF8(E)+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.messageMove=function(C,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=MessageMove&messageID="+C+"&folder="+B+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.packCopy=function(C,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=PackCopy&packItemIDs="+C+"&parentItemID="+B+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.packCreate=function(K,D,B,I,E,C,A,G,L,F,J,H){new lingNET.ContentLoader("Command.do?cmd=PackCreate&parentID="+K+"&flags="+D+"&kind="+E+"&name="+encodeUTF8(B)+"&comment="+encodeUTF8(I)+"&fromLanguageID="+C+"&toLanguageID="+A+"&difficulty="+G+"&tags="+encodeUTF8(L)+lingAPI.makeRandom(true),null,F,J,H)};lingAPI.packDelete=function(C,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=PackDelete&parentItemID="+B+"&packItemIDs="+C+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.packItemModify=function(B,A,K,L,E,J,G,C,D,I,F){var H="Command.do?cmd=PackModify&itemID="+B;if(A!=null){H+="&name="+encodeUTF8(A)}if(K!=null){H+="&description="+encodeUTF8(K)}if(L!=null){H+="&tags="+encodeUTF8(L)}if(E!=null){H+="&difficulty="+E}if(C!=null){H+="&kind="+C}if(J!=null){H+="&fromID="+J}if(G!=null){H+="&toID="+G}H+=lingAPI.makeRandom(true);new lingNET.ContentLoader(H,null,D,I,F)};lingAPI.packMove=function(C,D,E,B,G,A,F){new lingNET.ContentLoader("Command.do?cmd=PackMove&packItemIDs="+C+"&fromPackItemID="+D+"&toPackItemID="+E+"&showMessages="+B+lingAPI.makeRandom(true),null,G,A,F)};lingAPI.packParentAdd=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=PackParentAdd&parentID="+E+"&packID="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.packRate=function(H,E,C,A,I,M,B,L,G,J,D,K,F){new lingNET.ContentLoader("Command.do?cmd=PackRate&packItemID="+H+"&rating="+E+"&wrong="+C+"&typos="+A+"&easy="+I+"&hard="+M+"&short="+B+"&long="+L+"&testStatID="+G+"&comment="+encodeUTF8(J)+lingAPI.makeRandom(true),null,D,K,F)};lingAPI.packRateRating=function(D,F,B,E,A,C){new lingNET.ContentLoader("Command.do?cmd=PackRateRating&ratingPackID="+D+"&ratingUserID="+F+"&rating="+B+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.packSetRequest=function(F,C,A,E,H,B,I,D){var G="Command.do?cmd=PackSetRequest&packItemID="+F;if(C!=-1){G+="&translations="+C}if(A!=-1){G+="&proofreading="+A}if(E!=-1){G+="&audio="+E}if(H!=-1){G+="&images="+H}G+=lingAPI.makeRandom(true);new lingNET.ContentLoader(G,null,B,I,D)};lingAPI.ping=function(C,A,B){new lingNET.ContentLoader("Command.do?cmd=Ping"+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.postFIBResults=function(A,I,K,C,B,E,J,G){var H="<ANSWERS>";for(var F=0;F<B.length;F++){if(B[F]){if(!B[F].isDone){H+='<A B="'+F+'" A="'+encodeUTF8(B[F].text)+'"/>'}else{H+='<A B="'+F+'"/>'}}}H+="</ANSWERS>";var D="&resultID="+A+"&activityID="+I+"&homeworkID="+K+"&timeElapsed="+C;new lingNET.ContentLoader("Command.do?cmd=PostFIBResults"+D+lingAPI.makeRandom(true),H,E,J,G,"POST")};lingAPI.postMCResults=function(A,H,L,B,K,I,D,J,F){var G="<ANSWERS>";for(var E=0;E<I.length;E++){if(!K[E].isDone){G+='<A S="'+I[E].sentenceID+'" A="'+I[E].answerID+'"/>'}else{G+='<A S="'+I[E].sentenceID+'"/>'}}G+="</ANSWERS>";var C="&homeworkID="+L+"&resultID="+A+"&activityID="+H+"&homeworkID="+L+"&timeElapsed="+B;new lingNET.ContentLoader("Command.do?cmd=PostMCResults"+C+lingAPI.makeRandom(true),G,D,J,F,"POST")};lingAPI.privilegeCreate=function(B,E,D,C,H,G,A,F){new lingNET.ContentLoader("Command.do?cmd=PrivilegeCreate&parentItemID="+B+"&kind="+E+"&languageID="+D+"&name="+encodeUTF8(C)+"&desc="+encodeUTF8(H)+lingAPI.makeRandom(true),null,G,A,F)};lingAPI.relationshipAdd=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=RelationshipAdd&relatedUserItemID="+E+"&flags="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.relationshipDelete=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=RelationshipDelete&relatedUserItemID="+E+"&flags="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.resultCreate=function(B,F,C,E,A,D){new lingNET.ContentLoader("Command.do?cmd=ResultCreate&activityID="+B+"&homeworkID="+F+"&timeElapsed="+C+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.resultGet=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=ResultGet&resultID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.rssGetFeed=function(H,E,G,C,B,F,A,D){new lingNET.ContentLoader("Command.do?cmd=RssGetFeed&id="+H+"&page="+E+"&startIndex="+G+"&pageSize="+C+"&entryDesc="+B+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.rssGetFeeds=function(E,G,B,C,F,A,D){new lingNET.ContentLoader("Command.do?cmd=RssGetFeeds&page="+E+"&startIndex="+G+"&pageSize="+B+"entries"+C+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.rssGetPopularFeeds=function(C,E,G,B,F,A,D){new lingNET.ContentLoader("Command.do?cmd=RssGetPopularFeeds&languageID="+C+"&page="+E+"&startIndex="+G+"&pageSize="+B+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.rssGetRecommendedFeeds=function(C,E,G,B,F,A,D){new lingNET.ContentLoader("Command.do?cmd=RssGetRecommendedFeeds&languageID="+C+"&page="+E+"&startIndex="+G+"&pageSize="+B+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.rssSubscribe=function(C,F,G,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=RssSubscribe&url="+encodeUTF8(C)+"&fromLanguageID="+F+"&toLanguageID="+G+"&tags="+B+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.rssUnsubscribe=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=RssUnsubscribe&id="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.search=function(H,C,B,A,F,G,D,I,E){new lingNET.ContentLoader("Search.do?xml=true&str="+encodeUTF8(H)+"&kind="+C+"&fromLanguageID="+B+"&toLanguageID="+A+"&showUntrusted="+F+"&page="+G+lingAPI.makeRandom(true),null,D,I,E)};lingAPI.sendMessage=function(B,G,J,H,A,I,F,C,E,D){new lingNET.ContentLoader("Command.do?cmd=SendMessage&toLine="+encodeUTF8(B)+"&subject="+encodeUTF8(G)+"&dest="+encodeUTF8(H)+"&messageID="+A+"&refItemID="+I+"&type="+F+lingAPI.makeRandom(true),"<TEXT>"+encodeUTF8(J)+"</TEXT>",C,E,D,"POST")};lingAPI.sendPassword=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=SendPassword&email="+encodeUTF8(B)+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.setTupleOrder=function(G,B,D,E,A,C){var F="Command.do?cmd=SetTupleOrder&tupleID="+B+"&zOrder="+D;F+=lingAPI.makeRandom(true);new lingNET.ContentLoader(F,G,E,A,C,"POST")};lingAPI.setTupleWordAudio=function(B,D,G,C,F,A,E){new lingNET.ContentLoader("Command.do?cmd=SetTupleWordAudio&tupleID="+B+"&wordID="+D+"&pronunciationID="+G+"&fromPronunciationID="+C+lingAPI.makeRandom(true),null,F,A,E)};lingAPI.setUserPrefs=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=SetUserPrefs&"+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.subscriptionCreate=function(D,C,B,E,G,A,F){new lingNET.ContentLoader("Command.do?cmd=SubscriptionCreate&lessonID="+D+"&timeBetweenActivities="+C+"&email="+B+"&message="+E+lingAPI.makeRandom(true),null,G,A,F)};lingAPI.subscriptionDelete=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=SubscriptionDelete&itemID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.tupleCreate=function(B,H,F,E,G,D,A,C){new lingNET.ContentLoader("Command.do?cmd=TupleCreate&packID="+B+"&fromText="+encodeUTF8(H)+"&fromLanguageID="+F+"&toText="+encodeUTF8(E)+"&toLanguageID="+G+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.tupleDelete=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=TupleDelete&tupleIDs="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.tupleModify=function(B,H,F,E,G,D,A,C){new lingNET.ContentLoader("Command.do?cmd=TupleModify&tupleID="+B+"&fromText="+encodeUTF8(H)+"&fromLanguageID="+F+"&toText="+encodeUTF8(E)+"&toLanguageID="+G+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.tupleMove=function(F,B,C,G,E,A,D){new lingNET.ContentLoader("Command.do?cmd=TupleMove&tupleIDs="+F+"&fromPackItemID="+B+"&toPackItemID="+C+"&copy="+G+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.tutorConfirmOver=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=TutorConfirmOver&bookingID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.tutorConfirmTutorAvailability=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=TutorConfirmTutorAvailability&bookingID="+E+"&isAvailable="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.tutorCreateAd=function(B,K,C,A,F,I,H,D,L,E,J,G){new lingNET.ContentLoader("Command.do?cmd=TutorCreateAd&name="+encodeUTF8(B)+"&description="+encodeUTF8(K)+"&fromLanguageID="+C+"&toLanguageID="+A+"&difficulty="+F+"&tutorFlags="+I+"&rate="+H+"&currencyID="+D+"&tags="+encodeUTF8(L)+lingAPI.makeRandom(true),null,E,J,G)};lingAPI.tutorCreateBooking=function(C,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=TutorCreateBooking&gmtDates="+C+"&adItemID="+B+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.tutorCreateSlot=function(B,C,E,A,D){new lingNET.ContentLoader("Command.do?cmd=TutorCreateSlot&gmtMinutes="+B+"&tutorUserItemID="+C+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.tutorDeleteAd=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=TutorDeleteAd&itemID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.tutorDeleteSlot=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=TutorDeleteSlot&gmtMinutes="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.tutorFindAds=function(M,G,J,I,E,B,A,C,H,L,D,K,F){new lingNET.ContentLoader("Command.do?cmd=TutorFindAds&text="+encodeUTF8(M)+"&sort="+G+"&picsOnly="+J+"&tutorFlags="+I+"&difficulty="+E+"&fromLanguageID="+B+"&toLanguageID="+A+"&countryID="+C+"&page="+H+"&pageSize="+L+lingAPI.makeRandom(true),null,D,K,F)};lingAPI.tutorGet=function(C,D,B,F,A,E){new lingNET.ContentLoader("Command.do?cmd=TutorGet&userID="+C+"&getRatings="+D+"&getImage="+B+lingAPI.makeRandom(true),null,F,A,E)};lingAPI.tutorGetAds=function(C,E,B,F,A,D){new lingNET.ContentLoader("Command.do?cmd=TutorGetAds&userID="+C+"&page="+E+"&pageSize="+B+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.tutorGetSlots=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=TutorGetSlots&adItemID="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.tutorModify=function(H,E,G,D,B,J,A,C,F,L,I){var K="";if(H!=null){K+="&city="+encodeUTF8(H)}if(E!=null){K+="&countryID="+E}if(G!=null){K+="&school="+encodeUTF8(G)}if(D!=null){K+="&website="+encodeUTF8(D)}if(B!=null){K+="&paypalEmail="+encodeUTF8(B)}if(J!=null){K+="&aboutMe="+encodeUTF8(J)}if(A!=null){K+="&qualifications="+encodeUTF8(A)}if(C!=null){K+="&style="+encodeUTF8(C)}if(K.length>0){new lingNET.ContentLoader("Command.do?cmd=TutorModify"+lingAPI.makeRandom(true),K,F,L,I,"POST")}};lingAPI.tutorAdModify=function(C,B,M,E,A,G,J,I,D,N,F,L,H){var K="Command.do?cmd=TutorModifyAd&itemID="+C;if(B!=null){K+="&name="+encodeUTF8(B)}if(M!=null){K+="&description="+encodeUTF8(M)}if(E!=null){K+="&fromLanguageID="+E}if(A!=null){K+="&toLanguageID="+A}if(G!=null){K+="&difficulty="+G}if(J!=null){K+="&tutorFlags="+J}if(I!=null){K+="&rate="+I}if(D!=null){K+="&currencyID="+D}if(N!=null){K+="&tags="+encodeUTF8(N)}new lingNET.ContentLoader(K+lingAPI.makeRandom(true),null,F,L,H,"POST")};lingAPI.tutorCancelSession=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=TutorCancelSession&bookingID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.tutorRate=function(E,B,F,D,A,C){new lingNET.ContentLoader("Command.do?cmd=TutorRate&bookingID="+E+"&rating="+B+"&comment="+encodeUTF8(F)+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.tutorReceivedPayment=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=TutorReceivedPayment&bookingID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.tutorReschedule=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=TutorReschedule&bookingID="+E+"&gmtDate="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.tutorResendPaypalEmail=function(C,A,B){new lingNET.ContentLoader("Command.do?cmd=TutorResendPaypalEmail"+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.tutorSentPaymentRequest=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=TutorSentPaymentRequest&bookingID="+D+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.tutorSetBookingSelected=function(E,B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=TutorSetBookingSelected&bookingID="+E+"&isSelected="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.userAddLanguage=function(C,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=UserAddLanguage&languageID="+C+"&skill="+B+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.userChangeNickName=function(C,F,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=UserChangeNickName&userID="+C+"&nickName="+encodeUTF8(F)+"&password="+encodeUTF8(B)+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.userCountryAdd=function(C,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=UserCountryAdd&countryID="+C+"&kind="+B+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.userCountryChange=function(C,B,D,F,A,E){new lingNET.ContentLoader("Command.do?cmd=UserCountryChange&oldCountryID="+C+"&newCountryID="+B+"&kind="+D+lingAPI.makeRandom(true),null,F,A,E)};lingAPI.userCountryRemove=function(C,B,E,A,D){new lingNET.ContentLoader("Command.do?cmd=UserCountryRemove&countryID="+C+"&kind="+B+lingAPI.makeRandom(true),null,E,A,D)};lingAPI.userCreate=function(J,O,L,N,P,C,A,E,H,B,G,I,D,K,F){var M=(new Date()).getTimezoneOffset();new lingNET.ContentLoader("Command.do?cmd=UserCreate&email="+encodeUTF8(J)+"&password="+encodeUTF8(O)+"&nickName="+encodeUTF8(L)+"&firstName="+encodeUTF8(N)+"&lastName="+encodeUTF8(P)+"&fromLanguageID="+C+"&toLanguageID="+A+"&userType="+E+"&accessCode="+H+"&optIn="+B+"&seed="+G+"&tzOffset="+M+"&captcha="+encodeUTF8(I)+lingAPI.makeRandom(true),null,D,K,F)};lingAPI.userCreateSafe=function(J,I,B,A,E,F,G,C,H,D){new lingNET.ContentLoader("Command.do?cmd=UserCreateSafe&password="+encodeUTF8(J)+"&nickName="+encodeUTF8(I)+"&fromLanguageID="+B+"&toLanguageID="+A+"&accessCode="+E+"&seed="+F+"&captcha="+encodeUTF8(G)+lingAPI.makeRandom(true),null,C,H,D)};lingAPI.userImageRemove=function(B,D,E,A,C){new lingNET.ContentLoader("Command.do?cmd=UserImageRemove&imageID="+B+"&zOrder="+D+lingAPI.makeRandom(true),null,E,A,C)};lingAPI.userModify=function(O,B,M,X,N,Q,C,D,R,H,G,F,S,L,E,T,V,J,I,K,U,A,W){var P="Command.do?cmd=UserModify";if(O!=null){P+="&oldPassword="+encodeUTF8(O)}if(B!=null){P+="&firstName="+encodeUTF8(B)}if(M!=null){P+="&lastName="+encodeUTF8(M)}if(X!=null){P+="&organization="+encodeUTF8(X)}if(N!=null){P+="&email="+encodeUTF8(N)}if(Q!=null){P+="&newPassword="+encodeUTF8(Q)}if(C!=null){P+="&fromLanguageID="+encodeUTF8(C)}if(D!=null){P+="&toLanguageID="+encodeUTF8(D)}if(R!=null){P+="&homepage="+encodeUTF8(R)}if(H!=null){P+="&icq="+encodeUTF8(H)}if(G!=null){P+="&aolIM="+encodeUTF8(G)}if(F!=null){P+="&yahooIM="+encodeUTF8(F)}if(S!=null){P+="&skype="+encodeUTF8(S)}if(L!=null){P+="&biography="+encodeUTF8(L)}if(E!=null){P+="&interests="+encodeUTF8(E)}if(T!=null){P+="&occupation="+encodeUTF8(T)}if(V!=null){P+="&showBio="+encodeUTF8(V)}if(J!=null){P+="&showContacts="+encodeUTF8(J)}if(I!=null){P+="&maxNewsTime="+I}if(K!=null){P+="&timezoneID="+K}new lingNET.ContentLoader(P+lingAPI.makeRandom(true),null,U,A,W,"POST")};lingAPI.userRemoveLanguage=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=UserRemoveLanguage&languageID="+B+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.userSearch=function(G,H,C,E,B,F,A,D){new lingNET.ContentLoader("Command.do?cmd=UserSearch&fromLanguageID="+G+"&toLanguageID="+H+"&homeCountryID="+C+"&page="+E+"&pageSize="+B+lingAPI.makeRandom(true),null,F,A,D)};lingAPI.verifyEmail=function(B,D,A,C){new lingNET.ContentLoader("Command.do?cmd=VerifyEmail&email="+encodeUTF8(B)+lingAPI.makeRandom(true),null,D,A,C)};lingAPI.verifyValidNickName=function(D,C,A,B){new lingNET.ContentLoader("Command.do?cmd=VerifyValidNickName&nickName="+encodeUTF8(D)+lingAPI.makeRandom(true),null,C,A,B)};lingAPI.wordAssetRate=function(G,E,I,C,B,F,A,H,D){new lingNET.ContentLoader("Command.do?cmd=WordAssetRate&tupleID="+G+"&wordID="+E+"&pronunciationID="+I+"&assetID="+C+"&rating="+B+"&comment="+encodeUTF8(F)+lingAPI.makeRandom(true),null,A,H,D)};lingAPI.clozeToXML=function(C,H,E,F,D,A,N,K,I,B,O,G,L,M){var J="<ACTIVITY";if(typeof (C)!="undefined"&&C!=null&&C.length>0){J+=' name="'+encodeUTF8(C)+'"'}if(typeof (H)!="undefined"&&H!=null&&H.length>0){J+=' description="'+encodeUTF8(H)+'"'}if(typeof (E)!="undefined"&&E!=null){J+=' flags="'+E+'"'}if(typeof (F)!="undefined"&&F!=null&&F.length>0){J+=' instructions="'+encodeUTF8(F)+'"'}if(typeof (D)!="undefined"&&D!=null){J+=' fromLanguageID="'+D+'"'}if(typeof (A)!="undefined"&&A!=null){J+=' toLanguageID="'+A+'"'}if(typeof (N)!="undefined"&&N!=null&&N.length>0){J+=' text="'+encodeUTF8(N)+'"'}if(typeof (K)!="undefined"&&K!=null){J+=' userAttempts="'+K+'"'}if(typeof (I)!="undefined"&&I!=null){J+=' activityFlags="'+I+'"'}if(typeof (B)!="undefined"&&B!=null){J+=' level="'+B+'"'}if(typeof (O)!="undefined"&&O!=null){J+=' tags="'+encodeUTF8(O)+'"'}if(typeof (G)!="undefined"&&G!=null){J+=' categories="'+G.toString()+'"'}if(typeof (L)!="undefined"&&L!=null){J+=' dueDate="'+L.getTime()+'"'}if(typeof (M)!="undefined"&&M>0){J+=' homeworkID="'+M+'"'}J+="/>";return J};lingAPI.clozeCreate=function(N,A,T,O,H,E,B,F,J,I,L,D,K,M,R,P,C,S){var Q="&parentItemID="+N+"&zOrder="+A;var G=lingAPI.clozeToXML(T,O,H,E,B,F,J,I,L,D,K,M,R);new lingNET.ContentLoader("Command.do?cmd=ClozeCreate"+Q+lingAPI.makeRandom(true),G,P,C,S,"POST")};lingAPI.clozeModify=function(G,T,O,I,E,A,F,K,J,M,C,L,N,R,D,P,B,S){var Q="&itemID="+G;var H=lingAPI.clozeToXML(T,O,I,E,A,F,K,J,M,C,L,N,R,D);new lingNET.ContentLoader("Command.do?cmd=ClozeModify"+Q+lingAPI.makeRandom(true),H,P,B,S,"POST")};lingAPI.messageActivityToXML=function(E,R,O,C,L,A,F,D,J,G,H,P,K,I,M,Q,B){var N="<ACTIVITY";if(typeof (E)!="undefined"&&E!=null){N+=' activityType="'+E+'"'}if(typeof (R)!="undefined"&&R!=null&&R.length>0){N+=' name="'+encodeUTF8(R)+'"'}if(typeof (O)!="undefined"&&O!=null&&O.length>0){N+=' description="'+encodeUTF8(O)+'"'}if(typeof (C)!="undefined"&&C!=null&&C.length>0){N+=' instructions="'+encodeUTF8(C)+'"'}if(typeof (L)!="undefined"&&L!=null){N+=' activityFlags="'+L+'"'}if(typeof (A)!="undefined"&&A!=null){N+=' level="'+A+'"'}if(typeof (F)!="undefined"&&F!=null){N+=' fromLanguageID="'+F+'"'}if(typeof (D)!="undefined"&&D!=null){N+=' toLanguageID="'+D+'"'}if(typeof (J)!="undefined"&&J!=null&&J.length>0){N+=' message="'+encodeUTF8(J)+'"'}if(typeof (G)!="undefined"&&G!=null){N+=' audioID="'+G+'"'}if(typeof (H)!="undefined"&&H!=null){N+=' videoID="'+H+'"'}if(typeof (P)!="undefined"&&P!=null&&P.length>0){N+=' youtubeID="'+encodeUTF8(P)+'"'}if(typeof (I)!="undefined"&&I!=null){N+=' flags="'+I+'"'}if(typeof (K)!="undefined"&&K!=null){N+=' tags="'+encodeUTF8(K)+'"'}if(typeof (M)!="undefined"&&M!=null){N+=' categories="'+M.toString()+'"'}if(typeof (Q)!="undefined"&&Q!=null){N+=' dueDate="'+Q.getTime()+'"'}if(typeof (B)!="undefined"&&B>0){N+=' homeworkID="'+B+'"'}N+="/>";return N};lingAPI.messageActivityCreate=function(P,A,G,W,Q,D,N,C,H,E,L,I,J,S,M,K,O,U,R,B,V){var T="&parentItemID="+P+"&zOrder="+A;var F=lingAPI.messageActivityToXML(G,W,Q,D,N,C,H,E,L,I,J,S,M,K,O,U);new lingNET.ContentLoader("Command.do?cmd=MessageActivityCreate"+T+lingAPI.makeRandom(true),F,R,B,V,"POST")};lingAPI.messageActivityModify=function(F,V,P,D,N,B,H,E,L,I,J,R,M,K,O,T,C,Q,A,U){var S="&itemID="+F;var G=lingAPI.messageActivityToXML(null,V,P,D,N,B,H,E,L,I,J,R,M,K,O,T,C);new lingNET.ContentLoader("Command.do?cmd=MessageActivityModify"+S+lingAPI.makeRandom(true),G,Q,A,U,"POST")};lingAPI.packDrillToXML=function(F,I,J,R,H,E,S,P,D,G,L,B,A,O,K,M,Q,C){var N="<ACTIVITY";if(typeof (F)!="undefined"&&F!=null){N+=' packItemID="'+F+'"'}if(typeof (I)!="undefined"&&I!=null){N+=' flags="'+I+'"'}if(typeof (J)!="undefined"&&J!=null){N+=' drillType="'+J+'"'}if(typeof (R)!="undefined"&&R!=null){N+=' drillFlags="'+R+'"'}if(typeof (H)!="undefined"&&H!=null){N+=' fromLanguageID="'+H+'"'}if(typeof (E)!="undefined"&&E!=null){N+=' toLanguageID="'+E+'"'}if(typeof (S)!="undefined"&&S!=null&&S.length>0){N+=' name="'+encodeUTF8(S)+'"'}if(typeof (P)!="undefined"&&P!=null&&P.length>0){N+=' description="'+encodeUTF8(P)+'"'}if(typeof (D)!="undefined"&&D!=null&&D.length>0){N+=' instructions="'+encodeUTF8(D)+'"'}if(typeof (G)!="undefined"&&G!=null){N+=' activityType="'+G+'"'}if(typeof (L)!="undefined"&&L!=null){N+=' activityFlags="'+L+'"'}if(typeof (B)!="undefined"&&B!=null){N+=' level="'+B+'"'}if(typeof (A)!="undefined"&&A!=null){N+=' drillFromLanguageID="'+A+'"'}if(typeof (O)!="undefined"&&O!=null){N+=' drillToLanguageID="'+O+'"'}if(typeof (K)!="undefined"&&K!=null){N+=' tags="'+encodeUTF8(K)+'"'}if(typeof (M)!="undefined"&&M!=null){N+=' categories="'+M.toString()+'"'}if(typeof (Q)!="undefined"&&Q!=null){N+=' dueDate="'+Q.getTime()+'"'}if(typeof (C)!="undefined"&&C>0){N+=' homeworkID="'+C+'"'}N+="/>";return N};lingAPI.packDrillCreate=function(P,F,J,K,V,I,E,W,Q,D,H,M,C,B,O,L,N,T,R,A,U){var S="&parentItemID="+P;var G=lingAPI.packDrillToXML(F,J,K,V,I,E,W,Q,D,H,M,C,B,O,L,N,T);new lingNET.ContentLoader("Command.do?cmd=PackDrillCreate"+S+lingAPI.makeRandom(true),G,R,A,U,"POST")};lingAPI.packDrillModify=function(H,G,L,M,W,K,F,X,R,E,J,O,C,B,Q,N,P,U,D,S,A,V){var T="&itemID="+H;var I=lingAPI.packDrillToXML(G,L,M,W,K,F,X,R,E,J,O,C,B,Q,N,P,U,D);new lingNET.ContentLoader("Command.do?cmd=PackDrillModify"+T+lingAPI.makeRandom(true),I,S,A,V,"POST")};lingAPI.sentenceActivityToXML=function(Z,W,L,G,M,B,D,I,E,K,A,F,H,Q,T,Y,R,V,O,X,C){var P="<ACTIVITY";if(typeof (L)!="undefined"&&L!=null){P+=' tags="'+encodeUTF8(L)+'"'}if(typeof (G)!="undefined"&&G!=null){P+=' activityType="'+G+'"'}if(typeof (M)!="undefined"&&M!=null){P+=' activityFlags="'+M+'"'}if(typeof (B)!="undefined"&&B!=null){P+=' level="'+B+'"'}if(typeof (I)!="undefined"&&I!=null){P+=' fromLanguageID="'+I+'"'}if(typeof (E)!="undefined"&&E!=null){P+=' toLanguageID="'+E+'"'}if(typeof (O)!="undefined"&&O!=null){P+=' categories="'+O.toString()+'"'}if(typeof (X)!="undefined"&&X!=null){P+=' dueDate="'+X.getTime()+'"'}if(typeof (C)!="undefined"&&C>0){P+=' homeworkID="'+C+'"'}if(typeof (K)!="undefined"&&K!=null){P+=' userAttempts="'+K+'"'}if(typeof (A)!="undefined"&&A!=null){P+=' userListens="'+A+'"'}if(typeof (H)!="undefined"&&H!=null){P+=' dialogueMode="'+H+'"'}if(typeof (Q)!="undefined"&&Q!=null){P+=' speakerChoice="'+encodeUTF8(Q)+'"'}if(typeof (T)!="undefined"&&T!=null){P+=' alignMC="'+T+'"'}if(typeof (Y)!="undefined"&&Y!=null){P+=' acMC="'+Y+'"'}if(typeof (R)!="undefined"&&R!=null){P+=' videoLayout="'+R+'"'}if(typeof (Z)!="undefined"&&Z!=null&&Z.length>0){P+=' name="'+encodeUTF8(Z)+'"'}if(typeof (W)!="undefined"&&W!=null&&W.length>0){P+=' description="'+encodeUTF8(W)+'"'}if(typeof (D)!="undefined"&&D!=null&&D.length>0){P+=' instructions="'+encodeUTF8(D)+'"'}if(typeof (F)!="undefined"&&F!=null&&F.length>0){P+=' introduction="'+encodeUTF8(F)+'"'}P+=">";if(typeof (V)!="undefined"&&V!=null&&V.length>0){P+="<SENTENCES>";for(var U=0;U<V.length;U++){var J=V[U];P+='<S BT="'+encodeUTF8(J.baseText);P+='" T="'+encodeUTF8(J.text);P+='" AUD="'+J.audioID;P+='" IMG="'+J.imageID;P+='" IMGW="'+J.imageWidth;P+='" IMGH="'+J.imageHeight;P+='" VID="'+J.videoID;P+='" H="'+encodeUTF8(J.hint);P+='" F="'+J.flags;P+='">';if(typeof (J.answers)!="undefined"&&J.answers!=null&&J.answers.length>0){for(var S=0;S<J.answers.length;S++){var N=J.answers[S];P+='<A T="'+encodeUTF8(N.text);P+='" AUD="'+N.audioID;P+='" IMG="'+N.imageID;P+='" IMGW="'+N.imageWidth;P+='" IMGH="'+N.imageHeight;P+='" VID="'+N.videoID;P+='" F="'+N.flags;P+='">';P+="</A>"}}P+="</S>"}P+="</SENTENCES>"}P+="</ACTIVITY>";return P};lingAPI.sentenceActivityCreate=function(Q,Z,T,L,H,M,C,D,J,E,K,A,G,I,O,R,Y,P,S,N,W,U,B,X){var V="&parentItemID="+Q;var F=lingAPI.sentenceActivityToXML(Z,T,L,H,M,C,D,J,E,K,A,G,I,O,R,Y,P,S,N,W);new lingNET.ContentLoader("Command.do?cmd=SentenceActivityCreate"+V+lingAPI.makeRandom(true),F,U,B,X,"POST")};lingAPI.sentenceActivityModify=function(G,Z,T,M,N,C,E,K,F,L,A,I,J,P,R,Y,Q,S,O,W,D,U,B,X){var V="&itemID="+G;var H=lingAPI.sentenceActivityToXML(Z,T,M,null,N,C,E,K,F,L,A,I,J,P,R,Y,Q,S,O,W,D);new lingNET.ContentLoader("Command.do?cmd=SentenceActivityModify"+V+lingAPI.makeRandom(true),H,U,B,X,"POST")};lingAPI.dialogueToXML=function(S,Q,H,C,J,A,G,D,F,M,N,O,E,I,K,R,B){var L="<ACTIVITY";if(typeof (S)!="undefined"&&S!=null&&S.length>0){L+=' name="'+encodeUTF8(S)+'"'}if(typeof (Q)!="undefined"&&Q!=null&&Q.length>0){L+=' description="'+encodeUTF8(Q)+'"'}if(typeof (H)!="undefined"&&H!=null){L+=' flags="'+H+'"'}if(typeof (C)!="undefined"&&C!=null&&C.length>0){L+=' instructions="'+encodeUTF8(C)+'"'}if(typeof (J)!="undefined"&&J!=null){L+=' activityFlags="'+J+'"'}if(typeof (A)!="undefined"&&A!=null){L+=' level="'+A+'"'}if(typeof (G)!="undefined"&&G!=null){L+=' fromLanguageID="'+G+'"'}if(typeof (D)!="undefined"&&D!=null){L+=' toLanguageID="'+D+'"'}if(typeof (F)!="undefined"&&F!=null){L+=' dialogueMode="'+F+'"'}if(typeof (M)!="undefined"&&M!=null){L+=' speakerChoice="'+M+'"'}if(typeof (N)!="undefined"&&N!=null){L+=' dialogueID="'+N+'"'}if(typeof (O)!="undefined"&&O!=null){L+=' speakerInfo="'+encodeUTF8(O)+'"'}if(typeof (I)!="undefined"&&I!=null){L+=' tags="'+encodeUTF8(I)+'"'}if(typeof (K)!="undefined"&&K!=null){L+=' categories="'+K.toString()+'"'}if(typeof (R)!="undefined"&&R!=null){L+=' dueDate="'+R.getTime()+'"'}if(typeof (B)!="undefined"&&B>0){L+=' homeworkID="'+B+'"'}L+=">";if(typeof (E)!="undefined"&&E!=null){L+="<DLOG";if(typeof (E.name)!="undefined"&&E.name!=null&&E.name.length>0){L+=' name="'+encodeUTF8(E.name)+'"'}if(typeof (E.introduction)!="undefined"&&E.introduction!=null&&E.introduction.length>0){L+=' introduction="'+encodeUTF8(E.introduction)+'"'}L+=">";if(typeof (E.speakers)!="undefined"&&E.speakers!=null){for(var P=0;P<E.speakers.length;P++){L+='<SPEAKER name="'+encodeUTF8(E.speakers[P].name)+'" imageID="'+encodeUTF8(E.speakers[P].imageID?E.speakers[P].imageID:"")+'" imageWidth="'+(E.speakers[P].imageWidth?E.speakers[P].imageWidth:0)+'" imageHeight="'+(E.speakers[P].imageHeight?E.speakers[P].imageHeight:0)+'"/>'}}if(typeof (E.lines)!="undefined"&&E.lines!=null){for(var P=0;P<E.lines.length;P++){L+='<LINE speakerIdx="'+E.lines[P].speakerIndex+'" text="'+encodeUTF8(E.lines[P].text)+'" audioID="'+E.lines[P].audioID+'" imageID="'+E.lines[P].imageID+'" imageWidth="'+(E.lines[P].imageWidth?E.lines[P].imageWidth:0)+'" imageHeight="'+(E.lines[P].imageHeight?E.lines[P].imageHeight:0)+'" videoID="'+E.lines[P].videoID+'"/>'}}L+="</DLOG>"}L+="</ACTIVITY>";return L};lingAPI.dialogueActivityCreate=function(N,V,Q,I,C,K,B,H,D,G,M,O,P,F,J,L,T,R,A,U){var S="&parentItemID="+N;var E=lingAPI.dialogueToXML(V,Q,I,C,K,B,H,D,G,M,O,P,F,J,L,T);new lingNET.ContentLoader("Command.do?cmd=DialogueActivityCreate"+S+lingAPI.makeRandom(true),E,R,A,U,"POST")};lingAPI.dialogueActivityModify=function(F,W,R,K,D,M,B,J,E,I,O,P,Q,H,L,N,U,C,S,A,V){var T="&itemID="+F;var G=lingAPI.dialogueToXML(W,R,K,D,M,B,J,E,I,O,P,Q,H,L,N,U,C);new lingNET.ContentLoader("Command.do?cmd=DialogueActivityModify"+T+lingAPI.makeRandom(true),G,S,A,V,"POST")};lingAPI.viewFlashcardsToXML=function(C,J,E,G,K,B,D,A,I,F,O,H,M,N){var L="<ACTIVITY";if(typeof (C)!="undefined"&&C!=null&&C.length>0){L+=' name="'+encodeUTF8(C)+'"'}if(typeof (J)!="undefined"&&J!=null&&J.length>0){L+=' description="'+encodeUTF8(J)+'"'}if(typeof (E)!="undefined"&&E!=null){L+=' flags="'+E+'"'}if(typeof (G)!="undefined"&&G!=null&&G.length>0){L+=' instructions="'+encodeUTF8(G)+'"'}if(typeof (K)!="undefined"&&K!=null){L+=' activityFlags="'+K+'"'}if(typeof (B)!="undefined"&&B!=null){L+=' level="'+B+'"'}if(typeof (D)!="undefined"&&D!=null){L+=' fromLanguageID="'+D+'"'}if(typeof (A)!="undefined"&&A!=null){L+=' toLanguageID="'+A+'"'}if(typeof (I)!="undefined"&&I!=null){L+=' packItemID="'+I+'"'}if(typeof (F)!="undefined"&&F!=null){L+=' numColumns="'+F+'"'}if(typeof (O)!="undefined"&&O!=null){L+=' tags="'+encodeUTF8(O)+'"'}if(typeof (H)!="undefined"&&H!=null){L+=' categories="'+H.toString()+'"'}if(typeof (M)!="undefined"&&M!=null){L+=' dueDate="'+M.getTime()+'"'}if(typeof (N)!="undefined"&&N>0){L+=' homeworkID="'+N+'"'}L+="/>";return L};lingAPI.viewFlashcardsCreate=function(N,A,T,O,I,D,L,C,H,E,F,J,K,M,R,P,B,S){var Q="&parentItemID="+N+"&zOrder="+A;var G=lingAPI.viewFlashcardsToXML(T,O,I,D,L,C,H,E,F,J,K,M,R);new lingNET.ContentLoader("Command.do?cmd=ViewFlashcardsCreate"+Q+lingAPI.makeRandom(true),G,P,B,S,"POST")};lingAPI.viewFlashcardsModify=function(H,A,U,P,K,E,N,C,J,F,G,L,M,O,S,D,Q,B,T){var R="&itemID="+H+"&zOrder="+A;var I=lingAPI.viewFlashcardsToXML(U,P,K,E,N,C,J,F,G,L,M,O,S,D);new lingNET.ContentLoader("Command.do?cmd=ViewFlashcardsModify"+R+lingAPI.makeRandom(true),I,Q,B,T,"POST")};lingAPI.essayToXML=function(D,C,G,F,B,A){var E="<ESSAY";if(typeof (D)!="undefined"&&D!=null){E+=' itemID="'+D+'"'}if(typeof (C)!="undefined"&&C!=null&&C.length>0){E+=' name="'+encodeUTF8(C)+'"'}if(typeof (G)!="undefined"&&G!=null&&G.length>0){E+=' desc="'+encodeUTF8(G)+'"'}if(typeof (F)!="undefined"&&F!=null&&F.length>0){E+=' text="'+encodeUTF8(F)+'"'}if(typeof (B)!="undefined"&&B!=null){E+=' tags="'+encodeUTF8(B)+'"'}if(typeof (A)!="undefined"&&A!=null){E+=' essayFlags="'+A+'"'}E+="/>";return E};lingAPI.essayCreate=function(A,G,J,K,F,I,C,H,D){var B="&parentItemID="+I;var E=lingAPI.essayToXML(0,A,G,J,K,F);new lingNET.ContentLoader("Command.do?cmd=EssayCreate"+B+lingAPI.makeRandom(true),E,C,H,D,"POST")};lingAPI.essayModifyText=function(E,F,D,A,C){var B=lingAPI.essayToXML(E,null,null,F);new lingNET.ContentLoader("Command.do?cmd=EssayModify"+lingAPI.makeRandom(true),B,D,A,C,"POST")};var lingDATE=new Object();lingDATE.isMSIE=(navigator.userAgent.indexOf("MSIE")!=-1);lingDATE.days=[lingRESOURCES.write("Common.day0","Sunday"),lingRESOURCES.write("Common.day1","Monday"),lingRESOURCES.write("Common.day2","Tuesday"),lingRESOURCES.write("Common.day3","Wednesday"),lingRESOURCES.write("Common.day4","Thursday"),lingRESOURCES.write("Common.day5","Friday"),lingRESOURCES.write("Common.day6","Saturday")];lingDATE.mons=[lingRESOURCES.write("Common.mon0","Jan"),lingRESOURCES.write("Common.mon1","Feb"),lingRESOURCES.write("Common.mon2","Mar"),lingRESOURCES.write("Common.mon3","Apr"),lingRESOURCES.write("Common.mon4","May"),lingRESOURCES.write("Common.mon5","Jun"),lingRESOURCES.write("Common.mon6","Jul"),lingRESOURCES.write("Common.mon7","Aug"),lingRESOURCES.write("Common.mon8","Sep"),lingRESOURCES.write("Common.mon9","Oct"),lingRESOURCES.write("Common.mon10","Nov"),lingRESOURCES.write("Common.mon11","Dec")];lingDATE.months=[lingRESOURCES.write("Common.month0","January"),lingRESOURCES.write("Common.month1","February"),lingRESOURCES.write("Common.month2","March"),lingRESOURCES.write("Common.month3","April"),lingRESOURCES.write("Common.month4","May"),lingRESOURCES.write("Common.month5","June"),lingRESOURCES.write("Common.month6","July"),lingRESOURCES.write("Common.month7","August"),lingRESOURCES.write("Common.month8","September"),lingRESOURCES.write("Common.month9","October"),lingRESOURCES.write("Common.month10","November"),lingRESOURCES.write("Common.month11","December")];lingDATE.calendarPrefs=null;lingDATE.makeCalendar=function(A){var B=new Date();A.selectedYear=typeof (A.year)!="undefined"?A.year:B.getFullYear();A.selectedMonth=typeof (A.month)!="undefined"?A.month:B.getMonth();A.year=A.selectedYear;A.month=A.selectedMonth;if(typeof (A.minYear)=="undefined"){A.minYear=0}if(typeof (A.maxYear)=="undefined"){A.maxYear=10000000}lingDATE.calendarPrefs=A;lingDATE.renderCalendar()};lingDATE.onPrevMonth=function(){lingDATE.calendarPrefs.month=(lingDATE.calendarPrefs.month+11)%12;if(lingDATE.calendarPrefs.month==11){lingDATE.calendarPrefs.year--}var A=new Date();A.setFullYear(lingDATE.calendarPrefs.year,lingDATE.calendarPrefs.month,1);lingDATE.renderCalendar()};lingDATE.onNextMonth=function(){lingDATE.calendarPrefs.month=(lingDATE.calendarPrefs.month+1)%12;if(lingDATE.calendarPrefs.month==0){lingDATE.calendarPrefs.year++}var A=new Date();A.setFullYear(lingDATE.calendarPrefs.year,lingDATE.calendarPrefs.month,1);lingDATE.renderCalendar()};lingDATE.onChooseDate=function(B,C,A){lingDATE.calendarPrefs.onChooseCB.call(lingDATE.calendarPrefs,B,C,A)};lingDATE.renderCalendar=function(){var N=lingDATE.calendarPrefs;var K="";var H=N.className?N.className:"text12";var M=N.lineColor?N.lineColor:"#cccccc";var O=N.bgcolor?N.bgcolor:"white";var A=N.selectedColor?N.selectedColor:"#ffff99";var D=N.cellPadding?N.cellPadding:"4";var G=new Date();var J=N.year;var F=N.month;var I=typeof (N.date)!="undefined"?N.date:G.getDate();var E=(J==N.selectedYear&&F==N.selectedMonth);var B=1;G.setFullYear(J,F,B);K+="<table cellpadding='0' cellspacing='0' style='background-color:"+M+"'><tr><td>";K+="<table cellpadding='"+D+"' cellspacing='1' class='"+H+"'>";if(!N||!N.noTitle){K+="<tr><td colspan='7' style='background-color:"+O+"'><table cellpadding='0' cellspacing='0' width='100%'><tr>";K+="<td class='left'>";K+=(F>0||J>N.minYear)?"<a href='javascript:lingDATE.onPrevMonth();void 0;'>&lt;&lt;</a>":"&nbsp;&nbsp;";K+="</td>";K+="<td class='center header12'>"+lingDATE.yyyymonthFromMillis(G.getTime())+"</td>";K+="<td class='right'>";K+=(F<11||J<N.maxYear)?"<a href='javascript:lingDATE.onNextMonth();void 0;'>&gt;&gt;</a>":"&nbsp;&nbsp;";K+="</td>";K+="</tr></table></td></tr>"}var L=G.getDay();K+="<tr>";for(var C=0;C<L;C++){K+="<td></td>"}while(G.getMonth()==F){if(G.getDay()==0&&B!=1){K+="</tr><tr>"}K+="<td style='background-color:"+(E&&B==I?A:O)+"' class='center'><a href='javascript:lingDATE.onChooseDate("+J+","+F+","+B+");void 0;'>"+G.getDate()+"</a></td>";G.setFullYear(J,F,++B);L=G.getDay()}K+="</tr>";K+="</table>";K+="</td></tr></table>";xGetElementById(N.elemID).innerHTML=K};lingDATE.getDay=function(C,A){if(A){var B=new Date();return lingDATE.days[(B.getDay()+C)%7]}else{return lingDATE.days[C]}};lingDATE.mmmddFromDay=function(B){var A=new Date();A.setTime(A.getTime()+(B*1000*60*60*24));return lingRESOURCES.write("Date.mmmdd","{0}-{1}",false,[lingDATE.mons[A.getMonth()],Math.floor(A.getDate()/10)+""+Math.floor(A.getDate()%10)])};lingDATE.makeYearOptions=function(D,A,B){var E="";for(var C=D;C<=A;C++){E+="<option value='"+C+"'";if(C==B){E+=" selected"}E+=">"+C+"</option>"}return E};lingDATE.makeDateOptions=function(A){var C="";for(var B=1;B<=31;B++){C+="<option value='"+B+"'";if(B==A){C+=" selected"}C+=">"+B+"</option>"}return C};lingDATE.makeMonthOptions=function(B){var C="";for(var A=0;A<lingDATE.months.length;A++){C+="<option value='"+A+"'";if(A==B){C+=" selected"}C+=">"+lingDATE.months[A]+"</option>"}return C};lingDATE.dateFromMillis=function(A){var B=new Date();B.setTime(A);return lingRESOURCES.write("Date.yyyymmdd","{0}-{1}-{2}",false,[B.getFullYear(),lingDATE.mons[B.getMonth()],Math.floor(B.getDate())])};lingDATE.yymmmFromMillis=function(A){var C=new Date();C.setTime(A);var B=C.getFullYear()%100;return lingRESOURCES.write("Date.yymmm","{0}-{1}",false,[Math.floor(B/10)+""+B%10,lingDATE.mons[C.getMonth()]])};lingDATE.yyyymmmFromMillis=function(A){var B=new Date();B.setTime(A);return lingRESOURCES.write("Date.yyyymmm","{0}-{1}",false,[B.getFullYear(),lingDATE.mons[B.getMonth()]])};lingDATE.yyyymonthFromMillis=function(A){var B=new Date();B.setTime(A);return lingRESOURCES.write("Date.yyyymmm","{0}-{1}",false,[B.getFullYear(),lingDATE.months[B.getMonth()]])};lingDATE.mmmddFromMillis=function(A){var B=new Date();B.setTime(A);return lingRESOURCES.write("Date.mmmdd","{0}-{1}",false,[lingDATE.mons[B.getMonth()],Math.floor(B.getDate()/10)+""+Math.floor(B.getDate()%10)])};lingDATE.dateTimeFromMillis=function(A){var C=new Date();C.setTime(A);var B=C.getMinutes();return lingRESOURCES.write("Date.yyyymmdd_hhmm","{0}-{1}-{2} {3}:{4}",false,[C.getFullYear(),lingDATE.mons[C.getMonth()],Math.floor(C.getDate()/10)+""+Math.floor(C.getDate()%10),C.getHours(),Math.floor(B/10)+""+(B%10)])};lingDATE.shortDateTimeFromMillis=function(C){var F=new Date();F.setTime(C);var E=F.getMinutes();var D=F.getFullYear()%100;var A=(F.getHours()==0)?12:((F.getHours()>12)?F.getHours()-12:F.getHours());var B=(F.getHours()>=12)?lingRESOURCES.write("Date.pm","PM"):lingRESOURCES.write("Date.am","AM");return lingRESOURCES.write("Date.mmddyyyy_hhmm","{0}/{1}/{2} {3}:{4} {5}",false,[F.getMonth()+1,F.getDate(),Math.floor(D/10)+""+Math.floor(D%10),A,Math.floor(E/10)+""+(E%10),B])};lingDATE.mmmdd_hhmmFromMillis=function(A){var C=new Date();C.setTime(A);var B=C.getMinutes();return lingRESOURCES.write("Date.mmmdd_hhmm","{0}-{1} {2}:{3}",false,[lingDATE.mons[C.getMonth()],Math.floor(C.getDate()/10)+""+Math.floor(C.getDate()%10),C.getHours(),Math.floor(B/10)+""+(B%10)])};lingDATE.timeFromMillis=function(D,E){var C=Math.floor(D/1000);var F=Math.floor(C/60);var B=Math.floor(F/60);F%=60;C%=60;if(E){if(B>0){return lingRESOURCES.write("Date.time_hhmmss","{0} hours, {1} minutes, {2} seconds",false,[B,F,C])}if(F>0){return lingRESOURCES.write("Date.time_mmss","{0} minutes, {1} seconds",false,[F,C])}var A=Math.floor((D%1000)/100);if(A!=0){return lingRESOURCES.write("Date.time_ss_decimal","{0}.{1} seconds",false,[C,A])}else{return lingRESOURCES.write("Date.time_ss","{0} seconds",false,[C])}}else{return lingRESOURCES.write("Date.clock","{0}:{1}:{2}",false,[B,Math.floor(F/10)+""+(F%10),Math.floor(C/10)+""+(C%10)])}};lingDATE.getWhichWeek=function(B){var A=new Date();A.setSeconds(1);if(A.getDay()>0){A.setTime(A.getTime()-(1000*60*60*24*A.getDay()))}A.setHours(0);A.setMinutes(0);A.setMilliseconds(0);return Math.floor((B-A.getTime())/(1000*60*60*24*7))};var InternetExplorer=navigator.appName.indexOf("Microsoft")!=-1;var playItemAudioCB=null;function playItemAudio(C,A){if(C&&C!=""&&C!="0"){playItemAudioCB=A;var B=InternetExplorer?document.all.linguapi:document.linguapi;B.SetVariable("itemID",C);B.TGotoFrame("/api_mc",40)}}function stopAudio(){var A=InternetExplorer?document.all.linguapi:document.linguapi;A.SetVariable("itemID",0);A.TGotoFrame("/api_mc",40)}function linguapi_DoFSCommand(B,A){if(playItemAudioCB){playItemAudioCB.call(null,B,A)}}if(navigator.appName&&navigator.appName.indexOf("Microsoft")!=-1&&navigator.userAgent.indexOf("Windows")!=-1&&navigator.userAgent.indexOf("Windows 3.1")==-1){document.write('<script language="VBScript">\n');document.write("On Error Resume Next\n");document.write("Sub linguapi_FSCommand(ByVal command, ByVal args)\n");document.write("  call linguapi_DoFSCommand(command, args)\n");document.write("end sub\n");document.write("<\/script>\n")}var lingPRONUNCIATION={shiftTO:null,shiftTimer:null,onDoStop:function(B){var A=document.applets[B];var C=A&&A.hasRecordedAudioData();setVisibility("divNLAudioStop",false);setVisibility("divNLAudioRecord",true);setVisibility("divNLAudioPlayRecorded",C);setVisibility("divNLAudioClear",C);setVisibility("divNLAudioPlaySample",true);setVisibility("divNLAudioPlayCompare",C);setVisibility("tdWaveAppletShiftLeft",C);setVisibility("tdWaveAppletShiftRight",C)},stop:function(B){var A=document.applets[B];if(A){A.doStop()}},record:function(B){var A=document.applets[B];if(A){A.jsDoRecord()}setVisibility("divNLAudioStop",true);setVisibility("divNLAudioRecord",false);setVisibility("divNLAudioPlayRecorded",false);setVisibility("divNLAudioPlaySample",false);setVisibility("divNLAudioPlayCompare",false);setVisibility("divNLAudioClear",false);setVisibility("tdWaveAppletShiftLeft",false);setVisibility("tdWaveAppletShiftRight",false)},playRecorded:function(B){var A=document.applets[B];if(A){A.doPlay()}setVisibility("divNLAudioStop",true);setVisibility("divNLAudioRecord",false);setVisibility("divNLAudioPlayRecorded",false);setVisibility("divNLAudioPlaySample",false);setVisibility("divNLAudioPlayCompare",false);setVisibility("divNLAudioClear",false);setVisibility("tdWaveAppletShiftLeft",false);setVisibility("tdWaveAppletShiftRight",false)},playSample:function(C){var B=document.applets[C];var A=true;if(B){B.doPlaySample()}setVisibility("divNLAudioStop",true);setVisibility("divNLAudioRecord",false);setVisibility("divNLAudioPlayRecorded",false);setVisibility("divNLAudioPlaySample",false);setVisibility("divNLAudioPlayCompare",false);setVisibility("divNLAudioClear",false);setVisibility("tdWaveAppletShiftLeft",false);setVisibility("tdWaveAppletShiftRight",false)},playCompare:function(B){var A=document.applets[B];if(A){A.doPlayCompare()}setVisibility("divNLAudioStop",true);setVisibility("divNLAudioRecord",false);setVisibility("divNLAudioPlayRecorded",false);setVisibility("divNLAudioPlaySample",false);setVisibility("divNLAudioPlayCompare",false);setVisibility("divNLAudioClear",false);setVisibility("tdWaveAppletShiftLeft",false);setVisibility("tdWaveAppletShiftRight",false)},clear:function(B){var A=document.applets[B];if(A){A.clear()}setVisibility("divNLAudioStop",false);setVisibility("divNLAudioRecord",true);setVisibility("divNLAudioPlayRecorded",false);setVisibility("divNLAudioPlaySample",true);setVisibility("divNLAudioPlayCompare",false);setVisibility("divNLAudioClear",false);setVisibility("tdWaveAppletShiftLeft",false);setVisibility("tdWaveAppletShiftRight",false)},hasValidAudioSample:function(B){var A=document.applets[B];if(A){return A.hasValidSampleData()}return false},shiftRecordedOffset:function(C,A){var B=document.applets[C];if(B){B.shiftRecordedOffset(A)}},stopShiftTimer:function(){if(this.shiftTO){clearTimeout(this.shiftTO);this.shiftTO=null}if(this.shiftTimer){clearInterval(this.shiftTimer);this.shiftTimer=null}},startShiftTimer:function(B,A){if(this.shiftTO){clearTimeout(this.shiftTO);this.shiftTO=null;this.stopShiftTimer();this.shiftTimer=setInterval(this.shiftRecordedOffset,100,B,A)}},startShiftRecordedOffset:function(B,A){this.shiftRecordedOffset(B,A);this.shiftTO=setTimeout("lingPRONUNCIATION.startShiftTimer('"+B+"',"+A+")",250)},stopShiftRecordedOffset:function(){if(this.shiftTO){clearTimeout(this.shiftTO);this.shiftTO=null}},setPronunciationItemID:function(C,B){var A=document.applets[C];if(A){A.clearGraph();A.resetPronunciationItemID(B)}setVisibility("divNLAudioStop",false);setVisibility("divNLAudioRecord",true);setVisibility("divNLAudioPlayRecorded",false);setVisibility("divNLAudioPlaySample",true);setVisibility("divNLAudioPlayCompare",false);setVisibility("divNLAudioClear",false);setVisibility("tdWaveAppletShiftLeft",false);setVisibility("tdWaveAppletShiftRight",false)},openWaveAppletCB:function(A){xGetElementById("divWaveApplet").innerHTML="<applet name='pronunciationApplet' code='com.GLApplet.applet.PronunciationApplet.class' archive='pronunciation.jar,jl1.0.jar,netscape.jar' codebase='applets/' width='550' height='300' mayscript='true'><PARAM NAME='itemID' VALUE='"+A+"'><PARAM NAME='allowGraphScrollbar' VALUE='false'><PARAM NAME='allowGraphButtons' VALUE='false'><PARAM NAME='sampleColor' VALUE='4080c0'><PARAM NAME='recordedColor' VALUE='ff9900'><PARAM NAME='paddingBefore' VALUE='0.2'><PARAM NAME='paddingAfter' VALUE='0.1'><PARAM NAME='meterColor' VALUE='00FF00'><PARAM NAME='doStopCallback' VALUE='lingPRONUNCIATION.onDoStop(\"pronunciationApplet\")'></applet>";setVisibility("divNLAudioStop",false);setVisibility("divNLAudioRecord",true);setVisibility("divNLAudioPlayRecorded",false);setVisibility("divNLAudioPlaySample",true);setVisibility("divNLAudioPlayCompare",false);setVisibility("divNLAudioClear",false);setVisibility("tdWaveAppletShiftLeft",false);setVisibility("tdWaveAppletShiftRight",false)},openWaveApplet:function(A){xGetElementById("divWaveApplet").innerHTML="<div class='squeeze' align='center' style='width:550px;margin-top:110px;margin-bottom:110px'><div class='header13 center' style='margin-bottom:10px'>"+lingRESOURCES.write("NewLayout2.Loading_","Loading...")+"</div><div align='center'><img src='img/progressBig.gif'></div></div>";lingPROMPT.openModal(xGetElementById("divWaveCompare"),null,700);setVisibility("divNLAudioStop",false);setVisibility("divNLAudioRecord",false);setVisibility("divNLAudioPlayRecorded",false);setVisibility("divNLAudioPlaySample",false);setVisibility("divNLAudioPlayCompare",false);setVisibility("divNLAudioClear",false);setVisibility("tdWaveAppletShiftLeft",false);setVisibility("tdWaveAppletShiftRight",false);setTimeout("lingPRONUNCIATION.openWaveAppletCB('"+A+"')",10)}};var lingCOUNTRY={get:function(A){return this.dictionary[A]},makeSelect:function(B,G,F,D,C,J,I){var H="<select class='"+G+"' id='"+B+"'";if(D){H+=" onchange='"+D+"'"}H+=">";if(I){H+="<option value='0'>"+I+"</option>"}for(var E=0;E<this.countries.length;E++){if(this.countries[E]&&!this.countries[E].hidden){H+="<option value='"+this.countries[E].id+"' id='"+G+this.countries[E].id+"'";if(F==this.countries[E].id){H+=" selected"}var A=this.countries[E].name;if(C&&A.length>C){A=A.substring(0,C);if(J){A+=J}}H+=">"+strWS(A)+"</option>"}}H+="</select>";return H},countries:[{id:1,name:lingRESOURCES.write("Common.country1","Asia/Pacific Region"),languageID:8,timezoneID:34,code:"ap",hidden:true},{id:2,name:lingRESOURCES.write("Common.country2","Europe"),languageID:16,timezoneID:18,code:"eu",hidden:true},{id:3,name:lingRESOURCES.write("Common.country3","Andorra"),languageID:16,timezoneID:18,code:"ad",hidden:false},{id:4,name:lingRESOURCES.write("Common.country4","United Arab Emirates"),languageID:0,timezoneID:22,code:"ae",hidden:false},{id:5,name:lingRESOURCES.write("Common.country5","Afghanistan"),languageID:75,timezoneID:23,code:"af",hidden:false},{id:6,name:lingRESOURCES.write("Common.country6","Antigua and Barbuda"),languageID:13,timezoneID:11,code:"ag",hidden:false},{id:7,name:lingRESOURCES.write("Common.country7","Anguilla"),languageID:13,timezoneID:11,code:"ai",hidden:false},{id:8,name:lingRESOURCES.write("Common.country8","Albania"),languageID:59,timezoneID:18,code:"al",hidden:false},{id:9,name:lingRESOURCES.write("Common.country9","Armenia"),languageID:60,timezoneID:22,code:"am",hidden:false},{id:10,name:lingRESOURCES.write("Common.country10","Netherlands Antilles"),languageID:12,timezoneID:11,code:"an",hidden:false},{id:11,name:lingRESOURCES.write("Common.country11","Angola"),languageID:36,timezoneID:18,code:"ao",hidden:false},{id:12,name:lingRESOURCES.write("Common.country12","Antarctica"),languageID:13,timezoneID:17,code:"aq",hidden:false},{id:13,name:lingRESOURCES.write("Common.country13","Argentina"),languageID:45,timezoneID:13,code:"ar",hidden:false},{id:14,name:lingRESOURCES.write("Common.country14","American Samoa"),languageID:13,timezoneID:2,code:"as",hidden:false},{id:15,name:lingRESOURCES.write("Common.country15","Austria"),languageID:17,timezoneID:18,code:"at",hidden:false},{id:16,name:lingRESOURCES.write("Common.country16","Australia"),languageID:13,timezoneID:34,code:"au",hidden:false},{id:17,name:lingRESOURCES.write("Common.country17","Aruba"),languageID:12,timezoneID:11,code:"aw",hidden:false},{id:18,name:lingRESOURCES.write("Common.country18","Azerbaijan"),languageID:64,timezoneID:22,code:"az",hidden:false},{id:19,name:lingRESOURCES.write("Common.country19","Bosnia and Herzegovina"),languageID:68,timezoneID:18,code:"ba",hidden:false},{id:20,name:lingRESOURCES.write("Common.country20","Barbados"),languageID:13,timezoneID:11,code:"bb",hidden:false},{id:21,name:lingRESOURCES.write("Common.country21","Bangladesh"),languageID:2,timezoneID:27,code:"bd",hidden:false},{id:22,name:lingRESOURCES.write("Common.country22","Belgium"),languageID:16,timezoneID:18,code:"be",hidden:false},{id:23,name:lingRESOURCES.write("Common.country23","Burkina Faso"),languageID:16,timezoneID:17,code:"bf",hidden:false},{id:24,name:lingRESOURCES.write("Common.country24","Bulgaria"),languageID:3,timezoneID:19,code:"bg",hidden:false},{id:25,name:lingRESOURCES.write("Common.country25","Bahrain"),languageID:0,timezoneID:20,code:"bh",hidden:false},{id:26,name:lingRESOURCES.write("Common.country26","Burundi"),languageID:16,timezoneID:19,code:"bi",hidden:false},{id:27,name:lingRESOURCES.write("Common.country27","Benin"),languageID:16,timezoneID:18,code:"bj",hidden:false},{id:28,name:lingRESOURCES.write("Common.country28","Bermuda"),languageID:13,timezoneID:11,code:"bm",hidden:false},{id:29,name:lingRESOURCES.write("Common.country29","Brunei Darussalam"),languageID:31,timezoneID:31,code:"bn",hidden:false},{id:30,name:lingRESOURCES.write("Common.country30","Bolivia"),languageID:45,timezoneID:11,code:"bo",hidden:false},{id:31,name:lingRESOURCES.write("Common.country31","Brazil"),languageID:36,timezoneID:13,code:"br",hidden:false},{id:32,name:lingRESOURCES.write("Common.country32","Bahamas"),languageID:13,timezoneID:9,code:"bs",hidden:false},{id:33,name:lingRESOURCES.write("Common.country33","Bhutan"),languageID:13,timezoneID:27,code:"bt",hidden:false},{id:34,name:lingRESOURCES.write("Common.country34","Bouvet Island"),languageID:33,timezoneID:17,code:"bv",hidden:false},{id:35,name:lingRESOURCES.write("Common.country35","Botswana"),languageID:113,timezoneID:19,code:"bw",hidden:false},{id:36,name:lingRESOURCES.write("Common.country36","Belarus"),languageID:71,timezoneID:19,code:"by",hidden:false},{id:37,name:lingRESOURCES.write("Common.country37","Belize"),languageID:13,timezoneID:8,code:"bz",hidden:false},{id:38,name:lingRESOURCES.write("Common.country38","Canada"),languageID:13,timezoneID:8,code:"ca",hidden:false},{id:39,name:lingRESOURCES.write("Common.country39","Cocos (Keeling) Islands"),languageID:13,timezoneID:28,code:"cc",hidden:false},{id:40,name:lingRESOURCES.write("Common.country40","Congo, Democratic Republic of"),languageID:16,timezoneID:18,code:"cd",hidden:false},{id:41,name:lingRESOURCES.write("Common.country41","Central African Republic"),languageID:16,timezoneID:18,code:"cf",hidden:false},{id:42,name:lingRESOURCES.write("Common.country42","Congo"),languageID:16,timezoneID:18,code:"cg",hidden:false},{id:43,name:lingRESOURCES.write("Common.country43","Switzerland"),languageID:17,timezoneID:18,code:"ch",hidden:false},{id:44,name:lingRESOURCES.write("Common.country44","Cote D'Ivoire"),languageID:16,timezoneID:17,code:"ci",hidden:false},{id:45,name:lingRESOURCES.write("Common.country45","Cook Islands"),languageID:13,timezoneID:3,code:"ck",hidden:false},{id:46,name:lingRESOURCES.write("Common.country46","Chile"),languageID:45,timezoneID:11,code:"cl",hidden:false},{id:47,name:lingRESOURCES.write("Common.country47","Cameroon"),languageID:16,timezoneID:18,code:"cm",hidden:false},{id:48,name:lingRESOURCES.write("Common.country48","China"),languageID:8,timezoneID:31,code:"cn",hidden:false},{id:49,name:lingRESOURCES.write("Common.country49","Colombia"),languageID:45,timezoneID:9,code:"co",hidden:false},{id:50,name:lingRESOURCES.write("Common.country50","Costa Rica"),languageID:45,timezoneID:8,code:"cr",hidden:false},{id:51,name:lingRESOURCES.write("Common.country51","Cuba"),languageID:45,timezoneID:9,code:"cu",hidden:false},{id:52,name:lingRESOURCES.write("Common.country52","Cape Verde"),languageID:36,timezoneID:16,code:"cv",hidden:false},{id:53,name:lingRESOURCES.write("Common.country53","Christmas Island"),languageID:13,timezoneID:44,code:"cx",hidden:false},{id:54,name:lingRESOURCES.write("Common.country54","Cyprus"),languageID:18,timezoneID:19,code:"cy",hidden:false},{id:55,name:lingRESOURCES.write("Common.country55","Czech Republic"),languageID:10,timezoneID:18,code:"cz",hidden:false},{id:56,name:lingRESOURCES.write("Common.country56","Germany"),languageID:17,timezoneID:18,code:"de",hidden:false},{id:57,name:lingRESOURCES.write("Common.country57","Djibouti"),languageID:0,timezoneID:20,code:"dj",hidden:false},{id:58,name:lingRESOURCES.write("Common.country58","Denmark"),languageID:11,timezoneID:18,code:"dk",hidden:false},{id:59,name:lingRESOURCES.write("Common.country59","Dominica"),languageID:13,timezoneID:11,code:"dm",hidden:false},{id:60,name:lingRESOURCES.write("Common.country60","Dominican Republic"),languageID:45,timezoneID:11,code:"do",hidden:false},{id:61,name:lingRESOURCES.write("Common.country61","Algeria"),languageID:0,timezoneID:18,code:"dz",hidden:false},{id:62,name:lingRESOURCES.write("Common.country62","Ecuador"),languageID:45,timezoneID:9,code:"ec",hidden:false},{id:63,name:lingRESOURCES.write("Common.country63","Estonia"),languageID:77,timezoneID:19,code:"ee",hidden:false},{id:64,name:lingRESOURCES.write("Common.country64","Egypt"),languageID:0,timezoneID:19,code:"eg",hidden:false},{id:65,name:lingRESOURCES.write("Common.country65","Western Sahara"),languageID:0,timezoneID:17,code:"eh",hidden:false},{id:66,name:lingRESOURCES.write("Common.country66","Eritrea"),languageID:0,timezoneID:20,code:"er",hidden:false},{id:67,name:lingRESOURCES.write("Common.country67","Spain"),languageID:45,timezoneID:18,code:"es",hidden:false},{id:68,name:lingRESOURCES.write("Common.country68","Ethiopia"),languageID:130,timezoneID:20,code:"et",hidden:false},{id:69,name:lingRESOURCES.write("Common.country69","Finland"),languageID:15,timezoneID:19,code:"fi",hidden:false},{id:70,name:lingRESOURCES.write("Common.country70","Fiji"),languageID:13,timezoneID:40,code:"fj",hidden:false},{id:71,name:lingRESOURCES.write("Common.country71","Falkland Islands"),languageID:13,timezoneID:11,code:"fk",hidden:false},{id:72,name:lingRESOURCES.write("Common.country72","Micronesia"),languageID:22,timezoneID:36,code:"fm",hidden:false},{id:73,name:lingRESOURCES.write("Common.country73","Faroe Islands"),languageID:11,timezoneID:17,code:"fo",hidden:false},{id:74,name:lingRESOURCES.write("Common.country74","France"),languageID:16,timezoneID:18,code:"fr",hidden:false},{id:75,name:lingRESOURCES.write("Common.country75","France, Metropolitan"),languageID:6,timezoneID:18,code:"fx",hidden:true},{id:76,name:lingRESOURCES.write("Common.country76","Gabon"),languageID:16,timezoneID:18,code:"ga",hidden:false},{id:77,name:lingRESOURCES.write("Common.country77","United Kingdom"),languageID:13,timezoneID:17,code:"gb",hidden:false},{id:78,name:lingRESOURCES.write("Common.country78","Grenada"),languageID:13,timezoneID:11,code:"gd",hidden:false},{id:79,name:lingRESOURCES.write("Common.country79","Georgia"),languageID:81,timezoneID:22,code:"ge",hidden:false},{id:80,name:lingRESOURCES.write("Common.country80","French Guiana"),languageID:16,timezoneID:13,code:"gf",hidden:false},{id:81,name:lingRESOURCES.write("Common.country81","Ghana"),languageID:13,timezoneID:17,code:"gh",hidden:false},{id:82,name:lingRESOURCES.write("Common.country82","Gibraltar"),languageID:13,timezoneID:18,code:"gi",hidden:false},{id:83,name:lingRESOURCES.write("Common.country83","Greenland"),languageID:11,timezoneID:13,code:"gl",hidden:false},{id:84,name:lingRESOURCES.write("Common.country84","Gambia"),languageID:13,timezoneID:17,code:"gm",hidden:false},{id:85,name:lingRESOURCES.write("Common.country85","Guinea"),languageID:16,timezoneID:17,code:"gn",hidden:false},{id:86,name:lingRESOURCES.write("Common.country86","Guadeloupe"),languageID:16,timezoneID:11,code:"gp",hidden:false},{id:87,name:lingRESOURCES.write("Common.country87","Equatorial Guinea"),languageID:16,timezoneID:18,code:"gq",hidden:false},{id:88,name:lingRESOURCES.write("Common.country88","Greece"),languageID:18,timezoneID:18,code:"gr",hidden:false},{id:89,name:lingRESOURCES.write("Common.country89","South Georgia and the South Sandwich Islands"),languageID:13,timezoneID:15,code:"gs",hidden:false},{id:90,name:lingRESOURCES.write("Common.country90","Guatemala"),languageID:45,timezoneID:8,code:"gt",hidden:false},{id:91,name:lingRESOURCES.write("Common.country91","Guam"),languageID:13,timezoneID:36,code:"gu",hidden:false},{id:92,name:lingRESOURCES.write("Common.country92","Guinea-Bissau"),languageID:36,timezoneID:17,code:"gw",hidden:false},{id:93,name:lingRESOURCES.write("Common.country93","Guyana"),languageID:13,timezoneID:11,code:"gy",hidden:false},{id:94,name:lingRESOURCES.write("Common.country94","Hong Kong"),languageID:7,timezoneID:31,code:"hk",hidden:false},{id:95,name:lingRESOURCES.write("Common.country95","Heard Island and McDonald Islands"),languageID:13,timezoneID:27,code:"hm",hidden:false},{id:96,name:lingRESOURCES.write("Common.country96","Honduras"),languageID:45,timezoneID:8,code:"hn",hidden:false},{id:97,name:lingRESOURCES.write("Common.country97","Croatia"),languageID:74,timezoneID:18,code:"hr",hidden:false},{id:98,name:lingRESOURCES.write("Common.country98","Haiti"),languageID:16,timezoneID:9,code:"ht",hidden:false},{id:99,name:lingRESOURCES.write("Common.country99","Hungary"),languageID:21,timezoneID:18,code:"hu",hidden:false},{id:100,name:lingRESOURCES.write("Common.country100","Indonesia"),languageID:22,timezoneID:29,code:"id",hidden:false},{id:101,name:lingRESOURCES.write("Common.country101","Ireland"),languageID:13,timezoneID:17,code:"ie",hidden:false},{id:102,name:lingRESOURCES.write("Common.country102","Israel"),languageID:19,timezoneID:19,code:"il",hidden:false},{id:103,name:lingRESOURCES.write("Common.country103","India"),languageID:13,timezoneID:25,code:"in",hidden:false},{id:104,name:lingRESOURCES.write("Common.country104","British Indian Ocean Territory"),languageID:13,timezoneID:27,code:"io",hidden:false},{id:105,name:lingRESOURCES.write("Common.country105","Iraq"),languageID:0,timezoneID:20,code:"iq",hidden:false},{id:106,name:lingRESOURCES.write("Common.country106","Iran"),languageID:14,timezoneID:21,code:"ir",hidden:false},{id:107,name:lingRESOURCES.write("Common.country107","Iceland"),languageID:86,timezoneID:17,code:"is",hidden:false},{id:108,name:lingRESOURCES.write("Common.country108","Italy"),languageID:24,timezoneID:18,code:"it",hidden:false},{id:109,name:lingRESOURCES.write("Common.country109","Jamaica"),languageID:13,timezoneID:9,code:"jm",hidden:false},{id:110,name:lingRESOURCES.write("Common.country110","Jordan"),languageID:0,timezoneID:19,code:"jo",hidden:false},{id:111,name:lingRESOURCES.write("Common.country111","Japan"),languageID:25,timezoneID:34,code:"jp",hidden:false},{id:112,name:lingRESOURCES.write("Common.country112","Kenya"),languageID:46,timezoneID:20,code:"ke",hidden:false},{id:113,name:lingRESOURCES.write("Common.country113","Kyrgyzstan"),languageID:97,timezoneID:27,code:"kg",hidden:false},{id:114,name:lingRESOURCES.write("Common.country114","Cambodia"),languageID:5,timezoneID:29,code:"kh",hidden:false},{id:115,name:lingRESOURCES.write("Common.country115","Kiribati"),languageID:13,timezoneID:40,code:"ki",hidden:false},{id:116,name:lingRESOURCES.write("Common.country116","Comoros"),languageID:0,timezoneID:20,code:"km",hidden:false},{id:117,name:lingRESOURCES.write("Common.country117","Saint Kitts and Nevis"),languageID:13,timezoneID:11,code:"kn",hidden:false},{id:118,name:lingRESOURCES.write("Common.country118","Korea, North"),languageID:7,timezoneID:34,code:"kp",hidden:false},{id:119,name:lingRESOURCES.write("Common.country119","Korea, South"),languageID:7,timezoneID:34,code:"kr",hidden:false},{id:120,name:lingRESOURCES.write("Common.country120","Kuwait"),languageID:0,timezoneID:20,code:"kw",hidden:false},{id:121,name:lingRESOURCES.write("Common.country121","Cayman Islands"),languageID:13,timezoneID:9,code:"ky",hidden:false},{id:122,name:lingRESOURCES.write("Common.country122","Kazakstan"),languageID:94,timezoneID:27,code:"kz",hidden:false},{id:123,name:lingRESOURCES.write("Common.country123","Laos"),languageID:98,timezoneID:29,code:"la",hidden:false},{id:124,name:lingRESOURCES.write("Common.country124","Lebanon"),languageID:0,timezoneID:19,code:"lb",hidden:false},{id:125,name:lingRESOURCES.write("Common.country125","Saint Lucia"),languageID:13,timezoneID:11,code:"lc",hidden:false},{id:126,name:lingRESOURCES.write("Common.country126","Liechtenstein"),languageID:17,timezoneID:18,code:"li",hidden:false},{id:127,name:lingRESOURCES.write("Common.country127","Sri Lanka"),languageID:43,timezoneID:25,code:"lk",hidden:false},{id:128,name:lingRESOURCES.write("Common.country128","Liberia"),languageID:13,timezoneID:17,code:"lr",hidden:false},{id:129,name:lingRESOURCES.write("Common.country129","Lesotho"),languageID:112,timezoneID:19,code:"ls",hidden:false},{id:130,name:lingRESOURCES.write("Common.country130","Lithuania"),languageID:30,timezoneID:19,code:"lt",hidden:false},{id:131,name:lingRESOURCES.write("Common.country131","Luxembourg"),languageID:16,timezoneID:18,code:"lu",hidden:false},{id:132,name:lingRESOURCES.write("Common.country132","Latvia"),languageID:9,timezoneID:19,code:"lv",hidden:false},{id:133,name:lingRESOURCES.write("Common.country133","Libya"),languageID:0,timezoneID:19,code:"ly",hidden:false},{id:134,name:lingRESOURCES.write("Common.country134","Morocco"),languageID:0,timezoneID:17,code:"ma",hidden:false},{id:135,name:lingRESOURCES.write("Common.country135","Monaco"),languageID:16,timezoneID:18,code:"mc",hidden:false},{id:136,name:lingRESOURCES.write("Common.country136","Moldova"),languageID:38,timezoneID:19,code:"md",hidden:false},{id:137,name:lingRESOURCES.write("Common.country137","Madagascar"),languageID:101,timezoneID:20,code:"mg",hidden:false},{id:138,name:lingRESOURCES.write("Common.country138","Marshall Islands"),languageID:13,timezoneID:40,code:"mh",hidden:false},{id:139,name:lingRESOURCES.write("Common.country139","Macedonia"),languageID:59,timezoneID:18,code:"mk",hidden:false},{id:140,name:lingRESOURCES.write("Common.country140","Mali"),languageID:16,timezoneID:17,code:"ml",hidden:false},{id:141,name:lingRESOURCES.write("Common.country141","Myanmar"),languageID:4,timezoneID:28,code:"mm",hidden:false},{id:142,name:lingRESOURCES.write("Common.country142","Mongolia"),languageID:106,timezoneID:31,code:"mn",hidden:false},{id:143,name:lingRESOURCES.write("Common.country143","Macau"),languageID:7,timezoneID:31,code:"mo",hidden:false},{id:144,name:lingRESOURCES.write("Common.country144","Northern Mariana Islands"),languageID:13,timezoneID:36,code:"mp",hidden:false},{id:145,name:lingRESOURCES.write("Common.country145","Martinique"),languageID:16,timezoneID:11,code:"mq",hidden:false},{id:146,name:lingRESOURCES.write("Common.country146","Mauritania"),languageID:0,timezoneID:17,code:"mr",hidden:false},{id:147,name:lingRESOURCES.write("Common.country147","Montserrat"),languageID:13,timezoneID:11,code:"ms",hidden:false},{id:148,name:lingRESOURCES.write("Common.country148","Malta"),languageID:139,timezoneID:18,code:"mt",hidden:false},{id:149,name:lingRESOURCES.write("Common.country149","Mauritius"),languageID:13,timezoneID:22,code:"mu",hidden:false},{id:150,name:lingRESOURCES.write("Common.country150","Maldives"),languageID:13,timezoneID:24,code:"mv",hidden:false},{id:151,name:lingRESOURCES.write("Common.country151","Malawi"),languageID:13,timezoneID:19,code:"mw",hidden:false},{id:152,name:lingRESOURCES.write("Common.country152","Mexico"),languageID:45,timezoneID:7,code:"mx",hidden:false},{id:153,name:lingRESOURCES.write("Common.country153","Malaysia"),languageID:31,timezoneID:31,code:"my",hidden:false},{id:154,name:lingRESOURCES.write("Common.country154","Mozambique"),languageID:36,timezoneID:19,code:"mz",hidden:false},{id:155,name:lingRESOURCES.write("Common.country155","Namibia"),languageID:13,timezoneID:18,code:"na",hidden:false},{id:156,name:lingRESOURCES.write("Common.country156","New Caledonia"),languageID:16,timezoneID:38,code:"nc",hidden:false},{id:157,name:lingRESOURCES.write("Common.country157","Niger"),languageID:16,timezoneID:18,code:"ne",hidden:false},{id:158,name:lingRESOURCES.write("Common.country158","Norfolk Island"),languageID:13,timezoneID:39,code:"nf",hidden:false},{id:159,name:lingRESOURCES.write("Common.country159","Nigeria"),languageID:13,timezoneID:18,code:"ng",hidden:false},{id:160,name:lingRESOURCES.write("Common.country160","Nicaragua"),languageID:45,timezoneID:8,code:"ni",hidden:false},{id:161,name:lingRESOURCES.write("Common.country161","Netherlands"),languageID:12,timezoneID:18,code:"nl",hidden:false},{id:162,name:lingRESOURCES.write("Common.country162","Norway"),languageID:33,timezoneID:18,code:"no",hidden:false},{id:163,name:lingRESOURCES.write("Common.country163","Nepal"),languageID:107,timezoneID:26,code:"np",hidden:false},{id:164,name:lingRESOURCES.write("Common.country164","Nauru"),languageID:13,timezoneID:40,code:"nr",hidden:false},{id:165,name:lingRESOURCES.write("Common.country165","Niue"),languageID:13,timezoneID:2,code:"nu",hidden:false},{id:166,name:lingRESOURCES.write("Common.country166","New Zealand"),languageID:13,timezoneID:40,code:"nz",hidden:false},{id:167,name:lingRESOURCES.write("Common.country167","Oman"),languageID:0,timezoneID:22,code:"om",hidden:false},{id:168,name:lingRESOURCES.write("Common.country168","Panama"),languageID:45,timezoneID:9,code:"pa",hidden:false},{id:169,name:lingRESOURCES.write("Common.country169","Peru"),languageID:45,timezoneID:9,code:"pe",hidden:false},{id:170,name:lingRESOURCES.write("Common.country170","French Polynesia"),languageID:16,timezoneID:3,code:"pf",hidden:false},{id:171,name:lingRESOURCES.write("Common.country171","Papua New Guinea"),languageID:13,timezoneID:36,code:"pg",hidden:false},{id:172,name:lingRESOURCES.write("Common.country172","Philippines"),languageID:48,timezoneID:31,code:"ph",hidden:false},{id:173,name:lingRESOURCES.write("Common.country173","Pakistan"),languageID:55,timezoneID:24,code:"pk",hidden:false},{id:174,name:lingRESOURCES.write("Common.country174","Poland"),languageID:35,timezoneID:18,code:"pl",hidden:false},{id:175,name:lingRESOURCES.write("Common.country175","Saint Pierre and Miquelon"),languageID:16,timezoneID:13,code:"pm",hidden:false},{id:176,name:lingRESOURCES.write("Common.country176","Pitcairn Islands"),languageID:13,timezoneID:5,code:"pn",hidden:false},{id:177,name:lingRESOURCES.write("Common.country177","Puerto Rico"),languageID:45,timezoneID:11,code:"pr",hidden:false},{id:178,name:lingRESOURCES.write("Common.country178","Palestinian Territory"),languageID:0,timezoneID:19,code:"ps",hidden:false},{id:179,name:lingRESOURCES.write("Common.country179","Portugal"),languageID:36,timezoneID:17,code:"pt",hidden:false},{id:180,name:lingRESOURCES.write("Common.country180","Palau"),languageID:13,timezoneID:34,code:"pw",hidden:false},{id:181,name:lingRESOURCES.write("Common.country181","Paraguay"),languageID:45,timezoneID:11,code:"py",hidden:false},{id:182,name:lingRESOURCES.write("Common.country182","Qatar"),languageID:0,timezoneID:20,code:"qa",hidden:false},{id:183,name:lingRESOURCES.write("Common.country183","Reunion"),languageID:16,timezoneID:22,code:"re",hidden:false},{id:184,name:lingRESOURCES.write("Common.country184","Romania"),languageID:38,timezoneID:18,code:"ro",hidden:false},{id:185,name:lingRESOURCES.write("Common.country185","Russian Federation"),languageID:39,timezoneID:20,code:"ru",hidden:false},{id:186,name:lingRESOURCES.write("Common.country186","Rwanda"),languageID:16,timezoneID:19,code:"rw",hidden:false},{id:187,name:lingRESOURCES.write("Common.country187","Saudi Arabia"),languageID:0,timezoneID:20,code:"sa",hidden:false},{id:188,name:lingRESOURCES.write("Common.country188","Solomon Islands"),languageID:13,timezoneID:38,code:"sb",hidden:false},{id:189,name:lingRESOURCES.write("Common.country189","Seychelles"),languageID:16,timezoneID:22,code:"sc",hidden:false},{id:190,name:lingRESOURCES.write("Common.country190","Sudan"),languageID:0,timezoneID:20,code:"sd",hidden:false},{id:191,name:lingRESOURCES.write("Common.country191","Sweden"),languageID:47,timezoneID:18,code:"se",hidden:false},{id:192,name:lingRESOURCES.write("Common.country192","Singapore"),languageID:13,timezoneID:31,code:"sg",hidden:false},{id:193,name:lingRESOURCES.write("Common.country193","Saint Helena"),languageID:13,timezoneID:17,code:"sh",hidden:false},{id:194,name:lingRESOURCES.write("Common.country194","Slovenia"),languageID:115,timezoneID:18,code:"si",hidden:false},{id:195,name:lingRESOURCES.write("Common.country195","Svalbard and Jan Mayen"),languageID:33,timezoneID:18,code:"sj",hidden:false},{id:196,name:lingRESOURCES.write("Common.country196","Slovakia"),languageID:44,timezoneID:18,code:"sk",hidden:false},{id:197,name:lingRESOURCES.write("Common.country197","Sierra Leone"),languageID:13,timezoneID:17,code:"sl",hidden:false},{id:198,name:lingRESOURCES.write("Common.country198","San Marino"),languageID:24,timezoneID:18,code:"sm",hidden:false},{id:199,name:lingRESOURCES.write("Common.country199","Senegal"),languageID:16,timezoneID:17,code:"sn",hidden:false},{id:200,name:lingRESOURCES.write("Common.country200","Somalia"),languageID:138,timezoneID:20,code:"so",hidden:false},{id:201,name:lingRESOURCES.write("Common.country201","Suriname"),languageID:12,timezoneID:13,code:"sr",hidden:false},{id:202,name:lingRESOURCES.write("Common.country202","Sao Tome and Principe"),languageID:36,timezoneID:17,code:"st",hidden:false},{id:203,name:lingRESOURCES.write("Common.country203","El Salvador"),languageID:45,timezoneID:8,code:"sv",hidden:false},{id:204,name:lingRESOURCES.write("Common.country204","Syria"),languageID:0,timezoneID:19,code:"sy",hidden:false},{id:205,name:lingRESOURCES.write("Common.country205","Swaziland"),languageID:13,timezoneID:19,code:"sz",hidden:false},{id:206,name:lingRESOURCES.write("Common.country206","Turks and Caicos Islands"),languageID:13,timezoneID:9,code:"tc",hidden:false},{id:207,name:lingRESOURCES.write("Common.country207","Chad"),languageID:16,timezoneID:18,code:"td",hidden:false},{id:208,name:lingRESOURCES.write("Common.country208","French Southern Territories"),languageID:16,timezoneID:24,code:"tf",hidden:false},{id:209,name:lingRESOURCES.write("Common.country209","Togo"),languageID:16,timezoneID:17,code:"tg",hidden:false},{id:210,name:lingRESOURCES.write("Common.country210","Thailand"),languageID:51,timezoneID:29,code:"th",hidden:false},{id:211,name:lingRESOURCES.write("Common.country211","Tajikistan"),languageID:119,timezoneID:24,code:"tj",hidden:false},{id:212,name:lingRESOURCES.write("Common.country212","Tokelau"),languageID:13,timezoneID:2,code:"tk",hidden:false},{id:213,name:lingRESOURCES.write("Common.country213","Turkmenistan"),languageID:123,timezoneID:24,code:"tm",hidden:false},{id:214,name:lingRESOURCES.write("Common.country214","Tunisia"),languageID:0,timezoneID:18,code:"tn",hidden:false},{id:215,name:lingRESOURCES.write("Common.country215","Tonga"),languageID:13,timezoneID:42,code:"to",hidden:false},{id:216,name:lingRESOURCES.write("Common.country216","Timor-Leste"),languageID:36,timezoneID:34,code:"tl",hidden:false},{id:217,name:lingRESOURCES.write("Common.country217","Turkey"),languageID:53,timezoneID:19,code:"tr",hidden:false},{id:218,name:lingRESOURCES.write("Common.country218","Trinidad and Tobago"),languageID:13,timezoneID:11,code:"tt",hidden:false},{id:219,name:lingRESOURCES.write("Common.country219","Tuvalu"),languageID:13,timezoneID:40,code:"tv",hidden:false},{id:220,name:lingRESOURCES.write("Common.country220","Taiwan"),languageID:8,timezoneID:31,code:"tw",hidden:false},{id:221,name:lingRESOURCES.write("Common.country221","Tanzania"),languageID:46,timezoneID:20,code:"tz",hidden:false},{id:222,name:lingRESOURCES.write("Common.country222","Ukraine"),languageID:54,timezoneID:19,code:"ua",hidden:false},{id:223,name:lingRESOURCES.write("Common.country223","Uganda"),languageID:46,timezoneID:20,code:"ug",hidden:false},{id:224,name:lingRESOURCES.write("Common.country224","United States Minor Outlying Islands"),languageID:13,timezoneID:3,code:"um",hidden:true},{id:225,name:lingRESOURCES.write("Common.country225","United States"),languageID:13,timezoneID:8,code:"us",hidden:false},{id:226,name:lingRESOURCES.write("Common.country226","Uruguay"),languageID:45,timezoneID:13,code:"uy",hidden:false},{id:227,name:lingRESOURCES.write("Common.country227","Uzbekistan"),languageID:125,timezoneID:24,code:"uz",hidden:false},{id:228,name:lingRESOURCES.write("Common.country228","Vatican"),languageID:29,timezoneID:18,code:"va",hidden:false},{id:229,name:lingRESOURCES.write("Common.country229","Saint Vincent and the Grenadines"),languageID:13,timezoneID:11,code:"vc",hidden:false},{id:230,name:lingRESOURCES.write("Common.country230","Venezuela"),languageID:45,timezoneID:11,code:"ve",hidden:false},{id:231,name:lingRESOURCES.write("Common.country231","Virgin Islands, British"),languageID:13,timezoneID:11,code:"vg",hidden:false},{id:232,name:lingRESOURCES.write("Common.country232","Virgin Islands, U.S."),languageID:13,timezoneID:11,code:"vi",hidden:false},{id:233,name:lingRESOURCES.write("Common.country233","Vietnam"),languageID:56,timezoneID:29,code:"vn",hidden:false},{id:234,name:lingRESOURCES.write("Common.country234","Vanuatu"),languageID:13,timezoneID:38,code:"vu",hidden:false},{id:235,name:lingRESOURCES.write("Common.country235","Wallis and Futuna"),languageID:16,timezoneID:40,code:"wf",hidden:false},{id:236,name:lingRESOURCES.write("Common.country236","Samoa"),languageID:13,timezoneID:2,code:"ws",hidden:false},{id:237,name:lingRESOURCES.write("Common.country237","Yemen"),languageID:0,timezoneID:20,code:"ye",hidden:false},{id:238,name:lingRESOURCES.write("Common.country238","Mayotte"),languageID:16,timezoneID:20,code:"yt",hidden:false},{id:239,name:lingRESOURCES.write("Common.country239","Serbia"),languageID:41,timezoneID:18,code:"rs",hidden:false},{id:240,name:lingRESOURCES.write("Common.country240","South Africa"),languageID:128,timezoneID:19,code:"za",hidden:false},{id:241,name:lingRESOURCES.write("Common.country241","Zambia"),languageID:13,timezoneID:19,code:"zm",hidden:false},{id:242,name:lingRESOURCES.write("Common.country242","Montenegro"),languageID:41,timezoneID:18,code:"me",hidden:false},{id:243,name:lingRESOURCES.write("Common.country243","Zimbabwe"),languageID:13,timezoneID:19,code:"zw",hidden:false},{id:244,name:lingRESOURCES.write("Common.country244","Anonymous Proxy"),languageID:13,timezoneID:17,code:"a1",hidden:true},{id:245,name:lingRESOURCES.write("Common.country245","Satellite Provider"),languageID:13,timezoneID:17,code:"a2",hidden:true},{id:246,name:lingRESOURCES.write("Common.country246","Other"),languageID:13,timezoneID:17,code:"o1",hidden:true},{id:247,name:lingRESOURCES.write("Common.country247","Aland Islands"),languageID:13,timezoneID:17,code:"ax",hidden:false},{id:248,name:lingRESOURCES.write("Common.country248","Guernsey"),languageID:13,timezoneID:17,code:"gg",hidden:false},{id:249,name:lingRESOURCES.write("Common.country249","Isle of Man"),languageID:13,timezoneID:17,code:"im",hidden:false},{id:250,name:lingRESOURCES.write("Common.country250","Jersey"),languageID:13,timezoneID:17,code:"je",hidden:false}],dictionary:[],orderCB:function(B,A){if(B.id==246){return 1}if(A.id==246){return -1}if(B.id>246||A.id>246){if(B.id<A.id){return -1}if(B.id>A.id){return 1}return 0}if(B.name<A.name){return -1}if(B.name>A.name){return 1}return 0},sort:function(A,C){A.sort(this.orderCB);for(var B=0;B<A.length;B++){C[A[B].id]=A[B]}}};lingCOUNTRY.sort(lingCOUNTRY.countries,lingCOUNTRY.dictionary);var lingCURRENCY={get:function(B){for(var A=0;A<lingCURRENCY.currencies.length;A++){if(lingCURRENCY.currencies[A].id==B){return lingCURRENCY.currencies[A]}}return null},getByAbbrev:function(A){for(var B=0;B<lingCURRENCY.currencies.length;B++){if(lingCURRENCY.currencies[B].abbrev==A){return lingCURRENCY.currencies[B]}}return null},print:function(E,B,D){var C;if(B){var A=this.get(B);C=A.abbrev+" "+E.toFixed(2);if(D&&B!=lingCURRENCY.USD){C+=" <span class='nowrap'>(USD "+D.toFixed(2)+")</span>"}}else{C=E.toFixed(2)}return C},USD:144,currencies:[{id:1,abbrev:"ALL",glyph:""},{id:2,abbrev:"DZD",glyph:""},{id:3,abbrev:"XAL",glyph:""},{id:4,abbrev:"ARS",glyph:""},{id:5,abbrev:"AWG",glyph:""},{id:6,abbrev:"AUD",glyph:""},{id:7,abbrev:"BSD",glyph:""},{id:8,abbrev:"BHD",glyph:""},{id:9,abbrev:"BDT",glyph:""},{id:10,abbrev:"BBD",glyph:""},{id:11,abbrev:"BYR",glyph:""},{id:12,abbrev:"BZD",glyph:""},{id:13,abbrev:"BMD",glyph:""},{id:14,abbrev:"BTN",glyph:""},{id:15,abbrev:"BOB",glyph:""},{id:16,abbrev:"BWP",glyph:""},{id:17,abbrev:"BRL",glyph:""},{id:18,abbrev:"GBP",glyph:"\u00a3"},{id:19,abbrev:"BND",glyph:""},{id:20,abbrev:"BGN",glyph:""},{id:21,abbrev:"BIF",glyph:""},{id:22,abbrev:"KHR",glyph:""},{id:23,abbrev:"CAD",glyph:""},{id:24,abbrev:"CVE",glyph:""},{id:25,abbrev:"KYD",glyph:""},{id:26,abbrev:"XOF",glyph:""},{id:27,abbrev:"XAF",glyph:""},{id:28,abbrev:"CLP",glyph:""},{id:29,abbrev:"CNY",glyph:""},{id:30,abbrev:"COP",glyph:""},{id:31,abbrev:"KMF",glyph:""},{id:32,abbrev:"XCP",glyph:""},{id:33,abbrev:"CRC",glyph:""},{id:34,abbrev:"HRK",glyph:""},{id:35,abbrev:"CUP",glyph:""},{id:36,abbrev:"CYP",glyph:""},{id:37,abbrev:"CZK",glyph:""},{id:38,abbrev:"DKK",glyph:""},{id:39,abbrev:"DJF",glyph:""},{id:40,abbrev:"DOP",glyph:""},{id:41,abbrev:"XCD",glyph:""},{id:42,abbrev:"ECS",glyph:""},{id:43,abbrev:"EGP",glyph:""},{id:44,abbrev:"SVC",glyph:""},{id:45,abbrev:"ERN",glyph:""},{id:46,abbrev:"EEK",glyph:""},{id:47,abbrev:"ETB",glyph:""},{id:48,abbrev:"EUR",glyph:"\u20ac"},{id:49,abbrev:"FKP",glyph:""},{id:50,abbrev:"FJD",glyph:""},{id:51,abbrev:"GMD",glyph:""},{id:52,abbrev:"GHC",glyph:""},{id:53,abbrev:"GIP",glyph:""},{id:54,abbrev:"XAU",glyph:""},{id:55,abbrev:"GTQ",glyph:""},{id:56,abbrev:"GNF",glyph:""},{id:57,abbrev:"GYD",glyph:""},{id:58,abbrev:"HTG",glyph:""},{id:59,abbrev:"HNL",glyph:""},{id:60,abbrev:"HKD",glyph:""},{id:61,abbrev:"HUF",glyph:""},{id:62,abbrev:"ISK",glyph:""},{id:63,abbrev:"INR",glyph:""},{id:64,abbrev:"IDR",glyph:""},{id:65,abbrev:"IRR",glyph:""},{id:66,abbrev:"IQD",glyph:""},{id:67,abbrev:"ILS",glyph:""},{id:68,abbrev:"JMD",glyph:""},{id:69,abbrev:"JPY",glyph:"\u00a5"},{id:70,abbrev:"JOD",glyph:""},{id:71,abbrev:"KZT",glyph:""},{id:72,abbrev:"KES",glyph:""},{id:73,abbrev:"KRW",glyph:""},{id:74,abbrev:"KWD",glyph:""},{id:75,abbrev:"LAK",glyph:""},{id:76,abbrev:"LVL",glyph:""},{id:77,abbrev:"LBP",glyph:""},{id:78,abbrev:"LSL",glyph:""},{id:79,abbrev:"LRD",glyph:""},{id:80,abbrev:"LYD",glyph:""},{id:81,abbrev:"LTL",glyph:""},{id:82,abbrev:"MOP",glyph:""},{id:83,abbrev:"MKD",glyph:""},{id:84,abbrev:"MWK",glyph:""},{id:85,abbrev:"MYR",glyph:""},{id:86,abbrev:"MVR",glyph:""},{id:87,abbrev:"MTL",glyph:""},{id:88,abbrev:"MRO",glyph:""},{id:89,abbrev:"MUR",glyph:""},{id:90,abbrev:"MXN",glyph:""},{id:91,abbrev:"MDL",glyph:""},{id:92,abbrev:"MNT",glyph:""},{id:93,abbrev:"MAD",glyph:""},{id:94,abbrev:"MMK",glyph:""},{id:95,abbrev:"NAD",glyph:""},{id:96,abbrev:"NPR",glyph:""},{id:97,abbrev:"ANG",glyph:""},{id:98,abbrev:"TRY",glyph:""},{id:109,abbrev:"NZD",glyph:""},{id:100,abbrev:"NIO",glyph:""},{id:101,abbrev:"NGN",glyph:""},{id:102,abbrev:"KPW",glyph:""},{id:103,abbrev:"NOK",glyph:""},{id:104,abbrev:"OMR",glyph:""},{id:105,abbrev:"XPF",glyph:""},{id:106,abbrev:"PKR",glyph:""},{id:107,abbrev:"XPD",glyph:""},{id:108,abbrev:"PAB",glyph:""},{id:109,abbrev:"PGK",glyph:""},{id:110,abbrev:"PYG",glyph:""},{id:111,abbrev:"PEN",glyph:""},{id:112,abbrev:"PHP",glyph:""},{id:113,abbrev:"XPT",glyph:""},{id:114,abbrev:"PLN",glyph:""},{id:115,abbrev:"QAR",glyph:""},{id:116,abbrev:"RON",glyph:""},{id:117,abbrev:"RUB",glyph:""},{id:118,abbrev:"RWF",glyph:""},{id:119,abbrev:"WST",glyph:""},{id:120,abbrev:"STD",glyph:""},{id:121,abbrev:"SAR",glyph:""},{id:122,abbrev:"SCR",glyph:""},{id:123,abbrev:"SLL",glyph:""},{id:124,abbrev:"XAG",glyph:""},{id:125,abbrev:"SGD",glyph:""},{id:126,abbrev:"SKK",glyph:""},{id:127,abbrev:"SIT",glyph:""},{id:128,abbrev:"SBD",glyph:""},{id:129,abbrev:"SOS",glyph:""},{id:130,abbrev:"ZAR",glyph:""},{id:131,abbrev:"LKR",glyph:""},{id:132,abbrev:"SHP",glyph:""},{id:133,abbrev:"SDD",glyph:""},{id:134,abbrev:"SZL",glyph:""},{id:135,abbrev:"SEK",glyph:""},{id:136,abbrev:"CHF",glyph:""},{id:137,abbrev:"SYP",glyph:""},{id:138,abbrev:"TWD",glyph:""},{id:139,abbrev:"TZS",glyph:""},{id:140,abbrev:"THB",glyph:""},{id:141,abbrev:"TOP",glyph:""},{id:142,abbrev:"TTD",glyph:""},{id:143,abbrev:"TND",glyph:""},{id:144,abbrev:"USD",glyph:"$"},{id:145,abbrev:"AED",glyph:""},{id:146,abbrev:"UGX",glyph:""},{id:147,abbrev:"UAH",glyph:""},{id:148,abbrev:"UYU",glyph:""},{id:149,abbrev:"VUV",glyph:""},{id:150,abbrev:"VEB",glyph:""},{id:151,abbrev:"VND",glyph:""},{id:152,abbrev:"YER",glyph:""},{id:153,abbrev:"ZMK",glyph:""},{id:154,abbrev:"ZWD",glyph:""}]};var lingACTIVITY={TYPE_UNKNOWN:0,TYPE_MEDIA_LECTURE:1,TYPE_ACTIVITY_FILL_IN_THE_BLANK:2,TYPE_ACTIVITY_CLOZE_PASSAGE:3,TYPE_MEDIA_VIDEO:4,TYPE_MEDIA_PODCAST:5,TYPE_MEDIA_URL:6,TYPE_ACTIVITY_PICTURE_RECOGNITION:9,TYPE_ACTIVITY_READING_PRACTICE:11,TYPE_ACTIVITY_TRANSLATION:13,TYPE_ACTIVITY_DICTATION:15,TYPE_ACTIVITY_VERB_CONJUGATION:19,TYPE_ACTIVITY_FIB_MULTIPLE_CHOICE:22,TYPE_ACTIVITY_MULTIPLE_CHOICE:23,TYPE_ACTIVITY_TRUE_FALSE:24,TYPE_ACTIVITY_DIALOGUE:25,TYPE_ACTIVITY_ERROR_ANALYSIS:26,TYPE_ACTIVITY_ERROR_CORRECTION:27,TYPE_ACTIVITY_ESSAY_WRITING:28,TYPE_ACTIVITY_IDIOMS:29,TYPE_ACTIVITY_PICTURE_LABELING:30,TYPE_ACTIVITY_PRONUNCIATION:31,TYPE_ACTIVITY_QUESTION_ANSWER:32,TYPE_ACTIVITY_SCRAMBLED_READING_DIALOGUE:33,TYPE_ACTIVITY_SCRAMBLED_SENTENCES:34,TYPE_ACTIVITY_TEST:35,TYPE_ACTIVITY_SCRAMBLED_WORDS:38,TYPE_ACTIVITY_VIEW_FLASHCARDS:39,TYPE_ACTIVITY_POLL:40,TYPE_MEDIA_GRAMMAR_POINT:80,TYPE_MEDIA_CULTURAL_NOTE:81,TYPE_MEDIA_READING:82,TYPE_VOCAB_TRANSLATION:100,TYPE_VOCAB_LISTENING_COMPREHENSION:101,TYPE_VOCAB_READING_ALOUD:102,TYPE_VOCAB_TRANSLATING_ALOUD:103,TYPE_VOCAB_PRONUNCIATION:104,TYPE_VOCAB_DICTATION:105,TYPE_VOCAB_KANJI_TO_KANA:106,TYPE_VOCAB_IMAGE:108,TYPE_VOCAB_VERB:110,TYPE_VOCAB_IMAGE_PRACTICE:111,TYPE_VOCAB_QUESTION_ANSWER:114,TYPE_VOCAB_SYNONYMS:115,TYPE_VOCAB_ANTONYMS:116,TYPE_VOCAB_DEFINITIONS:117,TYPE_VOCAB_PRINCIPAL_PARTS:118,TYPE_VOCAB_PRONUNCIATION_PRACTICE:119,TYPE_VOCAB_LEITNER:130,TYPE_VOCAB_TRANSLATING_ALOUD_L2_L1:131,TYPE_VOCAB_TRANSLATING_ALOUD_L1_L2:132,TYPE_VOCAB_TRANSLATION_L2_L1:133,TYPE_VOCAB_TRANSLATION_L1_L2:134,TYPE_GAME_CROSSWORD_PUZZLE:200,TYPE_GAME_GUESS_THE_LETTERS:201,TYPE_GAME_QUIZ:202,TYPE_GAME_MATCHING:203,TYPE_GAME_WORD_SEARCH:204,CLOZE_FLAG_SHOW_ANSWERS:1<<0,CLOZE_FLAG_DRAG_AND_DROP:1<<1,CLOZE_FLAG_IGNORE_CASE:1<<2,CLOZE_FLAG_IGNORE_PUNCTUATION:1<<3,CLOZE_FLAG_IGNORE_DIACRITICS:1<<4,CLOZE_FLAG_CHECK_ANSWERS:1<<5,CLOZE_FLAG_ANSWER_PROCESS:1<<6,MC_FLAG_RANDOMIZE_ANSWERS:1<<11,CLOZE_FLAG_SHOW_ANSWER_BUTTON:1<<12,VIEW_SHOW_FROM_LANGUAGE:1<<0,VIEW_SHOW_TO_LANGUAGE:1<<1,VIEW_SHOW_FROM_PICTURES:1<<2,VIEW_SHOW_TO_PICTURES:1<<3,PACKDRILL_HIDE_INSTRUCTIONS:1<<0,VIDEO_LAYOUT_TOP:1<<0,VIDEO_LAYOUT_LEFT:1<<1,VIDEO_LAYOUT_BOTTOM:1<<2,VIDEO_LAYOUT_RIGHT:1<<3,DIALOGUE_MODE_NONE:0,DIALOGUE_MODE_LISTEN_WITH_TEXT:1,DIALOGUE_MODE_LISTEN_WITHOUT_TEXT:2,DIALOGUE_MODE_REPEAT_LINE:3,DIALOGUE_MODE_CHOOSE_PART:4,DIALOGUE_FLAG_VOICE_RECORD:1<<0,DIALOGUE_FLAG_HEAR_LINES:1<<1,DIALOGUE_FLAG_SHOW_LINES:1<<2,DLOG_ACTION_TEXT_SHOW:1,DLOG_ACTION_TEXT_HIDE:2,DLOG_ACTION_AUDIO_PLAY:3,DLOG_ACTION_VIDEO_PLAY:4,DLOG_ACTION_PAUSE:5,DLOG_ACTION_WAIT_FOR_PROMPT:6,DLOG_ACTION_IMAGE_SHOW:7,DLOG_ACTION_IMAGE_HIDE:8,DLOG_ACTION_VIDEO_HIDE:9,DLOG_ACTION_HIDE_ALL:10,DLOG_ACTION_SHOW_ALL:11,ANSWER_FLAG_CORRECT:1<<0,SENTENCE_FLAG_TRUE:1<<0,FLAG_WRITEABLE:512,FLAG_USE_WEB_READER:1<<4,getActivityName:function(A){return this.activityNames["name"+A]},isTwoLangDrill:function(A){return A==lingACTIVITY.TYPE_VOCAB_TRANSLATION||A==lingACTIVITY.TYPE_VOCAB_LISTENING_COMPREHENSION||A==lingACTIVITY.TYPE_VOCAB_TRANSLATING_ALOUD},isTwoLangActivity:function(A){return A==lingACTIVITY.TYPE_VOCAB_TRANSLATION||A==lingACTIVITY.TYPE_VOCAB_LISTENING_COMPREHENSION||A==lingACTIVITY.TYPE_VOCAB_TRANSLATING_ALOUD||A==lingACTIVITY.TYPE_ACTIVITY_VIEW_FLASHCARDS},activityTypeToType:function(A){switch(A){case lingACTIVITY.TYPE_MEDIA_LECTURE:case lingACTIVITY.TYPE_MEDIA_VIDEO:case lingACTIVITY.TYPE_MEDIA_GRAMMAR_POINT:case lingACTIVITY.TYPE_MEDIA_CULTURAL_NOTE:case lingACTIVITY.TYPE_MEDIA_READING:case lingACTIVITY.TYPE_MEDIA_URL:return lingCOMMON.TYPE_MESSAGE;case lingACTIVITY.TYPE_ACTIVITY_CLOZE_PASSAGE:return lingCOMMON.TYPE_CLOZE;case lingACTIVITY.TYPE_ACTIVITY_DIALOGUE:return lingCOMMON.TYPE_DIALOGUE_ACTIVITY;case lingACTIVITY.TYPE_ACTIVITY_FILL_IN_THE_BLANK:case lingACTIVITY.TYPE_ACTIVITY_FIB_MULTIPLE_CHOICE:case lingACTIVITY.TYPE_ACTIVITY_MULTIPLE_CHOICE:case lingACTIVITY.TYPE_ACTIVITY_TRUE_FALSE:return lingCOMMON.TYPE_SENTENCE_ACTIVITY;case lingACTIVITY.TYPE_VOCAB_TRANSLATION:case lingACTIVITY.TYPE_VOCAB_LISTENING_COMPREHENSION:case lingACTIVITY.TYPE_VOCAB_READING_ALOUD:case lingACTIVITY.TYPE_VOCAB_TRANSLATING_ALOUD:case lingACTIVITY.TYPE_VOCAB_PRONUNCIATION:case lingACTIVITY.TYPE_VOCAB_DICTATION:case lingACTIVITY.TYPE_VOCAB_KANJI_TO_KANA:case lingACTIVITY.TYPE_VOCAB_IMAGE:case lingACTIVITY.TYPE_VOCAB_VERB:case lingACTIVITY.TYPE_VOCAB_IMAGE_PRACTICE:case lingACTIVITY.TYPE_VOCAB_QUESTION_ANSWER:case lingACTIVITY.TYPE_VOCAB_SYNONYMS:case lingACTIVITY.TYPE_VOCAB_ANTONYMS:case lingACTIVITY.TYPE_VOCAB_DEFINITIONS:case lingACTIVITY.TYPE_VOCAB_PRINCIPAL_PARTS:return lingCOMMON.TYPE_PACKDRILL;case lingACTIVITY.TYPE_ACTIVITY_VIEW_FLASHCARDS:return lingCOMMON.TYPE_VIEW_FLASHCARDS;default:return -1}},isResultFIB:function(A){return A==lingCOMMON.TYPE_CLOZE||A==lingACTIVITY.TYPE_ACTIVITY_FILL_IN_THE_BLANK||A==lingACTIVITY.TYPE_ACTIVITY_FIB_MULTIPLE_CHOICE},isResultMC:function(A){return A==lingACTIVITY.TYPE_ACTIVITY_MULTIPLE_CHOICE||A==lingACTIVITY.TYPE_ACTIVITY_TRUE_FALSE},parseResult:function(D){var A={resultID:D.getAttribute("II"),userItemID:D.getAttribute("UII"),whenRecorded:D.getAttribute("WR"),activityID:D.getAttribute("AII"),activityType:parseInt(D.getAttribute("AT")),timeElapsed:parseInt(D.getAttribute("TE")),homeworkID:parseInt(D.getAttribute("HI")),tries:[],blanks:[],wordInfoList:[]};for(var B=0;B<D.childNodes.length;B++){if(D.childNodes[B].tagName=="TRY"){A.tries.push({right:parseInt(D.childNodes[B].getAttribute("NC")),wrong:parseInt(D.childNodes[B].getAttribute("NM")),skipped:parseInt(D.childNodes[B].getAttribute("NNA"))})}else{if(D.childNodes[B].tagName=="B"){var E=D.childNodes[B].getAttribute("A");var C=D.childNodes[B].getAttribute("AI");var G={blankID:parseInt(D.childNodes[B].getAttribute("BI")),answer:E==null?null:decodeUTF8(E),answerID:C==null?-1:parseInt(C),tryIndex:parseInt(D.childNodes[B].getAttribute("TI")),flags:parseInt(D.childNodes[B].getAttribute("F"))};if(!A.blanks[G.blankID]){A.blanks[G.blankID]=[]}A.blanks[G.blankID][G.tryIndex]=G}else{if(D.childNodes[B].tagName=="WI"){A.wordInfoList.push({text:decodeUTF8(D.childNodes[B].getAttribute("T")),wordIndex:decodeUTF8(D.childNodes[B].getAttribute("WI"))})}}}}switch(lingACTIVITY.activityTypeToType(A.activityType)){case lingCOMMON.TYPE_MESSAGE:var F=D.getAttribute("NWLU");A.numWordsLookedUp=F==null?0:parseInt(F);if(isNaN(A.numWordsLookedUp)){A.numWordsLookedUp=-1}break;case lingCOMMON.TYPE_PACKDRILL:A.testStatID=parseInt(D.getAttribute("TSI"));A.numOverridden=parseInt(D.getAttribute("NO"));A.numTestFlashcards=parseInt(D.getAttribute("NTF"));A.numCorrectFirstTime=parseInt(D.getAttribute("NCFT"));A.drillFromID=parseInt(D.getAttribute("DFI"));A.drillToID=parseInt(D.getAttribute("DTI"));A.packs=[];for(var B=0;B<D.childNodes.length;B++){if(D.childNodes[B].tagName=="BD"){A.packs.push({itemID:D.childNodes[B].getAttribute("II"),name:decodeUTF8(D.childNodes[B].getAttribute("N"))})}}break}return A},parseActivity:function(F){var G={itemID:F.getAttribute("II"),userID:F.getAttribute("IU"),type:parseInt(F.getAttribute("IT")),activityType:parseInt(F.getAttribute("AT")),zOrder:parseInt(F.getAttribute("IZ")),flags:parseInt(F.getAttribute("IF")),name:decodeUTF8(F.getAttribute("N")),description:decodeUTF8(F.getAttribute("D")),instructions:decodeUTF8(F.getAttribute("IN")),fromID:parseInt(F.getAttribute("FI")),toID:parseInt(F.getAttribute("TI")),activityFlags:parseInt(F.getAttribute("AF")),level:parseInt(F.getAttribute("LV")),tags:""};var B=F.getAttribute("C");B=B?trim(B):"";G.categories=B.length==0?[]:B.split(",");for(var C=0;C<F.childNodes.length;C++){if(F.childNodes[C].tagName=="TD"){if(G.tags.length>0){G.tags+=", "}G.tags+=decodeUTF8(F.childNodes[C].getAttribute("T"))}}G.isCanWrite=(G.flags&lingACTIVITY.FLAG_WRITEABLE)!=0;switch(G.type){case lingCOMMON.TYPE_PACKDRILL:G.packItemID=F.getAttribute("PII");G.packName=decodeUTF8(F.getAttribute("PN"));G.drillFlags=parseInt(F.getAttribute("DF"));G.drillType=parseInt(F.getAttribute("DT"));G.drillFromID=parseInt(F.getAttribute("DFI"));G.drillToID=parseInt(F.getAttribute("DTI"));break;case lingCOMMON.TYPE_MESSAGE:G.text=decodeUTF8(F.getAttribute("M"));G.audioID=decodeUTF8(F.getAttribute("AUD"));G.videoID=decodeUTF8(F.getAttribute("VID"));G.youtubeID=decodeUTF8(F.getAttribute("YT"));for(var C=0;C<F.childNodes.length;C++){if(F.childNodes[C].tagName=="AAR"){G.result=this.parseResult(F.childNodes[C])}}break;case lingCOMMON.TYPE_CLOZE:G.text=decodeUTF8(F.getAttribute("T"));G.userAttempts=decodeUTF8(F.getAttribute("UA"));for(var C=0;C<F.childNodes.length;C++){if(F.childNodes[C].tagName=="AAR"){G.result=this.parseResult(F.childNodes[C])}}break;case lingCOMMON.TYPE_DIALOGUE_ACTIVITY:G.dialogueID=F.getAttribute("DI");G.dialogueName=decodeUTF8(F.getAttribute("DN"));G.dialogueMode=decodeUTF8(F.getAttribute("DM"));G.speakerChoice=decodeUTF8(F.getAttribute("SC"));break;case lingCOMMON.TYPE_VIEW_FLASHCARDS:G.packItemID=F.getAttribute("PII");G.packName=decodeUTF8(F.getAttribute("PN"));G.packKind=parseInt(F.getAttribute("PK"));G.numColumns=parseInt(F.getAttribute("NC"));break;case lingCOMMON.TYPE_SENTENCE_ACTIVITY:G.userAttempts=decodeUTF8(F.getAttribute("UA"));G.sentences=[];for(var C=0;C<F.childNodes.length;C++){if(F.childNodes[C].tagName=="SEN"){var H=F.childNodes[C];var D={baseText:decodeUTF8(H.getAttribute("BT")),text:decodeUTF8(H.getAttribute("T")),audioID:H.getAttribute("AUD"),imageID:H.getAttribute("IMG"),imageWidth:parseInt(H.getAttribute("IMGW")),imageHeight:parseInt(H.getAttribute("IMGH")),videoID:H.getAttribute("VID"),hint:decodeUTF8(H.getAttribute("H")),flags:parseInt(H.getAttribute("F")),answers:[]};D.isShowHint=D.hint.length>0;G.sentences.push(D);for(var A=0;A<H.childNodes.length;A++){var E=H.childNodes[A];if(E.tagName=="ANS"){D.answers.push({text:decodeUTF8(E.getAttribute("T")),audioID:E.getAttribute("AUD"),imageID:E.getAttribute("IMG"),imageWidth:parseInt(E.getAttribute("IMGW")),imageHeight:parseInt(E.getAttribute("IMGH")),videoID:E.getAttribute("VID"),flags:parseInt(E.getAttribute("F"))})}}}else{if(F.childNodes[C].tagName=="AAR"){G.result=this.parseResult(F.childNodes[C])}}}break}return G}};lingACTIVITY.VIDEO_LAYOUT_MASK=lingACTIVITY.VIDEO_LAYOUT_TOP|lingACTIVITY.VIDEO_LAYOUT_LEFT|lingACTIVITY.VIDEO_LAYOUT_BOTTOM|lingACTIVITY.VIDEO_LAYOUT_RIGHT;lingACTIVITY.activityNames=new Object();lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_UNKNOWN]=lingRESOURCES.write("Common.unknown","unknown");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_MEDIA_LECTURE]=lingRESOURCES.write("Common.Lecture","Lecture");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_MEDIA_VIDEO]=lingRESOURCES.write("Common.Video","Video");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_MEDIA_PODCAST]=lingRESOURCES.write("Common.Podcast","Podcast");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_MEDIA_GRAMMAR_POINT]=lingRESOURCES.write("Common.GrammarPoint","Grammar Point");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_MEDIA_CULTURAL_NOTE]=lingRESOURCES.write("Common.CulturalNote","Cultural Note");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_MEDIA_READING]=lingRESOURCES.write("Common.Reading","Reading");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_MEDIA_URL]=lingRESOURCES.write("Common.WebReader","Web Reader");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_FILL_IN_THE_BLANK]=lingRESOURCES.write("Common.FIB","Fill-in-the-Blank");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_CLOZE_PASSAGE]=lingRESOURCES.write("Common.Cloze","Cloze Passage");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_MULTIPLE_CHOICE]=lingRESOURCES.write("Common.MC","Multiple Choice");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_FIB_MULTIPLE_CHOICE]=lingRESOURCES.write("Common.FIBMC","Fill-in-the-Blank (Multiple Choice)");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_TRUE_FALSE]=lingRESOURCES.write("Common.TF","True / False");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_DIALOGUE]=lingRESOURCES.write("Common.Dlog","Dialogue");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_ERROR_ANALYSIS]="Error Analysis";lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_ERROR_CORRECTION]="Error Correction";lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_ESSAY_WRITING]=lingRESOURCES.write("Common.EssayWriting","Essay Writing");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_PICTURE_LABELING]="Picture Labeling";lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_SCRAMBLED_READING_DIALOGUE]="Scrambled Reading or Dialogue";lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_SCRAMBLED_SENTENCES]="Scrambled Sentences";lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_TEST]="Test";lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_SCRAMBLED_WORDS]="Scrambled Words";lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_ACTIVITY_VIEW_FLASHCARDS]=lingRESOURCES.write("Common.ViewFlashcards","Display Flashcard List");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_TRANSLATION]=lingRESOURCES.write("Common.translation_written","Translation (Written)");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_LISTENING_COMPREHENSION]=lingRESOURCES.write("Common.listening_comprehension","Listening Comprehension Drill");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_READING_ALOUD]=lingRESOURCES.write("Common.reading_aloud","Reading Practice");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_TRANSLATING_ALOUD]=lingRESOURCES.write("Common.translation_review","Translation (Review)");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_PRONUNCIATION]=lingRESOURCES.write("Common.pronunciation","Pronunciation Practice");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_DICTATION]=lingRESOURCES.write("Common.dictation","Dictation Drill");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_KANJI_TO_KANA]=lingRESOURCES.write("Common.kanji_to_kana","Chinese Character Drill");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_IMAGE]=lingRESOURCES.write("Common.imageID","Picture Identification");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_VERB]=lingRESOURCES.write("Common.verb","Verb Conjugations");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_IMAGE_PRACTICE]=lingRESOURCES.write("Common.imageRecognition","Picture Recognition");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_QUESTION_ANSWER]=lingRESOURCES.write("Common.question_answer","Freeform Q &amp; A");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_SYNONYMS]=lingRESOURCES.write("Common.synonyms","Synonyms");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_ANTONYMS]=lingRESOURCES.write("Common.antonyms","Antonyms");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_DEFINITIONS]=lingRESOURCES.write("Common.definitions","Definitions");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_PRINCIPAL_PARTS]=lingRESOURCES.write("Common.principalParts","Verb Basics (Principal Parts)");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_TRANSLATION_L2_L1]=lingRESOURCES.write("Common.translation_recognition","Translation (Recognition)");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_VOCAB_TRANSLATION_L1_L2]=lingRESOURCES.write("Common.translation_generation","Translation (Generation)");lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_GAME_CROSSWORD_PUZZLE]="Crossword Puzzle";lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_GAME_GUESS_THE_LETTERS]="Guess the Letters";lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_GAME_QUIZ]="Quiz";lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_GAME_MATCHING]="Matching";lingACTIVITY.activityNames["name"+lingACTIVITY.TYPE_GAME_WORD_SEARCH]="Word Search";lingACTIVITY.hideHintsTO=null;lingACTIVITY.mode=0;lingACTIVITY.hideHintsT=200;lingACTIVITY.arevType=new Array();lingACTIVITY.aBoxType=new Array();lingACTIVITY.dictationListens=new Array();lingACTIVITY.dictationListens.length=0;lingACTIVITY.numberTries=0;lingACTIVITY.userAttempts=0;lingACTIVITY.userListens=0;lingACTIVITY.homeworkID=0;lingACTIVITY.startTime=(new Date()).getTime();lingACTIVITY.gotoNextActivity=function(){var A="";if(lingACTIVITY.prevName&&lingACTIVITY.prevName.length>0){A+="&prevName="+encodeUTF8(lingACTIVITY.prevName)}if(lingACTIVITY.returnURL&&lingACTIVITY.returnURL.length>0){A+="&returnURL="+encodeUTF8(lingACTIVITY.returnURL)}location.href="Lesson.do?lessonID="+lingACTIVITY.lessonID+"&lastActivityID="+lingACTIVITY.activityID+A};lingACTIVITY.activityCompleteCB=function(){lingACTIVITY.gotoNextActivity()};lingACTIVITY.activityComplete=function(){if(lingACTIVITY.isPreview){window.close();return }lingACTIVITY.gotoNextActivity()};lingACTIVITY.quit=function(){if(lingACTIVITY.isPreview){window.close()}else{location.href="Lesson.do"}};lingACTIVITY.postMessage=function(){location.href="Lesson.do?lessonID="+lingACTIVITY.lessonID+"&lastActivityID="+lingACTIVITY.activityID};lingACTIVITY.postCloze=function(){lingACTIVITY.activityComplete()};lingACTIVITY.showActivityHelp=function(B,E){if(xGetElementById(B)){var F=xGetElementById(B);var H=xGetElementById(B);var I=curtop=0;if(F.offsetParent){I=F.offsetLeft;curtop=F.offsetTop;F=F.offsetParent;while(F!=null){I+=F.offsetLeft;curtop+=F.offsetTop;F=F.offsetParent}}var C=0;var G=I;if(G>350){G=350}else{var G=(I+10)}var D=(curtop+(H.offsetHeight)+10);var A=xGetElementById("h1");A.style.width=200+"px";A.style.position="absolute";A.style.fontSize="1em";removeAllNodes(A);E=E.replace(/&ggg;/g,"'");E=E.replace(/&hhh;/g,'"');A.innerHTML=E;A.style.left=G+"px";A.style.top=D+"px";A.zIndex=0;A.style.visibility="visible";A.style.display=""}};lingACTIVITY.closeActivityHelp=function(){hideElement("h1");xGetElementById("h1").innerHTML=""};lingACTIVITY.setPictureLabels=function(){if(xGetElementById("pictureLabel")){var A=document.getElementsByTagName("input");for(var B=0;B<A.length;B++){if(A[B].id.substring(0,11)=="WcAnswerBox"){var D=A[B].getAttribute("x");var C=A[B].getAttribute("y");var E=A[B].getAttribute("sn");xGetElementById("pictureLabel").innerHTML=lingACTIVITY.setLabelPositionHTML(D,C,E)+xGetElementById("pictureLabel").innerHTML}}}};lingACTIVITY.setLabelPositionHTML=function(C,B,E){var G=lingACTIVITY.findPos(xGetElementById("pictureLabel"));var A=(C*1)+G[0];var F=(B*1)+G[1];var D="<div id='p"+E+"' style='font-weight:bold;color:black;font-size:30px;position:absolute;top:"+F+"px;left:"+A+"px'>&#93"+(parseInt(E)+11)+";</div>";return D};lingACTIVITY.findPos=function(A){var B=curtop=0;if(A.offsetParent){B=A.offsetLeft;curtop=A.offsetTop;A=A.offsetParent;while(A!=null){B+=A.offsetLeft;curtop+=A.offsetTop;A=A.offsetParent}}return[B,curtop]};lingACTIVITY.updateListenCheck=function(C){if(lingACTIVITY.dictationListens.length==0){var D=document.getElementsByTagName("span");var A=1;for(var B=0;B<D.length;B++){if(D[B].id.substring(0,9)=="playAudio"){lingACTIVITY.dictationListens[A]=0;A++}}}lingACTIVITY.dictationListens[C]=lingACTIVITY.dictationListens[C]+1;if(lingACTIVITY.userListens>0&&lingACTIVITY.dictationListens[C]==lingACTIVITY.userListens){xGetElementById("playAudioImage"+C).src="img/audioNone.gif";alert("This is the last time you can listen to this audio")}else{if(lingACTIVITY.userListens>0&&lingACTIVITY.dictationListens[C]>lingACTIVITY.userListens){xGetElementById("playAudio"+C).innerHTML="<img src='img/audioNone.gif' border='0'/>";alert("You have exceeded the maximum listens for this audio")}}};lingACTIVITY.clozeGetAnswers=function(K){lingACTIVITY.clozeAnswers=new Array();lingACTIVITY.clozeDisplayAnswers=new Array();var J=0;var E=K.toLowerCase();do{var L=E.indexOf("<wc:cloze ",J);var M=E.indexOf("{",J);if(M>=0&&(M<L||L<0)){for(var C=M+1;C<K.length&&K.charCodeAt(C)!=125;C++){}var I=K.substring(M+1,C);var F=I.split(";");lingACTIVITY.clozeAnswers.push(F);lingACTIVITY.clozeDisplayAnswers.push(F);for(var B=F.length-1;B>=0;B--){F[B]=trim(F[B]);if(F[B].length==0){F.splice(B,1)}}J=M+1}else{if(L>=0){var H=new Object();J=lingUTIL.getTagTokens(K,L+1,H);var G=H.answers;if(G&&G.length>0){var F=G.split(";");var A=[];for(var D=0;D<F.length;D++){F[D]=trim(F[D]);if(F[D].length==0){F.splice(D,1)}else{if(F[D].charCodeAt(0)==58){F[D]=trim(decodeUTF8(F[D].substring(1)))}else{F[D]=trim(decodeUTF8(F[D]));A.push(F[D])}}}if(!H.hidden){lingACTIVITY.clozeAnswers.push(F)}lingACTIVITY.clozeDisplayAnswers.push(A);for(var B=F.length-1;B>=0;B--){F[B]=trim(F[B]);if(F[B].length==0){F.splice(B,1)}}}}else{J=-1}}}while(J>=0)};lingACTIVITY.clozeShowAnswers=function(B){var E=new Array();for(var D=0;D<lingACTIVITY.clozeDisplayAnswers.length;D++){for(j=0;j<lingACTIVITY.clozeDisplayAnswers[D].length;j++){E.push(lingACTIVITY.clozeDisplayAnswers[D][j])}}var G=false;var K=document.getElementsByTagName("input");for(var D=0;D<K.length;D++){if(K[D].id.substring(0,11)=="WcAnswerBox"){G=true;break}}if(!G){K=document.getElementsByTagName("textarea")}for(var D=0;D<K.length;D++){if(K[D].id.substring(0,11)=="WcAnswerBox"){answers=K[D].getAttribute("answers");if(answers&&answers.length>0){var F=answers.split(";");for(var C=0;C<F.length;C++){var A=strWS(F[C]);E.push(A.replace(/ /g,"&nbsp;"))}}}}for(var D=0;D<E.length*3;D++){var J=Math.floor(Math.random()*E.length);var I=Math.floor(Math.random()*E.length);var L=E[J];E[J]=E[I];E[I]=L}var H="";for(var D=0;D<E.length;D++){H+="<div>"+E[D]+"</div>"}xGetElementById("divClozeAnswers").innerHTML=H};lingACTIVITY.clozeShowAnswersButton=function(){if(lingACTIVITY.mode==0){lingACTIVITY.arevType.length=0;lingACTIVITY.aBoxType.length=0;k=0;var H=false;var A=document.getElementsByTagName("input");for(var E=0;E<A.length;E++){if(A[E].id.substring(0,11)=="WcAnswerBox"){H=true;break}}if(!H){A=document.getElementsByTagName("textarea")}for(var C=0;C<A.length;C++){if(A[C].id.substring(0,11)=="WcAnswerBox"){if(A[C].value.length>0){lingACTIVITY.arevType[k]=A[C].id+";"+A[C].value;k++}}}var K=document.getElementsByTagName("table");for(var E=0;E<K.length;E++){if(K[E].getAttribute("name")){if(K[E].getAttribute("name").substring(0,16)=="WcMultipleChoice"||K[E].getAttribute("name").substring(0,7)=="WcMCBox"){var I=K[E].getElementsByTagName("div");for(var C=0;C<I.length;C++){if(I[C].className=="navboxYellow center orange"){lingACTIVITY.aBoxType[k]=I[C];k++}}}}}var K=document.getElementsByTagName("div");for(var E=0;E<K.length;E++){if(K[E].id.substring(0,6)=="Answer"||K[E].id.substring(0,2)=="te"){hideElement(K[E])}}try{hideElement(xGetElementById("topDD1"));hideElement(xGetElementById("topDD2"));hideElement(xGetElementById("botDD1"))}catch(B){}var H=false;var K=document.getElementsByTagName("input");for(var E=0;E<K.length;E++){if(K[E].id.substring(0,11)=="WcAnswerBox"){H=true;break}}if(!H){K=document.getElementsByTagName("textarea")}for(var E=0;E<K.length;E++){if(K[E].id.substring(0,11)=="WcAnswerBox"){K[E].style.backgroundColor="white";K[E].style.color="black";answers=K[E].getAttribute("answers");if(answers&&answers.length>0){var F=answers.split(";");K[E].value=F[0]}}}var K=document.getElementsByTagName("table");for(var E=0;E<K.length;E++){if(K[E].getAttribute("name")){if(K[E].getAttribute("name").substring(0,16)=="WcMultipleChoice"){var G=trim(decodeUTF8(K[E].getAttribute("correct"))).replace("`","'");var J=K[E].getElementsByTagName("td");for(var C=0;C<J.length;C++){var I=J[C].getElementsByTagName("div");if(G==trim(decodeUTF8(I[0].innerHTML))){I[0].style.backgroundColor="#009900";I[0].style.color="white"}}}if(K[E].getAttribute("name").substring(0,7)=="WcMCBox"){var G=trim(decodeUTF8(K[E].getAttribute("correct"))).replace("`","'");var I=K[E].getElementsByTagName("div");for(var C=0;C<I.length;C++){if(G==trim(decodeUTF8(I[C].innerHTML))){I[C].style.backgroundColor="#009900";I[C].style.color="white"}}}if(K[E].getAttribute("name").substring(0,9)=="WcMCRadio"){var G=trim(decodeUTF8(K[E].getAttribute("correct"))).replace("`","'");var I=K[E].getElementsByTagName("input");for(var C=0;C<I.length;C++){if(G==trim(decodeUTF8(I[C].value))){var D=xGetElementById("td"+G+"_"+I[C].id);D.style.backgroundColor="#009900"}}}}}xGetElementById("tsab").innerHTML=lingRESOURCES.write("ActivityCloze.hideAnswers","Hide Answers");lingACTIVITY.mode=1}else{try{showElement(xGetElementById("topDD1"));showElement(xGetElementById("topDD2"));showElement(xGetElementById("botDD1"))}catch(B){}xGetElementById("tsab").innerHTML=lingRESOURCES.write("ActivityCloze.showAnswers","Show Answers");var H=false;var K=document.getElementsByTagName("input");for(var E=0;E<K.length;E++){if(K[E].id.substring(0,11)=="WcAnswerBox"){H=true;break}}if(!H){K=document.getElementsByTagName("textarea")}for(var E=0;E<K.length;E++){if(K[E].id.substring(0,11)=="WcAnswerBox"){K[E].value=""}}var K=document.getElementsByTagName("div");for(var E=0;E<K.length;E++){if(K[E].id.substring(0,6)=="Answer"||K[E].id.substring(0,2)=="te"){showElement(K[E])}}for(var L=0;L<lingACTIVITY.arevType.length;L++){var F=lingACTIVITY.arevType[L].split(";");xGetElementById(F[0]).value=F[1]}lingACTIVITY.mode=0;if(lingACTIVITY.userAttempts>0){hideElement("tsab")}var K=document.getElementsByTagName("table");for(var E=0;E<K.length;E++){if(K[E].getAttribute("name")){if(K[E].getAttribute("name").substring(0,9)=="WcMCRadio"){var G=trim(decodeUTF8(K[E].getAttribute("correct"))).replace("`","'");var I=K[E].getElementsByTagName("input");for(var C=0;C<I.length;C++){var D=xGetElementById("td"+G+"_"+I[C].id);D.style.backgroundColor=""}}}}var K=document.getElementsByTagName("table");for(var E=0;E<K.length;E++){if(K[E].getAttribute("name")){if(K[E].getAttribute("name").substring(0,16)=="WcMultipleChoice"||K[E].getAttribute("name").substring(0,7)=="WcMCBox"){var I=K[E].getElementsByTagName("div");for(var C=0;C<I.length;C++){lingACTIVITY.clearMCChoices(I[C])}}}}for(var L=0;L<lingACTIVITY.aBoxType.length;L++){lingACTIVITY.aBoxType[L].className="navboxYellow center orange";lingACTIVITY.aBoxType[L].style.color="";lingCOMMON.navboxYellowOnOver(lingACTIVITY.aBoxType[L])}}};lingACTIVITY.clozeClearDragAndDropAnswers=function(){var B=false;var A=document.getElementsByTagName("input");for(var C=0;C<A.length;C++){if(A[C].id.substring(0,11)=="WcAnswerBox"){B=true;break}}if(!B){A=document.getElementsByTagName("textarea")}for(var C=0;C<A.length;C++){if(A[C].id.substring(0,11)=="WcAnswerBox"){A[C].value="";A[C].style.backgroundColor="white"}}};lingACTIVITY.clozeDragAndDrop=function(B){str="";var H=false;var K=document.getElementsByTagName("input");for(var F=0;F<K.length;F++){if(K[F].id.substring(0,11)=="WcAnswerBox"){H=true;break}}if(!H){K=document.getElementsByTagName("textarea")}D=0;for(var F=0;F<K.length;F++){if(K[F].id.substring(0,11)=="WcAnswerBox"){answers=K[F].getAttribute("answers");if(answers&&answers.length>0){var G=answers.split(";");for(var C=0;C<G.length;C++){str+="<div id='te"+D+"' style='position: relative' class='eslot'>&nbsp</div>";D++}}}}xGetElementById("divParkingLot").innerHTML=str;str="";astr="";var E=new Array();var H=false;var K=document.getElementsByTagName("input");for(var F=0;F<K.length;F++){if(K[F].id.substring(0,11)=="WcAnswerBox"){H=true;break}}if(!H){K=document.getElementsByTagName("textarea")}for(var F=0;F<K.length;F++){if(K[F].id.substring(0,11)=="WcAnswerBox"){K[F].readOnly=true;answers=K[F].getAttribute("answers");if(answers&&answers.length>0){var G=answers.split(";");for(var M=0;M<G.length;M++){astr=trim(decodeUTF8(G[M]));if(astr.length>0){E.push(astr)}}}}}for(var F=0;F<E.length*2;F++){var J=Math.floor(Math.random()*E.length);var I=Math.floor(Math.random()*E.length);var L=E[J];E[J]=E[I];E[I]=L}var D=0;for(var C=0;C<E.length;C++){var A=strWS(E[C]);A=A.replace(/ /g,"&nbsp;");str+="<div id='Answer"+D+"' style='position: relative' class='player'>"+A+"</div>";D++}str+='<table id="botDD1" cellspacing="0" cellpadding="0" width="206" style="line-height:1.3em;background-color:white;position: relative">';str+='<tr class="squeeze" style="line-height:1.3em">';str+='<td class="bubbleBL" width="5" height="5"><img src="img/bigSpacer.gif" width="5" height="5"></td>';str+='<td class="bubbleBM" width="100%" height="5" colspan="2"></td>';str+='<td class="bubbleBR" width="6" height="5"><img src="img/bigSpacer.gif" width="6" height="5"></td>';str+="</tr></table>";xGetElementById("divDragAndDrop").innerHTML=str};lingACTIVITY.clozeClear=function(){for(var A=0;A<lingACTIVITY.clozeAnswers.length;A++){xGetElementById("cloze"+A).value=""}};lingACTIVITY.getIsCorrect=function(A,H,B,F,E){var G=trim(A);var D;G=lingTEXT.stripArabic(lingTEXT.stripHebrew(normalizePinyin(normalizeFullHalf(G))));if(B){G=G.toUpperCase()}if(F){G=stripAccents(G)}if(E){G=stripPunctuation(G)}G=lingWRITE.normalize(G);for(var C=0;C<H.length;C++){D=lingTEXT.stripArabic(lingTEXT.stripHebrew(normalizePinyin(normalizeFullHalf(H[C]))));if(B){D=D.toUpperCase()}if(F){D=stripAccents(D)}if(E){D=stripPunctuation(D)}D=lingWRITE.normalize(D);if(matches(G,D)){return true}}return false};lingACTIVITY.clozeCheckAnswers=function(G,K,Y){var B=0;var M=0;var V="";var E="";var b=false;var O=document.getElementsByTagName("input");for(var X=0;X<O.length;X++){if(O[X].id.substring(0,11)=="WcAnswerBox"){b=true;break}}if(!b){O=document.getElementsByTagName("textarea")}var Z=document.getElementsByTagName("div");for(var X=0;X<O.length;X++){if(O[X].id.substring(0,11)=="WcAnswerBox"){var I=YAHOO.util.Dom.getX(O[X]);var C=YAHOO.util.Dom.getY(O[X]);V=trim(O[X].value);if(V.length==0){var J=false;for(var Q=0;Q<Z.length;Q++){if(Z[Q].id.substring(0,6)=="Answer"){if((I==YAHOO.util.Dom.getX(Z[Q]))&&(C==YAHOO.util.Dom.getY(Z[Q]))){J=true;var H=Z[Q].innerHTML;E=O[X].getAttribute("answers");if(E&&E.length>0){var P=false;var A=E.split(";");for(var W=0;W<A.length;W++){H=H.replace(/&nbsp;/g," ");if(H==A[W]||H.replace("`","'")==A[W]){O[X].style.backgroundColor="#009900";O[X].style.color="white";O[X].readOnly=true;P=true;M++;break}}if(!P){O[X].style.backgroundColor="#ff0000";O[X].style.color="white";B++}}}}}if(!J&&V.length==0){O[X].style.backgroundColor="white";O[X].style.color="black";B++}}else{var P=false;E=O[X].getAttribute("answers");if(E&&E.length>0){var A=E.split(";");if(lingACTIVITY.getIsCorrect(V,A,G,Y,K)||lingACTIVITY.getIsCorrect(V.replace("`","'"),A,G,Y,K)){O[X].style.backgroundColor="#009900";O[X].style.color="white";O[X].readOnly=true;P=true;M++}if(!P){O[X].style.backgroundColor="#ff0000";O[X].style.color="white";B++}}}}}var O=document.getElementsByTagName("table");for(var X=0;X<O.length;X++){if(O[X].getAttribute("name")){if(O[X].getAttribute("name").substring(0,16)=="WcMultipleChoice"){var D=trim(decodeUTF8(O[X].getAttribute("correct"))).replace("`","'");var N=O[X].getElementsByTagName("td");for(var W=0;W<N.length;W++){var L=N[W].getElementsByTagName("div");if(L[0].className=="navboxYellow center orange"){if(D==trim(decodeUTF8(L[0].innerHTML))){L[0].style.backgroundColor="#009900";L[0].style.color="white";M++}else{L[0].style.backgroundColor="#cc0000";L[0].style.color="white";B++}}}}if(O[X].getAttribute("name").substring(0,7)=="WcMCBox"){var D=trim(decodeUTF8(O[X].getAttribute("correct"))).replace("`","'");var L=O[X].getElementsByTagName("div");for(var W=0;W<L.length;W++){if(L[W].className=="navboxYellow center orange"){if(D==trim(decodeUTF8(L[W].innerHTML))){L[W].style.backgroundColor="#009900";L[W].style.color="white";M++}else{L[W].style.backgroundColor="#cc0000";L[W].style.color="white";B++}}}}if(O[X].getAttribute("name").substring(0,9)=="WcMCRadio"){var D=trim(decodeUTF8(O[X].getAttribute("correct"))).replace("`","'");var L=O[X].getElementsByTagName("input");for(var W=0;W<L.length;W++){var R=trim(decodeUTF8(lingUTIL.getRadioValue(L[W].id)));if(D==R&&D==trim(decodeUTF8(L[W].value))){var S=xGetElementById("td"+D+"_"+L[W].id);S.style.backgroundColor="#009900";M++}if(D!=R&&R==trim(decodeUTF8(L[W].value))){var S=xGetElementById("td"+decodeUTF8(L[W].value)+"_"+L[W].id);S.style.backgroundColor="#cc0000";B++}}}}}for(var X=0;X<lingACTIVITY.clozeAnswers.length;X++){var S=xGetElementById("cloze"+X);V=trim(S.value);if(V.length==0){S.style.backgroundColor="white";S.style.color="black";B++}else{var P=false;for(var W=0;W<lingACTIVITY.clozeAnswers[X].length;W++){if(V==lingACTIVITY.clozeAnswers[X][W]){S.style.backgroundColor="#009900";S.style.color="white";S.readOnly=true;P=true;M++;break}}if(!P){S.style.backgroundColor="#ff0000";S.style.color="white";B++}}}if(lingACTIVITY.choiceAnswers){for(var F=0;F<lingACTIVITY.choiceAnswers.length;F++){if(lingACTIVITY.choices[F]==null){var X=0;do{var U=xGetElementById("choice"+F+"_"+(X++));if(U){U.style.backgroundColor="#ffcccc"}}while(U);B++}else{var U=xGetElementById("choice"+F+"_"+lingACTIVITY.choices[F].index);if(lingACTIVITY.choices[F].index==0){U.style.backgroundColor="#009900";U.style.color="white";M++}else{U.style.backgroundColor="#cc0000";U.style.color="white";B++}}}}if(B>0){lingACTIVITY.numberTries=lingACTIVITY.numberTries+1}if(lingACTIVITY.userAttempts>0&&lingACTIVITY.numberTries>=lingACTIVITY.userAttempts){showElement("tsab");lingACTIVITY.clozeShowAnswersButton();lingACTIVITY.numberTries=0}var T=0;if(M>0||B>0){T=(M*100)/(M+B)}};lingACTIVITY.clozeClearHints=function(){for(var B=0;B<lingACTIVITY.clozeAnswers.length;B++){var A=xGetElementById("cloze"+B);if(A&&A.ling&&A.ling.isHint){A.value="";A.ling.isHint=false}}if(lingACTIVITY.choiceAnswers){for(var D=0;D<lingACTIVITY.choiceAnswers.length;D++){if(lingACTIVITY.choices[D]==null||lingACTIVITY.choices[D].index!=0){var B=0;do{var C=xGetElementById("choice"+D+"_"+(B++));if(C){C.style.backgroundColor="";C.style.color="";C.className="navbox center blue"}}while(C)}}}lingACTIVITY.hideHintsTO=null;lingACTIVITY.hideHintsT+=100;if(lingACTIVITY.hideHintsT>500){lingACTIVITY.hideHintsT=500}};lingACTIVITY.clozeShowHint=function(){if(lingACTIVITY.hideHintsTO!=null){clearTimeout(lingACTIVITY.hideHintsTO);lingACTIVITY.hideHintsTO=null}var A=0;for(var E=0;E<lingACTIVITY.clozeAnswers.length;E++){var F=xGetElementById("cloze"+E);var H=trim(F.value);var I=false;for(var D=0;D<lingACTIVITY.clozeAnswers[E].length;D++){if(H==lingACTIVITY.clozeAnswers[E][D]){I=true;F.ling={isHint:false};break}}if(!I){F.value=lingACTIVITY.clozeAnswers[E][0];F.ling={isHint:true};A++}}if(lingACTIVITY.choiceAnswers){for(var C=0;C<lingACTIVITY.choiceAnswers.length;C++){var G=lingACTIVITY.choiceAnswers[C].correct;var B=xGetElementById("choice"+C+"_0");if(B){B.style.backgroundColor="#009900";B.style.color="white"}}}if(A>0){lingACTIVITY.hideHintsTO=setTimeout("lingACTIVITY.clozeClearHints()",lingACTIVITY.hideHintsT)}};lingACTIVITY.getChoices=function(F){lingACTIVITY.choices=new Array();lingACTIVITY.choiceAnswers=new Array();var G=0;var C=F.toLowerCase();do{var D=C.indexOf("<wc:choice ",G);if(D>=0){var E=new Object();G=lingUTIL.getTagTokens(F,D+1,E);if(G<0){D=-1}else{var B=E.correct;var A=E.incorrect;lingACTIVITY.choiceAnswers.push({correct:B,incorrect:A});lingACTIVITY.choices.push(null)}}}while(D>=0)};lingACTIVITY.clearChoices=function(C){var A=0;var B;do{B=xGetElementById("choice"+C+"_"+(A++));if(B!=null){B.className="navbox center blue";B.style.color="#2060a0";B.onmouseover=function(){lingCOMMON.navboxOnOver(this)};B.onmouseout=function(){lingCOMMON.navboxOnOut(this)};lingCOMMON.navboxOnOut(B)}}while(B!=null)};lingACTIVITY.onChoose=function(B,A){lingACTIVITY.clearChoices(B);node=xGetElementById("choice"+B+"_"+A);node.className="navboxYellow center orange";node.style.color="";node.onmouseover=null;node.onmouseout=null;lingCOMMON.navboxYellowOnOver(node);lingACTIVITY.choices[B]={index:A}};lingACTIVITY.onMCChoose=function(A){lingACTIVITY.clearMCChoices(A);A.className="navboxYellow center orange";A.style.color="";A.onmouseover=null;A.onmouseout=null;lingCOMMON.navboxYellowOnOver(A)};lingACTIVITY.clearMCChoices=function(C){var A=C;while(A.nodeName!="TABLE"){A=A.parentNode}var D=A.getElementsByTagName("div");for(var B=0;B<D.length;B++){D[B].className="navbox center blue";D[B].style.color="#2060a0";D[B].style.backgroundColor="white";D[B].onmouseover=function(){lingCOMMON.navboxOnOver(this)};D[B].onmouseout=function(){lingCOMMON.navboxOnOut(this)};lingCOMMON.navboxOnOut(C)}};lingACTIVITY.clearMCRadioChoices=function(C){var A=xGetElementById(C);var D=A.getElementsByTagName("td");for(var B=0;B<D.length;B++){D[B].style.backgroundColor=""}};