function PlatformInfo(){var G=window.navigator.userAgent.toLowerCase();this.isWindows=(G.indexOf("win")>-1);this.isWinXPSP2=(G.indexOf("SV1")>-1);this.isWinVista=(G.indexOf("windows nt 6.")>-1);this.isMac=(G.indexOf("mac")>-1);this.isSun=(G.indexOf("sunos")>-1);this.isUnix=(this.isSun||(G.indexOf("x11")>-1)||(G.indexOf("irix")>-1)||(G.indexOf("hp-ux")>-1)||(G.indexOf("sco")>-1)||(G.indexOf("unix_sv")>-1)||(G.indexOf("unix_system_v")>-1)||(G.indexOf("ncr")>-1)||(G.indexOf("reliantunix")>-1)||(G.indexOf("dec")>-1)||(G.indexOf("osf1")>-1)||(G.indexOf("dec_alpha")>-1)||(G.indexOf("alphaserver")>-1)||(G.indexOf("ultrix")>-1)||(G.indexOf("alphastation")>-1)||(G.indexOf("sinix")>-1)||(G.indexOf("aix")>-1)||(G.indexOf("inux")>-1)||(G.indexOf("bsd")>-1)||(G.indexOf("freebsd")>-1));var F=G.indexOf("opera");this.isOpera=(F>-1);this.isSafari=((G.indexOf("safari")!=-1)&&(!this.isOpera));this.isNetscape=((window.navigator.appName=="Netscape")&&!this.isOpera);this.isFirefox=(((G.indexOf("firefox/1.")!=-1)||(G.indexOf("firefox/2.")!=-1))&&(!this.isOpera));this.isNetscape60=false;var B=G.indexOf("msie ");this.isIE=((B>-1)&&!this.isOpera);if(this.isFirefox){this.isNetscape=true;this.isOpera=false;this.isNetscape60=false}if(this.isOpera){this.browserVersion=parseFloat(G.substring(F+6))}else{if(this.isIE){this.browserVersion=parseFloat(G.substring(B+5))}else{if(this.isNetscape){var A=G.indexOf("netscape/");if(A>-1){this.browserVersion=parseFloat(G.substring(A+9))}else{var E=G.indexOf("netscape6");if(E>-1){this.browserVersion=parseFloat(G.substring(E+10));this.isNetscape60=(this.browserVersion>=6&&this.browserVersion<6.1)}else{this.browserVersion=parseFloat(window.navigator.appVersion);if(this.browserVersion>=5){var C=G.indexOf("rv:");if(C>-1){if(G.indexOf("rv:0.9.4")>-1){this.browserVersion=6.2}else{if(G.indexOf("rv:1.7.5")>-1){this.browserVersion=8.1}else{var D=parseFloat(G.substring(C+3));if(D>=1&&D<1.4){this.browserVersion=7}else{if(D>=1.4&&D<1.5){this.browserVersion=7.1}else{if(D>=1.7&&D<1.8){this.browserVersion=7.2}else{if(D>=1.8&&D<1.9){this.browserVersion=7.23}else{if(D>=1.9){this.browserVersion=7.96}else{this.isNetscape=false}}}}}}}}else{this.isNetscape=false}}}}}else{this.browserVersion=parseFloat(window.navigator.appVersion)}}}}var g_design_srcPath="";var ELEMENT_NODE=1;var TEXT_NODE=3;var CDATA_SECTION_NODE=4;var g_design_ektPlatformInfo=null;function design_isSafari(){if(null==g_design_ektPlatformInfo&&"function"==typeof PlatformInfo){g_design_ektPlatformInfo=new PlatformInfo}if(g_design_ektPlatformInfo){return(g_design_ektPlatformInfo.isSafari)}else{return(false)}}function design_onsubmitForm(B){var A=design_validateHtmlForm(B);if(A&&A.title!=""){alert(A.title);if("function"==typeof A.scrollIntoView||"object"==typeof A.scrollIntoView){A.scrollIntoView()}if(design_canElementReceiveFocus(A)){A.focus()}return false}return true}function design_validateHtmlForm(A){if(A&&A._form){A=A._form}if(null==g_design_ektPlatformInfo&&"function"==typeof PlatformInfo){g_design_ektPlatformInfo=new PlatformInfo}if(g_design_ektPlatformInfo){if(g_design_ektPlatformInfo.isNetscape&&g_design_ektPlatformInfo.browserVersion<6.2){return null}if(g_design_ektPlatformInfo.isIE&&g_design_ektPlatformInfo.browserVersion<5){return null}}var B;switch(typeof A){case"string":case"number":B=document.forms[A];break;case"object":B=A;break;default:B=document.forms[0];break}if(!B){return null}return design_prevalidateElement(B,null)}function design_prevalidateElement(oElem,oFirstInvalidElem){if(!oElem){return oFirstInvalidElem}if("undefined"==typeof oElem.getAttribute){return oFirstInvalidElem}if("design_prototype"==oElem.className){return oFirstInvalidElem}if("object"==typeof oElem.currentStyle&&oElem.currentStyle!=null){if("none"==oElem.currentStyle.display){return oFirstInvalidElem}if("hidden"==oElem.currentStyle.visibility){return oFirstInvalidElem}}var validation=oElem.getAttribute("ektdesignns_validation");if(validation&&validation!="none"){oElem.removeAttribute("ektdesignns_isvalid");design_validate_result=true;if("function"==typeof oElem.onblur){oElem.onblur()}else{var sFn=oElem.getAttribute("onblur");if(sFn){try{oElem.fnonblur=new Function(sFn);oElem.fnonblur()}catch(e){sFn=sFn.replace(/([\(\,]\s*)this(\s*[\,\)])/,"$1oElem$2");var fn=new Function(sFn);eval(sFn)}}}if(null==oFirstInvalidElem&&false==design_validate_result){oFirstInvalidElem=oElem}}if(typeof oElem.childNodes!="undefined"){for(var i=0;i<oElem.childNodes.length;i++){if(ELEMENT_NODE==oElem.nodeType){oFirstInvalidElem=design_prevalidateElement(oElem.childNodes.item(i),oFirstInvalidElem)}}}return oFirstInvalidElem}var g_oElemContainerForAttributes=null;function design_getProtectedAttribute(A,B){var D;if(A){var C=A.getAttribute("ctagattrs");if("string"==typeof C){if(null==g_oElemContainerForAttributes){g_oElemContainerForAttributes=document.createElement("span")}var E=C.replace(/\@zzquote\;/g,'"');E=E.replace(/\@zzsquo\;/g,"'");E=E.replace(/\@zzamp\;/g,"&");E=E.replace(/\@zzlt\;/g,"<");E=E.replace(/\@zzgt\;/g,">");g_oElemContainerForAttributes.innerHTML="<span "+E+"> </span>";D=g_oElemContainerForAttributes.firstChild.getAttribute(B)}}return D}function design_getAttribute(A,B){var C;if(A){switch(B){case"selected":if(A.selected){C="selected"}break;case"checked":if(A.checked){C="checked"}break;default:C=A.getAttribute(B);if("undefined"==typeof C||null==C){C=design_getProtectedAttribute(A,B)}}}return C}function design_getValue(A){if(!A){return}var B=(typeof A.innerHTML!="undefined");if(typeof A.value!="undefined"){if("INPUT"==A.tagName&&("checkbox"==A.type||"radio"==A.type)){var C=A.value+"";if(C.length>0&&C!="true"&&C!="on"){if(A.checked){return C}else{return""}}else{if(A.checked){return true}else{return false}}}else{return A.value+""}}else{if(typeof A.getAttribute!="undefined"&&A.getAttribute("datavalue")!=null){return A.getAttribute("datavalue")}else{if(typeof A.getAttribute!="undefined"&&A.getAttribute("value")!=null){return A.getAttribute("value")}else{if(B&&"content-req"==design_getAttribute(A,"ektdesignns_validation")){return A.innerHTML}else{if(B&&"mixed"==design_getAttribute(A,"ektdesignns_datatype")){return A.innerText}else{if(typeof A.innerText!="undefined"){return A.innerText}else{if(B){return A.innerHTML.replace(/\<[^>]*\>/g,"")}else{return}}}}}}}}function design_setValue(A,B){if(!A){return}if(typeof A.value!="undefined"){if("INPUT"==A.tagName&&("checkbox"==A.type||"radio"==A.type)){if("true"==B||true==B||"on"==B){A.checked=true}else{if("false"==B||false==B){A.checked=false}else{A.value=B}}}else{A.value=B}}else{if(typeof A.getAttribute!="undefined"&&A.getAttribute("value")!=null){A.value=B}else{if(typeof A.innerHTML!="undefined"&&"mixed"==design_getAttribute(A,"ektdesignns_datatype")){A.innerHTML=B}else{if(typeof A.innerText!="undefined"){A.innerText=B}}}}}function design_evaluate(C,A){var B=new Object();B.text=A+"";B.fnDesignEvaluateExpression=new Function("return "+C);return B.fnDesignEvaluateExpression()}function design_normalize_re(D,A){if(typeof g_design_prevalidateFormReentry=="undefined"||g_design_prevalidateFormReentry!=true){var B=design_getValue(A);if("undefined"==typeof B){return}if("undefined"!=typeof RegExp.lastIndex){RegExp.lastIndex=0}D.lastIndex=0;var C=D.exec(B);B=(null==C?"":C[0]);design_normalize_complete(A,B)}}function design_validate_re(E,A,D){var B=design_getValue(A);if("undefined"==typeof B){return}if("undefined"!=typeof RegExp.lastIndex){RegExp.lastIndex=0}E.lastIndex=0;var C=E.test(B);design_validate_complete(A,C,D);return C}function design_normalize_js(C,A){if(typeof g_design_prevalidateFormReentry=="undefined"||g_design_prevalidateFormReentry!=true){var B=design_getValue(A);if("undefined"==typeof B){return}var B=design_evaluate(C,B);design_normalize_complete(A,B)}}function design_validate_js(E,A,D){var B=design_getValue(A);if("undefined"==typeof B){return}var C=design_evaluate(E,B);design_validate_complete(A,C,D);return C}function design_normalize_complete(A,B){design_setValue(A,B)}var design_validate_result=true;function design_validate_complete(A,B,C){design_validate_result=B;if(!A){return B}if(C&&"string"==typeof A.title){var D=A.title.indexOf(C);if(D>=0){if(D>0&&"\n"==A.title.charAt(D-1)){D-=1}A.title=A.title.substring(0,D)}D=A.title.length-1;if(D>=0&&"\n"==A.title.charAt(D)){while(D>=0&&"\n"==A.title.charAt(D)){D--}A.title=A.title.substring(0,D)}}if(!B){if(C&&("string"==typeof A.title)){if(-1==A.title.indexOf(C)){if(A.title.length>0){A.title+=" \n"}A.title+=C}}}if("function"==typeof customValidationStyle){customValidationStyle(A,B)}else{design_validationStyle(A,B)}}function design_validationStyle(A,E){var D=null;var F=A.tagName;var B=(design_isSafari()&&("INPUT"==F))||("SELECT"==F);if("object"==typeof A){D=A.parentNode;if(("object"==typeof A.style)&&("object"==typeof D)){if(E){if(B){if(("SPAN"==D.tagName)&&("design_validation_failed"==D.className)){D.className="design_validation_passed"}}else{A.style.borderTopStyle="";A.style.borderRightStyle="";A.style.borderBottomStyle="";A.style.borderLeftStyle="";A.style.borderTopColor="";A.style.borderRightColor="";A.style.borderBottomColor="";A.style.borderLeftColor="";A.style.borderTopWidth="";A.style.borderRightWidth="";A.style.borderBottomWidth="";A.style.borderLeftWidth="";A.style.margin="2px"}}else{if(("undefined"==typeof g_design_designMode)||(g_design_designMode!=true)){if(B){if((D.tagName!="SPAN")||((D.className!="design_validation_failed")&&(D.className!="design_validation_passed"))){var C=document.createElement("span");C=D.insertBefore(C,A);A=D.removeChild(A);A=C.appendChild(A);D=C}D.className="design_validation_failed"}else{A.style.borderStyle="dashed";A.style.borderColor="red";A.style.borderWidth="2px";A.style.margin="0"}}}}}}function design_validate_select(A,C,D){if(!C){return}if("undefined"==typeof C.selectedIndex){return}var B=(C.selectedIndex>=A);design_validate_complete(C,B,D);return B}function design_validate_choice(B,D,A,E){if(!A){return}if("undefined"==typeof A.getElementsByTagName){return}var F=0;var K;var J;var G=null;var I=A.getAttribute("ektdesignns_validation");if("choice-req"==I){G=A.getElementsByTagName("input");J=true}else{if("select-req"==I){G=A.getElementsByTagName("option");J=false}}if(G){for(var H=0;H<G.length;H++){K=G[H];if(J){if(K.checked){F++}}else{if(K.selected){F++}}}}var C=(B<=F&&(D<=0||F<=D));design_validate_complete(A,C,E);return C}function design_normalize_isbn(A){A=A+"";A=A.replace(/[\s\-]/g,"").toUpperCase();return A}function design_validate_isbn(A){var B=design_validate_isbn10(A)||design_validate_isbn13(A);return B}function design_validate_isbn10(B){var D=true;B=B+"";var G=new RegExp("^[0-9]{9}[0-9X]$");if(!G.test(B)){return false}var E=0;var F=10;for(var C=0;C<B.length;C++){var A=B.charCodeAt(C);if(88==A&&1==F){E+=10;F--}else{if(48<=A&&A<=57){E+=(A-48)*F--}}}D=(0==F&&0==(E%11));return D}function design_validate_isbn13(B){B=B+"";var G=new RegExp("^[0-9]{13}$");if(!G.test(B)){return false}var D=0;var F=13;var C=1;for(var E=0;E<B.length;E++){var A=B.charCodeAt(E);if(48<=A&&A<=57){D+=(A-48)*C;C=(1==C?3:1);F--}}return(0==F&&0==(D%10))}function design_normalize_issn(A){A=A+"";A=A.replace(/[\s\-]/g,"").toUpperCase();return A}function design_validate_issn(B){B=B+"";var F=new RegExp("^[0-9]{7}[0-9X]$");if(!F.test(B)){return false}var D=0;var C=8;for(var E=0;E<B.length;E++){var A=B.charCodeAt(E);if(88==A&&1==C){D+=10;C--}else{if(48<=A&&A<=57){D+=(A-48)*C--}}}return(0==C&&0==(D%11))}function design_current_date(){var A=new Date();var B=(A.getMonth()+1);if(B<=9){B="0"+B}var C=A.getDate();if(C<=9){C="0"+C}return(A.getFullYear()+"-"+B+"-"+C)}function design_validate_future_date(A){A=A+"";if(10==A.length){return(A>=design_current_date())}return false}function design_canElementReceiveFocus(A){if(!A){return false}var C=A.type+"";if("hidden"==C){return false}if("object"==typeof A.currentStyle){if("none"==A.currentStyle.display){return false}if("hidden"==A.currentStyle.visibility){return false}}var D=A.disabled+"";if("true"==D){return false}if(A.isDisabled){return false}var B=A.isTextEdit+"";if("false"==B){return false}var E=typeof A.focus;if("function"!=E&&"object"!=E){return false}return true}function design_HTMLEncode(B){var A=B+"";A=A.replace(/\&/g,"&amp;");A=A.replace(/\</g,"&lt;");A=A.replace(/\>/g,"&gt;");A=A.replace(/\"/g,"&quot;");return A}function design_serializeHTMLAttribute(A,B){if(!A){return""}try{var D="";if("class"==B){D=A.className}else{D=design_getAttribute(A,B)}if("string"==typeof D&&D.length>0){return" "+B+'="'+design_HTMLEncode(D)+'"'}else{if("boolean"==typeof D&&true==D){return" "+B+'="'+B+'"'}else{return""}}}catch(C){return""}}function design_serializeHTMLElement(A,B){if(!A){return""}var G=A.tagName.toLowerCase();var D="";var E=["ektdesignns_bind","ektdesignns_nodetype","ektdesignns_content","class","type","value","selected","checked"];for(var C=0;C<E.length;C++){D+=design_serializeHTMLAttribute(A,E[C])}if("undefined"==typeof B){B="";for(var C=0;C<A.childNodes.length;C++){var F=A.childNodes[C];switch(F.nodeType){case ELEMENT_NODE:B+=design_serializeHTMLElement(F);break;case TEXT_NODE:B+=F.nodeValue;break;default:break}}}return design_serializeElement(G,B,D)}function design_serializeElement(C,A,B){if("undefined"==typeof B){B=""}if("undefined"==typeof A||("string"==typeof A&&0==A.length)||(null==A)){return"<"+C+B+" />\n"}else{return"<"+C+B+">"+A+"</"+C+">\n"}}function design_xml_loadXML(D){try{if(typeof D!="string"){return null}if(D.length<=2){return null}var B=Sarissa.getDomDocument();if("string"==typeof B||null==B){return"Unable to create XML DOM Document"}B.async=false;if(D.indexOf("<")>=0){var A=new DOMParser();B=A.parseFromString(D,"text/xml");if(Sarissa.getParseErrorText(B)!=Sarissa.PARSED_OK){D="<root>"+D+"</root>";B=A.parseFromString(D,"text/xml")}}else{var E=D;E=E.replace(/.*(\[|%5B)srcpath(\]|%5D)\/?/i,g_design_srcPath);E=E.replace(/.*(\[|%5B)eWebEditProPath(\]|%5D)\/?/i,g_design_srcPath);B.load(E)}var F=Sarissa.getParseErrorText(B);if(F!=Sarissa.PARSED_OK){return F}return B}catch(C){return C.message}}function design_xml_loadXSLT(F){try{if(typeof F!="string"){return null}if(F.length<=2){return null}var B=Sarissa.getXsltDocument();if("string"==typeof B||null==B){return"Unable to create XSLT DOM Document"}B.async=false;if(F.indexOf("<")>=0){if(typeof B.loadXML!="undefined"){B.loadXML(F)}else{var A=new DOMParser();B=A.parseFromString(F,"text/xml")}}else{var D=F;D=D.replace(/.*(\[|%5B)srcpath(\]|%5D)\/?/i,g_design_srcPath);D=D.replace(/.*(\[|%5B)eWebEditProPath(\]|%5D)\/?/i,g_design_srcPath);B.load(D)}var E=Sarissa.getParseErrorText(B);if(E!=Sarissa.PARSED_OK){return E}return B}catch(C){return C.message}}function design_transformToDocument(C,G){try{var A=design_xml_loadXML(C);if("string"==typeof A){return A}if(null==A){return"Unable to load XML document"}var E=design_xml_loadXSLT(G);if("string"==typeof E){return E}if(null==E){return"Unable to load XSLT document"}var D=new XSLTProcessor();D.importStylesheet(E);var F=D.transformToDocument(A);return F}catch(B){return B.message}}function design_transform(B,A){try{var G=design_xml_loadXML(B);if("string"==typeof G){return G}if(null==G){return"Unable to load XML document"}var D=design_xml_loadXSLT(A);if("string"==typeof D){return D}if(null==D){return"Unable to load XSLT document"}var I=new XSLTProcessor();I.importStylesheet(D);var F=Sarissa.getDomDocument();var C=I.transformToFragment(G,F);if("string"==typeof C){return C}var H=(new XMLSerializer()).serializeToString(C);H=H.replace(/<transformiix:result[^>]*>/,"").replace("</transformiix:result>","");H=H.replace(/xslout:/g,"xsl:");H=H.replace(/<\?[^\?]*\?>/,"");H=H.replace(/xpathLiteralString(.*?)gnirtSlaretiLhtapx/g,function(J,K){return xpathLiteralString(K)});return H}catch(E){return E.message}}function xpathLiteralString(A){if(A.indexOf("'")>=0){return"concat('"+A.replace(/\'/g,"',&quot;'&quot;,'")+"')"}else{return"'"+A+"'"}}function design_replaceDataLists(){if(!document||!document.body){setTimeout("design_replaceDataLists()",200);return}var A=new Array();var G=new Array();G[0]=document.body.getElementsByTagName("select");for(var S=0;S<G.length;S++){var E=G[S];for(var W=0;W<E.length;W++){var V=E[W];var R=design_getAttribute(V,"ektdesignns_datasrc");if("string"==typeof R&&R.length>0){var Q=design_getAttribute(V,"ektdesignns_datalist");if("string"==typeof Q&&Q.length>0){if("undefined"==typeof A[Q]){var D=design_getAttribute(V,"ektdesignns_dataselect");var I=design_getAttribute(V,"ektdesignns_captionxpath");var L=design_getAttribute(V,"ektdesignns_valuexpath");var U=design_getAttribute(V,"ektdesignns_datanamespaces");A[Q]=design_getDataList(V.tagName,R,D,I,L,U)}if(A[Q].length>0){if("SELECT"==V.tagName){var C=0;var a=design_getAttribute(V,"ektdesignns_validation");if("select-req"==a){C=1}var b="";for(var J=0;J<V.options.length;J++){var H=V.options[J];b+=design_serializeHTMLElement(H,design_HTMLEncode(H.text))}var K=design_transformDataList(b,A[Q],C);if(typeof K!="string"){var Y=K.getElementsByTagName("option");var T=(Y!=null?Y.length:0);if(V.options.length>T){V.options.length=T}if(V.multiple&&V.size<2&&T>12){V.size=12}for(var J=0;J<T;J++){var O=Y[J];var N=O.attributes;var Z;var B=(O.firstChild?O.firstChild.nodeValue:"");Z=N.getNamedItem("value");var M=(Z?Z.nodeValue:"");Z=N.getNamedItem("selected");var X=("selected"==(Z?Z.nodeValue:""));V.options[J]=new Option(B,M,X,X)}}else{alert(K)}}else{var F=V.nextSibling;while(F.tagName!="OL"){F=F.nextSibling}var b=design_serializeHTMLElement(F);var P=design_transformChoiceDataList(b,A[Q]);P=P.replace(/<ol[^>]*>/,"").replace("</ol>","");F.innerHTML=P}}}}}}}setTimeout("design_replaceDataLists()",1);function design_transformChoiceDataList(H,G){var F="";F="";F+="<?xml version='1.0'?>\n";F+='<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslout="alias">\n';F+='<xsl:namespace-alias stylesheet-prefix="xslout" result-prefix="xsl"/>\n';F+='<xsl:template match="ol">\n';F+='<xslout:variable name="nameID" select="\'{li/input/@name}\'"/>\n';F+='<xslout:variable name="inputType" select="\'{li/input/@type}\'"/>\n';F+="</xsl:template>\n";F+='<xsl:template match="text()"/>\n';F+="</xsl:stylesheet>\n";var C=design_transform(H,F);F="";F+="<?xml version='1.0'?>\n";F+='<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslout="alias">\n';F+='<xsl:namespace-alias stylesheet-prefix="xslout" result-prefix="xsl"/>\n';F+='<xsl:template match="/">\n';F+=" <xsl:apply-templates/>\n";F+="</xsl:template>\n";F+='<xsl:template match="ol/li/input[@checked]">\n';F+=' <xslout:if test="not(option[@value=xpathLiteralString{@value}gnirtSlaretiLhtapx])">\n';F+='     <xsl:copy-of select=".."/>\n';F+=" </xslout:if>\n";F+="</xsl:template>\n";F+='<xsl:template match="text()"/>\n';F+="</xsl:stylesheet>\n";var A=design_transform(H,F);F="";F+="<?xml version='1.0'?>\n";F+='<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslout="alias">\n';F+='<xsl:namespace-alias stylesheet-prefix="xslout" result-prefix="xsl"/>\n';F+='<xsl:template match="/">\n';F+=" <xsl:for-each select=\"ol/li/input[1]/@*[starts-with(name(),'ektdesignns_')]\">\n";F+='  <xslout:attribute name="{name()}"><xsl:value-of select="."/></xslout:attribute>\n';F+=" </xsl:for-each>\n";F+=" <xsl:apply-templates/>\n";F+="</xsl:template>\n";F+='<xsl:template match="ol/li/input[@checked]">\n';F+=' <xslout:if test="@value=xpathLiteralString{@value}gnirtSlaretiLhtapx">\n';F+='           <xslout:attribute name="checked">checked</xslout:attribute>\n';F+=" </xslout:if>\n";F+="</xsl:template>\n";F+='<xsl:template match="text()"/>\n';F+="</xsl:stylesheet>\n";var E=design_transform(H,F);F="";F+="<?xml version='1.0'?>\n";F+='<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="ektdesign" xmlns:ektdesign="urn:ektdesign">\n';F+='<xsl:output method="xml" version="1.0" indent="yes" omit-xml-declaration="yes"/>\n';F+=C;F+='<xsl:template match="/">\n';var D=H.match(/<ol[^>]*>/);F+=" "+D+"\n";F+="        <xsl:apply-templates/>\n";F+="    </ol>\n";F+="</xsl:template>\n";F+='<xsl:template match="select">\n';F+=A;F+='    <xsl:apply-templates select="node()"/>\n';F+="</xsl:template>\n";F+='<xsl:template match="option">\n';F+='    <xsl:variable name="modelID" select="generate-id()"/>\n';F+='    <xsl:variable name="displayOption" select="text()"/>\n';F+='    <xsl:variable name="valueOption" select="@value"/>\n';F+="     <li>\n";F+='    <input type="{$inputType}" id="{$modelID}" title="{$displayOption}" value="{$valueOption}" name="{$nameID}">\n';F+=E;F+="    </input>\n";F+='    <label for="{$modelID}"><xsl:value-of select="$displayOption"/></label>\n';F+="    </li>\n";F+="</xsl:template>\n";F+='<xsl:template match="*">\n';F+="   <xsl:copy>\n";F+='       <xsl:copy-of select="@*"/>\n';F+='       <xsl:apply-templates select="node()"/>\n';F+="   </xsl:copy>\n";F+="</xsl:template>\n";F+="</xsl:stylesheet>\n";var B=design_transform(G,F);return B}function design_transformDataList(G,E){G="<select>"+G+"</select>";var D="@selected";if("number"==typeof nNumOrigItemsToKeep){D+=" or position()&lt;="+nNumOrigItemsToKeep}var B="";B="";B+="<?xml version='1.0'?>\n";B+='<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslout="alias">\n';B+='<xsl:namespace-alias stylesheet-prefix="xslout" result-prefix="xsl"/>\n';B+='<xsl:template match="/">\n';B+=" <xsl:apply-templates/>\n";B+="</xsl:template>\n";B+='<xsl:template match="option['+D+']">\n';B+=' <xslout:if test="not(option[@value=xpathLiteralString{@value}gnirtSlaretiLhtapx])">\n';B+='     <xsl:copy-of select="."/>\n';B+=" </xslout:if>\n";B+="</xsl:template>\n";B+='<xsl:template match="text()"/>\n';B+="</xsl:stylesheet>\n";var A=design_transform(G,B);B="";B+="<?xml version='1.0'?>\n";B+='<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xslout="alias">\n';B+='<xsl:namespace-alias stylesheet-prefix="xslout" result-prefix="xsl"/>\n';B+='<xsl:template match="/">\n';B+=" <xsl:apply-templates/>\n";B+="</xsl:template>\n";B+='<xsl:template match="option[@selected]">\n';B+=' <xslout:if test="@value=xpathLiteralString{@value}gnirtSlaretiLhtapx">\n';B+='           <xslout:attribute name="selected">selected</xslout:attribute>\n';B+=" </xslout:if>\n";B+="</xsl:template>\n";B+='<xsl:template match="text()"/>\n';B+="</xsl:stylesheet>\n";var C=design_transform(G,B);B="";B+="<?xml version='1.0'?>\n";B+='<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="ektdesign" xmlns:ektdesign="urn:ektdesign">\n';B+='<xsl:output method="xml" version="1.0" indent="yes" omit-xml-declaration="yes"/>\n';B+='<xsl:template match="select">\n';B+="   <select>\n";B+="   <!-- copy selected values that are not in the new data list -->\n";B+=A;B+="   <!-- process option tags -->\n";B+='   <xsl:apply-templates select="node()"/>\n';B+="   </select>\n";B+="</xsl:template>\n";B+='<xsl:template match="option">\n';B+="   <xsl:copy>\n";B+="       <!-- copy attributes except 'selected' -->\n";B+="       <xsl:copy-of select=\"@*[name() != 'selected']\"/>\n";B+="       <!-- check if selected in the old data list -->\n";B+=C;B+="       <!-- copy the text -->\n";B+='       <xsl:copy-of select="node()"/>\n';B+="       </xsl:copy>\n";B+="</xsl:template>\n";B+='<xsl:template match="*"> \n';B+="   <xsl:copy>\n";B+='       <xsl:copy-of select="@*"/>\n';B+='       <xsl:apply-templates select="node()"/>\n';B+="   </xsl:copy>\n";B+="</xsl:template>\n";B+="</xsl:stylesheet>";var F=design_transformToDocument(E,B);return F}function design_getDataList(F,D,G,H,I,A){var C="";if("undefined"==typeof A||null==A){A=""}else{C=design_extractPrefixesFromNamespaces(A);if(C.length>0){C=' exclude-result-prefixes="'+C+'"'}}var E="";E+='<?xml version="1.0"?>\n';E+='<xsl:stylesheet version="1.0" '+C+' xmlns:xsl="http://www.w3.org/1999/XSL/Transform" '+A+">\n";E+='<xsl:output method="xml" version="1.0" omit-xml-declaration="yes" indent="yes"/>\n';E+='<xsl:template match="/">\n';E+="  <select>\n";E+='  <xsl:for-each select="'+G+'">\n';E+="    <option>\n";E+='      <xsl:if test="'+I+'">\n';E+='        <xsl:attribute name="value">\n';E+='          <xsl:value-of select="'+I+'"/>\n';E+="        </xsl:attribute>\n";E+="      </xsl:if>\n";E+='      <xsl:value-of select="'+H+'"/>\n';E+="    </option>\n";E+="  </xsl:for-each>\n";E+="  </select>\n";E+="</xsl:template>\n";E+="</xsl:stylesheet>";var B=design_transform(D,E);B=B.replace(/^\s+/,"").replace(/\s+$/,"");if(B.indexOf("<option")>=0||0==B.length){return B}else{return""}}function design_extractPrefixesFromNamespaces(C){var D=new Array();var E=C.match(/xmlns:\w+=['"][^'"]*['"]/g);if(null==E){return""}E.sort();var A="";for(var F=0;F<E.length;F++){if(E[F]!=A){var B=E[F].match(/xmlns:(\w+)=['"]([^'"]*)['"]/);D[D.length]=B[1];A=E[F]}}return D.join(" ")}function Sarissa(){}Sarissa.VERSION="0.9.7.8";Sarissa.PARSED_OK="Document contains no parsing errors";Sarissa.PARSED_EMPTY="Document is empty";Sarissa.PARSED_UNKNOWN_ERROR="Not well-formed or other error";Sarissa.IS_ENABLED_TRANSFORM_NODE=false;var _sarissa_iNsCounter=0;var _SARISSA_IEPREFIX4XSLPARAM="";var _SARISSA_HAS_DOM_IMPLEMENTATION=document.implementation&&true;var _SARISSA_HAS_DOM_CREATE_DOCUMENT=_SARISSA_HAS_DOM_IMPLEMENTATION&&document.implementation.createDocument;var _SARISSA_HAS_DOM_FEATURE=_SARISSA_HAS_DOM_IMPLEMENTATION&&document.implementation.hasFeature;var _SARISSA_IS_MOZ=_SARISSA_HAS_DOM_CREATE_DOCUMENT&&_SARISSA_HAS_DOM_FEATURE;var _SARISSA_IS_SAFARI=(navigator.userAgent&&navigator.vendor&&(navigator.userAgent.toLowerCase().indexOf("applewebkit")!=-1||navigator.vendor.indexOf("Apple")!=-1));var _SARISSA_IS_IE=document.all&&window.ActiveXObject&&navigator.userAgent.toLowerCase().indexOf("msie")>-1&&navigator.userAgent.toLowerCase().indexOf("opera")==-1;if(!window.Node||!Node.ELEMENT_NODE){Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12}}if(typeof XMLDocument=="undefined"&&typeof Document!="undefined"){XMLDocument=Document}if(_SARISSA_IS_IE){_SARISSA_IEPREFIX4XSLPARAM="xsl:";var _SARISSA_DOM_PROGID="";var _SARISSA_XMLHTTP_PROGID="";var _SARISSA_DOM_XMLWRITER="";Sarissa.pickRecentProgID=function(B){var C=false;for(var E=0;E<B.length&&!C;E++){try{var D=new ActiveXObject(B[E]);o2Store=B[E];C=true}catch(A){}}if(!C){alert("Failed to create XML parser: "+B[0])}B=null;return o2Store};_SARISSA_DOM_PROGID=null;_SARISSA_THREADEDDOM_PROGID=null;_SARISSA_XSLTEMPLATE_PROGID=null;_SARISSA_XMLHTTP_PROGID=null;if(!window.XMLHttpRequest){XMLHttpRequest=function(){if(!_SARISSA_XMLHTTP_PROGID){_SARISSA_XMLHTTP_PROGID=Sarissa.pickRecentProgID(["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.3.0"])}return new ActiveXObject(_SARISSA_XMLHTTP_PROGID)}}Sarissa.getDomDocument=function(A,D){if(!_SARISSA_DOM_PROGID){_SARISSA_DOM_PROGID=Sarissa.pickRecentProgID(["MSXML2.DOMDocument.6.0","MSXML2.DOMDocument.4.0","MSXML2.DOMDocument.5.0","MSXML2.DOMDocument.3.0"])}var C=new ActiveXObject(_SARISSA_DOM_PROGID);C.resolveExternals=true;if(D){var B="";if(A){if(D.indexOf(":")>1){B=D.substring(0,D.indexOf(":"));D=D.substring(D.indexOf(":")+1)}else{B="a"+(_sarissa_iNsCounter++)}}if(A){C.loadXML("<"+B+":"+D+" xmlns:"+B+'="'+A+'" />')}else{C.loadXML("<"+D+" />")}}return C};Sarissa.getXsltDocument=function(A,D){if(!_SARISSA_THREADEDDOM_PROGID){_SARISSA_THREADEDDOM_PROGID=Sarissa.pickRecentProgID(["MSXML2.FreeThreadedDOMDocument.6.0","MSXML2.FreeThreadedDOMDocument.4.0","MSXML2.FreeThreadedDOMDocument.5.0","MSXML2.FreeThreadedDOMDocument.3.0"])}var C=new ActiveXObject(_SARISSA_THREADEDDOM_PROGID);Sarissa.setXpathNamespaces(C,"xmlns:xsl='http://www.w3.org/1999/XSL/Transform'");C.resolveExternals=true;if("MSXML2.FreeThreadedDOMDocument.6.0"==_SARISSA_THREADEDDOM_PROGID){C.setProperty("AllowDocumentFunction",true);C.setProperty("AllowXsltScript",true);C.setProperty("ProhibitDTD",false)}if(D){var B="";if(A){if(D.indexOf(":")>1){B=D.substring(0,D.indexOf(":"));D=D.substring(D.indexOf(":")+1)}else{B="a"+(_sarissa_iNsCounter++)}}if(A){C.loadXML("<"+B+":"+D+" xmlns:"+B+'="'+A+'" />')}else{C.loadXML("<"+D+" />")}}return C};Sarissa.getParseErrorText=function(B){var A=Sarissa.PARSED_OK;if(B&&B.parseError&&B.parseError.errorCode&&B.parseError.errorCode!=0){A="XML Parsing Error: "+B.parseError.reason+"\nLocation: "+B.parseError.url+"\nLine Number "+B.parseError.line+", Column "+B.parseError.linepos+":\n"+B.parseError.srcText+"\n";for(var C=0;C<B.parseError.linepos;C++){A+="-"}A+="^\n"}else{if(B.documentElement==null){A=Sarissa.PARSED_EMPTY}}return A};Sarissa.setXpathNamespaces=function(A,B){A.setProperty("SelectionLanguage","XPath");A.setProperty("SelectionNamespaces",B)};XSLTProcessor=function(){if(!_SARISSA_XSLTEMPLATE_PROGID){_SARISSA_XSLTEMPLATE_PROGID=Sarissa.pickRecentProgID(["MSXML2.XSLTemplate.6.0","MSXML2.XSLTemplate.4.0","MSXML2.XSLTemplate.5.0","MSXML2.XSLTemplate.3.0"])}this.template=new ActiveXObject(_SARISSA_XSLTEMPLATE_PROGID);this.processor=null};XSLTProcessor.prototype.importStylesheet=function(A){A.setProperty("SelectionLanguage","XPath");A.setProperty("SelectionNamespaces","xmlns:xsl='http://www.w3.org/1999/XSL/Transform'");var B=A.selectSingleNode("//xsl:output");this.outputMethod=B?B.getAttribute("method"):"html";this.template.stylesheet=A;this.processor=this.template.createProcessor();this.paramsSet=new Array()};XSLTProcessor.prototype.transformToDocument=function(A){if(_SARISSA_THREADEDDOM_PROGID){this.processor.input=A;var C=new ActiveXObject(_SARISSA_DOM_PROGID);this.processor.output=C;this.processor.transform();return C}else{if(!_SARISSA_DOM_XMLWRITER){_SARISSA_DOM_XMLWRITER=Sarissa.pickRecentProgID(["MSXML2.MXXMLWriter.6.0","MSXML2.MXXMLWriter.3.0","MSXML2.MXXMLWriter","MSXML.MXXMLWriter","Microsoft.XMLDOM"])}this.processor.input=A;var C=new ActiveXObject(_SARISSA_DOM_XMLWRITER);this.processor.output=C;this.processor.transform();var B=new ActiveXObject(_SARISSA_DOM_PROGID);B.loadXML(C.output+"");return B}};XSLTProcessor.prototype.transformToFragment=function(D,G){this.processor.input=D;this.processor.transform();var A=this.processor.output;var F=G.createDocumentFragment();if(this.outputMethod=="text"){F.appendChild(G.createTextNode(A))}else{if(G.body&&G.body.innerHTML){var B=G.createElement("div");B.innerHTML=A;while(B.hasChildNodes()){F.appendChild(B.firstChild)}}else{var E=new ActiveXObject(_SARISSA_DOM_PROGID);if(A.substring(0,5)=="<?xml"){A=A.substring(A.indexOf("?>")+2)}var C="".concat("<my>",A,"</my>");E.loadXML(C);var B=E.documentElement;while(B.hasChildNodes()){F.appendChild(B.firstChild)}}}return F};XSLTProcessor.prototype.setParameter=function(C,A,B){B=B?B:"";if(C){this.processor.addParameter(A,B,C)}else{this.processor.addParameter(A,B)}if(!this.paramsSet[""+C]){this.paramsSet[""+C]=new Array()}this.paramsSet[""+C][A]=B};XSLTProcessor.prototype.getParameter=function(B,A){B=""+B;if(this.paramsSet[B]&&this.paramsSet[B][A]){return this.paramsSet[B][A]}else{return null}};XSLTProcessor.prototype.clearParameters=function(){for(var B in this.paramsSet){for(var A in this.paramsSet[B]){if(B){this.processor.addParameter(A,"",B)}else{this.processor.addParameter(A,"")}}}this.paramsSet=new Array()}}else{if(_SARISSA_HAS_DOM_CREATE_DOCUMENT){Sarissa.__handleLoad__=function(A){Sarissa.__setReadyState__(A,4)};_sarissa_XMLDocument_onload=function(){Sarissa.__handleLoad__(this)};Sarissa.__setReadyState__=function(B,A){B.readyState=A;B.readystate=A;if(B.onreadystatechange!=null&&typeof B.onreadystatechange=="function"){B.onreadystatechange()}};Sarissa.getDomDocument=function(A,C){var B=document.implementation.createDocument(A?A:null,C?C:null,null);if(!B.onreadystatechange){B.onreadystatechange=null}if(!B.readyState){B.readyState=0}B.addEventListener("load",_sarissa_XMLDocument_onload,false);return B};Sarissa.getXsltDocument=Sarissa.getDomDocument;if(window.XMLDocument){}else{if(_SARISSA_HAS_DOM_FEATURE&&window.Document&&!Document.prototype.load&&document.implementation.hasFeature("LS","3.0")){Sarissa.getDomDocument=function(A,C){var B=document.implementation.createDocument(A?A:null,C?C:null,null);return B};Sarissa.getXsltDocument=Sarissa.getDomDocument}else{Sarissa.getDomDocument=function(A,C){var B=document.implementation.createDocument(A?A:null,C?C:null,null);if(B&&(A||C)&&!B.documentElement){B.appendChild(B.createElementNS(A,C))}return B};Sarissa.getXsltDocument=Sarissa.getDomDocument}}}}if(!window.DOMParser){if(_SARISSA_IS_SAFARI){DOMParser=function(){};DOMParser.prototype.parseFromString=function(C,A){var B=new XMLHttpRequest();B.open("GET","data:text/xml;charset=utf-8,"+encodeURIComponent(C),false);B.send(null);return B.responseXML}}else{if(Sarissa.getDomDocument&&Sarissa.getDomDocument()&&Sarissa.getDomDocument(null,"bar").xml){DOMParser=function(){};DOMParser.prototype.parseFromString=function(C,A){var B=Sarissa.getDomDocument();B.loadXML(C);return B}}}}if((typeof(document.importNode)=="undefined")&&_SARISSA_IS_IE){try{document.importNode=function(B,A){var C;if(B.nodeName=="#text"){return document.createTextElement(B.data)}else{if(B.nodeName=="tbody"||B.nodeName=="tr"){C=document.createElement("table")}else{if(B.nodeName=="td"){C=document.createElement("tr")}else{if(B.nodeName=="option"){C=document.createElement("select")}else{C=document.createElement("div")}}}if(A){C.innerHTML=B.xml?B.xml:B.outerHTML}else{C.innerHTML=B.xml?B.cloneNode(false).xml:B.cloneNode(false).outerHTML}return C.getElementsByTagName("*")[0]}}}catch(e){}}if(!Sarissa.getParseErrorText){Sarissa.getParseErrorText=function(C){var A=Sarissa.PARSED_OK;if(!C.documentElement){A=Sarissa.PARSED_EMPTY}else{if(C.documentElement.tagName=="parsererror"){A=C.documentElement.firstChild.data;A+="\n"+C.documentElement.firstChild.nextSibling.firstChild.data}else{if(C.getElementsByTagName("parsererror").length>0){var B=C.getElementsByTagName("parsererror")[0];A=Sarissa.getText(B,true)+"\n"}else{if(C.parseError&&C.parseError.errorCode!=0){A=Sarissa.PARSED_UNKNOWN_ERROR}}}}return A}}Sarissa.getText=function(C,F){var B="";var D=C.childNodes;for(var E=0;E<D.length;E++){var G=D[E];var A=G.nodeType;if(A==Node.TEXT_NODE||A==Node.CDATA_SECTION_NODE){B+=G.data}else{if(F==true&&(A==Node.ELEMENT_NODE||A==Node.DOCUMENT_NODE||A==Node.DOCUMENT_FRAGMENT_NODE)){B+=Sarissa.getText(G,true)}}}return B};if(!window.XMLSerializer&&Sarissa.getDomDocument&&Sarissa.getDomDocument("","foo",null).xml){XMLSerializer=function(){};XMLSerializer.prototype.serializeToString=function(A){return A.xml}}Sarissa.stripTags=function(A){return A.replace(/<[^>]+>/g,"")};Sarissa.clearChildNodes=function(A){while(A.firstChild){A.removeChild(A.firstChild)}};Sarissa.copyChildNodes=function(A,E,F){if((!A)||(!E)){throw"Both source and destination nodes must be provided"}if(!F){Sarissa.clearChildNodes(E)}var B=E.nodeType==Node.DOCUMENT_NODE?E:E.ownerDocument;var C=A.childNodes;if(typeof(B.importNode)!="undefined"){for(var D=0;D<C.length;D++){E.appendChild(B.importNode(C[D],true))}}else{for(var D=0;D<C.length;D++){E.appendChild(C[D].cloneNode(true))}}};Sarissa.moveChildNodes=function(A,E,F){if((!A)||(!E)){throw"Both source and destination nodes must be provided"}if(!F){Sarissa.clearChildNodes(E)}var C=A.childNodes;if(A.ownerDocument==E.ownerDocument){while(A.firstChild){E.appendChild(A.firstChild)}}else{var B=E.nodeType==Node.DOCUMENT_NODE?E:E.ownerDocument;if(typeof(B.importNode)!="undefined"){for(var D=0;D<C.length;D++){E.appendChild(B.importNode(C[D],true))}}else{for(var D=0;D<C.length;D++){E.appendChild(C[D].cloneNode(true))}}Sarissa.clearChildNodes(A)}};Sarissa.xmlize=function(B,E,A){A=A?A:"";var C=A+"<"+E+">";var D=false;if(!(B instanceof Object)||B instanceof Number||B instanceof String||B instanceof Boolean||B instanceof Date){C+=Sarissa.escape(""+B);D=true}else{C+="\n";var H="";var F=B instanceof Array;for(var G in B){C+=Sarissa.xmlize(B[G],(F?'array-item key="'+G+'"':G),A+"   ")}C+=A}return C+=(E.indexOf(" ")!=-1?"</array-item>\n":"</"+E+">\n")};Sarissa.escape=function(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&apos;")};Sarissa.unescape=function(A){return A.replace(/&apos\;/g,"'").replace(/&quot\;/g,'"').replace(/&gt\;/g,">").replace(/&lt\;/g,"<").replace(/&amp\;/g,"&")};if(_SARISSA_HAS_DOM_FEATURE&&document.implementation.hasFeature("XPath","3.0")){function SarissaNodeList(A){this.length=A}SarissaNodeList.prototype=new Array(0);SarissaNodeList.prototype.constructor=Array;SarissaNodeList.prototype.item=function(A){return(A<0||A>=this.length)?null:this[A]};SarissaNodeList.prototype.expr="";if(window.XMLDocument&&(!XMLDocument.prototype.setProperty)){XMLDocument.prototype.setProperty=function(A,B){}}Sarissa.setXpathNamespaces=function(B,C){B._sarissa_useCustomResolver=true;var I=C.indexOf(" ")>-1?C.split(" "):new Array(C);B._sarissa_xpathNamespaces=new Array(I.length);for(var A=0;A<I.length;A++){var G=I[A];var H=G.indexOf(":");var F=G.indexOf("=");if(H>0&&F>H+1){var D=G.substring(H+1,F);var E=G.substring(F+2,G.length-1);B._sarissa_xpathNamespaces[D]=E}else{throw"Bad format on namespace declaration(s) given"}}};XMLDocument.prototype._sarissa_useCustomResolver=false;XMLDocument.prototype._sarissa_xpathNamespaces=new Array();XMLDocument.prototype.selectNodes=function(I,D,E){var H=this;var B=this._sarissa_useCustomResolver?function(K){var J=H._sarissa_xpathNamespaces[K];if(J){return J}else{throw"No namespace URI found for prefix: '"+K+"'"}}:this.createNSResolver(this.documentElement);var F=null;if(!E){var G=this.evaluate(I,(D?D:this),B,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);var C=new SarissaNodeList(G.snapshotLength);C.expr=I;for(var A=0;A<C.length;A++){C[A]=G.snapshotItem(A)}F=C}else{F=G=this.evaluate(I,(D?D:this),B,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return F};Element.prototype.selectNodes=function(B){var A=this.ownerDocument;if(A.selectNodes){return A.selectNodes(B,this)}else{throw"Method selectNodes is only supported by XML Elements"}};XMLDocument.prototype.selectSingleNode=function(C,A){var B=A?A:null;return this.selectNodes(C,B,true)};Element.prototype.selectSingleNode=function(B){var A=this.ownerDocument;if(A.selectSingleNode){return A.selectSingleNode(B,this)}else{throw"Method selectNodes is only supported by XML Elements"}};Sarissa.IS_ENABLED_SELECT_NODES=true}var whitespace=" \t\n\r";var reAlphabetic=/^[a-z A-Z]+$/;var reText=/^[^0-9]+$/;var reInteger=/^\d+$/;var digitsInSocialSecurityNumber=9;var daysInMonth=new Array("31","29","31","30","31","30","31","31","30","31","30","31");var USStateCodeDelimiter="|";var USStateCodes="AL|AK|AS|AZ|AR|CA|CO|CT|DE|DC|FM|FL|GA|GU|HI|ID|IL|IN|IA|KS|KY|LA|ME|MH|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|MP|OH|OK|OR|PW|PA|PR|RI|SC|SD|TN|TX|UT|VT|VI|VA|WA|WV|WI|WY|AE|AA|AE|AE|AP";var digitsInZIPCode1=5;var digitsInZIPCode2=9;var defaultEmptyOK=false;function isNone(A){return true}function isBlank(A){if(A==""){return false}else{return true}}function isSelectOptionNotZero(A){if(A==0){return false}else{return true}}function isDigit(A){if(A==""){return false}for(var B=0;B<A.length;B++){cDigit=A.charAt(B);if((cDigit<"0")||(cDigit>"9")){return false}}return true}function isNumeric(A){var B=/(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/;return B.test(A)}function isText(A){return(isTextOnly(A))}function isDate(E){var G=/^\d{1,2}(\/)\d{1,2}\1\d{4}$/;if(!G.test(E)){return false}else{var C="";for(var A=0;A<E.length;A++){C=E.charAt(A);if(isNaN(C)){break}}var B=E.split(C);var D=parseInt(B[1],10);var I=parseInt(B[2],10);var F=parseInt(B[0],10);if(F>12){return false}var H={"01":31,"03":31,"04":30,"05":31,"06":30,"07":31,"08":31,"09":30,"10":31,"11":30,"12":31};if(parseInt(F)<10){F="0"+F}if(H[F]!=null){if(D<=H[F]&&D!=0){return true}}if(((I%4==0&&D<=29)||(I%4!=0&&D<=28))&&D!=0){return true}}return false}function isEmail(A){var B,C,F,G,D,E;varErrMsg="Invalid email address detected!";if(isEmpty(A)){if(isEmail.arguments.length==1){return false}else{return(isEmail.arguments[1]==true)}}if(isWhitespace(A)){return false}B=1;F=A.length;B=A.indexOf("@");G=B;if(B<0){return false}else{B+=2}B=A.lastIndexOf(".");if(B<0){return false}else{B++}if(B>F){return false}E="";D="";for(C=G+1;C<A.length;C++){E=A.charAt(C);if((E!=".")&&(E!="-")){D+=E}}B=A.lastIndexOf(" ");if(B>0){return false}else{B++}for(i=0;i<A.length;i++){E=A.charAt(i);if((E=="?")||(E=="(")||(E==")")||(E=="=")||(E=="+")||(E=="~")||(E=="`")||(E=="!")||(E=="#")||(E=="$")||(E=="%")||(E=="^")||(E=="&")||(E=="*")){return false}}return true}function isCreditCard(B){var A=extractDigits(B);if(checkMod10(A)&&validCardType(A)){return 1}else{return 0}}function isEmpty(A){return((A==null)||(A.length==0))}function isWhitespace(A){var B,C;if(isEmpty(A)){return true}for(B=0;B<A.length;B++){var C=A.charAt(B);if(whitespace.indexOf(C)==-1){return false}}return true}function validCardType(C){var A=new Array("v",13,"v",16,"m",16,"a",15,"c",14,"d",16);var H=new Array("v","4","m","51","m","52","m","53","m","54","m","55","a","34","a","37","c","300","c","301","c","302","c","303","c","304","c","305","c","36","c","38","d","6011");var F=false;var B=false;var D="";for(var E=0;E<H.length-1;E+=2){if(H[E+1]==C.substr(0,H[E+1].length)){F=true;D=H[E];break}}if(F){var G=C.length;for(var E=0;E<A.length-1;E+=2){if((D==A[E])&&(G==A[E+1])){B=true;break}}F=B}return F}function checkMod10(E){var C="0246813579";var A=0;var B=((E.length%2)==0);for(var D=0;D<E.length;D++){A+=parseInt(B?C.charAt(E.charAt(D)):E.charAt(D),10);B=!B}return(A%10)==0}function extractDigits(A){var C="";var B="";for(var D=0;D<A.length;D++){B=A.charAt(D);if(B>="0"&&B<="9"){C=C+B}}return C}function ccExpire(E){var D=new Date();var B=D.getMonth();var C=D.getYear();var A=E.split("/");if(A.length!=2){return false}if((A[0].length!=2)||(A[1].length!=2)||(isDigit(A[0])==false)||(isDigit(A[1])==false)||(parseInt(A[0],10)>12)||(parseInt(A[1],10)>99)||(parseInt("20"+A[1],10)<parseInt(C,10))||((parseInt(A[0],10)<parseInt(B,10))&&(parseInt("20"+A[1],10)<=parseInt(C,10)))){return false}return true}function isAlphabetic(A){return reAlphabetic.test(A)}function isTextOnly(A){return reText.test(A)}function daysInFebruary(A){return(((A%4==0)&&((!(A%100==0))||(A%400==0)))?29:28)}function isValidNumCharacters(H,C,A){var G=false;var B=false;var E=false;var D=false;var F=false;if((typeof C!="undefined")&&(C!="")){G=true}if((typeof A!="undefined")&&(A!="")){B=true}if(G){if(H.length>=C){D=true}}else{D=true}if(B){if(H.length<=A){F=true}}else{F=true}E=D&&F;return E}function isRange(A,C,B){if(isNumeric(C)&&isNumeric(B)){if((A-C)>=0&&(B-A)>=0){return true}else{return false}}if(isNumeric(C)){if((A-C)>=0){return true}else{return false}}if(isNumeric(B)){if((B-A)>=0){return true}else{return false}}}function ConditionDate(B){var A=B.split("/");for(var C=0;C<A.length;C++){if(A[C].length==4){}else{if(A[C].length==1){A[C]="0"+A[C]}}}B=A[0]+"/"+A[1]+"/"+A[2];return B}function isDateRange(A,C,B){A=ConditionDate(A);C=ConditionDate(C);B=ConditionDate(B);if(isDate(C)&&isDate(B)){if((compareDates(A,C)==0)||(compareDates(A,C)==1)&&((compareDates(A,B)==0)||compareDates(A,B)==-1)){return true}else{return false}}if(isDate(C)){if((compareDates(A,C)==0)||(compareDates(A,C)==1)){return true}else{return false}}if(isDate(B)){if((compareDates(A,B)==0)||(compareDates(A,B)==-1)){return true}else{return false}}}function compareDates(E,C){var F,B;var D,G;var H,A;D=E.substring(0,E.indexOf("/"));F=E.substring(E.indexOf("/")+1,E.lastIndexOf("/"));H=E.substring(E.lastIndexOf("/")+1,E.length);G=C.substring(0,C.indexOf("/"));B=C.substring(C.indexOf("/")+1,C.lastIndexOf("/"));A=C.substring(C.lastIndexOf("/")+1,C.length);if(F.length==1){F="0"+F}if(B.length==1){B="0"+B}if(H>A){return 1}else{if(H<A){return -1}else{if(D>G){return 1}else{if(D<G){return -1}else{if(F>B){return 1}else{if(F<B){return -1}else{return 0}}}}}}}function isStateCode(A){A=A.toUpperCase();if(isEmpty(A)){if(isStateCode.arguments.length==1){return defaultEmptyOK}}else{return((USStateCodes.indexOf(A)!=-1)&&(A.indexOf(USStateCodeDelimiter)==-1))}}function isZIPCode(A){var B=/(^\d{5}$)|(^\d{5}-\d{4}$)/;return B.test(A)}var digits="0123456789";var phoneNumberDelimiters="()- ";var validWorldPhoneChars=phoneNumberDelimiters+"+";var minDigitsInIPhoneNumber=10;function isInteger(A){var C;for(C=0;C<A.length;C++){var B=A.charAt(C);if(((B<"0")||(B>"9"))){return false}}return true}function stripCharsInBag(A,C){var E;var B="";for(E=0;E<A.length;E++){var D=A.charAt(E);if(C.indexOf(D)==-1){B+=D}}return B}function checkInternationalPhone(A){s=stripCharsInBag(A,validWorldPhoneChars);return(isInteger(s)&&s.length>=minDigitsInIPhoneNumber)}function isValidateUSPhone(A){if((A==null)||(A=="")){return false}if(checkInternationalPhone(A)==false){return false}return true}function isSSN(A){var B=/^\d{3}\-?\d{2}\-?\d{4}$/;return B.test(A)}function isCanadianpostalcode(A){var B=/^\D{1}\d{1}\D{1}\-?\d{1}\D{1}\d{1}$/;return B.test(A)}function isTime(A){var B=/^([1-9]|1[0-2]):[0-5]\d(:[0-5]\d(\.\d{1,3})?)?$/;return B.test(A)}function isIPAddress(A){var B=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;return B.test(A)}function isDollarAmount(A){var B=/^((\$\d*)|(\$\d*\.\d{2})|(\d*)|(\d*\.\d{2}))$/;if(isEmpty(A)){return false}else{return B.test(A)}}function isCanadianSocialInsuranceNumber(A){var B=/^\d{9}$/;return B.test(A)}function addtrackerlistener(A){if(A.addEventListener){A.addEventListener("click",trackfiles,true)}else{if(A.attachEvent){A.attachEvent("onclick",trackfiles)}}}function trackfiles(A){file_path="";if(location.host!=this.hostname){file_path="/exlinks/"+((A.srcElement)?"/"+A.srcElement.hostname:this.hostname)}file_path=file_path+((A.srcElement)?"/"+A.srcElement.pathname:this.pathname);urchinTracker(file_path)}
/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var S=this,W,G=S.jQuery,J=S.$,M=S.jQuery=S.$=function(g,f){return new M.fn.init(g,f)},F=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,Z=/^.[^:#\[\.,]*$/;M.fn=M.prototype={init:function(j,h){j=j||document;if(j.nodeType){this[0]=j;this.length=1;this.context=j;return this}if(typeof j==="string"){var f=F.exec(j);if(f&&(f[1]||!h)){if(f[1]){j=M.clean([f[1]],h)}else{var g=document.getElementById(f[3]);if(g&&g.id!=f[3]){return M().find(j)}var k=M(g||[]);k.context=document;k.selector=j;return k}}else{return M(h).find(j)}}else{if(M.isFunction(j)){return M(document).ready(j)}}if(j.selector&&j.context){this.selector=j.selector;this.context=j.context}return this.setArray(M.isArray(j)?j:M.makeArray(j))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(f){return f===W?Array.prototype.slice.call(this):this[f]},pushStack:function(j,f,h){var g=M(j);g.prevObject=this;g.context=this.context;if(f==="find"){g.selector=this.selector+(this.selector?" ":"")+h}else{if(f){g.selector=this.selector+"."+f+"("+h+")"}}return g},setArray:function(f){this.length=0;Array.prototype.push.apply(this,f);return this},each:function(g,f){return M.each(this,g,f)},index:function(f){return M.inArray(f&&f.jquery?f[0]:f,this)},attr:function(f,j,g){var h=f;if(typeof f==="string"){if(j===W){return this[0]&&M[g||"attr"](this[0],f)}else{h={};h[f]=j}}return this.each(function(k){for(f in h){M.attr(g?this.style:this,f,M.prop(this,h[f],g,k,f))}})},css:function(g,f){if((g=="width"||g=="height")&&parseFloat(f)<0){f=W}return this.attr(g,f,"curCSS")},text:function(g){if(typeof g!=="object"&&g!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(g))}var f="";M.each(g||this,function(){M.each(this.childNodes,function(){if(this.nodeType!=8){f+=this.nodeType!=1?this.nodeValue:M.fn.text([this])}})});return f},wrapAll:function(f){if(this[0]){var g=M(f,this[0].ownerDocument).clone();if(this[0].parentNode){g.insertBefore(this[0])}g.map(function(){var h=this;while(h.firstChild){h=h.firstChild}return h}).append(this)}return this},wrapInner:function(f){return this.each(function(){M(this).contents().wrapAll(f)})},wrap:function(f){return this.each(function(){M(this).wrapAll(f)})},append:function(){return this.domManip(arguments,true,function(f){if(this.nodeType==1){this.appendChild(f)}})},prepend:function(){return this.domManip(arguments,true,function(f){if(this.nodeType==1){this.insertBefore(f,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(f){this.parentNode.insertBefore(f,this)})},after:function(){return this.domManip(arguments,false,function(f){this.parentNode.insertBefore(f,this.nextSibling)})},end:function(){return this.prevObject||M([])},push:[].push,sort:[].sort,splice:[].splice,find:function(f){if(this.length===1){var g=this.pushStack([],"find",f);g.length=0;M.find(f,this[0],g);return g}else{return this.pushStack(M.unique(M.map(this,function(h){return M.find(f,h)})),"find",f)}},clone:function(g){var j=this.map(function(){if(!M.support.noCloneEvent&&!M.isXMLDoc(this)){var l=this.outerHTML;if(!l){var k=this.ownerDocument.createElement("div");k.appendChild(this.cloneNode(true));l=k.innerHTML}return M.clean([l.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(g===true){var f=this.find("*").andSelf(),h=0;j.find("*").andSelf().each(function(){if(this.nodeName!==f[h].nodeName){return}var l=M.data(f[h],"events");for(var m in l){for(var k in l[m]){M.event.add(this,m,l[m][k],l[m][k].data)}}h++})}return j},filter:function(f){return this.pushStack(M.isFunction(f)&&M.grep(this,function(g,h){return f.call(g,h)})||M.multiFilter(f,M.grep(this,function(g){return g.nodeType===1})),"filter",f)},closest:function(g){var f=M.expr.match.POS.test(g)?M(g):null,h=0;return this.map(function(){var j=this;while(j&&j.ownerDocument){if(f?f.index(j)>-1:M(j).is(g)){M.data(j,"closest",h);return j}j=j.parentNode;h++}})},not:function(g){if(typeof g==="string"){if(Z.test(g)){return this.pushStack(M.multiFilter(g,this,true),"not",g)}else{g=M.multiFilter(g,this)}}var f=g.length&&g[g.length-1]!==W&&!g.nodeType;return this.filter(function(){return f?M.inArray(this,g)<0:this!=g})},add:function(f){return this.pushStack(M.unique(M.merge(this.get(),typeof f==="string"?M(f):M.makeArray(f))))},is:function(f){return !!f&&M.multiFilter(f,this).length>0},hasClass:function(f){return !!f&&this.is("."+f)},val:function(g){if(g===W){var n=this[0];if(n){if(M.nodeName(n,"option")){return(n.attributes.value||{}).specified?n.value:n.text}if(M.nodeName(n,"select")){var h=n.selectedIndex,j=[],f=n.options,m=n.type=="select-one";if(h<0){return null}for(var l=m?h:0,o=m?h+1:f.length;l<o;l++){var k=f[l];if(k.selected){g=M(k).val();if(m){return g}j.push(g)}}return j}return(n.value||"").replace(/\r/g,"")}return W}if(typeof g==="number"){g+=""}return this.each(function(){if(this.nodeType!=1){return}if(M.isArray(g)&&/radio|checkbox/.test(this.type)){this.checked=(M.inArray(this.value,g)>=0||M.inArray(this.name,g)>=0)}else{if(M.nodeName(this,"select")){var p=M.makeArray(g);M("option",this).each(function(){this.selected=(M.inArray(this.value,p)>=0||M.inArray(this.text,p)>=0)});if(!p.length){this.selectedIndex=-1}}else{this.value=g}}})},html:function(f){return f===W?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(f)},replaceWith:function(f){return this.after(f).remove()},eq:function(f){return this.slice(f,+f+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(f){return this.pushStack(M.map(this,function(g,h){return f.call(g,h,g)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(m,o,p){if(this[0]){var h=(this[0].ownerDocument||this[0]).createDocumentFragment(),k=M.clean(m,(this[0].ownerDocument||this[0]),h),n=h.firstChild;if(n){for(var f=0,j=this.length;f<j;f++){p.call(g(this[f],n),this.length>1||f>0?h.cloneNode(true):h)}}if(k){M.each(k,E)}}return this;function g(l,q){return o&&M.nodeName(l,"table")&&M.nodeName(q,"tr")?(l.getElementsByTagName("tbody")[0]||l.appendChild(l.ownerDocument.createElement("tbody"))):l}}};M.fn.init.prototype=M.fn;function E(g,f){if(f.src){M.ajax({url:f.src,async:false,dataType:"script"})}else{M.globalEval(f.text||f.textContent||f.innerHTML||"")}if(f.parentNode){f.parentNode.removeChild(f)}}function A(){return +new Date}M.extend=M.fn.extend=function(){var m=arguments[0]||{},k=1,l=arguments.length,h=false,f;if(typeof m==="boolean"){h=m;m=arguments[1]||{};k=2}if(typeof m!=="object"&&!M.isFunction(m)){m={}}if(l==k){m=this;--k}for(;k<l;k++){if((f=arguments[k])!=null){for(var g in f){var n=m[g],j=f[g];if(m===j){continue}if(h&&j&&typeof j==="object"&&!j.nodeType){m[g]=M.extend(h,n||(j.length!=null?[]:{}),j)}else{if(j!==W){m[g]=j}}}}}return m};var T=/z-?index|font-?weight|opacity|zoom|line-?height/i,a=document.defaultView||{},H=Object.prototype.toString;M.extend({noConflict:function(f){S.$=J;if(f){S.jQuery=G}return M},isFunction:function(f){return H.call(f)==="[object Function]"},isArray:function(f){return H.call(f)==="[object Array]"},isXMLDoc:function(f){return f.nodeType===9&&f.documentElement.nodeName!=="HTML"||!!f.ownerDocument&&M.isXMLDoc(f.ownerDocument)},globalEval:function(h){if(h&&/\S/.test(h)){var f=document.getElementsByTagName("head")[0]||document.documentElement,g=document.createElement("script");g.type="text/javascript";if(M.support.scriptEval){g.appendChild(document.createTextNode(h))}else{g.text=h}f.insertBefore(g,f.firstChild);f.removeChild(g)}},nodeName:function(g,f){return g.nodeName&&g.nodeName.toUpperCase()==f.toUpperCase()},each:function(h,m,g){var f,j=0,l=h.length;if(g){if(l===W){for(f in h){if(m.apply(h[f],g)===false){break}}}else{for(;j<l;){if(m.apply(h[j++],g)===false){break}}}}else{if(l===W){for(f in h){if(m.call(h[f],f,h[f])===false){break}}}else{for(var k=h[0];j<l&&m.call(k,j,k)!==false;k=h[++j]){}}}return h},prop:function(h,f,j,k,g){if(M.isFunction(f)){f=f.call(h,k)}return typeof f==="number"&&j=="curCSS"&&!T.test(g)?f+"px":f},className:{add:function(f,g){M.each((g||"").split(/\s+/),function(j,h){if(f.nodeType==1&&!M.className.has(f.className,h)){f.className+=(f.className?" ":"")+h}})},remove:function(f,g){if(f.nodeType==1){f.className=g!==W?M.grep(f.className.split(/\s+/),function(h){return !M.className.has(g,h)}).join(" "):""}},has:function(f,g){return f&&M.inArray(g,(f.className||f).toString().split(/\s+/))>-1}},swap:function(h,j,k){var f={};for(var g in j){f[g]=h.style[g];h.style[g]=j[g]}k.call(h);for(var g in j){h.style[g]=f[g]}},css:function(l,k,n,m){if(k=="width"||k=="height"){var j,h={position:"absolute",visibility:"hidden",display:"block"},g=k=="width"?["Left","Right"]:["Top","Bottom"];function f(){j=k=="width"?l.offsetWidth:l.offsetHeight;if(m==="border"){return}M.each(g,function(){if(!m){j-=parseFloat(M.curCSS(l,"padding"+this,true))||0}if(m==="margin"){j+=parseFloat(M.curCSS(l,"margin"+this,true))||0}else{j-=parseFloat(M.curCSS(l,"border"+this+"Width",true))||0}})}if(l.offsetWidth!==0){f()}else{M.swap(l,h,f)}return Math.max(0,Math.round(j))}return M.curCSS(l,k,n)},curCSS:function(m,h,o){var f,n=m.style;if(h=="opacity"&&!M.support.opacity){f=M.attr(n,"opacity");return f==""?"1":f}if(h.match(/float/i)){h=Y}if(!o&&n&&n[h]){f=n[h]}else{if(a.getComputedStyle){if(h.match(/float/i)){h="float"}h=h.replace(/([A-Z])/g,"-$1").toLowerCase();var l=a.getComputedStyle(m,null);if(l){f=l.getPropertyValue(h)}if(h=="opacity"&&f==""){f="1"}}else{if(m.currentStyle){var j=h.replace(/\-(\w)/g,function(q,p){return p.toUpperCase()});f=m.currentStyle[h]||m.currentStyle[j];if(!/^\d+(px)?$/i.test(f)&&/^\d/.test(f)){var g=n.left,k=m.runtimeStyle.left;m.runtimeStyle.left=m.currentStyle.left;n.left=f||0;f=n.pixelLeft+"px";n.left=g;m.runtimeStyle.left=k}}}}return f},clean:function(k,m,g){m=m||document;if(typeof m.createElement==="undefined"){m=m.ownerDocument||m[0]&&m[0].ownerDocument||document}if(!g&&k.length===1&&typeof k[0]==="string"){var l=/^<(\w+)\s*\/?>$/.exec(k[0]);if(l){return[m.createElement(l[1])]}}var h=[],n=[],j=m.createElement("div");M.each(k,function(t,p){if(typeof p==="number"){p+=""}if(!p){return}if(typeof p==="string"){p=p.replace(/(<(\w+)[^>]*?)\/>/g,function(x,y,w){return w.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?x:y+"></"+w+">"});var o=p.replace(/^\s+/,"").substring(0,10).toLowerCase();var v=!o.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!o.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||o.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!o.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!o.indexOf("<td")||!o.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!o.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!M.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];j.innerHTML=v[1]+p+v[2];while(v[0]--){j=j.lastChild}if(!M.support.tbody){var r=/<tbody/i.test(p),q=!o.indexOf("<table")&&!r?j.firstChild&&j.firstChild.childNodes:v[1]=="<table>"&&!r?j.childNodes:[];for(var u=q.length-1;u>=0;--u){if(M.nodeName(q[u],"tbody")&&!q[u].childNodes.length){q[u].parentNode.removeChild(q[u])}}}if(!M.support.leadingWhitespace&&/^\s/.test(p)){j.insertBefore(m.createTextNode(p.match(/^\s*/)[0]),j.firstChild)}p=M.makeArray(j.childNodes)}if(p.nodeType){h.push(p)}else{h=M.merge(h,p)}});if(g){for(var f=0;h[f];f++){if(M.nodeName(h[f],"script")&&(!h[f].type||h[f].type.toLowerCase()==="text/javascript")){n.push(h[f].parentNode?h[f].parentNode.removeChild(h[f]):h[f])}else{if(h[f].nodeType===1){h.splice.apply(h,[f+1,0].concat(M.makeArray(h[f].getElementsByTagName("script"))))}g.appendChild(h[f])}}return n}return h},attr:function(k,f,h){if(!k||k.nodeType==3||k.nodeType==8){return W}var n=!M.isXMLDoc(k),g=h!==W;f=n&&M.props[f]||f;if(k.tagName){var m=/href|src|style/.test(f);if(f=="selected"&&k.parentNode){k.parentNode.selectedIndex}if(f in k&&n&&!m){if(g){if(f=="type"&&M.nodeName(k,"input")&&k.parentNode){throw"type property can't be changed"}k[f]=h}if(M.nodeName(k,"form")&&k.getAttributeNode(f)){return k.getAttributeNode(f).nodeValue}if(f=="tabIndex"){var l=k.getAttributeNode("tabIndex");return l&&l.specified?l.value:k.nodeName.match(/(button|input|object|select|textarea)/i)?0:k.nodeName.match(/^(a|area)$/i)&&k.href?0:W}return k[f]}if(!M.support.style&&n&&f=="style"){return M.attr(k.style,"cssText",h)}if(g){k.setAttribute(f,""+h)}var j=!M.support.hrefNormalized&&n&&m?k.getAttribute(f,2):k.getAttribute(f);return j===null?W:j}if(!M.support.opacity&&f=="opacity"){if(g){k.zoom=1;k.filter=(k.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(h)+""=="NaN"?"":"alpha(opacity="+h*100+")")}return k.filter&&k.filter.indexOf("opacity=")>=0?(parseFloat(k.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}f=f.replace(/-([a-z])/ig,function(p,o){return o.toUpperCase()});if(g){k[f]=h}return k[f]},trim:function(f){return(f||"").replace(/^\s+|\s+$/g,"")},makeArray:function(g){var h=[];if(g!=null){var f=g.length;if(f==null||typeof g==="string"||M.isFunction(g)||g.setInterval){h[0]=g}else{while(f){h[--f]=g[f]}}}return h},inArray:function(g,j){for(var h=0,f=j.length;h<f;h++){if(j[h]===g){return h}}return -1},merge:function(g,h){var k=0,f,j=g.length;if(!M.support.getAll){while((f=h[k++])!=null){if(f.nodeType!=8){g[j++]=f}}}else{while((f=h[k++])!=null){g[j++]=f}}return g},unique:function(l){var m=[],f={};try{for(var j=0,h=l.length;j<h;j++){var k=M.data(l[j]);if(!f[k]){f[k]=true;m.push(l[j])}}}catch(g){m=l}return m},grep:function(l,f,g){var h=[];for(var j=0,k=l.length;j<k;j++){if(!g!=!f(l[j],j)){h.push(l[j])}}return h},map:function(l,f){var g=[];for(var h=0,k=l.length;h<k;h++){var j=f(l[h],h);if(j!=null){g[g.length]=j}}return g.concat.apply([],g)}});var N=navigator.userAgent.toLowerCase();M.browser={version:(N.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(N),opera:/opera/.test(N),msie:/msie/.test(N)&&!/opera/.test(N),mozilla:/mozilla/.test(N)&&!/(compatible|webkit)/.test(N)};M.each({parent:function(f){return f.parentNode},parents:function(f){return M.dir(f,"parentNode")},next:function(f){return M.nth(f,2,"nextSibling")},prev:function(f){return M.nth(f,2,"previousSibling")},nextAll:function(f){return M.dir(f,"nextSibling")},prevAll:function(f){return M.dir(f,"previousSibling")},siblings:function(f){return M.sibling(f.parentNode.firstChild,f)},children:function(f){return M.sibling(f.firstChild)},contents:function(f){return M.nodeName(f,"iframe")?f.contentDocument||f.contentWindow.document:M.makeArray(f.childNodes)}},function(g,f){M.fn[g]=function(h){var j=M.map(this,f);if(h&&typeof h=="string"){j=M.multiFilter(h,j)}return this.pushStack(M.unique(j),g,h)}});M.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(g,f){M.fn[g]=function(k){var o=[],j=M(k);for(var m=0,h=j.length;m<h;m++){var n=(m>0?this.clone(true):this).get();M.fn[f].apply(M(j[m]),n);o=o.concat(n)}return this.pushStack(o,g,k)}});M.each({removeAttr:function(f){M.attr(this,f,"");if(this.nodeType==1){this.removeAttribute(f)}},addClass:function(f){M.className.add(this,f)},removeClass:function(f){M.className.remove(this,f)},toggleClass:function(g,f){if(typeof f!=="boolean"){f=!M.className.has(this,g)}M.className[f?"add":"remove"](this,g)},remove:function(f){if(!f||M.filter(f,[this]).length){M("*",this).add([this]).each(function(){M.event.remove(this);M.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){M(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(g,f){M.fn[g]=function(){return this.each(f,arguments)}});function O(f,g){return f[0]&&parseInt(M.curCSS(f[0],g,true),10)||0}var R="jQuery"+A(),X=0,Q={};M.extend({cache:{},data:function(g,f,j){g=g==S?Q:g;var h=g[R];if(!h){h=g[R]=++X}if(f&&!M.cache[h]){M.cache[h]={}}if(j!==W){M.cache[h][f]=j}return f?M.cache[h][f]:h},removeData:function(g,f){g=g==S?Q:g;var j=g[R];if(f){if(M.cache[j]){delete M.cache[j][f];f="";for(f in M.cache[j]){break}if(!f){M.removeData(g)}}}else{try{delete g[R]}catch(h){if(g.removeAttribute){g.removeAttribute(R)}}delete M.cache[j]}},queue:function(f,g,j){if(f){g=(g||"fx")+"queue";var h=M.data(f,g);if(!h||M.isArray(j)){h=M.data(f,g,M.makeArray(j))}else{if(j){h.push(j)}}}return h},dequeue:function(g,h){var j=M.queue(g,h),f=j.shift();if(!h||h==="fx"){f=j[0]}if(f!==W){f.call(g)}}});M.fn.extend({data:function(g,f){var h=g.split(".");h[1]=h[1]?"."+h[1]:"";if(f===W){var j=this.triggerHandler("getData"+h[1]+"!",[h[0]]);if(j===W&&this.length){j=M.data(this[0],g)}return j===W&&h[1]?this.data(h[0]):j}else{return this.trigger("setData"+h[1]+"!",[h[0],f]).each(function(){M.data(this,g,f)})}},removeData:function(f){return this.each(function(){M.removeData(this,f)})},queue:function(f,g){if(typeof f!=="string"){g=f;f="fx"}if(g===W){return M.queue(this[0],f)}return this.each(function(){var h=M.queue(this,f,g);if(f=="fx"&&h.length==1){h[0].call(this)}})},dequeue:function(f){return this.each(function(){M.dequeue(this,f)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var j=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,u=0,r=Object.prototype.toString;var q=function(Ab,Ah,Aa,Af){Aa=Aa||[];Ah=Ah||document;if(Ah.nodeType!==1&&Ah.nodeType!==9){return[]}if(!Ab||typeof Ab!=="string"){return Aa}var Ad=[],Ak,y,Al,Aj,w,z,Ac=true;j.lastIndex=0;while((Ak=j.exec(Ab))!==null){Ad.push(Ak[1]);if(Ak[2]){z=RegExp.rightContext;break}}if(Ad.length>1&&k.exec(Ab)){if(Ad.length===2&&o.relative[Ad[0]]){y=p(Ad[0]+Ad[1],Ah)}else{y=o.relative[Ad[0]]?[Ah]:q(Ad.shift(),Ah);while(Ad.length){Ab=Ad.shift();if(o.relative[Ab]){Ab+=Ad.shift()}y=p(Ab,y)}}}else{var x=Af?{expr:Ad.pop(),set:g(Af)}:q.find(Ad.pop(),Ad.length===1&&Ah.parentNode?Ah.parentNode:Ah,m(Ah));y=q.filter(x.expr,x.set);if(Ad.length>0){Al=g(y)}else{Ac=false}while(Ad.length){var Ae=Ad.pop(),Ai=Ae;if(!o.relative[Ae]){Ae=""}else{Ai=Ad.pop()}if(Ai==null){Ai=Ah}o.relative[Ae](Al,Ai,m(Ah))}}if(!Al){Al=y}if(!Al){throw"Syntax error, unrecognized expression: "+(Ae||Ab)}if(r.call(Al)==="[object Array]"){if(!Ac){Aa.push.apply(Aa,Al)}else{if(Ah.nodeType===1){for(var Ag=0;Al[Ag]!=null;Ag++){if(Al[Ag]&&(Al[Ag]===true||Al[Ag].nodeType===1&&n(Ah,Al[Ag]))){Aa.push(y[Ag])}}}else{for(var Ag=0;Al[Ag]!=null;Ag++){if(Al[Ag]&&Al[Ag].nodeType===1){Aa.push(y[Ag])}}}}}else{g(Al,Aa)}if(z){q(z,Ah,Aa,Af);if(t){hasDuplicate=false;Aa.sort(t);if(hasDuplicate){for(var Ag=1;Ag<Aa.length;Ag++){if(Aa[Ag]===Aa[Ag-1]){Aa.splice(Ag--,1)}}}}}return Aa};q.matches=function(x,w){return q(x,null,null,w)};q.find=function(Ae,Ad,Ab){var z,Ac;if(!Ae){return[]}for(var w=0,y=o.order.length;w<y;w++){var Aa=o.order[w],Ac;if((Ac=o.match[Aa].exec(Ae))){var x=RegExp.leftContext;if(x.substr(x.length-1)!=="\\"){Ac[1]=(Ac[1]||"").replace(/\\/g,"");z=o.find[Aa](Ac,Ad,Ab);if(z!=null){Ae=Ae.replace(o.match[Aa],"");break}}}}if(!z){z=Ad.getElementsByTagName("*")}return{set:z,expr:Ae}};q.filter=function(z,Ab,Ac,Aj){var Ad=z,Aa=[],Al=Ab,Ai,y,Ak=Ab&&Ab[0]&&m(Ab[0]);while(z&&Ab.length){for(var x in o.filter){if((Ai=o.match[x].exec(z))!=null){var Af=o.filter[x],Ah,w;y=false;if(Al==Aa){Aa=[]}if(o.preFilter[x]){Ai=o.preFilter[x](Ai,Al,Ac,Aa,Aj,Ak);if(!Ai){y=Ah=true}else{if(Ai===true){continue}}}if(Ai){for(var Ag=0;(w=Al[Ag])!=null;Ag++){if(w){Ah=Af(w,Ai,Ag,Al);var Ae=Aj^!!Ah;if(Ac&&Ah!=null){if(Ae){y=true}else{Al[Ag]=false}}else{if(Ae){Aa.push(w);y=true}}}}}if(Ah!==W){if(!Ac){Al=Aa}z=z.replace(o.match[x],"");if(!y){return[]}break}}}if(z==Ad){if(y==null){throw"Syntax error, unrecognized expression: "+z}else{break}}Ad=z}return Al};var o=q.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(w){return w.getAttribute("href")}},relative:{"+":function(Ae,z,Ac){var Aa=typeof z==="string",Ab=Aa&&!/\W/.test(z),x=Aa&&!Ab;if(Ab&&!Ac){z=z.toUpperCase()}for(var w=0,y=Ae.length,Ad;w<y;w++){if((Ad=Ae[w])){while((Ad=Ad.previousSibling)&&Ad.nodeType!==1){}Ae[w]=x||Ad&&Ad.nodeName===z?Ad||false:Ad===z}}if(x){q.filter(z,Ae,true)}},">":function(Ad,y,Aa){var z=typeof y==="string";if(z&&!/\W/.test(y)){y=Aa?y:y.toUpperCase();for(var w=0,x=Ad.length;w<x;w++){var Ac=Ad[w];if(Ac){var Ab=Ac.parentNode;Ad[w]=Ab.nodeName===y?Ab:false}}}else{for(var w=0,x=Ad.length;w<x;w++){var Ac=Ad[w];if(Ac){Ad[w]=z?Ac.parentNode:Ac.parentNode===y}}if(z){q.filter(y,Ad,true)}}},"":function(y,z,Ab){var x=u++,w=f;if(!z.match(/\W/)){var Aa=z=Ab?z:z.toUpperCase();w=v}w("parentNode",z,x,y,Aa,Ab)},"~":function(y,z,Ab){var x=u++,w=f;if(typeof z==="string"&&!z.match(/\W/)){var Aa=z=Ab?z:z.toUpperCase();w=v}w("previousSibling",z,x,y,Aa,Ab)}},find:{ID:function(x,z,w){if(typeof z.getElementById!=="undefined"&&!w){var y=z.getElementById(x[1]);return y?[y]:[]}},NAME:function(x,Ab,w){if(typeof Ab.getElementsByName!=="undefined"){var Ac=[],Aa=Ab.getElementsByName(x[1]);for(var z=0,y=Aa.length;z<y;z++){if(Aa[z].getAttribute("name")===x[1]){Ac.push(Aa[z])}}return Ac.length===0?null:Ac}},TAG:function(w,x){return x.getElementsByTagName(w[1])}},preFilter:{CLASS:function(Ab,Ad,y,x,z,Aa){Ab=" "+Ab[1].replace(/\\/g,"")+" ";if(Aa){return Ab}for(var w=0,Ac;(Ac=Ad[w])!=null;w++){if(Ac){if(z^(Ac.className&&(" "+Ac.className+" ").indexOf(Ab)>=0)){if(!y){x.push(Ac)}}else{if(y){Ad[w]=false}}}}return false},ID:function(w){return w[1].replace(/\\/g,"")},TAG:function(w,x){for(var y=0;x[y]===false;y++){}return x[y]&&m(x[y])?w[1]:w[1].toUpperCase()},CHILD:function(w){if(w[1]=="nth"){var x=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(w[2]=="even"&&"2n"||w[2]=="odd"&&"2n+1"||!/\D/.test(w[2])&&"0n+"+w[2]||w[2]);w[2]=(x[1]+(x[2]||1))-0;w[3]=x[3]-0}w[0]=u++;return w},ATTR:function(z,Aa,Ac,y,x,w){var Ab=z[1].replace(/\\/g,"");if(!w&&o.attrMap[Ab]){z[1]=o.attrMap[Ab]}if(z[2]==="~="){z[4]=" "+z[4]+" "}return z},PSEUDO:function(y,z,Aa,x,w){if(y[1]==="not"){if(y[3].match(j).length>1||/^\w/.test(y[3])){y[3]=q(y[3],null,null,z)}else{var Ab=q.filter(y[3],z,Aa,true^w);if(!Aa){x.push.apply(x,Ab)}return false}}else{if(o.match.POS.test(y[0])||o.match.CHILD.test(y[0])){return true}}return y},POS:function(w){w.unshift(true);return w}},filters:{enabled:function(w){return w.disabled===false&&w.type!=="hidden"},disabled:function(w){return w.disabled===true},checked:function(w){return w.checked===true},selected:function(w){w.parentNode.selectedIndex;return w.selected===true},parent:function(w){return !!w.firstChild},empty:function(w){return !w.firstChild},has:function(x,y,w){return !!q(w[3],x).length},header:function(w){return/h\d/i.test(w.nodeName)},text:function(w){return"text"===w.type},radio:function(w){return"radio"===w.type},checkbox:function(w){return"checkbox"===w.type},file:function(w){return"file"===w.type},password:function(w){return"password"===w.type},submit:function(w){return"submit"===w.type},image:function(w){return"image"===w.type},reset:function(w){return"reset"===w.type},button:function(w){return"button"===w.type||w.nodeName.toUpperCase()==="BUTTON"},input:function(w){return/input|select|textarea|button/i.test(w.nodeName)}},setFilters:{first:function(w,x){return x===0},last:function(x,y,w,z){return y===z.length-1},even:function(w,x){return x%2===0},odd:function(w,x){return x%2===1},lt:function(x,y,w){return y<w[3]-0},gt:function(x,y,w){return y>w[3]-0},nth:function(x,y,w){return w[3]-0==y},eq:function(x,y,w){return w[3]-0==y}},filter:{PSEUDO:function(Ac,Ab,w,Aa){var z=Ab[1],x=o.filters[z];if(x){return x(Ac,w,Ab,Aa)}else{if(z==="contains"){return(Ac.textContent||Ac.innerText||"").indexOf(Ab[3])>=0}else{if(z==="not"){var y=Ab[3];for(var w=0,Ad=y.length;w<Ad;w++){if(y[w]===Ac){return false}}return true}}}},CHILD:function(Ad,Ab){var x=Ab[1],w=Ad;switch(x){case"only":case"first":while(w=w.previousSibling){if(w.nodeType===1){return false}}if(x=="first"){return true}w=Ad;case"last":while(w=w.nextSibling){if(w.nodeType===1){return false}}return true;case"nth":var Af=Ab[2],Ac=Ab[3];if(Af==1&&Ac==0){return true}var Aa=Ab[0],z=Ad.parentNode;if(z&&(z.sizcache!==Aa||!Ad.nodeIndex)){var Ae=0;for(w=z.firstChild;w;w=w.nextSibling){if(w.nodeType===1){w.nodeIndex=++Ae}}z.sizcache=Aa}var y=Ad.nodeIndex-Ac;if(Af==0){return y==0}else{return(y%Af==0&&y/Af>=0)}}},ID:function(x,w){return x.nodeType===1&&x.getAttribute("id")===w},TAG:function(x,w){return(w==="*"&&x.nodeType===1)||x.nodeName===w},CLASS:function(x,w){return(" "+(x.className||x.getAttribute("class"))+" ").indexOf(w)>-1},ATTR:function(y,w){var Ab=w[1],x=o.attrHandle[Ab]?o.attrHandle[Ab](y):y[Ab]!=null?y[Ab]:y.getAttribute(Ab),Ac=x+"",z=w[2],Aa=w[4];return x==null?z==="!=":z==="="?Ac===Aa:z==="*="?Ac.indexOf(Aa)>=0:z==="~="?(" "+Ac+" ").indexOf(Aa)>=0:!Aa?Ac&&x!==false:z==="!="?Ac!=Aa:z==="^="?Ac.indexOf(Aa)===0:z==="$="?Ac.substr(Ac.length-Aa.length)===Aa:z==="|="?Ac===Aa||Ac.substr(0,Aa.length+1)===Aa+"-":false},POS:function(y,w,z,Ab){var x=w[2],Aa=o.setFilters[x];if(Aa){return Aa(y,z,w,Ab)}}}};var k=o.match.POS;for(var l in o.match){o.match[l]=RegExp(o.match[l].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var g=function(x,w){x=Array.prototype.slice.call(x);if(w){w.push.apply(w,x);return w}return x};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(h){g=function(z,y){var Aa=y||[];if(r.call(z)==="[object Array]"){Array.prototype.push.apply(Aa,z)}else{if(typeof z.length==="number"){for(var x=0,w=z.length;x<w;x++){Aa.push(z[x])}}else{for(var x=0;z[x];x++){Aa.push(z[x])}}}return Aa}}var t;if(document.documentElement.compareDocumentPosition){t=function(w,x){var y=w.compareDocumentPosition(x)&4?-1:w===x?0:1;if(y===0){hasDuplicate=true}return y}}else{if("sourceIndex" in document.documentElement){t=function(w,x){var y=w.sourceIndex-x.sourceIndex;if(y===0){hasDuplicate=true}return y}}else{if(document.createRange){t=function(x,y){var z=x.ownerDocument.createRange(),w=y.ownerDocument.createRange();z.selectNode(x);z.collapse(true);w.selectNode(y);w.collapse(true);var Aa=z.compareBoundaryPoints(Range.START_TO_END,w);if(Aa===0){hasDuplicate=true}return Aa}}}}(function(){var x=document.createElement("form"),y="script"+(new Date).getTime();x.innerHTML="<input name='"+y+"'/>";var w=document.documentElement;w.insertBefore(x,w.firstChild);if(!!document.getElementById(y)){o.find.ID=function(Aa,Ac,z){if(typeof Ac.getElementById!=="undefined"&&!z){var Ab=Ac.getElementById(Aa[1]);return Ab?Ab.id===Aa[1]||typeof Ab.getAttributeNode!=="undefined"&&Ab.getAttributeNode("id").nodeValue===Aa[1]?[Ab]:W:[]}};o.filter.ID=function(Aa,z){var Ab=typeof Aa.getAttributeNode!=="undefined"&&Aa.getAttributeNode("id");return Aa.nodeType===1&&Ab&&Ab.nodeValue===z}}w.removeChild(x)})();(function(){var w=document.createElement("div");w.appendChild(document.createComment(""));if(w.getElementsByTagName("*").length>0){o.find.TAG=function(y,Ab){var Aa=Ab.getElementsByTagName(y[1]);if(y[1]==="*"){var z=[];for(var x=0;Aa[x];x++){if(Aa[x].nodeType===1){z.push(Aa[x])}}Aa=z}return Aa}}w.innerHTML="<a href='#'></a>";if(w.firstChild&&typeof w.firstChild.getAttribute!=="undefined"&&w.firstChild.getAttribute("href")!=="#"){o.attrHandle.href=function(x){return x.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var w=q,x=document.createElement("div");x.innerHTML="<p class='TEST'></p>";if(x.querySelectorAll&&x.querySelectorAll(".TEST").length===0){return}q=function(Aa,y,Ac,z){y=y||document;if(!z&&y.nodeType===9&&!m(y)){try{return g(y.querySelectorAll(Aa),Ac)}catch(Ab){}}return w(Aa,y,Ac,z)};q.find=w.find;q.filter=w.filter;q.selectors=w.selectors;q.matches=w.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var w=document.createElement("div");w.innerHTML="<div class='test e'></div><div class='test'></div>";if(w.getElementsByClassName("e").length===0){return}w.lastChild.className="e";if(w.getElementsByClassName("e").length===1){return}o.order.splice(1,0,"CLASS");o.find.CLASS=function(y,z,x){if(typeof z.getElementsByClassName!=="undefined"&&!x){return z.getElementsByClassName(y[1])}}})()}function v(y,Ab,Ad,Ag,Ae,Ac){var w=y=="previousSibling"&&!Ac;for(var Aa=0,x=Ag.length;Aa<x;Aa++){var Af=Ag[Aa];if(Af){if(w&&Af.nodeType===1){Af.sizcache=Ad;Af.sizset=Aa}Af=Af[y];var z=false;while(Af){if(Af.sizcache===Ad){z=Ag[Af.sizset];break}if(Af.nodeType===1&&!Ac){Af.sizcache=Ad;Af.sizset=Aa}if(Af.nodeName===Ab){z=Af;break}Af=Af[y]}Ag[Aa]=z}}}function f(y,Ab,Ad,Ag,Ae,Ac){var w=y=="previousSibling"&&!Ac;for(var Aa=0,x=Ag.length;Aa<x;Aa++){var Af=Ag[Aa];if(Af){if(w&&Af.nodeType===1){Af.sizcache=Ad;Af.sizset=Aa}Af=Af[y];var z=false;while(Af){if(Af.sizcache===Ad){z=Ag[Af.sizset];break}if(Af.nodeType===1){if(!Ac){Af.sizcache=Ad;Af.sizset=Aa}if(typeof Ab!=="string"){if(Af===Ab){z=true;break}}else{if(q.filter(Ab,[Af]).length>0){z=Af;break}}}Af=Af[y]}Ag[Aa]=z}}}var n=document.compareDocumentPosition?function(w,x){return w.compareDocumentPosition(x)&16}:function(w,x){return w!==x&&(w.contains?w.contains(x):true)};var m=function(w){return w.nodeType===9&&w.documentElement.nodeName!=="HTML"||!!w.ownerDocument&&m(w.ownerDocument)};var p=function(Aa,Ad){var z=[],Ab="",Ac,x=Ad.nodeType?[Ad]:Ad;while((Ac=o.match.PSEUDO.exec(Aa))){Ab+=Ac[0];Aa=Aa.replace(o.match.PSEUDO,"")}Aa=o.relative[Aa]?Aa+"*":Aa;for(var w=0,y=x.length;w<y;w++){q(Aa,x[w],z)}return q.filter(Ab,z)};M.find=q;M.filter=q.filter;M.expr=q.selectors;M.expr[":"]=M.expr.filters;q.selectors.filters.hidden=function(w){return w.offsetWidth===0||w.offsetHeight===0};q.selectors.filters.visible=function(w){return w.offsetWidth>0||w.offsetHeight>0};q.selectors.filters.animated=function(w){return M.grep(M.timers,function(x){return w===x.elem}).length};M.multiFilter=function(x,y,w){if(w){x=":not("+x+")"}return q.matches(x,y)};M.dir=function(x,w){var y=[],z=x[w];while(z&&z!=document){if(z.nodeType==1){y.push(z)}z=z[w]}return y};M.nth=function(z,x,w,y){x=x||1;var Aa=0;for(;z;z=z[w]){if(z.nodeType==1&&++Aa==x){break}}return z};M.sibling=function(x,y){var w=[];for(;x;x=x.nextSibling){if(x.nodeType==1&&x!=y){w.push(x)}}return w};return;S.Sizzle=q})();M.event={add:function(j,k,h,m){if(j.nodeType==3||j.nodeType==8){return}if(j.setInterval&&j!=S){j=S}if(!h.guid){h.guid=this.guid++}if(m!==W){var f=h;h=this.proxy(f);h.data=m}var l=M.data(j,"events")||M.data(j,"events",{}),g=M.data(j,"handle")||M.data(j,"handle",function(){return typeof M!=="undefined"&&!M.event.triggered?M.event.handle.apply(arguments.callee.elem,arguments):W});g.elem=j;M.each(k.split(/\s+/),function(p,o){var n=o.split(".");o=n.shift();h.type=n.slice().sort().join(".");var q=l[o];if(M.event.specialAll[o]){M.event.specialAll[o].setup.call(j,m,n)}if(!q){q=l[o]={};if(!M.event.special[o]||M.event.special[o].setup.call(j,m,n)===false){if(j.addEventListener){j.addEventListener(o,g,false)}else{if(j.attachEvent){j.attachEvent("on"+o,g)}}}}q[h.guid]=h;M.event.global[o]=true});j=null},guid:1,global:{},remove:function(m,h,n){if(m.nodeType==3||m.nodeType==8){return}var j=M.data(m,"events"),g,k;if(j){if(h===W||(typeof h==="string"&&h.charAt(0)==".")){for(var f in j){this.remove(m,f+(h||""))}}else{if(h.type){n=h.handler;h=h.type}M.each(h.split(/\s+/),function(r,q){var o=q.split(".");q=o.shift();var p=RegExp("(^|\\.)"+o.slice().sort().join(".*\\.")+"(\\.|$)");if(j[q]){if(n){delete j[q][n.guid]}else{for(var t in j[q]){if(p.test(j[q][t].type)){delete j[q][t]}}}if(M.event.specialAll[q]){M.event.specialAll[q].teardown.call(m,o)}for(g in j[q]){break}if(!g){if(!M.event.special[q]||M.event.special[q].teardown.call(m,o)===false){if(m.removeEventListener){m.removeEventListener(q,M.data(m,"handle"),false)}else{if(m.detachEvent){m.detachEvent("on"+q,M.data(m,"handle"))}}}g=null;delete j[q]}}})}for(g in j){break}if(!g){var l=M.data(m,"handle");if(l){l.elem=null}M.removeData(m,"events");M.removeData(m,"handle")}}},trigger:function(g,h,n,j){var f=g.type||g;if(!j){g=typeof g==="object"?g[R]?g:M.extend(M.Event(f),g):M.Event(f);if(f.indexOf("!")>=0){g.type=f=f.slice(0,-1);g.exclusive=true}if(!n){g.stopPropagation();if(this.global[f]){M.each(M.cache,function(){if(this.events&&this.events[f]){M.event.trigger(g,h,this.handle.elem)}})}}if(!n||n.nodeType==3||n.nodeType==8){return W}g.result=W;g.target=n;h=M.makeArray(h);h.unshift(g)}g.currentTarget=n;var l=M.data(n,"handle");if(l){l.apply(n,h)}if((!n[f]||(M.nodeName(n,"a")&&f=="click"))&&n["on"+f]&&n["on"+f].apply(n,h)===false){g.result=false}if(!j&&n[f]&&!g.isDefaultPrevented()&&!(M.nodeName(n,"a")&&f=="click")){this.triggered=true;try{n[f]()}catch(k){}}this.triggered=false;if(!g.isPropagationStopped()){var m=n.parentNode||n.ownerDocument;if(m){M.event.trigger(g,h,m,true)}}},handle:function(k){var n,m;k=arguments[0]=M.event.fix(k||S.event);k.currentTarget=this;var l=k.type.split(".");k.type=l.shift();n=!l.length&&!k.exclusive;var g=RegExp("(^|\\.)"+l.slice().sort().join(".*\\.")+"(\\.|$)");m=(M.data(this,"events")||{})[k.type];for(var f in m){var o=m[f];if(n||g.test(o.type)){k.handler=o;k.data=o.data;var h=o.apply(this,arguments);if(h!==W){k.result=h;if(h===false){k.preventDefault();k.stopPropagation()}}if(k.isImmediatePropagationStopped()){break}}}},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 toElement view wheelDelta which".split(" "),fix:function(j){if(j[R]){return j}var h=j;j=M.Event(h);for(var k=this.props.length,l;k;){l=this.props[--k];j[l]=h[l]}if(!j.target){j.target=j.srcElement||document}if(j.target.nodeType==3){j.target=j.target.parentNode}if(!j.relatedTarget&&j.fromElement){j.relatedTarget=j.fromElement==j.target?j.toElement:j.fromElement}if(j.pageX==null&&j.clientX!=null){var g=document.documentElement,f=document.body;j.pageX=j.clientX+(g&&g.scrollLeft||f&&f.scrollLeft||0)-(g.clientLeft||0);j.pageY=j.clientY+(g&&g.scrollTop||f&&f.scrollTop||0)-(g.clientTop||0)}if(!j.which&&((j.charCode||j.charCode===0)?j.charCode:j.keyCode)){j.which=j.charCode||j.keyCode}if(!j.metaKey&&j.ctrlKey){j.metaKey=j.ctrlKey}if(!j.which&&j.button){j.which=(j.button&1?1:(j.button&2?3:(j.button&4?2:0)))}return j},proxy:function(f,g){g=g||function(){return f.apply(this,arguments)};g.guid=f.guid=f.guid||g.guid||this.guid++;return g},special:{ready:{setup:b,teardown:function(){}}},specialAll:{live:{setup:function(g,f){M.event.add(this,f[0],d)},teardown:function(f){if(f.length){var h=0,g=RegExp("(^|\\.)"+f[0]+"(\\.|$)");M.each((M.data(this,"events").live||{}),function(){if(g.test(this.type)){h++}});if(h<1){M.event.remove(this,f[0],d)}}}}}};M.Event=function(f){if(!this.preventDefault){return new M.Event(f)}if(f&&f.type){this.originalEvent=f;this.type=f.type}else{this.type=f}this.timeStamp=A();this[R]=true};function D(){return false}function L(){return true}M.Event.prototype={preventDefault:function(){this.isDefaultPrevented=L;var f=this.originalEvent;if(!f){return}if(f.preventDefault){f.preventDefault()}f.returnValue=false},stopPropagation:function(){this.isPropagationStopped=L;var f=this.originalEvent;if(!f){return}if(f.stopPropagation){f.stopPropagation()}f.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=L;this.stopPropagation()},isDefaultPrevented:D,isPropagationStopped:D,isImmediatePropagationStopped:D};var C=function(g){var f=g.relatedTarget;while(f&&f!=this){try{f=f.parentNode}catch(h){f=this}}if(f!=this){g.type=g.data;M.event.handle.apply(this,arguments)}};M.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(g,f){M.event.special[f]={setup:function(){M.event.add(this,g,C,f)},teardown:function(){M.event.remove(this,g,C)}}});M.fn.extend({bind:function(g,h,f){return g=="unload"?this.one(g,h,f):this.each(function(){M.event.add(this,g,f||h,f&&h)})},one:function(h,j,f){var g=M.event.proxy(f||j,function(k){M(this).unbind(k,g);return(f||j).apply(this,arguments)});return this.each(function(){M.event.add(this,h,g,f&&j)})},unbind:function(g,f){return this.each(function(){M.event.remove(this,g,f)})},trigger:function(f,g){return this.each(function(){M.event.trigger(f,g,this)})},triggerHandler:function(g,h){if(this[0]){var f=M.Event(g);f.preventDefault();f.stopPropagation();M.event.trigger(f,h,this[0]);return f.result}},toggle:function(f){var g=arguments,h=1;while(h<g.length){M.event.proxy(f,g[h++])}return this.click(M.event.proxy(f,function(j){this.lastToggle=(this.lastToggle||0)%h;j.preventDefault();return g[this.lastToggle++].apply(this,arguments)||false}))},hover:function(g,f){return this.mouseenter(g).mouseleave(f)},ready:function(f){b();if(M.isReady){f.call(document,M)}else{M.readyList.push(f)}return this},live:function(g,f){var h=M.event.proxy(f);h.guid+=this.selector+g;M(document).bind(P(g,this.selector),this.selector,h);return this},die:function(g,f){M(document).unbind(P(g,this.selector),f?{guid:f.guid+this.selector+g}:null);return this}});function d(f){var g=RegExp("(^|\\.)"+f.type+"(\\.|$)"),h=true,j=[];M.each(M.data(this,"events").live||[],function(m,k){if(g.test(k.type)){var l=M(f.target).closest(k.data)[0];if(l){j.push({elem:l,fn:k})}}});j.sort(function(k,l){return M.data(k.elem,"closest")-M.data(l.elem,"closest")});M.each(j,function(){if(this.fn.call(this.elem,f,this.fn.data)===false){return(h=false)}});return h}function P(f,g){return["live",f,g.replace(/\./g,"`").replace(/ /g,"|")].join(".")}M.extend({isReady:false,readyList:[],ready:function(){if(!M.isReady){M.isReady=true;if(M.readyList){M.each(M.readyList,function(){this.call(document,M)});M.readyList=null}M(document).triggerHandler("ready")}}});var c=false;function b(){if(c){return}c=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);M.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);M.ready()}});if(document.documentElement.doScroll&&S==S.top){(function(){if(M.isReady){return}try{document.documentElement.doScroll("left")}catch(f){setTimeout(arguments.callee,0);return}M.ready()})()}}}M.event.add(S,"load",M.ready)}M.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(g,f){M.fn[f]=function(h){return h?this.bind(f,h):this.trigger(f)}});M(S).bind("unload",function(){for(var f in M.cache){if(f!=1&&M.cache[f].handle){M.event.remove(M.cache[f].handle.elem)}}});(function(){M.support={};var g=document.documentElement,k=document.createElement("script"),f=document.createElement("div"),l="script"+(new Date).getTime();f.style.display="none";f.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var h=f.getElementsByTagName("*"),m=f.getElementsByTagName("a")[0];if(!h||!h.length||!m){return}M.support={leadingWhitespace:f.firstChild.nodeType==3,tbody:!f.getElementsByTagName("tbody").length,objectAll:!!f.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!f.getElementsByTagName("link").length,style:/red/.test(m.getAttribute("style")),hrefNormalized:m.getAttribute("href")==="/a",opacity:m.style.opacity==="0.5",cssFloat:!!m.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};k.type="text/javascript";try{k.appendChild(document.createTextNode("window."+l+"=1;"))}catch(j){}g.insertBefore(k,g.firstChild);if(S[l]){M.support.scriptEval=true;delete S[l]}g.removeChild(k);if(f.attachEvent&&f.fireEvent){f.attachEvent("onclick",function(){M.support.noCloneEvent=false;f.detachEvent("onclick",arguments.callee)});f.cloneNode(true).fireEvent("onclick")}M(function(){var n=document.createElement("div");n.style.width=n.style.paddingLeft="1px";document.body.appendChild(n);M.boxModel=M.support.boxModel=n.offsetWidth===2;document.body.removeChild(n).style.display="none"})})();var Y=M.support.cssFloat?"cssFloat":"styleFloat";M.props={"for":"htmlFor","class":"className","float":Y,cssFloat:Y,styleFloat:Y,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};M.fn.extend({_load:M.fn.load,load:function(j,f,m){if(typeof j!=="string"){return this._load(j)}var g=j.indexOf(" ");if(g>=0){var k=j.slice(g,j.length);j=j.slice(0,g)}var h="GET";if(f){if(M.isFunction(f)){m=f;f=null}else{if(typeof f==="object"){f=M.param(f);h="POST"}}}var l=this;M.ajax({url:j,type:h,dataType:"html",data:f,complete:function(o,n){if(n=="success"||n=="notmodified"){l.html(k?M("<div/>").append(o.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(k):o.responseText)}if(m){l.each(m,[o.responseText,n,o])}}});return this},serialize:function(){return M.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?M.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(g,f){var h=M(this).val();return h==null?null:M.isArray(h)?M.map(h,function(k,j){return{name:f.name,value:k}}):{name:f.name,value:h}}).get()}});M.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(g,f){M.fn[f]=function(h){return this.bind(f,h)}});var K=A();M.extend({get:function(h,j,f,g){if(M.isFunction(j)){f=j;j=null}return M.ajax({type:"GET",url:h,data:j,success:f,dataType:g})},getScript:function(f,g){return M.get(f,null,g,"script")},getJSON:function(g,h,f){return M.get(g,h,f,"json")},post:function(h,j,f,g){if(M.isFunction(j)){f=j;j={}}return M.ajax({type:"POST",url:h,data:j,success:f,dataType:g})},ajaxSetup:function(f){M.extend(M.ajaxSettings,f)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return S.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},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(m){m=M.extend(true,m,M.extend(true,{},M.ajaxSettings,m));var g,q=/=\?(&|$)/g,n,o,h=m.type.toUpperCase();if(m.data&&m.processData&&typeof m.data!=="string"){m.data=M.param(m.data)}if(m.dataType=="jsonp"){if(h=="GET"){if(!m.url.match(q)){m.url+=(m.url.match(/\?/)?"&":"?")+(m.jsonp||"callback")+"=?"}}else{if(!m.data||!m.data.match(q)){m.data=(m.data?m.data+"&":"")+(m.jsonp||"callback")+"=?"}}m.dataType="json"}if(m.dataType=="json"&&(m.data&&m.data.match(q)||m.url.match(q))){g="jsonp"+K++;if(m.data){m.data=(m.data+"").replace(q,"="+g+"$1")}m.url=m.url.replace(q,"="+g+"$1");m.dataType="script";S[g]=function(Aa){o=Aa;r();v();S[g]=W;try{delete S[g]}catch(Ab){}if(z){z.removeChild(x)}}}if(m.dataType=="script"&&m.cache==null){m.cache=false}if(m.cache===false&&h=="GET"){var f=A();var l=m.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+f+"$2");m.url=l+((l==m.url)?(m.url.match(/\?/)?"&":"?")+"_="+f:"")}if(m.data&&h=="GET"){m.url+=(m.url.match(/\?/)?"&":"?")+m.data;m.data=null}if(m.global&&!M.active++){M.event.trigger("ajaxStart")}var y=/^(\w+:)?\/\/([^\/?#]+)/.exec(m.url);if(m.dataType=="script"&&h=="GET"&&y&&(y[1]&&y[1]!=location.protocol||y[2]!=location.host)){var z=document.getElementsByTagName("head")[0];var x=document.createElement("script");x.src=m.url;if(m.scriptCharset){x.charset=m.scriptCharset}if(!g){var k=false;x.onload=x.onreadystatechange=function(){if(!k&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){k=true;r();v();x.onload=x.onreadystatechange=null;z.removeChild(x)}}}z.appendChild(x);return W}var w=false;var j=m.xhr();if(m.username){j.open(h,m.url,m.async,m.username,m.password)}else{j.open(h,m.url,m.async)}try{if(m.data){j.setRequestHeader("Content-Type",m.contentType)}if(m.ifModified){j.setRequestHeader("If-Modified-Since",M.lastModified[m.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}j.setRequestHeader("X-Requested-With","XMLHttpRequest");j.setRequestHeader("Accept",m.dataType&&m.accepts[m.dataType]?m.accepts[m.dataType]+", */*":m.accepts._default)}catch(t){}if(m.beforeSend&&m.beforeSend(j,m)===false){if(m.global&&!--M.active){M.event.trigger("ajaxStop")}j.abort();return false}if(m.global){M.event.trigger("ajaxSend",[j,m])}var u=function(Aa){if(j.readyState==0){if(p){clearInterval(p);p=null;if(m.global&&!--M.active){M.event.trigger("ajaxStop")}}}else{if(!w&&j&&(j.readyState==4||Aa=="timeout")){w=true;if(p){clearInterval(p);p=null}n=Aa=="timeout"?"timeout":!M.httpSuccess(j)?"error":m.ifModified&&M.httpNotModified(j,m.url)?"notmodified":"success";if(n=="success"){try{o=M.httpData(j,m.dataType,m)}catch(Ac){n="parsererror"}}if(n=="success"){var Ab;try{Ab=j.getResponseHeader("Last-Modified")}catch(Ac){}if(m.ifModified&&Ab){M.lastModified[m.url]=Ab}if(!g){r()}}else{M.handleError(m,j,n)}v();if(Aa){j.abort()}if(m.async){j=null}}}};if(m.async){var p=setInterval(u,13);if(m.timeout>0){setTimeout(function(){if(j&&!w){u("timeout")}},m.timeout)}}try{j.send(m.data)}catch(t){M.handleError(m,j,null,t)}if(!m.async){u()}function r(){if(m.success){m.success(o,n)}if(m.global){M.event.trigger("ajaxSuccess",[j,m])}}function v(){if(m.complete){m.complete(j,n)}if(m.global){M.event.trigger("ajaxComplete",[j,m])}if(m.global&&!--M.active){M.event.trigger("ajaxStop")}}return j},handleError:function(f,j,g,h){if(f.error){f.error(j,g,h)}if(f.global){M.event.trigger("ajaxError",[j,f,h])}},active:0,httpSuccess:function(g){try{return !g.status&&location.protocol=="file:"||(g.status>=200&&g.status<300)||g.status==304||g.status==1223}catch(f){}return false},httpNotModified:function(j,g){try{var h=j.getResponseHeader("Last-Modified");return j.status==304||h==M.lastModified[g]}catch(f){}return false},httpData:function(k,h,f){var j=k.getResponseHeader("content-type"),g=h=="xml"||!h&&j&&j.indexOf("xml")>=0,l=g?k.responseXML:k.responseText;if(g&&l.documentElement.tagName=="parsererror"){throw"parsererror"}if(f&&f.dataFilter){l=f.dataFilter(l,h)}if(typeof l==="string"){if(h=="script"){M.globalEval(l)}if(h=="json"){l=S["eval"]("("+l+")")}}return l},param:function(h){var f=[];function g(l,j){f[f.length]=encodeURIComponent(l)+"="+encodeURIComponent(j)}if(M.isArray(h)||h.jquery){M.each(h,function(){g(this.name,this.value)})}else{for(var k in h){if(M.isArray(h[k])){M.each(h[k],function(){g(k,this)})}else{g(k,M.isFunction(h[k])?h[k]():h[k])}}}return f.join("&").replace(/%20/g,"+")}});var U={},B,I=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function V(g,h){var f={};M.each(I.concat.apply([],I.slice(0,h)),function(){f[this]=g});return f}M.fn.extend({show:function(j,o){if(j){return this.animate(V("show",3),j,o)}else{for(var f=0,g=this.length;f<g;f++){var k=M.data(this[f],"olddisplay");this[f].style.display=k||"";if(M.css(this[f],"display")==="none"){var h=this[f].tagName,m;if(U[h]){m=U[h]}else{var n=M("<"+h+" />").appendTo("body");m=n.css("display");if(m==="none"){m="block"}n.remove();U[h]=m}M.data(this[f],"olddisplay",m)}}for(var f=0,g=this.length;f<g;f++){this[f].style.display=M.data(this[f],"olddisplay")||""}return this}},hide:function(g,k){if(g){return this.animate(V("hide",3),g,k)}else{for(var j=0,h=this.length;j<h;j++){var f=M.data(this[j],"olddisplay");if(!f&&f!=="none"){M.data(this[j],"olddisplay",M.css(this[j],"display"))}}for(var j=0,h=this.length;j<h;j++){this[j].style.display="none"}return this}},_toggle:M.fn.toggle,toggle:function(f,g){var h=typeof f==="boolean";return M.isFunction(f)&&M.isFunction(g)?this._toggle.apply(this,arguments):f==null||h?this.each(function(){var j=h?f:M(this).is(":hidden");M(this)[j?"show":"hide"]()}):this.animate(V("toggle",3),f,g)},fadeTo:function(g,f,h){return this.animate({opacity:f},g,h)},animate:function(k,h,f,g){var j=M.speed(h,f,g);return this[j.queue===false?"each":"queue"](function(){var o=M.extend({},j),n,l=this.nodeType==1&&M(this).is(":hidden"),m=this;for(n in k){if(k[n]=="hide"&&l||k[n]=="show"&&!l){return o.complete.call(this)}if((n=="height"||n=="width")&&this.style){o.display=M.css(this,"display");o.overflow=this.style.overflow}}if(o.overflow!=null){this.style.overflow="hidden"}o.curAnim=M.extend({},k);M.each(k,function(p,w){var v=new M.fx(m,o,p);if(/toggle|show|hide/.test(w)){v[w=="toggle"?l?"show":"hide":w](k)}else{var u=w.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),r=v.cur(true)||0;if(u){var t=parseFloat(u[2]),q=u[3]||"px";if(q!="px"){m.style[p]=(t||1)+q;r=((t||1)/v.cur(true))*r;m.style[p]=r+q}if(u[1]){t=((u[1]=="-="?-1:1)*t)+r}v.custom(r,t,q)}else{v.custom(r,w,"")}}});return true})},stop:function(f,h){var g=M.timers;if(f){this.queue([])}this.each(function(){for(var j=g.length-1;j>=0;j--){if(g[j].elem==this){if(h){g[j](true)}g.splice(j,1)}}});if(!h){this.dequeue()}return this}});M.each({slideDown:V("show",1),slideUp:V("hide",1),slideToggle:V("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(g,f){M.fn[g]=function(h,j){return this.animate(f,h,j)}});M.extend({speed:function(h,g,f){var j=typeof h==="object"?h:{complete:f||!f&&g||M.isFunction(h)&&h,duration:h,easing:f&&g||g&&!M.isFunction(g)&&g};j.duration=M.fx.off?0:typeof j.duration==="number"?j.duration:M.fx.speeds[j.duration]||M.fx.speeds._default;j.old=j.complete;j.complete=function(){if(j.queue!==false){M(this).dequeue()}if(M.isFunction(j.old)){j.old.call(this)}};return j},easing:{linear:function(h,f,j,g){return j+g*h},swing:function(h,f,j,g){return((-Math.cos(h*Math.PI)/2)+0.5)*g+j}},timers:[],fx:function(f,g,h){this.options=g;this.elem=f;this.prop=h;if(!g.orig){g.orig={}}}});M.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(M.fx.step[this.prop]||M.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(g){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var f=parseFloat(M.css(this.elem,this.prop,g));return f&&f>-10000?f:parseFloat(M.curCSS(this.elem,this.prop))||0},custom:function(f,g,h){this.startTime=A();this.start=f;this.end=g;this.unit=h||this.unit||"px";this.now=this.start;this.pos=this.state=0;var j=this;function k(l){return j.step(l)}k.elem=this.elem;if(k()&&M.timers.push(k)&&!B){B=setInterval(function(){var l=M.timers;for(var m=0;m<l.length;m++){if(!l[m]()){l.splice(m--,1)}}if(!l.length){clearInterval(B);B=W}},13)}},show:function(){this.options.orig[this.prop]=M.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());M(this.elem).show()},hide:function(){this.options.orig[this.prop]=M.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(k){var h=A();if(k||h>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var f=true;for(var j in this.options.curAnim){if(this.options.curAnim[j]!==true){f=false}}if(f){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(M.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){M(this.elem).hide()}if(this.options.hide||this.options.show){for(var l in this.options.curAnim){M.attr(this.elem.style,l,this.options.orig[l])}}this.options.complete.call(this.elem)}return false}else{var g=h-this.startTime;this.state=g/this.options.duration;this.pos=M.easing[this.options.easing||(M.easing.swing?"swing":"linear")](this.state,g,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};M.extend(M.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(f){M.attr(f.elem.style,"opacity",f.now)},_default:function(f){if(f.elem.style&&f.elem.style[f.prop]!=null){f.elem.style[f.prop]=f.now+f.unit}else{f.elem[f.prop]=f.now}}}});if(document.documentElement["getBoundingClientRect"]){M.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return M.offset.bodyOffset(this[0])}var f=this[0].getBoundingClientRect(),k=this[0].ownerDocument,n=k.body,l=k.documentElement,m=l.clientTop||n.clientTop||0,g=l.clientLeft||n.clientLeft||0,h=f.top+(self.pageYOffset||M.boxModel&&l.scrollTop||n.scrollTop)-m,j=f.left+(self.pageXOffset||M.boxModel&&l.scrollLeft||n.scrollLeft)-g;return{top:h,left:j}}}else{M.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return M.offset.bodyOffset(this[0])}M.offset.initialized||M.offset.initialize();var q=this[0],p=q.offsetParent,g=q,m=q.ownerDocument,f,n=m.documentElement,o=m.body,k=m.defaultView,l=k.getComputedStyle(q,null),h=q.offsetTop,j=q.offsetLeft;while((q=q.parentNode)&&q!==o&&q!==n){f=k.getComputedStyle(q,null);h-=q.scrollTop,j-=q.scrollLeft;if(q===p){h+=q.offsetTop,j+=q.offsetLeft;if(M.offset.doesNotAddBorder&&!(M.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(q.tagName))){h+=parseInt(f.borderTopWidth,10)||0,j+=parseInt(f.borderLeftWidth,10)||0}g=p,p=q.offsetParent}if(M.offset.subtractsBorderForOverflowNotVisible&&f.overflow!=="visible"){h+=parseInt(f.borderTopWidth,10)||0,j+=parseInt(f.borderLeftWidth,10)||0}l=f}if(l.position==="relative"||l.position==="static"){h+=o.offsetTop,j+=o.offsetLeft}if(l.position==="fixed"){h+=Math.max(n.scrollTop,o.scrollTop),j+=Math.max(n.scrollLeft,o.scrollLeft)}return{top:h,left:j}}}M.offset={initialize:function(){if(this.initialized){return}var n=document.body,g=document.createElement("div"),p,k,f,o,l,h,m=n.style.marginTop,j='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';l={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(h in l){g.style[h]=l[h]}g.innerHTML=j;n.insertBefore(g,n.firstChild);p=g.firstChild,k=p.firstChild,o=p.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(k.offsetTop!==5);this.doesAddBorderForTableAndCells=(o.offsetTop===5);p.style.overflow="hidden",p.style.position="relative";this.subtractsBorderForOverflowNotVisible=(k.offsetTop===-5);n.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(n.offsetTop===0);n.style.marginTop=m;n.removeChild(g);this.initialized=true},bodyOffset:function(f){M.offset.initialized||M.offset.initialize();var g=f.offsetTop,h=f.offsetLeft;if(M.offset.doesNotIncludeMarginInBodyOffset){g+=parseInt(M.curCSS(f,"marginTop",true),10)||0,h+=parseInt(M.curCSS(f,"marginLeft",true),10)||0}return{top:g,left:h}}};M.fn.extend({position:function(){var j=0,g=0,k;if(this[0]){var l=this.offsetParent(),h=this.offset(),f=/^body|html$/i.test(l[0].tagName)?{top:0,left:0}:l.offset();h.top-=O(this,"marginTop");h.left-=O(this,"marginLeft");f.top+=O(l,"borderTopWidth");f.left+=O(l,"borderLeftWidth");k={top:h.top-f.top,left:h.left-f.left}}return k},offsetParent:function(){var f=this[0].offsetParent||document.body;while(f&&(!/^body|html$/i.test(f.tagName)&&M.css(f,"position")=="static")){f=f.offsetParent}return M(f)}});M.each(["Left","Top"],function(h,f){var g="scroll"+f;M.fn[g]=function(j){if(!this[0]){return null}return j!==W?this.each(function(){this==S||this==document?S.scrollTo(!h?j:M(S).scrollLeft(),h?j:M(S).scrollTop()):this[g]=j}):this[0]==S||this[0]==document?self[h?"pageYOffset":"pageXOffset"]||M.boxModel&&document.documentElement[g]||document.body[g]:this[0][g]}});M.each(["Height","Width"],function(j,g){var k=j?"Left":"Top",l=j?"Right":"Bottom",f=g.toLowerCase();M.fn["inner"+g]=function(){return this[0]?M.css(this[0],f,false,"padding"):null};M.fn["outer"+g]=function(m){return this[0]?M.css(this[0],f,false,m?"margin":"border"):null};var h=g.toLowerCase();M.fn[h]=function(m){return this[0]==S?document.compatMode=="CSS1Compat"&&document.documentElement["client"+g]||document.body["client"+g]:this[0]==document?Math.max(document.documentElement["client"+g],document.body["scroll"+g],document.documentElement["scroll"+g],document.body["offset"+g],document.documentElement["offset"+g]):m===W?(this.length?M.css(this[0],h):null):this.css(h,typeof m==="string"?m:m+"px")}})})();$j=jQuery.noConflict();function AttachEvents(){$j("ul.tabs li").hover(function(){if($j(this).find("#tabmenu_child a").length>0){$j(this).children("div").css("visibility","visible")}$j(this).find("#tabmenu_child a").each(function(B,A){$j(A).width($j(A).parent().width())});if((!$j(this).hasClass("tabon"))){$j(this).addClass("active")}},function(){$j(this).children("div").css("visibility","hidden");$j(this).removeClass("active")})}function SetStyles(){$j(".tabs li").each(function(B,A){if(parseInt($j(A).width())>120){$j(A).width(120)}});$j("div.tn_txt").each(function(B,A){if(parseInt($j(A).height())<17){$j(A).addClass("pad")}})}$j(SetStyles);$j(AttachEvents);var Videobox={init:function(B){this.options=Object.extend({resizeDuration:400,initialWidth:250,initialHeight:250,defaultWidth:540,defaultHeight:400,animateCaption:false,flvplayer:"/KodakGCG/KodakGCGPages/Scripts/flvplayer.swf"},B||{});this.anchors=[];$A($$("a")).each(function(C){if(C.rel&&C.href&&C.rel.test("^vidbox","i")){C.addEvent("click",function(D){D=new Event(D);D.stop();this.click(C)}.bind(this));this.anchors.push(C)}},this);this.overlay=new Element("div").setProperty("id","lbOverlay_video").injectInside(document.body);this.center=new Element("div").setProperty("id","lbCenter").setStyles({width:this.options.initialWidth+"px",height:this.options.initialHeight+"px",marginLeft:"-"+(this.options.initialWidth/2)+"px",display:"none"}).injectInside(document.body);this.bottomContainer=new Element("div").setProperty("id","lbBottomContainer").setStyle("display","none").injectInside(document.body);this.bottom=new Element("div").setProperty("id","lbBottom").injectInside(this.bottomContainer);new Element("a").setProperties({id:"lbCloseLink",href:"#"}).injectInside(this.bottom).onclick=this.overlay.onclick=this.close.bind(this);this.caption=new Element("div").setProperty("id","lbCaption_video").injectInside(this.bottom);this.number=new Element("div").setProperty("id","lbNumber").injectInside(this.bottom);new Element("div").setStyle("clear","both").injectInside(this.bottom);var A=this.nextEffect.bind(this);this.fx={overlay:this.overlay.effect("opacity",{duration:500}).hide(),center:this.center.effects({duration:500,transition:Fx.Transitions.sineInOut,onComplete:A}),bottom:this.bottom.effect("margin-top",{duration:400})}},click:function(A){return this.open(A.href,A.title,A.rel)},open:function(B,C,A){this.href=B;this.title=C;this.rel=A;this.position();this.setup();this.video(this.href);this.top=Window.getScrollTop()+(Window.getHeight()/15);this.center.setStyles({top:this.top+"px",display:""});this.fx.overlay.start(0.8);this.step=1;this.center.setStyle("background","#fff url(loading.gif) no-repeat center");this.caption.innerHTML=this.title;this.fx.center.start({"height":[this.options.contentsHeight]})},setup:function(){var A=this.rel.match(/[0-9]+/g);this.options.contentsWidth=(A&&(A[0]>0))?A[0]:this.options.defaultWidth;this.options.contentsHeight=(A&&(A[1]>0))?A[1]:this.options.defaultHeight},position:function(){this.overlay.setStyles({"top":window.getScrollTop()+"px","height":window.getHeight()+"px"})},video:function(C){if(C.match(/youtube\.com\/watch/i)){this.flash=true;var B=C;var A=B.split("=");this.videoID=A[1];this.so=new SWFObject("http://www.youtube.com/v/"+this.videoID,"flvvideo",this.options.contentsWidth,this.options.contentsHeight,"0");this.so.addParam("wmode","transparent")}else{if(C.match(/metacafe\.com\/watch/i)){this.flash=true;var B=C;var A=B.split("/");this.videoID=A[4];this.so=new SWFObject("http://www.metacafe.com/fplayer/"+this.videoID+"/.swf","flvvideo",this.options.contentsWidth,this.options.contentsHeight,"0");this.so.addParam("wmode","transparent")}else{if(C.match(/google\.com\/videoplay/i)){this.flash=true;var B=C;var A=B.split("=");this.videoID=A[1];this.so=new SWFObject("http://video.google.com/googleplayer.swf?docId="+this.videoID+"&hl=en","flvvideo",this.options.contentsWidth,this.options.contentsHeight,"0");this.so.addParam("wmode","transparent")}else{if(C.match(/ifilm\.com\/video/i)){this.flash=true;var B=C;var A=B.split("video/");this.videoID=A[1];this.so=new SWFObject("http://www.ifilm.com/efp","flvvideo",this.options.contentsWidth,this.options.contentsHeight,"0","#000");this.so.addVariable("flvbaseclip",this.videoID+"&");this.so.addParam("wmode","transparent")}else{if(C.match(/\.mov/i)){this.flash=false;if(navigator.plugins&&navigator.plugins.length){this.other='<object id="qtboxMovie" type="video/quicktime" codebase="http://www.apple.com/qtactivex/qtplugin.cab" data="'+C+'" width="'+this.options.contentsWidth+'" height="'+this.options.contentsHeight+'"><param name="src" value="'+C+'" /><param name="scale" value="aspect" /><param name="controller" value="true" /><param name="autoplay" value="true" /><param name="bgcolor" value="#000000" /><param name="enablejavascript" value="true" /></object>'}else{this.other='<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="'+this.options.contentsWidth+'" height="'+this.options.contentsHeight+'" id="qtboxMovie"><param name="src" value="'+C+'" /><param name="scale" value="aspect" /><param name="controller" value="true" /><param name="autoplay" value="true" /><param name="bgcolor" value="#000000" /><param name="enablejavascript" value="true" /></object>'}}else{if(C.match(/\.wmv/i)||C.match(/\.asx/i)){this.flash=false;this.other='<object NAME="Player" WIDTH="'+this.options.contentsWidth+'" HEIGHT="'+this.options.contentsHeight+'" align="left" hspace="0" type="application/x-oleobject" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"><param NAME="URL" VALUE="'+C+'"><param><param NAME="AUTOSTART" VALUE="false"></param><param name="showControls" value="true"></param><embed WIDTH="'+this.options.contentsWidth+'" HEIGHT="'+this.options.contentsHeight+'" align="left" hspace="0" SRC="'+C+'" TYPE="application/x-oleobject" AUTOSTART="false"></embed></object>'}else{if(C.match(/\.flv/i)){this.flash=true;this.so=new SWFObject(this.options.flvplayer+"?file="+C,"flvvideo",this.options.contentsWidth,this.options.contentsHeight,"0","#000")}else{this.flash=true;this.videoID=C;this.so=new SWFObject(this.videoID,"flvvideo",this.options.contentsWidth,this.options.contentsHeight,"0")}}}}}}}},nextEffect:function(){switch(this.step++){case 1:this.fx.center.start({"width":[this.options.contentsWidth],"marginLeft":[this.options.contentsWidth/-2]});break;this.step++;case 2:this.center.setStyle("background","#fff");this.flash?this.so.write(this.center):this.center.setHTML(this.other);this.bottomContainer.setStyles({top:(this.top+this.center.clientHeight)+"px",height:"0px",marginLeft:this.center.style.marginLeft,width:this.options.contentsWidth+"px",display:""});if(this.options.animateCaption){this.fx.bottom.set(-this.bottom.offsetHeight);this.bottomContainer.style.height="";this.fx.bottom.start(0);break}this.bottomContainer.style.height="";this.step++}},close:function(){this.fx.overlay.start(0);this.center.style.display=this.bottomContainer.style.display="none";this.center.innerHTML="";return false}};window.addEvent("domready",Videobox.init.bind(Videobox));