/* * jquery UI */ if(dwr==null){var dwr={}}if(dwr.engine==null){dwr.engine={}}if(DWREngine==null){var DWREngine=dwr.engine}dwr.engine.setErrorHandler=function(A){dwr.engine._errorHandler=A};dwr.engine.setWarningHandler=function(A){dwr.engine._warningHandler=A};dwr.engine.setTextHtmlHandler=function(A){dwr.engine._textHtmlHandler=A};dwr.engine.setTimeout=function(A){dwr.engine._timeout=A};dwr.engine.setPreHook=function(A){dwr.engine._preHook=A};dwr.engine.setPostHook=function(A){dwr.engine._postHook=A};dwr.engine.setHeaders=function(A){dwr.engine._headers=A};dwr.engine.setParameters=function(A){dwr.engine._parameters=A};dwr.engine.XMLHttpRequest=1;dwr.engine.IFrame=2;dwr.engine.ScriptTag=3;dwr.engine.setRpcType=function(A){if(A!=dwr.engine.XMLHttpRequest&&A!=dwr.engine.IFrame&&A!=dwr.engine.ScriptTag){dwr.engine._handleError(null,{name:"dwr.engine.invalidRpcType",message:"RpcType must be one of dwr.engine.XMLHttpRequest or dwr.engine.IFrame or dwr.engine.ScriptTag"});return}dwr.engine._rpcType=A};dwr.engine.setHttpMethod=function(A){if(A!="GET"&&A!="POST"){dwr.engine._handleError(null,{name:"dwr.engine.invalidHttpMethod",message:"Remoting method must be one of GET or POST"});return}dwr.engine._httpMethod=A};dwr.engine.setOrdered=function(A){dwr.engine._ordered=A};dwr.engine.setAsync=function(A){dwr.engine._async=A};dwr.engine.setActiveReverseAjax=function(A){if(A){if(dwr.engine._activeReverseAjax){return}dwr.engine._activeReverseAjax=true;dwr.engine._poll()}else{if(dwr.engine._activeReverseAjax&&dwr.engine._pollReq){dwr.engine._pollReq.abort()}dwr.engine._activeReverseAjax=false}};dwr.engine.defaultErrorHandler=function(B,A){dwr.engine._debug("Error: "+A.name+", "+A.message,true);if(B==null||B==""){alert("A server error has occured.")}else{if(B.indexOf("0x80040111")!=-1){dwr.engine._debug(B)}else{alert(B)}}};dwr.engine.defaultWarningHandler=function(B,A){dwr.engine._debug(B)};dwr.engine.beginBatch=function(){if(dwr.engine._batch){dwr.engine._handleError(null,{name:"dwr.engine.batchBegun",message:"Batch already begun"});return}dwr.engine._batch=dwr.engine._createBatch()};dwr.engine.endBatch=function(A){var B=dwr.engine._batch;if(B==null){dwr.engine._handleError(null,{name:"dwr.engine.batchNotBegun",message:"No batch in progress"});return}dwr.engine._batch=null;if(B.map.callCount==0){return}if(A){dwr.engine._mergeBatch(B,A)}if(dwr.engine._ordered&&dwr.engine._batchesLength!=0){dwr.engine._batchQueue[dwr.engine._batchQueue.length]=B}else{dwr.engine._sendData(B)}};dwr.engine.setPollMethod=function(A){dwr.engine.setPollType(A)};dwr.engine.setMethod=function(A){dwr.engine.setRpcType(A)};dwr.engine.setVerb=function(A){dwr.engine.setHttpMethod(A)};dwr.engine.setPollType=function(){dwr.engine._debug("Manually setting the Poll Type is not supported")};dwr.engine._origScriptSessionId="A048479DFECCD65B6386BFB3E3AEC0B9";dwr.engine._sessionCookieName="JSESSIONID";dwr.engine._allowGetForSafariButMakeForgeryEasier="true";dwr.engine._scriptTagProtection="throw 'allowScriptTagRemoting is false.';";dwr.engine._defaultPath="/dwr";dwr.engine._pollWithXhr="false";dwr.engine._scriptSessionId=null;dwr.engine._getScriptSessionId=function(){if(dwr.engine._scriptSessionId==null){dwr.engine._scriptSessionId=dwr.engine._origScriptSessionId+Math.floor(Math.random()*1000)}return dwr.engine._scriptSessionId};dwr.engine._errorHandler=dwr.engine.defaultErrorHandler;dwr.engine._warningHandler=dwr.engine.defaultWarningHandler;dwr.engine._preHook=null;dwr.engine._postHook=null;dwr.engine._batches={};dwr.engine._batchesLength=0;dwr.engine._batchQueue=[];dwr.engine._rpcType=dwr.engine.XMLHttpRequest;dwr.engine._httpMethod="POST";dwr.engine._ordered=false;dwr.engine._async=true;dwr.engine._batch=null;dwr.engine._timeout=0;dwr.engine._DOMDocument=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","Msxml2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"];dwr.engine._XMLHTTP=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];dwr.engine._activeReverseAjax=false;dwr.engine._outstandingIFrames=[];dwr.engine._pollReq=null;dwr.engine._pollCometInterval=200;dwr.engine._pollRetries=0;dwr.engine._maxPollRetries=0;dwr.engine._textHtmlHandler=null;dwr.engine._headers=null;dwr.engine._parameters=null;dwr.engine._postSeperator="\n";dwr.engine._defaultInterceptor=function(A){return A};dwr.engine._urlRewriteHandler=dwr.engine._defaultInterceptor;dwr.engine._contentRewriteHandler=dwr.engine._defaultInterceptor;dwr.engine._replyRewriteHandler=dwr.engine._defaultInterceptor;dwr.engine._nextBatchId=0;dwr.engine._propnames=["rpcType","httpMethod","async","timeout","errorHandler","warningHandler","textHtmlHandler"];dwr.engine._partialResponseNo=0;dwr.engine._partialResponseYes=1;dwr.engine._partialResponseFlush=2;dwr.engine._unloading=false;dwr.engine._execute=function(I,D,J,A){var E=false;if(dwr.engine._batch==null){dwr.engine.beginBatch();E=true}var G=dwr.engine._batch;var B=[];for(var F=0;F0||dwr.engine._pollReq){setTimeout(dwr.engine._checkCometPoll,dwr.engine._pollCometInterval)}};dwr.engine._getTextFromCometIFrame=function(C){var A=C.contentWindow.document.body;if(A==null){return""}var B=A.innerHTML;if(B.indexOf("
")==0||B.indexOf("
")==0){B=B.substring(5,B.length-7)}return B};dwr.engine._processCometResponse=function(E,B){if(B.charsProcessed==E.length){return}if(E.length==0){B.charsProcessed=0;return}var A=E.indexOf("//#DWR-START#",B.charsProcessed);if(A==-1){B.charsProcessed=E.length;return}var D=E.lastIndexOf("//#DWR-END#");if(D==-1){return}if(E.charCodeAt(D+11)==13&&E.charCodeAt(D+12)==10){B.charsProcessed=D+13}else{B.charsProcessed=D+11}var C=E.substring(A+13,D);dwr.engine._receivedBatch=B;dwr.engine._eval(C);dwr.engine._receivedBatch=null};dwr.engine._sendData=function(I){I.map.batchId=dwr.engine._nextBatchId;dwr.engine._nextBatchId++;dwr.engine._batches[I.map.batchId]=I;dwr.engine._batchesLength++;I.completed=false;for(var H=0;H=0&&navigator.userAgent.indexOf("MSIE")>=0)){I.req=dwr.engine._newActiveXObject(dwr.engine._XMLHTTP)}}}var C,B;if(I.req){if(I.async){I.req.onreadystatechange=function(){if(typeof dwr!="undefined"){dwr.engine._stateChange(I)}}}if(I.isPoll){dwr.engine._pollReq=I.req;if(!(document.all&&!window.opera)){I.req.batch=I}}var A=navigator.userAgent.indexOf("Safari/");if(A>=0){var F=navigator.userAgent.substring(A+7);if(parseInt(F,10)<400){if(dwr.engine._allowGetForSafariButMakeForgeryEasier=="true"){I.httpMethod="GET"}else{dwr.engine._handleWarning(I,{name:"dwr.engine.oldSafari",message:"Safari GET support disabled. See getahead.org/dwr/server/servlet and allowGetForSafariButMakeForgeryEasier."})}}}I.mode=I.isPoll?dwr.engine._ModePlainPoll:dwr.engine._ModePlainCall;B=dwr.engine._constructRequest(I);try{I.req.open(I.httpMethod,B.url,I.async);try{for(C in I.headers){var G=I.headers[C];if(typeof G=="string"){I.req.setRequestHeader(C,G)}}if(!I.headers["Content-Type"]){I.req.setRequestHeader("Content-Type","text/plain")}}catch(J){dwr.engine._handleWarning(I,J)}I.req.send(B.body);if(!I.async){dwr.engine._stateChange(I)}}catch(J){dwr.engine._handleError(I,J)}}else{if(I.rpcType!=dwr.engine.ScriptTag){var E=I.isPoll?"dwr-if-poll-"+I.map.batchId:"dwr-if-"+I.map.batchId;I.div=document.createElement("div");document.body.appendChild(I.div);I.div.innerHTML="";I.document=document;I.iframe=I.document.getElementById(E);I.iframe.batch=I;I.mode=I.isPoll?dwr.engine._ModeHtmlPoll:dwr.engine._ModeHtmlCall;if(I.isPoll){dwr.engine._outstandingIFrames.push(I.iframe)}B=dwr.engine._constructRequest(I);if(I.httpMethod=="GET"){I.iframe.setAttribute("src",B.url)}else{I.form=I.document.createElement("form");I.form.setAttribute("id","dwr-form");I.form.setAttribute("action",B.url);I.form.setAttribute("style","display:none;");I.form.setAttribute("target",E);I.form.target=E;I.form.setAttribute("method",I.httpMethod);for(C in I.map){var G=I.map[C];if(typeof G!="function"){var D=I.document.createElement("input");D.setAttribute("type","hidden");D.setAttribute("name",C);D.setAttribute("value",G);I.form.appendChild(D)}}I.document.body.appendChild(I.form);I.form.submit()}}else{I.httpMethod="GET";I.mode=I.isPoll?dwr.engine._ModePlainPoll:dwr.engine._ModePlainCall;B=dwr.engine._constructRequest(I);I.script=document.createElement("script");I.script.id="dwr-st-"+I.map["c0-id"];I.script.src=B.url;document.body.appendChild(I.script)}}};dwr.engine._ModePlainCall="/call/plaincall/";dwr.engine._ModeHtmlCall="/call/htmlcall/";dwr.engine._ModePlainPoll="/call/plainpoll/";dwr.engine._ModeHtmlPoll="/call/htmlpoll/";dwr.engine._constructRequest=function(D){var A={url:D.path+D.mode,body:null};if(D.isPoll==true){A.url+="ReverseAjax.dwr"}else{if(D.map.callCount==1){A.url+=D.map["c0-scriptName"]+"."+D.map["c0-methodName"]+".dwr"}else{A.url+="Multiple."+D.map.callCount+".dwr"}}var E=location.href.match(/jsessionid=([^?]+)/);if(E!=null){A.url+=";jsessionid="+E[1]}var B;if(D.httpMethod=="GET"){D.map.callCount=""+D.map.callCount;A.url+="?";for(B in D.map){if(typeof D.map[B]!="function"){A.url+=encodeURIComponent(B)+"="+encodeURIComponent(D.map[B])+"&"}}A.url=A.url.substring(0,A.url.length-1)}else{A.body="";if(document.all&&!window.opera){var C=[];for(B in D.map){if(typeof D.map[B]!="function"){C.push(B+"="+D.map[B]+dwr.engine._postSeperator)}}A.body=C.join("")}else{for(B in D.map){if(typeof D.map[B]!="function"){A.body+=B+"="+D.map[B]+dwr.engine._postSeperator}}}A.body=dwr.engine._contentRewriteHandler(A.body)}A.url=dwr.engine._urlRewriteHandler(A.url);return A};dwr.engine._stateChange=function(F){var E;if(F.completed){dwr.engine._debug("Error: _stateChange() with batch.completed");return}var C=F.req;try{if(C.readyState!=4){return}}catch(D){dwr.engine._handleWarning(F,D);dwr.engine._clearUp(F);return}if(dwr.engine._unloading){dwr.engine._debug("Ignoring reply from server as page is unloading.");return}try{var A=C.responseText;A=dwr.engine._replyRewriteHandler(A);var G=C.status;if(A==null||A==""){dwr.engine._handleWarning(F,{name:"dwr.engine.missingData",message:"No data received from server"})}else{if(G!=200){dwr.engine._handleError(F,{name:"dwr.engine.http."+G,message:C.statusText})}else{var B=C.getResponseHeader("Content-Type");if(!B.match(/^text\/plain/)&&!B.match(/^text\/javascript/)){if(B.match(/^text\/html/)&&typeof F.textHtmlHandler=="function"){F.textHtmlHandler({status:G,responseText:A,contentType:B})}else{dwr.engine._handleWarning(F,{name:"dwr.engine.invalidMimeType",message:"Invalid content type: '"+B+"'"})}}else{if(F.isPoll&&F.map.partialResponse==dwr.engine._partialResponseYes){dwr.engine._processCometResponse(A,F)}else{if(A.search("//#DWR")==-1){dwr.engine._handleWarning(F,{name:"dwr.engine.invalidReply",message:"Invalid reply from server"})}else{E=A}}}}}}catch(D){dwr.engine._handleWarning(F,D)}dwr.engine._callPostHooks(F);dwr.engine._receivedBatch=F;if(E!=null){E=E.replace(dwr.engine._scriptTagProtection,"")}dwr.engine._eval(E);dwr.engine._receivedBatch=null;dwr.engine._validateBatch(F);if(!F.completed){dwr.engine._clearUp(F)}};dwr.engine._validateBatch=function(B){if(!B.completed){for(var A=0;A"+B.innerHTML;if(E.length>2048){E=E.substring(0,2048)}B.innerHTML=E}}};if(dwr==null){var dwr={}}if(dwr.util==null){dwr.util={}}if(DWRUtil==null){var DWRUtil=dwr.util}dwr.util._escapeHtml=true;dwr.util.setEscapeHtml=function(A){dwr.util._escapeHtml=A};dwr.util._shouldEscapeHtml=function(A){if(A&&A.escapeHtml!=null){return A.escapeHtml}return dwr.util._escapeHtml};dwr.util.escapeHtml=function(A){return A.replace(/&/g,"&").replace(//g,">")};dwr.util.unescapeHtml=function(A){return A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")};dwr.util.replaceXmlCharacters=function(A){A=A.replace("&","+");A=A.replace("<","\u2039");A=A.replace(">","\u203A");A=A.replace("'","\u2018");A=A.replace('"',"\u201C");return A};dwr.util.containsXssRiskyCharacters=function(A){return(A.indexOf("&")!=-1||A.indexOf("<")!=-1||A.indexOf(">")!=-1||A.indexOf("'")!=-1||A.indexOf('"')!=-1)};dwr.util.onReturn=function(B,A){if(!B){B=window.event}if(B&&B.keyCode&&B.keyCode==13){A()}};dwr.util.selectRange=function(D,C,B){D=dwr.util._getElementById(D,"selectRange()");if(D==null){return}if(D.setSelectionRange){D.setSelectionRange(C,B)}else{if(D.createTextRange){var A=D.createTextRange();A.moveStart("character",C);A.moveEnd("character",B-D.value.length);A.select()}}D.focus()};if(document.getElementById){dwr.util.byId=function(){var B=new Array();for(var A=0;AS.shortStringMaxLength){P=P.substring(0,S.shortStringMaxLength-3)+"..."}if(S.escapeHtml){var O=P.split("\n");for(var R=0;R0){K="[...]"}else{K="[]"}}else{var X=[];X.push("[");var M=0;for(var R=0;R0){X.push(", ")}if(V==1){if(M==S.oneLineMaxItems){X.push("...");break}}else{X.push(S.lineTerminator+G(L+1,S))}if(R!=M){X.push(R);X.push(":")}X.push(H(T,V-1,L+1,S));M++}if(V>1){X.push(S.lineTerminator+G(L,S))}X.push("]");K=X.join("")}}else{if(dwr.util._isObject(N)&&!dwr.util._isDate(N)){if(V==0){K=dwr.util._detailedTypeOf(N)}else{var X=[];if(dwr.util._detailedTypeOf(N)!="Object"){X.push(dwr.util._detailedTypeOf(N));if(typeof N.valueOf()!="object"){X.push(":");X.push(H(N.valueOf(),1,L,S))}X.push(" ")}X.push("{");var U=dwr.util._isHTMLElement(N);var M=0;for(var J in N){var W=N[J];if(U){if(!W){continue}if(typeof W=="function"){continue}if(E[J]){continue}if(J.toUpperCase()==J){continue}}if(M>0){X.push(", ")}if(V==1){if(M==S.oneLineMaxItems){X.push("...");break}}else{X.push(S.lineTerminator+G(L+1,S))}X.push(J.length>S.propertyNameMaxLength?J.substring(0,S.propertyNameMaxLength-3)+"...":J);X.push(":");X.push(H(W,V-1,L+1,S));M++}if(V>1&&M>0){X.push(S.lineTerminator+G(L,S))}X.push("}");K=X.join("")}}else{K=""+N}}}}return K}catch(Q){return(Q.message?Q.message:""+Q)}}function G(K,M){var L=[];L.push(M.baseIndent);for(var J=0;J=1){H=E.item(0)}}if(H==null){dwr.util._debug("setValue() can't find an element with id/name: "+G+".");return}dwr.util.highlight(H,C);if(dwr.util._isHTMLElement(H,"select")){if(H.type=="select-multiple"&&dwr.util._isArray(B)){dwr.util._selectListItems(H,B)}else{dwr.util._selectListItem(H,B)}return}if(dwr.util._isHTMLElement(H,"input")){if(H.type=="radio"||H.type=="checkbox"){if(E&&E.length>=1){for(var F=0;F=1){J=H.item(0)}}if(J==null){dwr.util._debug("getValue() can't find an element with id/name: "+I+".");return""}if(dwr.util._isHTMLElement(J,"select")){if(J.type=="select-multiple"){var A=new Array();for(var D=0;D=1){for(var D=0;D=1){var A=[];for(var D=0;D0&&dwr.util._isObject(G[0])){for(var A=0;A0&&dwr.util._isObject(G[D][0])){dwr.util._setValuesRecursive(G[D],E,B-1,C)}else{if(typeof G[D]=="function"){}else{if(dwr.util.byId(E)!=null||document.getElementsByName(E).length>=1){dwr.util.setValue(E,G[D],C)}}}}}}};dwr.util.getValues=function(D,C){if(typeof D=="string"||dwr.util._isHTMLElement(D)){return dwr.util.getFormValues(D)}else{var A="";var B=100;if(C!=null&&C.prefix){A=C.prefix}if(C!=null&&C.idPrefix){A=C.idPrefix}if(C!=null&&"depth" in C){B=C.depth}dwr.util._getValuesRecursive(D,A,B,C);return D}};dwr.util.getFormValues=function(A){var F=null;if(typeof A=="string"){F=document.forms[A];if(F==null){F=dwr.util.byId(A)}}else{if(dwr.util._isHTMLElement(A)){F=A}}if(F!=null){if(F.elements==null){alert("getFormValues() requires an object or reference to a form element.");return null}var E={};var C;var D;for(var B=0;B0&&dwr.util._isObject(G[0])){for(var A=0;A0&&dwr.util._isObject(G[D][0])){dwr.util._getValuesRecursive(G[D],E,B-1,C)}else{if(typeof G[D]=="function"){}else{if(dwr.util.byId(E)!=null||document.getElementsByName(E).length>=1){G[D]=dwr.util.getValue(E)}}}}}}};dwr.util.addOptions=function(O,E){O=dwr.util._getElementById(O,"addOptions()");if(O==null){return}var I=dwr.util._isHTMLElement(O,"select");var H=dwr.util._isHTMLElement(O,["ul","ol"]);if(!I&&!H){dwr.util._debug("addOptions() can only be used with select/ul/ol elements. Attempt to use: "+dwr.util._detailedTypeOf(O));return}if(E==null){return}var L=arguments.length;var M={};var J=arguments[L-1];if(L>2&&dwr.util._isObject(J)){M=J;L--}var D=null;if(L>=3){D=arguments[2]}var B=null;if(L>=4){B=arguments[3]}if(!M.optionCreator&&I){M.optionCreator=dwr.util._defaultOptionCreator}if(!M.optionCreator&&H){M.optionCreator=dwr.util._defaultListItemCreator}M.document=O.ownerDocument;var C,G,F;if(dwr.util._isArray(E)){for(var K=0;K0){C.removeChild(C.firstChild)}}};dwr.util.addRows=function(G,B,A,D){G=dwr.util._getElementById(G,"addRows()");if(G==null){return}if(!dwr.util._isHTMLElement(G,["table","tbody","thead","tfoot"])){dwr.util._debug("addRows() can only be used with table, tbody, thead and tfoot elements. Attempt to use: "+dwr.util._detailedTypeOf(G));return}if(!D){D={}}if(!D.rowCreator){D.rowCreator=dwr.util._defaultRowCreator}if(!D.cellCreator){D.cellCreator=dwr.util._defaultCellCreator}D.document=G.ownerDocument;var C,F;if(dwr.util._isArray(B)){for(F=0;FE.length){if(H.id.substr(0,E.length)==E){var B=H.id.charAt(E.length);if(B=="."||B=="["){G=A+H.id.substr(E.length)}}}}if(G){H.setAttribute("id",G)}else{H.removeAttribute("id")}}var C=H.childNodes;for(var D=0;D0&&dwr.util._isObject(D[0])){var B=E+"."+prop;var A=dwr.util.byId(B);if(A!=null){dwr.util._cloneNodeForValuesRecursive(A,D,B,C)}}}else{if(dwr.util._isObject(D)){dwr.util._cloneSubArrays(D,E+"."+prop,C)}}}};dwr.util._getElementById=function(C,B){var A=C;C=dwr.util.byId(C);if(C==null){dwr.util._debug(B+" can't find an element with id: "+A+".")}return C};dwr.util._isHTMLElement=function(E,D){if(E==null||typeof E!="object"||E.nodeName==null){return false}if(D!=null){var A=E.nodeName.toLowerCase();if(typeof D=="string"){return A==D.toLowerCase()}if(dwr.util._isArray(D)){var C=false;for(var B=0;B"+B.innerHTML;if(E.length>2048){E=E.substring(0,2048)}B.innerHTML=E}}};function isInt(D,C){D=trim(D);if(D==null||trim(D)==""){return C}if(trim(D)=="0"){return false}var E=D.substring(0,1);if(E=="0"&&trim(D)!="0"){return false}for(var A=0;A="0"&&B<="9")){return false}}return true}function isFloat(I,A,H){if(I==null||trim(I)==""){return A}var B=trim(I);if(B.substring(0,1)=="."){return false}var D=0;for(var F=0;F="0"&&C<="9")||C==".")){return false}if(C=="."){D++}if(D>1){return false}}if(H!=null&&H>0){if(B.indexOf(".")!=-1&&B.length-(B.indexOf(".")+1)>H){return false}}var E=I.substring(0,1);var G=I.substring(1,2);if(E==0&&G!="."){for(var F=0;F="0"&&B<="9")){return false}}return true}function isNull(A){if(A==null||trim(A)==""){return true}return false}function isDate(H,A){if(H==null){return A}if(trim(H).length!=10){return false}var C=H.substring(0,4);if(parseInt(C)<1900){return false}tempStr=H;var D=tempStr.indexOf("-");if(D>-1){var B=tempStr.substring(0,D)}tempStr=tempStr.substring(D+1,tempStr.length);D=tempStr.indexOf("-");if(D>-1){var F=tempStr.substring(0,D)}strDay=tempStr.substring(D+1,tempStr.length);if(parseInt(F)>12&&parseInt(F)<1){return false}if((parseInt(F)==4||parseInt(F)==6||parseInt(F)==9||parseInt(F)==11)&&parseInt(strDay)==31){return false}if(parseInt(F)==2){var E=(parseInt(B)%4==0&&(parseInt(B)%100!=0||parseInt(B)%400==0));if(strDay>29||(strDay==29&&!E)){return false}}var G=/^[0-9]{4}\-(([0][1-9])||([1][012]))\-(([0][1-9])||([12][0-9])||([3][01]))$/;if(!H.match(G)){return false}return true}function isEmail(C,B){if(C==null||trim(C)==""){return B}var A=/^[-a-zA-Z0-9_\.]+\@([0-9A-Za-z_-]+)+(\.[0-9A-Za-z_-]{1,})+$/;if(C.match(A)){return true}return false}function isTelNo(C,B){if(C==null||trim(C)==""){return B}var C=trim(C);var A=/^[\-0-9+()\/]{1,32}$/;if(A.test(C)){return true}return false}function isASCII(C,B){if(C==null||trim(C)==""){return B}var C=trim(C);for(var A=0;A="A"&&D<="z")||(D>="0"&&D<="9"))){return false}}return true}function hasSpecSymbol(A){return !/^[a-zA-Z0-90-9\u4E00-\u9FA5#\/\-&@\(\)\.$\*· ]*$/.test(A)}function specialCharactersCheck(A){return !/^[^\\&*^%<>/]*$/.test(A)}function validateObject(B){var C=new Array("&","/","*","^","'","%","<",">","\\","\\\\",'"');for(var A=0;A=0){return false}}return true}function FullSpace(C){var A=/\ /;var B=A.test(C);if(B==true){return false}return true}function trim(A,B){A=""+A;if(B=="l"||B=="L"){RegularExp=/^\s+/gi;return A.replace(RegularExp,"")}else{if(B=="r"||B=="R"){RegularExp=/\s+$/gi;return A.replace(RegularExp,"")}else{RegularExp=/^\s+|\s+$/gi;return A.replace(RegularExp,"")}}}function strlen(B){B=trim(B);var A=/\r\n/g;var C=B.replace(A,"");return C.length}function concatDate(G,C,F){if(G==null||trim(G=="")){return false}if(C==null||trim(C=="")){return false}if(F==null||trim(F=="")){return false}var I=trim(G);var H=trim(C);var K=trim(F);var E="";var D=parseInt(I);var B=parseInt(H);var A=parseInt(K);if(B<10){var J="0"+D}else{var J=""+D}if(A<10){var J="0"+D}else{var J=""+D}E+=D;E+=month1;E+=day1;return E}function equals(C,A,B){if(C==null&&A==null){return true}if(C==A){return true}return false}function equals(D,B,C,A){if(D.lengthA){return false}if(D==B){return true}return false}function compareFloat(D,A){D=trim(D);A=trim(A);var C=parseFloat(D);var B=parseFloat(A);if(CB){return -1}else{if(C==C){return 0}}}}function keyEnter(D,E){var C=window.event.srcElement;var B=window.event.keyCode;if(B!=D){return true}if(E==null){var A=0;while(C!=C.form.elements[A]){A++}if(!C.form.elements[A+1].disabled){C.form.elements[A+1].focus()}if(C.form.elements[A+1].type=="text"||C.form.elements[A+1].type=="textarea"||C.form.elements[A+1].type=="checkbox"){C.form.elements[A+1].select()}else{do{A++}while(C.form.elements[A+1].disabled);C.form.elements[A+1].focus();if(C.form.elements[A+1].type=="text"||C.form.elements[A+1].type=="textarea"||C.form.elements[A+1].type=="checkbox"){C.form.elements[A+1].select()}}}else{E.focus();if(E.type=="text"||E.type=="textarea"||E.type=="checkbox"){E.select()}}return false}function test_name(A){var B=/^[_\-a-zA-Z0-9]{6,20}$/;if(B.test(A)){return true}return false}function getStrLen(D){if(D==null){return 0}D=trim(D);var C=/\r\n/g;var F=D.replace(C,"");var A=0;for(var B=0;B0){B=B+getLineNum(G,A)}if(B==0){B=1}return B}function getLineNum(C,H){if(C==null){return 0}var F=1;var A=0;var D=1;for(var I=0;IH*F){if(D==2){A++}}if(A==H*F&&C.charAt(I+1)<="\x7f"&&C.charAt(I+1)!=""){var B="false";for(var G=H*(F-1);G<(H*F-1);G++){if(C.charAt(G)>"\x80"){B="true";break}}if(B=="true"){var K=A;for(var J=I;C.charAt(J-1)<="\x7f"&&K>(H*(F-1));J--){K--}A=A+(H*F-K)+1}}F=Math.ceil(A/H)}return F}function covertDate(B){tempStr=B;var A=tempStr.indexOf("-");if(A>-1){var C=tempStr.substring(0,A)}tempStr=tempStr.substring(A+1,tempStr.length);A=tempStr.indexOf("-");if(A>-1){var D=tempStr.substring(0,A)}strDay=tempStr.substring(A+1,tempStr.length);tempStr=tempStr.substring(A+1,tempStr.length);var E=new Date(C,D,strDay);return E}function compareDate(C,D){if(trim(C)==""||trim(D)==""){return true}var B=covertDate(C);var A=covertDate(D);if(B.getTime()>A.getTime()){return false}else{return true}}function getLocation(D){var C=new Date();var B=D+"";var A=B.indexOf("?");if(A>-1){D=D+"&time="+C.getTime()}else{D=D+"?time="+C.getTime()}return D}var formID;function openscriphtml(A){formID=A;if(navigator.appName!="Microsoft Internet Explorer"){alert("此功能仅支持IE用户")}else{newwin=window.open("../htmleditor/html/editor.html","","width=640,height=450,status=1");newwin.focus()}}function printPartTextInLongText(H,A){var E=H.value;var D=/<[a-z]*[A-Z]*(\s[a-z]*[A-Z]*\=((\"{0,1}([a-zA-Z\-\=\:\;\{\}\/\.\!\@\_\^\%\&\*\$\#\?\'\"\,\[\]]|[0-9]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0]|[\uFF0C\u3002])\"{0,1})*|(\"{0,1}\#\w{6}\"{0,1})*))*\/?>|<\/[a-z]*[A-Z]*>/g;var B=/\s/g;var J=/ /g;var I=E.replace(D,"");var F=I.replace(B,"");var G=F.replace(J,"");if(G.length>A){var C=G.substr(0,A)+"...";document.write(C)}else{document.write(G)}}function printPartText(F,A){var D=F;var C=/<[a-z]*[A-Z]*(\s[a-z]*[A-Z]*\=((\"{0,1}([a-zA-Z]|[0-9]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0]|[\uFF0C\u3002])\"{0,1})*|(\"{0,1}\#\w{6}\"{0,1})*))*\/?>|<\/[a-z]*[A-Z]*>/g;var H=/\s/g;var J=/ /g;var I=D.replace(C,"");var B=I.replace(H,"");var E=B.replace(J,"");if(E.length>A){var G=E.substr(0,A)+"...";document.write(G)}else{document.write(E)}}function SetHome(){var A=new String(window.location);var C=A.indexOf("?");var B;if(C==-1){B=A}else{B=A.substring(0,C)}document.all.SetHomeA.style.behavior="url(#default#homepage)";document.all.SetHomeA.setHomePage(B);return false}var Num;var ObjReceiveImgPath;var ObjReceiveImgName;var ObjReceiveTextName;function openscripupload(D,B,C,A){Num=D;ObjReceiveImgName=C;ObjReceiveImgPath=B;ObjReceiveTextName=A;if(navigator.appName!="Microsoft Internet Explorer"){alert("此功能仅支持IE用户")}else{newwin=window.open("/newEbiz1/EbizPortalFG/portal/html/ImageRepositoryMaint.html","","width=550,height=450,status=1,scrollbars=yes");newwin.focus()}}var Num;var ObjReceiveImgPath;var ObjReceiveTextName;function openscripuploadflash(C,B,A){Num=C;ObjReceiveTextName=A;ObjReceiveImgPath=B;if(navigator.appName!="Microsoft Internet Explorer"){alert("此功能仅支持IE用户")}else{newwin=window.open("/newEbiz1/EbizPortalFG/portal/html/FlashRepositoryMaint.html","","width=550,height=450,status=1,scrollbars=yes");newwin.focus()}}function compare(A,C){var B="^"+C;if(A.match(B)){return true}return false}function IsChineseCharacters(A){var B=/^([\u4E00-\u9FA5])*$/;if(B.test(A)){return true}else{return false}}function IsChinese(A){var B=/^([\u4E00-\u9FA5]|[\uFE30-\uFFA0])*$/;if(B.test(A)){return true}else{return false}}function isCnAndEnAndNumber(A){var B=/^([\u4E00-\u9FA5]|[\uFE30-\uFFA0]|[_\-a-zA-Z0-9])*$/;if(B.test(A)){return true}else{return false}}function isMobileNumber(A){var B=/^([0-9]|[-]|[+]){11,22}$/;if(B.test(A)){return true}else{return false}}function isMobile(A){var B=/^1[0-9]{2}[0-9]{8}$/;if(!B.test(A)){return false}else{return true}}function hasSpecialChar(A){return !/^[\u4E00-\u9FA5a-zA-Z\d\(\)\/#\-\.&%\*、 ]+$/.test(A)}function isfloat_8_2(B,A){B=trim(B);if(B==null||trim(B)==""){return A}return/^(0|[1-9]\d{0,7})(\.\d{1,2})?$/.test(B)}function exactdiv(arg1,arg2){var t1=0,t2=0,r1,r2;try{t1=arg1.toString().split(".")[1].length}catch(e){}try{t2=arg2.toString().split(".")[1].length}catch(e){}with(Math){r1=Number(arg1.toString().replace(".",""));r2=Number(arg2.toString().replace(".",""));return(r1/r2)*pow(10,t2-t1)}}function exactmul(C,F){var D=0,A=C.toString(),B=F.toString();try{D+=A.split(".")[1].length}catch(E){}try{D+=B.split(".")[1].length}catch(E){}return Number(A.replace(".",""))*Number(B.replace(".",""))/Math.pow(10,D)}function exactAdd(C,D){var A,E,F;try{A=C.toString().split(".")[1].length}catch(B){A=0}try{E=D.toString().split(".")[1].length}catch(B){E=0}F=Math.pow(10,Math.max(A,E));return(C*F+D*F)/F}function getRound(D,E){var B=Math.pow(10,E);D*=B;D=Math.round(D);var A=D/B;var C=""+A;for(var F=0;F=0;A--){if(B.indexOf(C.charAt(A))===-1){C=C.substring(0,A+1);break}}return B.indexOf(C.charAt(0))===-1?C:""};function css(A,C){for(var B in C){A.style[B]=C[B]}}function combobox(A){if(typeof A=="string"){A=document.getElementById(A)}if(!A){return}var B=document.createElement("div");var D=document.createElement("input");var C=document.createElement("ul");D.type="text";D.readOnly="true";css(B,{width:A.offsetWidth+"px",display:"inline",position:"relative",height:A.offsetHeight});css(D,{width:A.offsetWidth+"px",lineHeight:"18px",background:"url(/public/images/common/combobox.bmp) no-repeat top right"});css(C,{width:A.offsetWidth+"px",display:"none",background:"#fff",position:"absolute",top:A.offsetHeight+"px",left:"0px",padding:"0px",margin:"0px",border:"1px solid"});A.style.display="none";A.parentNode.insertBefore(B,A);B.appendChild(D);B.appendChild(C);buildCombobox(C,A,D);D.onfocus=function(E){C.style.display=""};D.onclick=function(E){if(E){E.stopPropagation();E.preventDefault()}else{window.event.cancelBubble=true,window.event.returnValue=false}};document.body.onclick=window.onclick=function(){for(var E=0,F;F=(window.dymCombox||[])[E];E++){F.style.display="none"}}}function buildCombobox(F,G,A){(window.dymCombox=window.dymCombox||[]).push(F);var B=true;for(var C=0,D;D=G.options[C];C++){var E=document.createElement("li");E.innerHTML=D.text;E.title=D.title||D.text;E.selectedIndex=C;E.nowrap=true;css(E,{"listStyle":"none","width":"100%","fontSize":"12px","height":"16px","lineHeight":"16px"});E.onclick=function(){G.selectedIndex=this.selectedIndex;A.value=this.innerHTML;A.title=this.title;F.style.display="none"};E.onmouseover=function(){css(this,{background:"#006",color:"white"})};E.onmouseout=function(){css(this,{background:"#fff",color:"black"})};F.appendChild(E);if(B||D.selected){B=false;A.value=D.text;A.title=D.title}}}function _getElementById(C,D,F){var B=document.getElementById(C);var A=null;function E(I,K,L){if(I==null||K==null||L==null){return null}for(var H=0;H1){U=C(R.items,L)}function S(W){var X=C(W);return R.globalNav?X:L.parent().find(W)}L.data("finder",S);var Q=S(R.prev),N=S(R.next),O=S(R.prevPage),D=S(R.nextPage);J.bind("onStart",function(X,W){var Z=Q.add(O);var Y=N.add(D)});J.bind("onBeforeSeek",function(W,a,X,d,b){if(X===undefined||C.isFunction(X)){X=R.speed}function Y(){if(b){b.call(V,a)}J.trigger("onSeek",[a])}if(T){if(R.effect=="fade"){var c=-d.position().left;U.fadeOut(function(){U.css({left:c});U.fadeIn(Y)})}else{U.animate({left:-d.position().left},X,R.easing,Y)}}else{if(R.effect=="fade"){var Z=-d.position().top;U.fadeOut(function(){U.css({top:Z});U.fadeIn(Y)})}else{U.animate({top:-d.position().top},X,R.easing,Y)}}B=V;F=a;J.trigger("onStart",[a])});C.extend(V,{getIndex:function(){return F},getClickIndex:function(){var W=V.getItems();return W.index(W.filter("."+R.activeClass))},getConf:function(){return R},getSize:function(){var X=V.getItems();var W=X.filter(R.line);if(K){if(!R.vertical){return X.index(W[0])}else{return W.size()}}return X.size()},getPageAmount:function(){return Math.ceil(this.getSize()/R.size)},getPageIndex:function(){return Math.ceil(F/R.size)},getNaviButtons:function(){return Q.add(N).add(O).add(D)},getRoot:function(){return L},getItemWrap:function(){return U},getItems:function(){return U.children(R.item)},getVisibleItems:function(){return V.getItems().slice(F,F+R.size)},seekTo:function(a,W,b){if(a<0){a=0}if(X===a){return V}if(C.isFunction(W)){b=W}var Z=V.getSize();var c,Y;if(K){c=V.getItems();Y=c.filter(R.line);if(!R.vertical){Z=c.index(Y[0])}else{Z=Y.size()}}if(a>Z-R.size){return R.loop?V.begin():this.end()}var d;if(K&&R.vertical){var X=c.index(Y[a-1])+1;d=V.getItems().eq(X)}else{d=V.getItems().eq(a)}if(!d.length){return V}J.trigger("onBeforeSeek",[a,W,d,b]);return V},move:function(W,Y,X){G=W>0;return this.seekTo(F+W,Y,X)},next:function(X,W){return this.move(1,X,W)},prev:function(X,W){return this.move(-1,X,W)},movePage:function(W,Z,Y){G=W>0;var a=R.size*W;var X=F%R.size;if(X>0){a+=(W>0?-X:R.size-X)}return this.move(a,Z,Y)},prevPage:function(X,W){return this.movePage(-1,X,W)},nextPage:function(X,W){return this.movePage(1,X,W)},setPage:function(Y,X,W){return this.seekTo(Y*R.size,X,W)},begin:function(X,W){G=false;return this.seekTo(0,X,W)},end:function(Y,X){G=true;var W=this.getSize()-R.size;return W>0?this.seekTo(W,Y,X):V},reload:function(){J.trigger("onReload");return V},focus:function(){B=V;return V},click:function(X){var a=V.getItems().eq(X),b=R.activeClass,W=R.size;if(X<0||X>=V.getSize()){return V}if(W==1){if(R.loop){return V.next()}if(X===0||X==V.getSize()-1){G=(G===undefined)?true:!G}return G===false?V.prev():V.next()}if(W==2){if(X==F){X--}V.getItems().removeClass(b);a.addClass(b);return V.seekTo(X,time,fn)}if(!a.hasClass(b)){V.getItems().removeClass(b);a.addClass(b);var Y=Math.floor(W/2);var Z=X-Y;if(Z>V.getSize()-W){Z=V.getSize()-W}if(Z!==X){return V.seekTo(Z)}}return V},bind:function(X,W){J.bind(X,W);return V},unbind:function(W){J.unbind(W);return V},isEbiz:function(){return K},getLines:function(){return M}});C.each("onBeforeSeek,onStart,onSeek,onReload".split(","),function(W,X){V[X]=function(Y){if(Y){return V.bind(X,Y)}}});Q.addClass(R.disabledClass).click(function(){V.prev()});N.click(function(){V.next()});D.click(function(){V.nextPage()});if(V.getSize()0){var X=U.index(Q[W-1]);if(Y-X-1O.getSize()-T.size;if(X<=0||c){var b=H+T.size+(c?-O.getLength():O.getLength());L(b);X=b+W}if(Z){S.removeClass(T.activeClass).eq(X+Math.floor(T.size/2)).addClass(T.activeClass)}if(X===H+T.size){return self}return O.seekTo(X,a,Y)},begin:function(X,W){return this.seekTo(T.size,X,W)},end:function(X,W){return this.seekTo(U.length,X,W)},click:function(W,Z,Y){if(!T.clickable){return self}if(T.size==1){return this.next()}var X=W-H,a=T.activeClass;X-=Math.floor(T.size/2);return this.move(X,Z,Y,true)},getIndex:function(){return H},setPage:function(Y,X,W){return this.seekTo(Y*T.size+T.size,X,W)},getPageAmount:function(){return Math.ceil(O.getLength()/T.size)},getPageIndex:function(){if(H<0){return this.getPageAmount()-1}if(H>=O.getLength()){return 0}var W=(H+T.size)/T.size-1;return W},getVisibleItems:function(){var W=H+T.size;return S.slice(W,W+T.size)},getLength:function(){var W;if(V){if(!T.vertical){W=G}else{W=P}}else{W=U.length}return W}});O.onStart(function(X,W){H=W-T.size;return false});O.getNaviButtons().removeClass(T.disabledClass)});return D.api?E:this}})(jQuery);(function(B){var A=B.tools.scrollable;A.plugins=A.plugins||{};A.plugins.autoscroll={version:"1.0.1",conf:{autoplay:true,interval:3000,autopause:true,steps:1,api:false}};B.fn.autoscroll=function(D){if(typeof D=="number"){D={interval:D}}var C=B.extend({},A.plugins.autoscroll.conf),E;B.extend(C,D);this.each(function(){var H=B(this).scrollable();if(H){E=H}var F,G,I=true;H.play=function(){if(F){return}I=false;F=setInterval(function(){H.move(C.steps)},C.interval);H.move(C.steps)};H.pause=function(){F=clearInterval(F)};H.stop=function(){H.pause();I=true};if(C.autopause){H.getRoot().add(H.getNaviButtons()).hover(function(){H.pause();clearInterval(G)},function(){if(!I){G=setTimeout(H.play,C.interval)}})}if(C.autoplay){setTimeout(H.play,C.interval)}});return C.api?E:this}})(jQuery);(function(A){var B=A.tools.scrollable;B.plugins=B.plugins||{};B.plugins.navigator={version:"1.0.2",conf:{navi:".scrollnavi",naviItem:null,activeClass:"active",indexed:false,api:false,idPrefix:null}};A.fn.navigator=function(C){var D=A.extend({},B.plugins.navigator.conf),E;if(typeof C=="string"){C={navi:C}}C=A.extend(D,C);this.each(function(){var G=A(this).scrollable(),L=G.getRoot(),J=L.data("finder").call(null,C.navi),F=null,H=G.getNaviButtons();if(G){E=G}G.getNaviButtons=function(){return H.add(J)};function K(){if(!J.children().length||J.data("navi")==G){J.empty();J.data("navi",G);for(var M=0;M"))}F=J.children().each(function(N){var O=A(this);O.click(function(P){G.setPage(N);return P.preventDefault()});if(C.indexed){O.text(N)}if(C.idPrefix){O.attr("id",C.idPrefix+N)}})}else{F=C.naviItem?J.find(C.naviItem):J.children();F.each(function(N){var O=A(this);O.click(function(P){G.setPage(N);return P.preventDefault()})})}F.eq(0).addClass(C.activeClass)}G.onStart(function(N,M){var O=C.activeClass;F.removeClass(O).eq(G.getPageIndex()).addClass(O)});G.onReload(function(){K()});K();var I=F.filter("[href="+location.hash+"]");if(I.length){G.move(F.index(I))}});return C.api?E:this}})(jQuery);(function(B){B.fn.wheel=function(E){return this[E?"bind":"trigger"]("wheel",E)};B.event.special.wheel={setup:function(){B.event.add(this,A,C,{})},teardown:function(){B.event.remove(this,A,C)}};var A=!B.browser.mozilla?"mousewheel":"DOMMouseScroll"+(B.browser.version<"1.9"?" mousemove":"");function C(E){switch(E.type){case"mousemove":return B.extend(E.data,{clientX:E.clientX,clientY:E.clientY,pageX:E.pageX,pageY:E.pageY});case"DOMMouseScroll":B.extend(E,E.data);E.delta=-E.detail/3;break;case"mousewheel":E.delta=E.wheelDelta/120;break}E.type="wheel";return B.event.handle.call(this,E,E.delta)}var D=B.tools.scrollable;D.plugins=D.plugins||{};D.plugins.mousewheel={version:"1.0.1",conf:{api:false,speed:50}};B.fn.mousewheel=function(G){var E=B.extend({},D.plugins.mousewheel.conf),F;if(typeof G=="number"){G={speed:G}}G=B.extend(E,G);this.each(function(){var H=B(this).scrollable();if(H){F=H}H.getRoot().wheel(function(I,J){H.move(J<0?1:-1,G.speed||50);return false})});return G.api?F:this}})(jQuery);(function(B){var A=B.tools.scrollable;A.plugins=A.plugins||{};A.plugins.liner={version:"1.0.0",conf:{api:false}};B.fn.liner=function(D){var C=B.extend({},A.plugins.liner.conf),E;B.extend(C,D);this.each(function(){var O=B(this).scrollable();var Z=B(this).parents(":not(:visible)");Z.css({"display":"block","filter":"alpha(opacity=0)","-moz-opacity":"0","opacity":"0","position":"absolute"});var X=O.getItemWrap();var U=O.getItems();if(!U||U.size()<=0){return}var P=B(this).position();var T=false;if(D.scrollDirection=="up"||D.scrollDirection=="down"){T=true}var N=0;var Q=U.not(".cloned");if(Q&&Q.size()>0){var F=B(Q[0]).position();if(!T){N=-(F.left-P.left)}else{N=-(F.top-P.top)}}var J;var Y=U.filter(".clearBoth");if(Y&&Y.length){var H;if(D.scrollDirection=="left"){var S=Q.filter(".clearBoth");var I=Q.index(S[0])-1;I=U.index(Q[I])+1;H=B(U[I]).position()}else{if(D.scrollDirection=="up"){H=Q.filter(":last");var I=U.index(H)+1;H=B(U[I]).position()}else{H=B(U[0]).position()}}if(!T){J=-(H.left-P.left)}else{J=-(H.top-P.top)}}else{var H=B(U).children(":last");if(!T){J=-H.position().left}else{J=-H.position().top}}var G=true;if(D.scrollDirection=="right"||D.scrollDirection=="down"){G=false}var K=D.speed||10;N=Math.abs(N).toFixed(0);J=Math.abs(J).toFixed(0);if(G){var W=Math.min(N,J);var M=Math.max(N,J);N=W;J=M}else{var W=Math.max(N,J);var M=Math.min(N,J);N=W;J=M}var R=this;!T?R.scrollLeft=N:R.scrollTop=N;Z.removeAttr("style");function L(){var a=!T?R.scrollLeft:R.scrollTop;if(a==J){!T?R.scrollLeft=N:R.scrollTop=N}else{G?a++:a--;!T?R.scrollLeft=a:R.scrollTop=a}}var V=setInterval(L,K);B(R).mouseover(function(){clearInterval(V)});B(R).mouseout(function(){V=setInterval(L,K)})});return C.api?E:this}})(jQuery);jQuery(document).ready(function(){jQuery("div.pages-flip a").click(function(){var A=jQuery(this).parent("div.pages-flip");A.find("a.current").removeClass("current");jQuery(this).toggleClass("current")})});(function(A){A.fn.jqueryzoom=function(C){var D={xzoom:200,yzoom:200,offset:10,position:"right",lens:1,preload:1};if(C){A.extend(D,C)}var B="";A(this).hover(function(){var F=A(this).offset().left;var H=A(this).offset().top;var J=A(this).children("img").get(0).offsetWidth;var E=A(this).children("img").get(0).offsetHeight;var K=this.offsetWidth;var I=this.offsetHeight;B=A(this).children("img").attr("alt");var G=A(this).children("img").attr("jqimg");A(this).children("img").attr("alt","");if(A("div.zoomdiv").get().length==0){A(this).after("
");A(this).append("
")}if(D.position=="right"){if(F+J+D.offset+D.xzoom>screen.width){leftpos=F-D.offset-D.xzoom}else{leftpos=F+J+D.offset}}else{leftpos=F-D.xzoom-D.offset;if(leftpos<0){leftpos=F+J+D.offset}}A("div.zoomdiv").width(D.xzoom);A("div.zoomdiv").height(D.yzoom);A("div.zoomdiv").show();if(!D.lens){A(this).css("cursor","crosshair")}A(document.body).mousemove(function(M){mouse=new MouseEvent(M);var O=A(".bigimg").get(0).offsetWidth;var N=A(".bigimg").get(0).offsetHeight;var P="x";var L="y";if(isNaN(L)|isNaN(P)){var L=(O/J);var P=(N/E);A("div.jqZoomPup").width((D.xzoom)/L);A("div.jqZoomPup").height((D.yzoom)/P);if((D.xzoom/O)>=1){A("div.jqZoomPup").width(parseInt(K))}if((D.yzoom/N)>=1){A("div.jqZoomPup").height(parseInt(I))}if(D.lens){A("div.jqZoomPup").css("visibility","visible")}}xpos=mouse.x-A("div.jqZoomPup").width()/2-F;ypos=mouse.y-A("div.jqZoomPup").height()/2-H;if(D.lens){xpos=(mouse.x-A("div.jqZoomPup").width()/2J+F)?(J-A("div.jqZoomPup").width()-2):xpos;ypos=(mouse.y-A("div.jqZoomPup").height()/2E+H)?(E-A("div.jqZoomPup").height()-2):ypos}if(D.lens){A("div.jqZoomPup").css({top:ypos,left:xpos})}scrolly=ypos;A("div.zoomdiv").get(0).scrollTop=scrolly*P;scrollx=xpos;A("div.zoomdiv").get(0).scrollLeft=(scrollx)*L})},function(){A(this).children("img").attr("alt",B);A(document.body).unbind("mousemove");if(D.lens){A("div.jqZoomPup").remove()}A("div.zoomdiv").remove()});count=0;if(D.preload){A("body").append("");A(this).each(function(){var E=A(this).children("img").attr("jqimg");var F=jQuery("div.jqPreload"+count+"").html();jQuery("div.jqPreload"+count+"").html(F+'')})}}})(jQuery);function MouseEvent(A){this.x=A.pageX;this.y=A.pageY}function tab(F){var G="#"+F;var E=$(G);if(E.size()==0){return}var B=E.children("div[class=containerContent]");if(B.size()>0){G+=">div[class=containerContent]"}else{var J=E.children("div[class^=border_]");if(J.size()>0){G+=" div[class=containerContent]:first"}}var H="click";$tabHead=$(G+">ul>li");var A=E.attr("class");if(A&&A.indexOf("_mouseover")!=-1){H="mouseover";$tabHead.click(function(K){K.preventDefault()})}$tabHead.bind(H,function(L){L.preventDefault();if(!$("#"+F).hasClass("tabboxId")){$("#"+F).addClass("tabboxId")}if(!$(this).parent().hasClass("tabhead")){$(this).parent().addClass("tabhead")}$(G+">ul>li").attr("class","MultiPageTab_link");$(this).attr("class","MultiPageTab_hover");var K=$(G+">ul>li").index($(this));$(G+">div[class!=clear]").attr("class","tabArea_b").eq(K).attr("class","tabArea_a")});var I="";var C=window.location.hash;if(C&&C.length>1){C=C.substring(1);if($("#"+F+" #"+C).length>0&&C.indexOf(F)>=0){var D=C.indexOf(F);I=C.substring(D+F.length+4)}}if(parseInt(I)&&I>1){$(G+">ul>li").eq(parseInt(I)-1).trigger(H)}else{$(G+">ul>li").eq(0).trigger(H)}}(function(M){var K=M.fn.remove,Q=M.browser.mozilla&&(parseFloat(M.browser.version)<1.9);M.ui={version:"1.6",plugin:{add:function(A,C,B){var D=M.ui[A].prototype;for(var E in B){D.plugins[E]=D.plugins[E]||[];D.plugins[E].push([C,B[E]])}},call:function(E,C,A){var B=E.plugins[C];if(!B){return}for(var D=0;D').addClass(C).css({position:"absolute",top:"-5000px",left:"-5000px",display:"block"}).appendTo("body");M.ui.cssCache[C]=!!((!(/auto|default/).test(A.css("cursor"))||(/^[1-9]/).test(A.css("height"))||(/^[1-9]/).test(A.css("width"))||!(/none/).test(A.css("backgroundImage"))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(A.css("backgroundColor"))));try{M("body").get(0).removeChild(A.get(0))}catch(B){}return M.ui.cssCache[C]},hasScroll:function(C,A){if(M(C).css("overflow")=="hidden"){return false}var D=(A&&A=="left")?"scrollLeft":"scrollTop",B=false;if(C[D]>0){return true}C[D]=1;B=(C[D]>0);C[D]=0;return B},isOverAxis:function(A,C,B){return(A>C)&&(A<(C+B))},isOver:function(C,A,B,E,F,D){return M.ui.isOverAxis(C,B,F)&&M.ui.isOverAxis(A,E,D)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(Q){var O=M.attr,R=M.fn.removeAttr,J="http://www.w3.org/2005/07/aaa",N=/^aria-/,L=/^wairole:/;M.attr=function(A,D,B){var C=B!==undefined;return(D=="role"?(C?O.call(this,A,D,"wairole:"+B):(O.apply(this,arguments)||"").replace(L,"")):(N.test(D)?(C?A.setAttributeNS(J,D.replace(N,"aaa:"),B):O.call(this,A,D.replace(N,"aaa:"))):O.apply(this,arguments)))};M.fn.removeAttr=function(A){return(N.test(A)?this.each(function(){this.removeAttributeNS(J,A.replace(N,""))}):R.call(this,A))}}M.fn.extend({remove:function(){M("*",this).add(this).each(function(){M(this).triggerHandler("remove")});return K.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var A;if((M.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){A=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(M.curCSS(this,"position",1))&&(/(auto|scroll)/).test(M.curCSS(this,"overflow",1)+M.curCSS(this,"overflow-y",1)+M.curCSS(this,"overflow-x",1))}).eq(0)}else{A=this.parents().filter(function(){return(/(auto|scroll)/).test(M.curCSS(this,"overflow",1)+M.curCSS(this,"overflow-y",1)+M.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!A.length?M(document):A}});M.extend(M.expr[":"],{data:function(A,B,C){return M.data(A,C[3])},tabbable:function(C,D,A){var B=C.nodeName.toLowerCase();function E(F){return !(M(F).is(":hidden")||M(F).parents(":hidden").length)}return(C.tabIndex>=0&&(("a"==B&&C.href)||(/input|select|textarea|button/.test(B)&&"hidden"!=C.type&&!C.disabled))&&E(C))}});function P(E,B,C,D){function A(H){var G=M[E][B][H]||[];return(typeof G=="string"?G.split(/,?\s+/):G)}var F=A("getter");if(D.length==1&&typeof D[0]=="string"){F=F.concat(A("getterSetter"))}return(M.inArray(C,F)!=-1)}M.widget=function(A,C){var B=A.split(".")[0];A=A.split(".")[1];M.fn[A]=function(F){var E=(typeof F=="string"),D=Array.prototype.slice.call(arguments,1);if(E&&F.substring(0,1)=="_"){return this}if(E&&P(B,A,F,D)){var G=M.data(this[0],A);return(G?G[F].apply(G,D):undefined)}return this.each(function(){var H=M.data(this,A);(!H&&!E&&M.data(this,A,new M[B][A](this,F)));(H&&E&&M.isFunction(H[F])&&H[F].apply(H,D))})};M[B]=M[B]||{};M[B][A]=function(E,D){var F=this;this.widgetName=A;this.widgetEventPrefix=M[B][A].eventPrefix||A;this.widgetBaseClass=B+"-"+A;this.options=M.extend({},M.widget.defaults,M[B][A].defaults,M.metadata&&M.metadata.get(E)[A],D);this.element=M(E).bind("setData."+A,function(I,H,G){return F._setData(H,G)}).bind("getData."+A,function(H,G){return F._getData(G)}).bind("remove",function(){return F.destroy()});this._init()};M[B][A].prototype=M.extend({},M.widget.prototype,C);M[B][A].getterSetter="option"};M.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName)},option:function(B,C){var A=B,D=this;if(typeof B=="string"){if(C===undefined){return this._getData(B)}A={};A[B]=C}M.each(A,function(E,F){D._setData(E,F)})},_getData:function(A){return this.options[A]},_setData:function(B,A){this.options[B]=A;if(B=="disabled"){this.element[A?"addClass":"removeClass"](this.widgetBaseClass+"-disabled")}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(A,B,C){var D=(A==this.widgetEventPrefix?A:this.widgetEventPrefix+A);B=B||M.event.fix({type:D,target:this.element[0]});return this.element.triggerHandler(D,[B,C],this.options[A])}};M.widget.defaults={disabled:false};M.ui.mouse={_mouseInit:function(){var A=this;this.element.bind("mousedown."+this.widgetName,function(B){return A._mouseDown(B)}).bind("click."+this.widgetName,function(B){if(A._preventClickEvent){A._preventClickEvent=false;return false}});if(M.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(M.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(B){(this._mouseStarted&&this._mouseUp(B));this._mouseDownEvent=B;var A=this,C=(B.which==1),D=(typeof this.options.cancel=="string"?M(B.target).parents().add(B.target).filter(this.options.cancel).length:false);if(!C||D||!this._mouseCapture(B)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){A.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(B)&&this._mouseDelayMet(B)){this._mouseStarted=(this._mouseStart(B)!==false);if(!this._mouseStarted){B.preventDefault();return true}}this._mouseMoveDelegate=function(E){return A._mouseMove(E)};this._mouseUpDelegate=function(E){return A._mouseUp(E)};M(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);if(!M.browser.safari){B.preventDefault()}return true},_mouseMove:function(A){if(M.browser.msie&&!A.button){return this._mouseUp(A)}if(this._mouseStarted){this._mouseDrag(A);return A.preventDefault()}if(this._mouseDistanceMet(A)&&this._mouseDelayMet(A)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,A)!==false);(this._mouseStarted?this._mouseDrag(A):this._mouseUp(A))}return !this._mouseStarted},_mouseUp:function(A){M(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=true;this._mouseStop(A)}return false},_mouseDistanceMet:function(A){return(Math.max(Math.abs(this._mouseDownEvent.pageX-A.pageX),Math.abs(this._mouseDownEvent.pageY-A.pageY))>=this.options.distance)},_mouseDelayMet:function(A){return this.mouseDelayMet},_mouseStart:function(A){},_mouseDrag:function(A){},_mouseStop:function(A){},_mouseCapture:function(A){return true}};M.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(B){B.widget("ui.draggable",B.extend({},B.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.cssNamespace&&this.element.addClass(this.options.cssNamespace+"-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(A){var D=this.options;if(this.helper||D.disabled||B(A.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(A);if(!this.handle){return false}return true},_mouseStart:function(A){var D=this.options;this.helper=this._createHelper(A);this._cacheHelperProportions();if(B.ui.ddmanager){B.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};B.extend(this.offset,{click:{left:A.pageX-this.offset.left,top:A.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});if(D.cursorAt){this._adjustOffsetFromHelper(D.cursorAt)}this.originalPosition=this._generatePosition(A);if(D.containment){this._setContainment()}this._propagate("start",A);this._cacheHelperProportions();if(B.ui.ddmanager&&!D.dropBehaviour){B.ui.ddmanager.prepareOffsets(this,A)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(A,true);return true},_mouseDrag:function(A,D){this.position=this._generatePosition(A);this.positionAbs=this._convertPositionTo("absolute");if(!D){this.position=this._propagate("drag",A)||this.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(B.ui.ddmanager){B.ui.ddmanager.drag(this,A)}return false},_mouseStop:function(F){var A=false;if(B.ui.ddmanager&&!this.options.dropBehaviour){var A=B.ui.ddmanager.drop(this,F)}if((this.options.revert=="invalid"&&!A)||(this.options.revert=="valid"&&A)||this.options.revert===true||(B.isFunction(this.options.revert)&&this.options.revert.call(this.element,A))){var E=this;B(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){E._propagate("stop",F);E._clear()})}else{this._propagate("stop",F);this._clear()}return false},_getHandle:function(A){var D=!this.options.handle||!B(this.options.handle,this.element).length?true:false;B(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==A.target){D=true}});return D},_createHelper:function(F){var A=this.options;var E=B.isFunction(A.helper)?B(A.helper.apply(this.element[0],[F])):(A.helper=="clone"?this.element.clone():this.element);if(!E.parents("body").length){E.appendTo((A.appendTo=="parent"?this.element[0].parentNode:A.appendTo))}if(E[0]!=this.element[0]&&!(/(fixed|absolute)/).test(E.css("position"))){E.css("position","absolute")}return E},_adjustOffsetFromHelper:function(A){if(A.left!=undefined){this.offset.click.left=A.left+this.margins.left}if(A.right!=undefined){this.offset.click.left=this.helperProportions.width-A.right+this.margins.left}if(A.top!=undefined){this.offset.click.top=A.top+this.margins.top}if(A.bottom!=undefined){this.offset.click.top=this.helperProportions.height-A.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var A=this.offsetParent.offset();if((this.offsetParent[0]==document.body&&B.browser.mozilla)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&B.browser.msie)){A={top:0,left:0}}return{top:A.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:A.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var A=this.element.position();return{top:A.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:A.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var F=this.options;if(F.containment=="parent"){F.containment=this.helper[0].parentNode}if(F.containment=="document"||F.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,B(F.containment=="document"?document:window).width()-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left-(parseInt(this.element.css("marginRight"),10)||0),(B(F.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top-(parseInt(this.element.css("marginBottom"),10)||0)]}if(!(/^(document|window|parent)$/).test(F.containment)){var H=B(F.containment)[0];var A=B(F.containment).offset();var G=(B(H).css("overflow")!="hidden");this.containment=[A.left+(parseInt(B(H).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left-this.margins.left,A.top+(parseInt(B(H).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top-this.margins.top,A.left+(G?Math.max(H.scrollWidth,H.offsetWidth):H.offsetWidth)-(parseInt(B(H).css("borderLeftWidth"),10)||0)-this.offset.relative.left-this.offset.parent.left-this.helperProportions.width-this.margins.left,A.top+(G?Math.max(H.scrollHeight,H.offsetHeight):H.offsetHeight)-(parseInt(B(H).css("borderTopWidth"),10)||0)-this.offset.relative.top-this.offset.parent.top-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(G,A){if(!A){A=this.position}var J=G=="absolute"?1:-1;var I=this[(this.cssPosition=="absolute"?"offset":"scroll")+"Parent"],H=(/(html|body)/i).test(I[0].tagName);return{top:(A.top+this.offset.relative.top*J+this.offset.parent.top*J+(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(H?0:I.scrollTop()))*J+this.margins.top*J),left:(A.left+this.offset.relative.left*J+this.offset.parent.left*J+(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():(H?0:I.scrollLeft()))*J+this.margins.left*J)}},_generatePosition:function(J){var I=this.options,N=this[(this.cssPosition=="absolute"?"offset":"scroll")+"Parent"],A=(/(html|body)/i).test(N[0].tagName);var M={top:(J.pageY-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(A?0:N.scrollTop()))),left:(J.pageX-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():A?0:N.scrollLeft()))};if(!this.originalPosition){return M}if(this.containment){if(M.leftthis.containment[2]){M.left=this.containment[2]}if(M.top>this.containment[3]){M.top=this.containment[3]}}if(I.grid){var K=this.originalPosition.top+Math.round((M.top-this.originalPosition.top)/I.grid[1])*I.grid[1];M.top=this.containment?(!(Kthis.containment[3])?K:(!(Kthis.containment[2])?L:(!(L').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(B(this).offset()).appendTo("body")})},stop:function(A,D){B("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});B.ui.plugin.add("draggable","opacity",{start:function(F,A){var E=B(A.helper);if(E.css("opacity")){A.options._opacity=E.css("opacity")}E.css("opacity",A.options.opacity)},stop:function(A,D){if(D.options._opacity){B(D.helper).css("opacity",D.options._opacity)}}});B.ui.plugin.add("draggable","scroll",{start:function(H,A){var F=A.options;var G=B(this).data("draggable");if(G.scrollParent[0]!=document&&G.scrollParent[0].tagName!="HTML"){G.overflowOffset=G.scrollParent.offset()}},drag:function(G,H){var A=H.options,I=false;var J=B(this).data("draggable");if(J.scrollParent[0]!=document&&J.scrollParent[0].tagName!="HTML"){if((J.overflowOffset.top+J.scrollParent[0].offsetHeight)-G.pageY=0;a--){var c=j.snapElements[a].left,W=c+j.snapElements[a].width,Z=j.snapElements[a].top,T=Z+j.snapElements[a].height;if(!((c-V=R&&T<=b)||(A>=R&&A<=b)||(Tb))&&((Z>=X&&Z<=V)||(W>=X&&W<=V)||(ZV));break;default:return false;break}};B.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(K,I){var L=B.ui.ddmanager.droppables[K.options.scope];var A=I?I.type:null;var N=(K.currentItem||K.element).find(":data(droppable)").andSelf();droppablesLoop:for(var J=0;J').css({position:h.css("position"),width:h.outerWidth(),height:h.outerHeight(),top:h.css("top"),left:h.css("left")}));var a=this.element;this.element=this.element.parent();this.element.data("resizable",this);this.element.css({marginLeft:a.css("marginLeft"),marginTop:a.css("marginTop"),marginRight:a.css("marginRight"),marginBottom:a.css("marginBottom")});a.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});if(C.browser.safari&&e.preventDefault){a.css("resize","none")}e.proportionallyResize=a.css({position:"static",zoom:1,display:"block"});this.element.css({margin:a.css("margin")});this._proportionallyResize()}if(!e.handles){e.handles=!C(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}}if(e.handles.constructor==String){e.zIndex=e.zIndex||1000;if(e.handles=="all"){e.handles="n,e,s,w,se,sw,ne,nw"}var V=e.handles.split(",");e.handles={};var b={handle:"position: absolute; display: none; overflow:hidden;",n:"top: 0pt; width:100%;",e:"right: 0pt; height:100%;",s:"bottom: 0pt; width:100%;",w:"left: 0pt; height:100%;",se:"bottom: 0pt; right: 0px;",sw:"bottom: 0pt; left: 0px;",ne:"top: 0pt; right: 0px;",nw:"top: 0pt; left: 0px;"};for(var B=0;B'].join("")).css(f);e.handles[X]=".ui-resizable-"+X;this.element.append(i.css(k?Y:{}).css(e.knobHandles?l:{}).addClass(e.knobHandles?"ui-resizable-knob-handle":"").addClass(e.knobHandles))}if(e.knobHandles){this.element.addClass("ui-resizable-knob").css(!C.ui.css("ui-resizable-knob")?{}:{})}}this._renderAxis=function(F){F=F||this.element;for(var H in e.handles){if(e.handles[H].constructor==String){e.handles[H]=C(e.handles[H],this.element).show()}if(e.transparent){e.handles[H].css({opacity:0})}if(this.element.is(".ui-wrapper")&&e._nodeName.match(/textarea|input|select|button/i)){var G=C(e.handles[H],this.element),I=0;I=/sw|ne|nw|se|n|s/.test(H)?G.outerHeight():G.outerWidth();var E=["padding",/ne|nw|n/.test(H)?"Top":/se|sw|s/.test(H)?"Bottom":/^e$/.test(H)?"Right":"Left"].join("");if(!e.transparent){F.css(E,I)}this._proportionallyResize()}if(!C(e.handles[H]).length){continue}}};this._renderAxis(this.element);e._handles=C(".ui-resizable-handle",d.element);if(e.disableSelection){e._handles.disableSelection()}e._handles.mouseover(function(){if(!e.resizing){if(this.className){var E=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}d.axis=e.axis=E&&E[1]?E[1]:"se"}});if(e.autoHide){e._handles.hide();C(d.element).addClass("ui-resizable-autohide").hover(function(){C(this).removeClass("ui-resizable-autohide");e._handles.show()},function(){if(!e.resizing){C(this).addClass("ui-resizable-autohide");e._handles.hide()}})}this._mouseInit()},destroy:function(){var B=this.element,A=B.children(".ui-resizable").get(0);this._mouseDestroy();var F=function(E){C(E).removeClass("ui-resizable ui-resizable-disabled").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};F(B);if(B.is(".ui-wrapper")&&A){B.parent().append(C(A).css({position:B.css("position"),width:B.outerWidth(),height:B.outerHeight(),top:B.css("top"),left:B.css("left")})).end().remove();F(A)}},_mouseCapture:function(A){if(this.options.disabled){return false}var B=false;for(var F in this.options.handles){if(C(this.options.handles[F])[0]==A.target){B=true}}if(!B){return false}return true},_mouseStart:function(T){var U=this.options,Q=this.element.position(),R=this.element,N=C.browser.msie&&C.browser.version<7;U.resizing=true;U.documentScroll={top:C(document).scrollTop(),left:C(document).scrollLeft()};if(R.is(".ui-draggable")||(/absolute/).test(R.css("position"))){var A=C.browser.msie&&!U.containment&&(/absolute/).test(R.css("position"))&&!(/relative/).test(R.parent().css("position"));var O=A?this.documentScroll.top:0,B=A?this.documentScroll.left:0;R.css({position:"absolute",top:(Q.top+O),left:(Q.left+B)})}if(C.browser.opera&&(/relative/).test(R.css("position"))){R.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var P=D(this.helper.css("left")),S=D(this.helper.css("top"));if(U.containment){P+=C(U.containment).scrollLeft()||0;S+=C(U.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:P,top:S};this.size=U.helper||N?{width:R.outerWidth(),height:R.outerHeight()}:{width:R.width(),height:R.height()};this.originalSize=U.helper||N?{width:R.outerWidth(),height:R.outerHeight()}:{width:R.width(),height:R.height()};this.originalPosition={left:P,top:S};this.sizeDiff={width:R.outerWidth()-R.width(),height:R.outerHeight()-R.height()};this.originalMousePosition={left:T.pageX,top:T.pageY};U.aspectRatio=(typeof U.aspectRatio=="number")?U.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);if(U.preserveCursor){var V=C(".ui-resizable-"+this.axis).css("cursor");C("body").css("cursor",V=="auto"?this.axis+"-resize":V)}this._propagate("start",T);return true},_mouseDrag:function(U){var V=this.helper,Y=this.options,A={},Q=this,B=this.originalMousePosition,S=this.axis;var R=(U.pageX-B.left)||0,T=(U.pageY-B.top)||0;var W=this._change[S];if(!W){return false}var Z=W.apply(this,[U,R,T]),P=C.browser.msie&&C.browser.version<7,X=this.sizeDiff;if(Y._aspectRatio||U.shiftKey){Z=this._updateRatio(Z,U)}Z=this._respectSize(Z,U);this._propagate("resize",U);V.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!Y.helper&&Y.proportionallyResize){this._proportionallyResize()}this._updateCache(Z);this.element.triggerHandler("resize",[U,this.ui()],this.options["resize"]);return false},_mouseStop:function(P){this.options.resizing=false;var Q=this.options,A=this;if(Q.helper){var S=Q.proportionallyResize,O=S&&(/textarea/i).test(S.get(0).nodeName),R=O&&C.ui.hasScroll(S.get(0),"left")?0:A.sizeDiff.height,M=O?0:A.sizeDiff.width;var N={width:(A.size.width-M),height:(A.size.height-R)},B=(parseInt(A.element.css("left"),10)+(A.position.left-A.originalPosition.left))||null,T=(parseInt(A.element.css("top"),10)+(A.position.top-A.originalPosition.top))||null;if(!Q.animate){this.element.css(C.extend(N,{top:T,left:B}))}if(Q.helper&&!Q.animate){this._proportionallyResize()}}if(Q.preserveCursor){C("body").css("cursor","auto")}this._propagate("stop",P);if(Q.helper){this.helper.remove()}return false},_updateCache:function(B){var A=this.options;this.offset=this.helper.offset();if(B.left){this.position.left=B.left}if(B.top){this.position.top=B.top}if(B.height){this.size.height=B.height}if(B.width){this.size.width=B.width}},_updateRatio:function(A,J){var B=this.options,L=this.position,I=this.size,K=this.axis;if(A.height){A.width=(I.height*B.aspectRatio)}else{if(A.width){A.height=(I.width/B.aspectRatio)}}if(K=="sw"){A.left=L.left+(I.width-A.width);A.top=null}if(K=="nw"){A.top=L.top+(I.height-A.height);A.left=L.left+(I.width-A.width)}return A},_respectSize:function(d,a){var B=this.helper,Y=this.options,T=Y._aspectRatio||a.shiftKey,S=this.axis,c=d.width&&Y.maxWidth&&Y.maxWidthd.width,b=d.height&&Y.minHeight&&Y.minHeight>d.height;if(X){d.width=Y.minWidth}if(b){d.height=Y.minHeight}if(c){d.width=Y.maxWidth}if(A){d.height=Y.maxHeight}var Z=this.originalPosition.left+this.originalSize.width,V=this.position.top+this.size.height;var R=/sw|nw|w/.test(S),W=/nw|ne|n/.test(S);if(X&&R){d.left=Z-Y.minWidth}if(c&&R){d.left=Z-Y.maxWidth}if(b&&W){d.top=V-Y.minHeight}if(A&&W){d.top=V-Y.maxHeight}var U=!d.width&&!d.height;if(U&&!d.left&&d.top){d.top=null}else{if(U&&!d.top&&d.left){d.left=null}}return d},_proportionallyResize:function(){var B=this.options;if(!B.proportionallyResize){return}var I=B.proportionallyResize,H=this.helper||this.element;if(!B.borderDif){var J=[I.css("borderTopWidth"),I.css("borderRightWidth"),I.css("borderBottomWidth"),I.css("borderLeftWidth")],A=[I.css("paddingTop"),I.css("paddingRight"),I.css("paddingBottom"),I.css("paddingLeft")];B.borderDif=C.map(J,function(F,L){var G=parseInt(F,10)||0,E=parseInt(A[L],10)||0;return G+E})}I.css({height:(H.height()-B.borderDif[0]-B.borderDif[2])+"px",width:(H.width()-B.borderDif[1]-B.borderDif[3])+"px"})},_renderProxy:function(){var H=this.element,B=this.options;this.elementOffset=H.offset();if(B.helper){this.helper=this.helper||C('
');var J=C.browser.msie&&C.browser.version<7,I=(J?1:0),A=(J?2:-1);this.helper.addClass(B.helper).css({width:H.outerWidth()+A,height:H.outerHeight()+A,position:"absolute",left:this.elementOffset.left-I+"px",top:this.elementOffset.top-I+"px",zIndex:++B.zIndex});this.helper.appendTo("body");if(B.disableSelection){this.helper.disableSelection()}}else{this.helper=H}},_change:{e:function(B,A,F){return{width:this.originalSize.width+A}},w:function(A,I,L){var B=this.options,J=this.originalSize,K=this.originalPosition;return{left:K.left+I,width:J.width-I}},n:function(A,I,L){var B=this.options,J=this.originalSize,K=this.originalPosition;return{top:K.top+L,height:J.height-L}},s:function(B,A,F){return{height:this.originalSize.height+F}},se:function(B,A,F){return C.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[B,A,F]))},sw:function(B,A,F){return C.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[B,A,F]))},ne:function(B,A,F){return C.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[B,A,F]))},nw:function(B,A,F){return C.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[B,A,F]))}},_propagate:function(A,B){C.ui.plugin.call(this,A,[B,this.ui()]);if(A!="resize"){this.element.triggerHandler(["resize",A].join(""),[B,this.ui()],this.options[A])}},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,options:this.options,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));C.extend(C.ui.resizable,{version:"1.6",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input",containment:false,disableSelection:true,distance:1,delay:0,ghost:false,grid:false,knobHandles:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,preserveCursor:true,preventDefault:true,proportionallyResize:false,transparent:false}});C.ui.plugin.add("resizable","alsoResize",{start:function(H,I){var B=I.options,J=C(this).data("resizable"),A=function(E){C(E).each(function(){C(this).data("resizable-alsoresize",{width:parseInt(C(this).width(),10),height:parseInt(C(this).height(),10),left:parseInt(C(this).css("left"),10),top:parseInt(C(this).css("top"),10)})})};if(typeof(B.alsoResize)=="object"&&!B.alsoResize.parentNode){if(B.alsoResize.length){B.alsoResize=B.alsoResize[0];A(B.alsoResize)}else{C.each(B.alsoResize,function(E,F){A(E)})}}else{A(B.alsoResize)}},resize:function(O,M){var A=M.options,N=C(this).data("resizable"),L=N.originalSize,P=N.originalPosition;var B={height:(N.size.height-L.height)||0,width:(N.size.width-L.width)||0,top:(N.position.top-P.top)||0,left:(N.position.left-P.left)||0},K=function(E,F){C(E).each(function(){var H=C(this).data("resizable-alsoresize"),G={},I=F&&F.length?F:["width","height","top","left"];C.each(I||["width","height","top","left"],function(S,J){var T=(H[J]||0)+(B[J]||0);if(T&&T>=0){G[J]=T||null}});C(this).css(G)})};if(typeof(A.alsoResize)=="object"&&!A.alsoResize.parentNode){C.each(A.alsoResize,function(E,F){K(E,F)})}else{K(A.alsoResize)}},stop:function(B,A){C(this).removeData("resizable-alsoresize-start")}});C.ui.plugin.add("resizable","animate",{stop:function(S,O){var B=O.options,P=C(this).data("resizable");var R=B.proportionallyResize,Q=R&&(/textarea/i).test(R.get(0).nodeName),T=Q&&C.ui.hasScroll(R.get(0),"left")?0:P.sizeDiff.height,V=Q?0:P.sizeDiff.width;var U={width:(P.size.width-V),height:(P.size.height-T)},N=(parseInt(P.element.css("left"),10)+(P.position.left-P.originalPosition.left))||null,A=(parseInt(P.element.css("top"),10)+(P.position.top-P.originalPosition.top))||null;P.element.animate(C.extend(U,A&&N?{top:A,left:N}:{}),{duration:B.animateDuration,easing:B.animateEasing,step:function(){var E={width:parseInt(P.element.css("width"),10),height:parseInt(P.element.css("height"),10),top:parseInt(P.element.css("top"),10),left:parseInt(P.element.css("left"),10)};if(R){R.css({width:E.width,height:E.height})}P._updateCache(E);P._propagate("animate",S)}})}});C.ui.plugin.add("resizable","containment",{start:function(Y,R){var B=R.options,a=C(this).data("resizable"),b=a.element;var Z=B.containment,Q=(Z instanceof C)?Z.get(0):(/parent/.test(Z))?b.parent().get(0):Z;if(!Q){return}a.containerElement=C(Q);if(/document/.test(Z)||Z==document){a.containerOffset={left:0,top:0};a.containerPosition={left:0,top:0};a.parentData={element:C(document),left:0,top:0,width:C(document).width(),height:C(document).height()||document.body.parentNode.scrollHeight}}else{var T=C(Q),X=[];C(["Top","Right","Left","Bottom"]).each(function(E,F){X[E]=D(T.css("padding"+F))});a.containerOffset=T.offset();a.containerPosition=T.position();a.containerSize={height:(T.innerHeight()-X[3]),width:(T.innerWidth()-X[1])};var U=a.containerOffset,V=a.containerSize.height,A=a.containerSize.width,W=(C.ui.hasScroll(Q,"left")?Q.scrollWidth:A),S=(C.ui.hasScroll(Q)?Q.scrollHeight:V);a.parentData={element:Q,left:U.left,top:U.top,width:W,height:S}}},resize:function(a,S){var Y=S.options,c=C(this).data("resizable"),Z=c.containerSize,V=c.containerOffset,A=c.size,U=c.position,T=Y._aspectRatio||a.shiftKey,W={top:0,left:0},X=c.containerElement;if(X[0]!=document&&(/static/).test(X.css("position"))){W=V}if(U.left<(Y.helper?V.left:0)){c.size.width=c.size.width+(Y.helper?(c.position.left-V.left):(c.position.left-W.left));if(T){c.size.height=c.size.width/Y.aspectRatio}c.position.left=Y.helper?V.left:0}if(U.top<(Y.helper?V.top:0)){c.size.height=c.size.height+(Y.helper?(c.position.top-V.top):c.position.top);if(T){c.size.width=c.size.height*Y.aspectRatio}c.position.top=Y.helper?V.top:0}c.offset.left=c.parentData.left+c.position.left;c.offset.top=c.parentData.top+c.position.top;var d=Math.abs((Y.helper?c.offset.left-W.left:(c.offset.left-W.left))+c.sizeDiff.width),b=Math.abs((Y.helper?c.offset.top-W.top:(c.offset.top-V.top))+c.sizeDiff.height);var R=c.containerElement.get(0)==c.element.parent().get(0),B=/relative|absolute/.test(c.containerElement.css("position"));if(R&&B){d-=c.parentData.left}if(d+c.size.width>=c.parentData.width){c.size.width=c.parentData.width-d;if(T){c.size.height=c.size.width/Y.aspectRatio}}if(b+c.size.height>=c.parentData.height){c.size.height=c.parentData.height-b;if(T){c.size.width=c.size.height*Y.aspectRatio}}},stop:function(V,A){var W=A.options,R=C(this).data("resizable"),O=R.position,X=R.containerOffset,S=R.containerPosition,T=R.containerElement;var U=C(R.helper),P=U.offset(),Q=U.outerWidth()-R.sizeDiff.width,B=U.outerHeight()-R.sizeDiff.height;if(W.helper&&!W.animate&&(/relative/).test(T.css("position"))){C(this).css({left:P.left-S.left-X.left,width:Q,height:B})}if(W.helper&&!W.animate&&(/static/).test(T.css("position"))){C(this).css({left:P.left-S.left-X.left,width:Q,height:B})}}});C.ui.plugin.add("resizable","ghost",{start:function(J,A){var B=A.options,K=C(this).data("resizable"),L=B.proportionallyResize,I=K.size;if(!L){K.ghost=K.element.clone()}else{K.ghost=L.clone()}K.ghost.css({opacity:0.25,display:"block",position:"relative",height:I.height,width:I.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof B.ghost=="string"?B.ghost:"");K.ghost.appendTo(K.helper)},resize:function(H,I){var A=I.options,J=C(this).data("resizable"),B=A.proportionallyResize;if(J.ghost){J.ghost.css({position:"relative",height:J.size.height,width:J.size.width})}},stop:function(H,I){var A=I.options,J=C(this).data("resizable"),B=A.proportionallyResize;if(J.ghost&&J.helper){J.helper.get(0).removeChild(J.ghost.get(0))}}});C.ui.plugin.add("resizable","grid",{resize:function(Q,A){var R=A.options,P=C(this).data("resizable"),N=P.size,S=P.originalSize,B=P.originalPosition,O=P.axis,V=R._aspectRatio||Q.shiftKey;R.grid=typeof R.grid=="number"?[R.grid,R.grid]:R.grid;var U=Math.round((N.width-S.width)/(R.grid[0]||1))*(R.grid[0]||1),T=Math.round((N.height-S.height)/(R.grid[1]||1))*(R.grid[1]||1);if(/^(se|s|e)$/.test(O)){P.size.width=S.width+U;P.size.height=S.height+T}else{if(/^(ne)$/.test(O)){P.size.width=S.width+U;P.size.height=S.height+T;P.position.top=B.top-T}else{if(/^(sw)$/.test(O)){P.size.width=S.width+U;P.size.height=S.height+T;P.position.left=B.left-U}else{P.size.width=S.width+U;P.size.height=S.height+T;P.position.top=B.top-T;P.position.left=B.left-U}}}}});var D=function(A){return parseInt(A,10)||0}})(jQuery);(function(B){B.widget("ui.selectable",B.extend({},B.ui.mouse,{_init:function(){var A=this;this.element.addClass("ui-selectable");this.dragged=false;var D;this.refresh=function(){D=B(A.options.filter,A.element[0]);D.each(function(){var C=B(this);var F=C.offset();B.data(this,"selectable-item",{element:this,$element:C,left:F.left,top:F.top,right:F.left+C.width(),bottom:F.top+C.height(),startselected:false,selected:C.hasClass("ui-selected"),selecting:C.hasClass("ui-selecting"),unselecting:C.hasClass("ui-unselecting")})})};this.refresh();this.selectees=D.addClass("ui-selectee");this._mouseInit();this.helper=B(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy()},_mouseStart:function(F){var H=this;this.opos=[F.pageX,F.pageY];if(this.options.disabled){return}var A=this.options;this.selectees=B(A.filter,this.element[0]);this.element.triggerHandler("selectablestart",[F,{"selectable":this.element[0],"options":A}],A.start);B("body").append(this.helper);this.helper.css({"z-index":100,"position":"absolute","left":F.clientX,"top":F.clientY,"width":0,"height":0});if(A.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var C=B.data(this,"selectable-item");C.startselected=true;if(!F.metaKey){C.$element.removeClass("ui-selected");C.selected=false;C.$element.addClass("ui-unselecting");C.unselecting=true;H.element.triggerHandler("selectableunselecting",[F,{selectable:H.element[0],unselecting:C.element,options:A}],A.unselecting)}});var G=false;B(F.target).parents().andSelf().each(function(){if(B.data(this,"selectable-item")){G=true}});return this.options.keyboard?!G:true},_mouseDrag:function(J){var L=this;this.dragged=true;if(this.options.disabled){return}var P=this.options;var O=this.opos[0],A=this.opos[1],K=J.pageX,N=J.pageY;if(O>K){var M=K;K=O;O=M}if(A>N){var M=N;N=A;A=M}this.helper.css({left:O,top:A,width:K-O,height:N-A});this.selectees.each(function(){var D=B.data(this,"selectable-item");if(!D||D.element==L.element[0]){return}var C=false;if(P.tolerance=="touch"){C=(!(D.left>K||D.rightN||D.bottomO&&D.rightA&&D.bottom=0;A--){this.items[A].item.removeData("sortable-item")}},_mouseCapture:function(J,A){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(J);var I=null,L=this,K=B(J.target).parents().each(function(){if(B.data(this,"sortable-item")==L){I=B(this);return false}});if(B.data(J.target,"sortable-item")==L){I=B(J.target)}if(!I){return false}if(this.options.handle&&!A){var H=false;B(this.options.handle,I).find("*").andSelf().each(function(){if(this==J.target){H=true}});if(!H){return false}}this.currentItem=I;this._removeCurrentsFromItems();return true},_mouseStart:function(G,H,I){var A=this.options;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(G);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");B.extend(this.offset,{click:{left:G.pageX-this.offset.left,top:G.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});if(A.cursorAt){this._adjustOffsetFromHelper(A.cursorAt)}this.originalPosition=this._generatePosition(G);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(A.containment){this._setContainment()}this._propagate("start",G);if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!I){for(var J=this.containers.length-1;J>=0;J--){this.containers[J]._propagate("activate",G,this)}}if(B.ui.ddmanager){B.ui.ddmanager.current=this}if(B.ui.ddmanager&&!A.dropBehaviour){B.ui.ddmanager.prepareOffsets(this,G)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(G);return true},_mouseDrag:function(H){this.position=this._generatePosition(H);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}B.ui.plugin.call(this,"sort",[H,this._ui()]);this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}for(var J=this.items.length-1;J>=0;J--){var G=this.items[J],I=G.item[0],A=this._intersectsWithPointer(G);if(!A){continue}if(I!=this.currentItem[0]&&this.placeholder[A==1?"next":"prev"]()[0]!=I&&!B.ui.contains(this.placeholder[0],I)&&(this.options.type=="semi-dynamic"?!B.ui.contains(this.element[0],I):true)){this.direction=A==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(G)){this.options.sortIndicator.call(this,H,G)}else{break}this._propagate("change",H);break}}this._contactContainers(H);if(B.ui.ddmanager){B.ui.ddmanager.drag(this,H)}this._trigger("sort",H,this._ui());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(H,A){if(!H){return}if(B.ui.ddmanager&&!this.options.dropBehaviour){B.ui.ddmanager.drop(this,H)}if(this.options.revert){var G=this;var F=G.placeholder.offset();G.reverting=true;B(this.helper).animate({left:F.left-this.offset.parent.left-G.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:F.top-this.offset.parent.top-G.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){G._clear(H)})}else{this._clear(H,A)}return false},cancel:function(){if(this.dragging){this._mouseUp();if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var A=this.containers.length-1;A>=0;A--){this.containers[A]._propagate("deactivate",null,this);if(this.containers[A].containerCache.over){this.containers[A]._propagate("out",null,this);this.containers[A].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}B.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){B(this.domPosition.prev).after(this.currentItem)}else{B(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(A){var E=this._getItemsAsjQuery(A&&A.connected);var F=[];A=A||{};B(E).each(function(){var C=(B(A.item||this).attr(A.attribute||"id")||"").match(A.expression||(/(.+)[-=_](.+)/));if(C){F.push((A.key||C[1]+"[]")+"="+(A.key&&A.expression?C[1]:C[2]))}});return F.join("&")},toArray:function(A){var E=this._getItemsAsjQuery(A&&A.connected);var F=[];A=A||{};E.each(function(){F.push(B(A.item||this).attr(A.attribute||"id")||"")});return F},_intersectsWith:function(A){var V=this.positionAbs.left,S=V+this.helperProportions.width,X=this.positionAbs.top,O=X+this.helperProportions.height;var W=A.left,R=W+A.width,P=A.top,N=P+A.height;var Q=this.offset.click.top,U=this.offset.click.left;var T=(X+Q)>P&&(X+Q)W&&(V+U)A[this.floating?"width":"height"])){return T}else{return(W0?"down":"up")},_getDragHorizontalDirection:function(){var A=this.positionAbs.left-this.lastPositionAbs.left;return A!=0&&(A>0?"right":"left")},refresh:function(A){this._refreshItems(A);this.refreshPositions()},_getItemsAsjQuery:function(N){var L=this;var K=[];var P=[];if(this.options.connectWith&&N){for(var M=this.options.connectWith.length-1;M>=0;M--){var J=B(this.options.connectWith[M]);for(var O=J.length-1;O>=0;O--){var A=B.data(J[O],"sortable");if(A&&A!=this&&!A.options.disabled){P.push([B.isFunction(A.options.items)?A.options.items.call(A.element):B(A.options.items,A.element).not(".ui-sortable-helper"),A])}}}}P.push([B.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):B(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(var M=P.length-1;M>=0;M--){P[M][0].each(function(){K.push(this)})}return B(K)},_removeCurrentsFromItems:function(){var A=this.currentItem.find(":data(sortable-item)");for(var F=0;F=0;W--){var X=B(this.options.connectWith[W]);for(var V=X.length-1;V>=0;V--){var U=B.data(X[V],"sortable");if(U&&U!=this&&!U.options.disabled){T.push([B.isFunction(U.options.items)?U.options.items.call(U.element[0],R,{item:this.currentItem}):B(U.options.items,U.element),U]);this.containers.push(U)}}}}for(var W=T.length-1;W>=0;W--){var O=T[W][1];var S=T[W][0];for(var V=0,A=S.length;V=0;G--){var H=this.items[G];if(H.instance!=this.currentContainer&&this.currentContainer&&H.item[0]!=this.currentItem[0]){continue}var J=this.options.toleranceElement?B(this.options.toleranceElement,H.item):H.item;if(!I){if(this.options.accurateIntersection){H.width=J.outerWidth();H.height=J.outerHeight()}else{H.width=J[0].offsetWidth;H.height=J[0].offsetHeight}}var A=J.offset();H.left=A.left;H.top=A.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var G=this.containers.length-1;G>=0;G--){var A=this.containers[G].element.offset();this.containers[G].containerCache.left=A.left;this.containers[G].containerCache.top=A.top;this.containers[G].containerCache.width=this.containers[G].element.outerWidth();this.containers[G].containerCache.height=this.containers[G].element.outerHeight()}}},_createPlaceholder:function(A){var G=A||this,F=G.options;if(!F.placeholder||F.placeholder.constructor==String){var H=F.placeholder;F.placeholder={element:function(){var C=B(document.createElement(G.currentItem[0].nodeName)).addClass(H||G.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!H){C.style.visibility="hidden";document.body.appendChild(C);C.innerHTML=G.currentItem[0].innerHTML.replace(/name\=\"[^\"\']+\"/g,"").replace(/jQuery[0-9]+\=\"[^\"\']+\"/g,"");document.body.removeChild(C)}return C},update:function(C,D){if(H&&!F.forcePlaceholderSize){return}if(!D.height()){D.height(G.currentItem.innerHeight()-parseInt(G.currentItem.css("paddingTop")||0,10)-parseInt(G.currentItem.css("paddingBottom")||0,10))}if(!D.width()){D.width(G.currentItem.innerWidth()-parseInt(G.currentItem.css("paddingLeft")||0,10)-parseInt(G.currentItem.css("paddingRight")||0,10))}}}}G.placeholder=B(F.placeholder.element.call(G.element,G.currentItem));G.currentItem.after(G.placeholder);F.placeholder.update(G,G.placeholder)},_contactContainers:function(J){for(var N=this.containers.length-1;N>=0;N--){if(this._intersectsWith(this.containers[N].containerCache)){if(!this.containers[N].containerCache.over){if(this.currentContainer!=this.containers[N]){var I=10000;var K=null;var L=this.positionAbs[this.containers[N].floating?"left":"top"];for(var M=this.items.length-1;M>=0;M--){if(!B.ui.contains(this.containers[N].element[0],this.items[M].item[0])){continue}var A=this.items[M][this.containers[N].floating?"left":"top"];if(Math.abs(A-L)this.containment[2]){M.left=this.containment[2]-this.helperProportions.width}if(M.top+this.helperProportions.height>this.containment[3]){M.top=this.containment[3]-this.helperProportions.height}}if(I.grid){var K=this.originalPosition.top+Math.round((M.top-this.originalPosition.top)/I.grid[1])*I.grid[1];M.top=this.containment?(!(Kthis.containment[3])?K:(!(Kthis.containment[2])?L:(!(L=0;E--){if(B.ui.contains(this.containers[E].element[0],this.currentItem[0])){this.containers[E]._propagate("update",F,this,A);this.containers[E]._propagate("receive",F,this,A)}}}for(var E=this.containers.length-1;E>=0;E--){this.containers[E]._propagate("deactivate",F,this,A);if(this.containers[E].containerCache.over){this.containers[E]._propagate("out",F,this);this.containers[E].containerCache.over=0}}this.dragging=false;if(this.cancelHelperRemoval){this._propagate("beforeStop",F,null,A);this._propagate("stop",F,null,A);return false}this._propagate("beforeStop",F,null,A);this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.options.helper!="original"){this.helper.remove()}this.helper=null;this._propagate("stop",F,null,A);return true},_propagate:function(A,I,J,G){B.ui.plugin.call(this,A,[I,this._ui(J)]);var H=!G?this.element.triggerHandler(A=="sort"?A:"sort"+A,[I,this._ui(J)],this.options[A]):true;if(H===false){this.cancel()}},plugins:{},_ui:function(D){var A=D||this;return{helper:A.helper,placeholder:A.placeholder||B([]),position:A.position,absolutePosition:A.positionAbs,item:A.currentItem,sender:D?D.element:null}}}));B.extend(B.ui.sortable,{getter:"serialize toArray",version:"1.6",defaults:{accurateIntersection:true,appendTo:"parent",cancel:":input",delay:0,distance:1,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,helper:"original",items:"> *",scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,sortIndicator:B.ui.sortable.prototype._rearrange,tolerance:"default",zIndex:1000}});B.ui.plugin.add("sortable","cursor",{start:function(A,F){var H=B("body"),G=B(this).data("sortable");if(H.css("cursor")){G.options._cursor=H.css("cursor")}H.css("cursor",G.options.cursor)},beforeStop:function(F,A){var E=B(this).data("sortable");if(E.options._cursor){B("body").css("cursor",E.options._cursor)}}});B.ui.plugin.add("sortable","opacity",{start:function(A,F){var H=F.helper,G=B(this).data("sortable");if(H.css("opacity")){G.options._opacity=H.css("opacity")}H.css("opacity",G.options.opacity)},beforeStop:function(F,A){var E=B(this).data("sortable");if(E.options._opacity){B(A.helper).css("opacity",E.options._opacity)}}});B.ui.plugin.add("sortable","scroll",{start:function(H,A){var G=B(this).data("sortable"),F=G.options;if(G.scrollParent[0]!=document&&G.scrollParent[0].tagName!="HTML"){G.overflowOffset=G.scrollParent.offset()}},sort:function(G,H){var J=B(this).data("sortable"),A=J.options,I=false;if(J.scrollParent[0]!=document&&J.scrollParent[0].tagName!="HTML"){if((J.overflowOffset.top+J.scrollParent[0].offsetHeight)-G.pageY').insertBefore(B.headers);I('').appendTo(B.headers);B.headers.addClass("ui-accordion-header")}var E;if(B.fillSpace){E=this.element.parent().height();B.headers.each(function(){E-=I(this).outerHeight()});var C=0;B.headers.next().each(function(){C=Math.max(C,I(this).innerHeight()-I(this).height())}).height(E-C)}else{if(B.autoHeight){E=0;B.headers.next().each(function(){E=Math.max(E,I(this).outerHeight())}).height(E)}}this.element.attr("role","tablist");var D=this;B.headers.attr("role","tab").bind("keydown",function(F){return D._keydown(F)}).next().attr("role","tabpanel");B.headers.not(B.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!B.active.length){B.headers.eq(0).attr("tabIndex","0")}else{B.active.attr("aria-expanded","true").attr("tabIndex","0").parent().andSelf().addClass(B.selectedClass)}if(!I.browser.safari){B.headers.find("a").attr("tabIndex","-1")}if(B.event){this.element.bind((B.event)+".accordion",G)}},destroy:function(){this.options.headers.parent().andSelf().removeClass(this.options.selectedClass);this.options.headers.prev(".ui-accordion-left").remove();this.options.headers.children(".ui-accordion-right").remove();this.options.headers.next().css("display","");if(this.options.fillSpace||this.options.autoHeight){this.options.headers.next().css("height","")}I.removeData(this.element[0],"accordion");this.element.removeClass("ui-accordion").unbind(".accordion")},_keydown:function(E){if(this.options.disabled||E.altKey||E.ctrlKey){return}var A=I.ui.keyCode;var C=this.options.headers.length;var B=this.options.headers.index(E.target);var D=false;switch(E.keyCode){case A.RIGHT:case A.DOWN:D=this.options.headers[(B+1)%C];break;case A.LEFT:case A.UP:D=this.options.headers[(B-1+C)%C];break;case A.SPACE:case A.ENTER:return G.call(this.element[0],{target:E.target})}if(D){I(E.target).attr("tabIndex","-1");I(D).attr("tabIndex","0");D.focus();return false}return true},activate:function(A){G.call(this.element[0],{target:K(this.options.headers,A)[0]})}});function J(A,B){return function(){return A.apply(B,arguments)}}function H(C){if(!I.data(this,"accordion")){return}var B=I.data(this,"accordion");var A=B.options;A.running=C?0:--A.running;if(A.running){return}if(A.clearStyle){A.toShow.add(A.toHide).css({height:"",overflow:""})}B._trigger("change",null,A.data)}function L(S,D,A,F,E){var U=I.data(this,"accordion").options;U.toShow=S;U.toHide=D;U.data=A;var B=J(H,this);I.data(this,"accordion")._trigger("changestart",null,U.data);U.running=D.size()===0?S.size():D.size();if(U.animated){var V={};if(!U.alwaysOpen&&F){V={toShow:I([]),toHide:D,complete:B,down:E,autoHeight:U.autoHeight}}else{V={toShow:S,toHide:D,complete:B,down:E,autoHeight:U.autoHeight}}if(!U.proxied){U.proxied=U.animated}if(!U.proxiedDuration){U.proxiedDuration=U.duration}U.animated=I.isFunction(U.proxied)?U.proxied(V):U.proxied;U.duration=I.isFunction(U.proxiedDuration)?U.proxiedDuration(V):U.proxiedDuration;var T=I.ui.accordion.animations,C=U.duration,R=U.animated;if(!T[R]){T[R]=function(M){this.slide(M,{easing:R,duration:C||700})}}T[R](V)}else{if(!U.alwaysOpen&&F){S.toggle()}else{D.hide();S.show()}B(true)}D.prev().attr("aria-expanded","false").attr("tabIndex","-1");S.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()}function G(E){var P=I.data(this,"accordion").options;if(P.disabled){return false}if(!E.target&&!P.alwaysOpen){P.active.parent().andSelf().toggleClass(P.selectedClass);var C=P.active.next(),F={options:P,newHeader:I([]),oldHeader:P.active,newContent:I([]),oldContent:C},O=(P.active=I([]));L.call(this,O,C,F);return false}var A=I(E.target);A=I(A.parents(P.header)[0]||A);var B=A[0]==P.active[0];if(P.running||(P.alwaysOpen&&B)){return false}if(!A.is(P.header)){return}P.active.parent().andSelf().toggleClass(P.selectedClass);if(!B){A.parent().andSelf().addClass(P.selectedClass)}var O=A.next(),C=P.active.next(),F={options:P,newHeader:B&&!P.alwaysOpen?I([]):A,oldHeader:P.active,newContent:B&&!P.alwaysOpen?I([]):O,oldContent:C},D=P.headers.index(P.active[0])>P.headers.index(A[0]);P.active=B?I([]):A;L.call(this,O,C,F,B,D);return false}function K(A,B){return B?typeof B=="number"?A.filter(":eq("+B+")"):A.not(A.not(B)):B===false?I([]):A.filter(":eq(0)")}I.extend(I.ui.accordion,{version:"1.6",defaults:{autoHeight:true,alwaysOpen:true,animated:"slide",event:"click",header:"a",navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()},running:0,selectedClass:"selected"},animations:{slide:function(O,P){O=I.extend({easing:"swing",duration:300},O,P);if(!O.toHide.size()){O.toShow.animate({height:"show"},O);return}var C=O.toHide.height(),E=O.toShow.height(),D=E/C,A=O.toShow.outerHeight()-O.toShow.height(),B=O.toShow.css("marginBottom"),F=O.toShow.css("overflow");tmargin=O.toShow.css("marginTop");O.toShow.css({height:0,overflow:"hidden",marginTop:0,marginBottom:-A}).show();O.toHide.filter(":hidden").each(O.complete).end().filter(":visible").animate({height:"hide"},{step:function(N){var M=(C-N)*D;if(I.browser.msie||I.browser.opera){M=Math.ceil(M)}O.toShow.height(M)},duration:O.duration,easing:O.easing,complete:function(){if(!O.autoHeight){O.toShow.css("height","auto")}O.toShow.css({marginTop:tmargin,marginBottom:B,overflow:F});O.complete()}})},bounceslide:function(A){this.slide(A,{easing:A.down?"easeOutBounce":"swing",duration:A.down?1000:200})},easeslide:function(A){this.slide(A,{easing:"easeinout",duration:700})}}})})(jQuery);(function(C){var D={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"};C.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");this.options.title=this.options.title||this.originalTitle;var R=this,P=this.options,T=this.element.removeAttr("title").addClass("ui-dialog-content").wrap("
").wrap("
"),O=(this.uiDialogContainer=T.parent()).addClass("ui-dialog-container").css({position:"relative",width:"100%",height:"100%"}),W=(this.uiDialogTitlebar=C("
")).addClass("ui-dialog-titlebar").mousedown(function(){R.moveToTop()}).prependTo(O),X=C('').addClass("ui-dialog-titlebar-close").attr("role","button").appendTo(W),U=(this.uiDialogTitlebarCloseText=C("")).text(P.closeText).appendTo(X),Q=P.title||" ",V=C.ui.dialog.getTitleId(this.element),S=C("").addClass("ui-dialog-title").attr("id",V).html(Q).prependTo(W),A=(this.uiDialog=O.parent()).appendTo(document.body).hide().addClass("ui-dialog").addClass(P.dialogClass).css({position:"absolute",width:P.width,height:P.height,overflow:"hidden",zIndex:P.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(E){(P.closeOnEscape&&E.keyCode&&E.keyCode==C.ui.keyCode.ESCAPE&&R.close())}).attr({role:"dialog","aria-labelledby":V}).mouseup(function(){R.moveToTop()}),B=(this.uiDialogButtonPane=C("
")).addClass("ui-dialog-buttonpane").css({position:"absolute",bottom:0}).appendTo(A),X=C(".ui-dialog-titlebar-close",W).hover(function(){C(this).addClass("ui-dialog-titlebar-close-hover")},function(){C(this).removeClass("ui-dialog-titlebar-close-hover")}).mousedown(function(E){E.stopPropagation()}).click(function(){R.close();return false});W.find("*").add(W).disableSelection();(P.draggable&&C.fn.draggable&&this._makeDraggable());(P.resizable&&C.fn.resizable&&this._makeResizable());this._createButtons(P.buttons);this._isOpen=false;(P.bgiframe&&C.fn.bgiframe&&A.bgiframe());(P.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(){if(false===this._trigger("beforeclose",null,{options:this.options})){return}(this.overlay&&this.overlay.destroy());this.uiDialog.hide(this.options.hide).unbind("keypress.ui-dialog");this._trigger("close",null,{options:this.options});C.ui.dialog.overlay.resize();this._isOpen=false},isOpen:function(){return this._isOpen},moveToTop:function(A){if((this.options.modal&&!A)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",null,{options:this.options})}var G=this.options.zIndex,B=this.options;C(".ui-dialog:visible").each(function(){G=Math.max(G,parseInt(C(this).css("z-index"),10)||B.zIndex)});(this.overlay&&this.overlay.$el.css("z-index",++G));var H={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++G);this.element.attr(H);this._trigger("focus",null,{options:this.options})},open:function(){if(this._isOpen){return}this.overlay=this.options.modal?new C.ui.dialog.overlay(this):null;(this.uiDialog.next().length&&this.uiDialog.appendTo("body"));this._position(this.options.position);this.uiDialog.show(this.options.show);(this.options.autoResize&&this._size());this.moveToTop(true);(this.options.modal&&this.uiDialog.bind("keypress.ui-dialog",function(G){if(G.keyCode!=C.ui.keyCode.TAB){return}var B=C(":tabbable",this),A=B.filter(":first")[0],H=B.filter(":last")[0];if(G.target==H&&!G.shiftKey){setTimeout(function(){A.focus()},1)}else{if(G.target==A&&G.shiftKey){setTimeout(function(){H.focus()},1)}}}));this.uiDialog.find(":tabbable:first").focus();this._trigger("open",null,{options:this.options});this._isOpen=true},_createButtons:function(A){var G=this,H=false,B=this.uiDialogButtonPane;B.empty().hide();C.each(A,function(){return !(H=true)});if(H){B.show();C.each(A,function(F,E){C('').text(F).click(function(){E.apply(G.element[0],arguments)}).appendTo(B)})}},_makeDraggable:function(){var B=this,A=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content",helper:A.dragHelper,handle:".ui-dialog-titlebar",start:function(){B.moveToTop();(A.dragStart&&A.dragStart.apply(B.element[0],arguments))},drag:function(){(A.drag&&A.drag.apply(B.element[0],arguments))},stop:function(){(A.dragStop&&A.dragStop.apply(B.element[0],arguments));C.ui.dialog.overlay.resize()}})},_makeResizable:function(A){A=(A===undefined?this.options.resizable:A);var H=this,G=this.options,B=typeof A=="string"?A:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",helper:G.resizeHelper,maxWidth:G.maxWidth,maxHeight:G.maxHeight,minWidth:G.minWidth,minHeight:G.minHeight,start:function(){(G.resizeStart&&G.resizeStart.apply(H.element[0],arguments))},resize:function(){(G.autoResize&&H._size.apply(H));(G.resize&&G.resize.apply(H.element[0],arguments))},handles:B,stop:function(){(G.autoResize&&H._size.apply(H));(G.resizeStop&&G.resizeStop.apply(H.element[0],arguments));C.ui.dialog.overlay.resize()}})},_position:function(B){var I=C(window),J=C(document),A=J.scrollTop(),L=J.scrollLeft(),K=A;if(C.inArray(B,["center","top","right","bottom","left"])>=0){B=[B=="right"||B=="left"?B:"center",B=="top"||B=="bottom"?B:"middle"]}if(B.constructor!=Array){B=["center","middle"]}if(B[0].constructor==Number){L+=B[0]}else{switch(B[0]){case"left":L+=0;break;case"right":L+=I.width()-this.uiDialog.outerWidth();break;default:case"center":L+=(I.width()-this.uiDialog.outerWidth())/2}}if(B[1].constructor==Number){A+=B[1]}else{switch(B[1]){case"top":A+=0;break;case"bottom":A+=(C.browser.opera?window.innerHeight:I.height())-this.uiDialog.outerHeight();break;default:case"middle":A+=((C.browser.opera?window.innerHeight:I.height())-this.uiDialog.outerHeight())/2}}A=Math.max(A,K);this.uiDialog.css({top:A,left:L})},_setData:function(B,G){(D[B]&&this.uiDialog.data(D[B],G));switch(B){case"buttons":this._createButtons(G);break;case"closeText":this.uiDialogTitlebarCloseText.text(G);break;case"draggable":(G?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(G);break;case"position":this._position(G);break;case"resizable":var H=this.uiDialog,A=this.uiDialog.is(":data(resizable)");(A&&!G&&H.resizable("destroy"));(A&&typeof G=="string"&&H.resizable("option","handles",G));(A||this._makeResizable(G));break;case"title":C(".ui-dialog-title",this.uiDialogTitlebar).html(G||" ");break;case"width":this.uiDialog.width(G);break}C.widget.prototype._setData.apply(this,arguments)},_size:function(){var H=this.uiDialogContainer,B=this.uiDialogTitlebar,I=this.element,A=(parseInt(I.css("margin-top"),10)||0)+(parseInt(I.css("margin-bottom"),10)||0),J=(parseInt(I.css("margin-left"),10)||0)+(parseInt(I.css("margin-right"),10)||0);I.height(H.height()-B.outerHeight()-A);I.width(H.width()-J)}});C.extend(C.ui.dialog,{version:"1.6",defaults:{autoOpen:true,autoResize:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",draggable:true,height:200,minHeight:100,minWidth:150,modal:false,overlay:{},position:"center",resizable:true,stack:true,width:300,zIndex:1000},getter:"isOpen",uuid:0,getTitleId:function(A){return"ui-dialog-title-"+(A.attr("id")||++this.uuid)},overlay:function(A){this.$el=C.ui.dialog.overlay.create(A)}});C.extend(C.ui.dialog.overlay,{instances:[],events:C.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(A){return A+".dialog-overlay"}).join(" "),create:function(A){if(this.instances.length===0){setTimeout(function(){C("a, :input").bind(C.ui.dialog.overlay.events,function(){var I=false;var J=C(this).parents(".ui-dialog");if(J.length){var L=C(".ui-dialog-overlay");if(L.length){var K=parseInt(L.css("z-index"),10);L.each(function(){K=Math.max(K,parseInt(C(this).css("z-index"),10))});I=parseInt(J.css("z-index"),10)>K}else{I=true}}return I})},1);C(document).bind("keydown.dialog-overlay",function(F){(A.options.closeOnEscape&&F.keyCode&&F.keyCode==C.ui.keyCode.ESCAPE&&A.close())});C(window).bind("resize.dialog-overlay",C.ui.dialog.overlay.resize)}var B=C("
").appendTo(document.body).addClass("ui-dialog-overlay").css(C.extend({borderWidth:0,margin:0,padding:0,position:"absolute",top:0,left:0,width:this.width(),height:this.height()},A.options.overlay));(A.options.bgiframe&&C.fn.bgiframe&&B.bgiframe());this.instances.push(B);return B},destroy:function(A){this.instances.splice(C.inArray(this.instances,A),1);if(this.instances.length===0){C("a, :input").add([document,window]).unbind(".dialog-overlay")}A.remove()},height:function(){if(C.browser.msie&&C.browser.version<7){var A=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var B=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(A").addClass("ui-slider-handle").appendTo(A.element);if(this.id){C.attr("id",this.id)}return C[0]})}var D=function(C){this.element=B(C);this.element.data("mouse",this);this.options=A.options;this.element.bind("mousedown",function(){if(A.currentHandle){this.blur(A.currentHandle)}A._focus(this,true)});this._mouseInit()};B.extend(D.prototype,B.ui.mouse,{_mouseCapture:function(){return true},_mouseStart:function(C){return A._start.call(A,C,this.element[0])},_mouseDrag:function(C){return A._drag.call(A,C,this.element[0])},_mouseStop:function(C){return A._stop.call(A,C,this.element[0])},trigger:function(C){this._mouseDown(C)}});B(this.handle).each(function(){new D(this)}).wrap('
').parent().bind("click",function(){return false}).bind("focus",function(C){A._focus(this.firstChild)}).bind("blur",function(C){A._blur(this.firstChild)}).bind("keydown",function(C){if(!A.options.noKeyboard){return A._keydown(C.keyCode,this.firstChild)}});this.element.bind("mousedown.slider",function(C){if(B(C.target).is(".ui-slider-handle")){return}A._click.apply(A,[C]);A.currentHandle.data("mouse").trigger(C);A.firstValue=A.firstValue+1});B.each(this.options.handles||[],function(C,F){A.moveTo(F.start,C,true)});if(!isNaN(this.options.startValue)){this.moveTo(this.options.startValue,0,true)}this.previousHandle=B(this.handle[0]);if(this.handle.length==2&&this.options.range){this._createRange()}},destroy:function(){this.element.removeClass("ui-slider ui-slider-disabled").removeData("slider").unbind(".slider");if(this.handle&&this.handle.length){this.handle.unwrap("a");this.handle.each(function(){var A=B(this).data("mouse");A&&A._mouseDestroy()})}this.generated&&this.generated.remove()},_start:function(E,F){var A=this.options;if(A.disabled){return false}this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};if(!this.currentHandle){this._focus(this.previousHandle,true)}this.offset=this.element.offset();this.handleOffset=this.currentHandle.offset();this.clickOffset={top:E.pageY-this.handleOffset.top,left:E.pageX-this.handleOffset.left};this.firstValue=this.value();this._propagate("start",E);this._drag(E,F);return true},_drag:function(J,H){var A=this.options;var I={top:J.pageY-this.offset.top-this.clickOffset.top,left:J.pageX-this.offset.left-this.clickOffset.left};if(!this.currentHandle){this._focus(this.previousHandle,true)}I.left=this._translateLimits(I.left,"x");I.top=this._translateLimits(I.top,"y");if(A.stepping.x){var G=this._convertValue(I.left,"x");G=this._round(G/A.stepping.x)*A.stepping.x;I.left=this._translateValue(G,"x")}if(A.stepping.y){var G=this._convertValue(I.top,"y");G=this._round(G/A.stepping.y)*A.stepping.y;I.top=this._translateValue(G,"y")}I.left=this._translateRange(I.left,"x");I.top=this._translateRange(I.top,"y");if(A.axis!="vertical"){this.currentHandle.css({left:I.left})}if(A.axis!="horizontal"){this.currentHandle.css({top:I.top})}this.currentHandle.data("mouse").sliderValue={x:this._round(this._convertValue(I.left,"x"))||0,y:this._round(this._convertValue(I.top,"y"))||0};if(this.rangeElement){this._updateRange()}this._propagate("slide",J);return false},_stop:function(A){this._propagate("stop",A);if(this.firstValue!=this.value()){this._propagate("change",A)}this._focus(this.currentHandle,true);return false},_round:function(A){return this.options.round?parseInt(A,10):parseFloat(A)},_setData:function(A,D){B.widget.prototype._setData.apply(this,arguments);if(/min|max|steps/.test(A)){this._initBoundaries()}if(A=="range"){D?this.handle.length==2&&this._createRange():this._removeRange()}},_initBoundaries:function(){var A=this.element[0],D=this.options;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};B.extend(D,{axis:D.axis||(A.offsetWidth").addClass("ui-slider-range").css({position:"absolute"}).appendTo(this.element);this._updateRange()},_removeRange:function(){this.rangeElement.remove();this.rangeElement=null},_updateRange:function(){var D=this.options.axis=="vertical"?"top":"left";var A=this.options.axis=="vertical"?"height":"width";this.rangeElement.css(D,(this._round(B(this.handle[0]).css(D))||0)+this._handleSize(0,this.options.axis=="vertical"?"y":"x")/2);this.rangeElement.css(A,(this._round(B(this.handle[1]).css(D))||0)-(this._round(B(this.handle[0]).css(D))||0))},_getRange:function(){return this.rangeElement?this._convertValue(this._round(this.rangeElement.css(this.options.axis=="vertical"?"height":"width")),this.options.axis=="vertical"?"y":"x"):null},_handleIndex:function(){return this.handle.index(this.currentHandle[0])},value:function(A,E){if(this.handle.length==1){this.currentHandle=this.handle}if(!E){E=this.options.axis=="vertical"?"y":"x"}var F=B(A!=undefined&&A!==null?this.handle[A]||A:this.currentHandle);if(F.data("mouse").sliderValue){return this._round(F.data("mouse").sliderValue[E])}else{return this._round(((this._round(F.css(E=="x"?"left":"top"))/(this.actualSize[E=="x"?"width":"height"]-this._handleSize(A,E)))*this.options.realMax[E])+this.options.min[E])}},_convertValue:function(D,A){return this.options.min[A]+(D/(this.actualSize[A=="x"?"width":"height"]-this._handleSize(null,A)))*this.options.realMax[A]},_translateValue:function(D,A){return((D-this.options.min[A])/this.options.realMax[A])*(this.actualSize[A=="x"?"width":"height"]-this._handleSize(null,A))},_translateRange:function(A,E){if(this.rangeElement){if(this.currentHandle[0]==this.handle[0]&&A>=this._translateValue(this.value(1),E)){A=this._translateValue(this.value(1,E)-this._oneStep(E),E)}if(this.currentHandle[0]==this.handle[1]&&A<=this._translateValue(this.value(0),E)){A=this._translateValue(this.value(0,E)+this._oneStep(E),E)}}if(this.options.handles){var F=this.options.handles[this._handleIndex()];if(Athis._translateValue(F.max,E)){A=this._translateValue(F.max,E)}}}return A},_translateLimits:function(D,A){if(D>=this.actualSize[A=="x"?"width":"height"]-this._handleSize(null,A)){D=this.actualSize[A=="x"?"width":"height"]-this._handleSize(null,A)}if(D<=0){D=0}return D},_handleSize:function(D,A){return B(D!=undefined&&D!==null?this.handle[D]:this.currentHandle)[0]["offset"+(A=="x"?"Width":"Height")]},_oneStep:function(A){return this.options.stepping[A]||1},_pageStep:function(A){return 10},moveTo:function(M,P,N){var A=this.options;this.actualSize={width:this.element.outerWidth(),height:this.element.outerHeight()};if(P==undefined&&!this.currentHandle&&this.handle.length!=1){return false}if(P==undefined&&!this.currentHandle){P=0}if(P!=undefined){this.currentHandle=this.previousHandle=B(this.handle[P]||P)}if(M.x!==undefined&&M.y!==undefined){var K=M.x,J=M.y}else{var K=M,J=M}if(K!==undefined&&K.constructor!=Number){var O=/^\-\=/.test(K),L=/^\+\=/.test(K);if(O||L){K=this.value(null,"x")+this._round(K.replace(O?"=":"+=",""))}else{K=isNaN(this._round(K))?undefined:this._round(K)}}if(J!==undefined&&J.constructor!=Number){var O=/^\-\=/.test(J),L=/^\+\=/.test(J);if(O||L){J=this.value(null,"y")+this._round(J.replace(O?"=":"+=",""))}else{J=isNaN(this._round(J))?undefined:this._round(J)}}if(A.axis!="vertical"&&K!==undefined){if(A.stepping.x){K=this._round(K/A.stepping.x)*A.stepping.x}K=this._translateValue(K,"x");K=this._translateLimits(K,"x");K=this._translateRange(K,"x");A.animate?this.currentHandle.stop().animate({left:K},(Math.abs(parseInt(this.currentHandle.css("left"),10)-K))*(!isNaN(parseInt(A.animate,10))?A.animate:5)):this.currentHandle.css({left:K})}if(A.axis!="horizontal"&&J!==undefined){if(A.stepping.y){J=this._round(J/A.stepping.y)*A.stepping.y}J=this._translateValue(J,"y");J=this._translateLimits(J,"y");J=this._translateRange(J,"y");A.animate?this.currentHandle.stop().animate({top:J},(Math.abs(parseInt(this.currentHandle.css("top"),10)-J))*(!isNaN(parseInt(A.animate,10))?A.animate:5)):this.currentHandle.css({top:J})}if(this.rangeElement){this._updateRange()}this.currentHandle.data("mouse").sliderValue={x:this._round(this._convertValue(K,"x"))||0,y:this._round(this._convertValue(J,"y"))||0};if(!N){this._propagate("start",null);this._propagate("slide",null);this._propagate("stop",null);this._propagate("change",null)}},_propagate:function(D,A){B.ui.plugin.call(this,D,[A,this.ui()]);this.element.triggerHandler(D=="slide"?D:"slide"+D,[A,this.ui()],this.options[D])},plugins:{},ui:function(A){return{options:this.options,handle:this.currentHandle,value:this.options.axis!="both"||!this.options.axis?this._round(this.value(null,this.options.axis=="vertical"?"y":"x")):{x:this._round(this.value(null,"x")),y:this._round(this.value(null,"y"))},range:this._getRange()}}});B.extend(B.ui.slider,{getter:"value",version:"1.6",defaults:{animate:false,distance:1,handle:".ui-slider-handle",round:true}})})(jQuery);(function(B){B.widget("ui.tabs",{_init:function(){this._tabify(true)},destroy:function(){var A=this.options;this.element.unbind(".tabs").removeClass(A.navClass).removeData("tabs");this.$tabs.each(function(){var F=B.data(this,"href.tabs");if(F){this.href=F}var E=B(this).unbind(".tabs");B.each(["href","load","cache"],function(D,C){E.removeData(C+".tabs")})});this.$lis.add(this.$panels).each(function(){if(B.data(this,"destroy.tabs")){B(this).remove()}else{B(this).removeClass([A.selectedClass,A.deselectableClass,A.disabledClass,A.panelClass,A.hideClass].join(" "))}});if(A.cookie){this._cookie(null,A.cookie)}},_setData:function(A,D){if((/^selected/).test(A)){this.select(D)}else{this.options[A]=D;this._tabify()}},length:function(){return this.$tabs.length},_tabId:function(A){return A.title&&A.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+B.data(A)},_sanitizeSelector:function(A){return A.replace(/:/g,"\\:")},_cookie:function(){var A=this.cookie||(this.cookie="ui-tabs-"+B.data(this.element[0]));return B.cookie.apply(null,[A].concat(B.makeArray(arguments)))},_tabify:function(R){this.$lis=B("li:has(a[href])",this.element);this.$tabs=this.$lis.map(function(){return B("a",this)[0]});this.$panels=B([]);var S=this,W=this.options;this.$tabs.each(function(F,E){if(E.hash&&E.hash.replace("#","")){S.$panels=S.$panels.add(S._sanitizeSelector(E.hash))}else{if(B(E).attr("href")!="#"){B.data(E,"href.tabs",E.href);B.data(E,"load.tabs",E.href);var D=S._tabId(E);E.href="#"+D;var C=B("#"+D);if(!C.length){C=B(W.panelTemplate).attr("id",D).addClass(W.panelClass).insertAfter(S.$panels[F-1]||S.element);C.data("destroy.tabs",true)}S.$panels=S.$panels.add(C)}else{W.disabled.push(F+1)}}});if(R){this.element.addClass(W.navClass);this.$panels.addClass(W.panelClass);if(W.selected===undefined){if(location.hash){this.$tabs.each(function(D,C){if(C.hash==location.hash){W.selected=D;return false}})}else{if(W.cookie){var Q=parseInt(S._cookie(),10);if(Q&&S.$tabs[Q]){W.selected=Q}}else{if(S.$lis.filter("."+W.selectedClass).length){W.selected=S.$lis.index(S.$lis.filter("."+W.selectedClass)[0])}}}}W.selected=W.selected===null||W.selected!==undefined?W.selected:0;W.disabled=B.unique(W.disabled.concat(B.map(this.$lis.filter("."+W.disabledClass),function(D,C){return S.$lis.index(D)}))).sort();if(B.inArray(W.selected,W.disabled)!=-1){W.disabled.splice(B.inArray(W.selected,W.disabled),1)}this.$panels.addClass(W.hideClass);this.$lis.removeClass(W.selectedClass);if(W.selected!==null){this.$panels.eq(W.selected).removeClass(W.hideClass);var a=[W.selectedClass];if(W.deselectable){a.push(W.deselectableClass)}this.$lis.eq(W.selected).addClass(a.join(" "));var b=function(){S._trigger("show",null,S.ui(S.$tabs[W.selected],S.$panels[W.selected]))};if(B.data(this.$tabs[W.selected],"load.tabs")){this.load(W.selected,b)}else{b()}}B(window).bind("unload",function(){S.$tabs.unbind(".tabs");S.$lis=S.$tabs=S.$panels=null})}else{W.selected=this.$lis.index(this.$lis.filter("."+W.selectedClass)[0])}if(W.cookie){this._cookie(W.selected,W.cookie)}for(var Y=0,U;U=this.$lis[Y];Y++){B(U)[B.inArray(Y,W.disabled)!=-1&&!B(U).hasClass(W.selectedClass)?"addClass":"removeClass"](W.disabledClass)}if(W.cache===false){this.$tabs.removeData("cache.tabs")}var V,P;if(W.fx){if(W.fx.constructor==Array){V=W.fx[0];P=W.fx[1]}else{V=P=W.fx}}function Z(C,D){C.css({display:""});if(B.browser.msie&&D.opacity){C[0].style.removeAttribute("filter")}}var A=P?function(C,D){D.animate(P,P.duration||"normal",function(){D.removeClass(W.hideClass);Z(D,P);S._trigger("show",null,S.ui(C,D[0]))})}:function(C,D){D.removeClass(W.hideClass);S._trigger("show",null,S.ui(C,D[0]))};var T=V?function(E,D,C){D.animate(V,V.duration||"normal",function(){D.addClass(W.hideClass);Z(D,V);if(C){A(E,C,D)}})}:function(E,D,C){D.addClass(W.hideClass);if(C){A(E,C)}};function X(C,G,E,D){var F=[W.selectedClass];if(W.deselectable){F.push(W.deselectableClass)}G.addClass(F.join(" ")).siblings().removeClass(F.join(" "));T(C,E,D)}this.$tabs.unbind(".tabs").bind(W.event+".tabs",function(){var D=B(this).parents("li:eq(0)"),E=S.$panels.filter(":visible"),C=B(S._sanitizeSelector(this.hash));if((D.hasClass(W.selectedClass)&&!W.deselectable)||D.hasClass(W.disabledClass)||B(this).hasClass(W.loadingClass)||S._trigger("select",null,S.ui(this,C[0]))===false){this.blur();return false}W.selected=S.$tabs.index(this);if(W.deselectable){if(D.hasClass(W.selectedClass)){S.options.selected=null;D.removeClass([W.selectedClass,W.deselectableClass].join(" "));S.$panels.stop();T(this,E);this.blur();return false}else{if(!E.length){S.$panels.stop();var F=this;S.load(S.$tabs.index(this),function(){D.addClass([W.selectedClass,W.deselectableClass].join(" "));A(F,C)});this.blur();return false}}}if(W.cookie){S._cookie(W.selected,W.cookie)}S.$panels.stop();if(C.length){var F=this;S.load(S.$tabs.index(this),E.length?function(){X(F,D,E,C)}:function(){D.addClass(W.selectedClass);A(F,C)})}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(B.browser.msie){this.blur()}return false});if(W.event!="click"){this.$tabs.bind("click.tabs",function(){return false})}},add:function(P,O,L){if(L==undefined){L=this.$tabs.length}var N=this.options;var J=B(N.tabTemplate.replace(/#\{href\}/g,P).replace(/#\{label\}/g,O));J.data("destroy.tabs",true);var A=P.indexOf("#")==0?P.replace("#",""):this._tabId(B("a:first-child",J)[0]);var M=B("#"+A);if(!M.length){M=B(N.panelTemplate).attr("id",A).addClass(N.hideClass).data("destroy.tabs",true)}M.addClass(N.panelClass);if(L>=this.$lis.length){J.appendTo(this.element);M.appendTo(this.element[0].parentNode)}else{J.insertBefore(this.$lis[L]);M.insertBefore(this.$panels[L])}N.disabled=B.map(N.disabled,function(C,D){return C>=L?++C:C});this._tabify();if(this.$tabs.length==1){J.addClass(N.selectedClass);M.removeClass(N.hideClass);var K=B.data(this.$tabs[0],"load.tabs");if(K){this.load(L,K)}}this._trigger("add",null,this.ui(this.$tabs[L],this.$panels[L]))},remove:function(G){var A=this.options,F=this.$lis.eq(G).remove(),H=this.$panels.eq(G).remove();if(F.hasClass(A.selectedClass)&&this.$tabs.length>1){this.select(G+(G+1=G?--D:D});this._tabify();this._trigger("remove",null,this.ui(F.find("a")[0],H[0]))},enable:function(E){var F=this.options;if(B.inArray(E,F.disabled)==-1){return}var A=this.$lis.eq(E).removeClass(F.disabledClass);if(B.browser.safari){A.css("display","inline-block");setTimeout(function(){A.css("display","block")},0)}F.disabled=B.grep(F.disabled,function(C,D){return C!=E});this._trigger("enable",null,this.ui(this.$tabs[E],this.$panels[E]))},disable:function(F){var E=this,A=this.options;if(F!=A.selected){this.$lis.eq(F).addClass(A.disabledClass);A.disabled.push(F);A.disabled.sort();this._trigger("disable",null,this.ui(this.$tabs[F],this.$panels[F]))}},select:function(A){if(typeof A=="string"){A=this.$tabs.index(this.$tabs.filter("[href$="+A+"]")[0])}this.$tabs.eq(A).trigger(this.options.event+".tabs")},load:function(U,A){var P=this,V=this.options,W=this.$tabs.eq(U),X=W[0],N=A==undefined||A===false,R=W.data("load.tabs");A=A||function(){};if(!R||!N&&B.data(X,"cache.tabs")){A();return}var Q=function(D){var E=B(D),C=E.find("*:last");return C.length&&C.is(":not(img)")&&C||E};var S=function(){P.$tabs.filter("."+V.loadingClass).removeClass(V.loadingClass).each(function(){if(V.spinner){Q(this).parent().html(Q(this).data("label.tabs"))}});P.xhr=null};if(V.spinner){var O=Q(X).html();Q(X).wrapInner("").find("em").data("label.tabs",O).html(V.spinner)}var T=B.extend({},V.ajaxOptions,{url:R,success:function(E,D){B(P._sanitizeSelector(X.hash)).html(E);S();if(V.cache){B.data(X,"cache.tabs",true)}P._trigger("load",null,P.ui(P.$tabs[U],P.$panels[U]));try{V.ajaxOptions.success(E,D)}catch(C){}A()}});if(this.xhr){this.xhr.abort();S()}W.addClass(V.loadingClass);P.xhr=B.ajax(T)},url:function(D,A){this.$tabs.eq(D).removeData("cache.tabs").data("load.tabs",A)},ui:function(D,A){return{options:this.options,tab:D,panel:A,index:this.$tabs.index(D)}}});B.extend(B.ui.tabs,{version:"1.6",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,deselectable:false,deselectableClass:"ui-tabs-deselectable",disabled:[],disabledClass:"ui-tabs-disabled",event:"click",fx:null,hideClass:"ui-tabs-hide",idPrefix:"ui-tabs-",loadingClass:"ui-tabs-loading",navClass:"ui-tabs-nav",panelClass:"ui-tabs-panel",panelTemplate:"
",selectedClass:"ui-tabs-selected",spinner:"Loading…",tabTemplate:'
  • #{label}
  • '}});B.extend(B.ui.tabs.prototype,{rotation:null,rotate:function(L,A){A=A||false;var K=this,J=this.options.selected;function H(){K.rotation=setInterval(function(){J=++J