var lang_db={lang:[{key:"lang_en_us",locale:"English"},{key:"lang_zh_cn",locale:"简体中文"},{key:"lang_zh_tw",locale:"繁體中文"},{key:"lang_de_de",locale:"Deutsch"},{key:"lang_ru_ru",locale:"Русский"},{key:"lang_fr_fr",locale:"Français"},{key:"lang_es_es",locale:"Español"},{key:"lang_ko_kr",locale:"한국어"}]};var dateFormat=function(){var A=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,B=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,D=/[^-+\dA-Z]/g,C=function(F,E){F=String(F);E=E||2;while(F.length<E){F="0"+F}return F};return function(J,V,R){var G=dateFormat;if(arguments.length==1&&(typeof J=="string"||J instanceof String)&&!/\d/.test(J)){V=J;J=undefined}J=J?new Date(J):new Date();if(isNaN(J)){throw new SyntaxError("invalid date")}V=String(G.masks[V]||V||G.masks["default"]);if(V.slice(0,4)=="UTC:"){V=V.slice(4);R=true}var T=R?"getUTC":"get",O=J[T+"Date"](),E=J[T+"Day"](),K=J[T+"Month"](),Q=J[T+"FullYear"](),S=J[T+"Hours"](),N=J[T+"Minutes"](),U=J[T+"Seconds"](),P=J[T+"Milliseconds"](),F=R?0:J.getTimezoneOffset(),I={d:O,dd:C(O),ddd:G.i18n.dayNames[E],dddd:G.i18n.dayNames[E+7],m:K+1,mm:C(K+1),mmm:G.i18n.monthNames[K],mmmm:G.i18n.monthNames[K+12],yy:String(Q).slice(2),yyyy:Q,h:S%12||12,hh:C(S%12||12),H:S,HH:C(S),M:N,MM:C(N),s:U,ss:C(U),l:C(P,3),L:C(P>99?Math.round(P/10):P),t:S<12?"a":"p",tt:S<12?"am":"pm",T:S<12?"A":"P",TT:S<12?"AM":"PM",Z:R?"UTC":(String(J).match(B)||[""]).pop().replace(D,""),o:(F>0?"-":"+")+C(Math.floor(Math.abs(F)/60)*100+Math.abs(F)%60,4),S:["th","st","nd","rd"][O%10>3?0:(O%100-O%10!=10)*O%10]};return V.replace(A,function(H){return H in I?I[H]:H.slice(1,H.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(A,B){return dateFormat(this,A,B)};function clearTbody(A){var C=document.getElementById(A);if(C){for(var B=C.childNodes.length-1;B>=0;B--){C.removeChild(C.childNodes[B])}}}function updateLink(B,A){var E=document.getElementsByTagName("a");for(var D=0;D<E.length;D++){var C=E[D];if(C.href.startWith(B)){C.href=C.href.replace(B,A)}}}function dynSortFnUp(B,A){if(B[0]<A[0]){return -1}if(B[0]>A[0]){return +1}return 0}function dynSortFnDown(B,A){if(B[0]<A[0]){return +1}if(B[0]>A[0]){return -1}return 0}function getObject(A){if(document.getElementById){return document.getElementById(A)}else{if(document.all&&document.all(A)){return document.all(A)}else{return false}}}function getStyleObject(A){if(getObject(A)){return getObject(A).style}else{return false}}function hideObject(A){var B=getObject(A);if(B&&B.style){B.style.display="none";return true}return false}function showObject(A){var B=getObject(A);if(B&&B.style){B.style.display="";return true}return false}function displayObject(A){var B=getObject(A);if(B&&B.style){if(B.style.display==""){B.style.display="none"}else{B.style.display=""}return true}return false}function selectAll(B){for(var A=0;A<B.elements.length;A++){var C=B.elements[A];C.checked=true}}function reserveSelect(B){for(var A=0;A<B.elements.length;A++){var C=B.elements[A];if(C.checked==true){C.checked=false}else{C.checked=true}}}function validatecheckbox(B){if(B!=null){var A=B.length;if(A!=null){for(i=0;i<A;i++){if(B[i].checked){return true;break}}}else{if(B.checked){return true}}}return false}function string_get_ascii_leg(A){var B,C;C=0;for(B=0;B<A.length;B++){C++;if(A.charCodeAt(B)>255){C++}}return C}function string_showstr(B,A){showstr="";flag=false;strleg=string_get_ascii_leg(B);if(strleg>A){for(i=0,j=0;i<A;i++,j++){showstr=showstr.concat(B.charAt(j));if(!(B.charCodeAt(i)<255)){i++}}showstr=showstr.concat("...")}else{showstr=B}showed='<span title="'.concat(B).concat('">').concat(showstr).concat("</span>");document.write(showed);return}function shortstr(A){string_showstr(A,8)}function setCookie(B,D,A,F,C,E){document.cookie=B+"="+escape(D)+((A)?"; expires="+A.toGMTString():"")+((F)?"; path="+F:"")+((C)?"; domain="+C:"")+((E)?"; secure":"")}function getCookie(B){var D=B+"=";var E=document.cookie.indexOf(D);if(E==-1){return null}var A=document.cookie.indexOf(";",E+D.length);if(A==-1){A=document.cookie.length}var C=document.cookie.substring(E+D.length,A);return unescape(C)}function deleteCookie(A,C,B){if(getCookie(A)){document.cookie=A+"="+((C)?"; path="+C:"")+((B)?"; domain="+B:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}}function updateContent(A,B){$("#"+B).load(A)}function remoteCall(A,B){$.ajax({type:"GET",dataType:"jsonp",data:B,jsonp:"jsonp_callback",url:A,success:function(C){}})}function cNum(A){return(parseInt(A,16)).toString(10)}function selected(B,A){obj=B.options;for(i=0;i<obj.length;i++){if(obj[i].value==A){obj[i].selected=true}}}function GetCookie(D){var B=D+"=";var F=B.length;var A=window.document.cookie.length;var E=0;while(E<A){var C=E+F;if(window.document.cookie.substring(E,C)==B){return getCookieVal(C)}E=window.document.cookie.indexOf(" ",E)+1;if(E==0){break}}return null}function getCookieVal(B){var A=window.document.cookie.indexOf(";",B);if(A==-1){A=window.document.cookie.length}return unescape(window.document.cookie.substring(B,A))}function SetCookie(A,B){var C=new Date();C.setTime(C.getTime()+(30*24*60*60*1000));window.document.cookie=A+"="+escape(B)+"; expires="+C.toGMTString()+";path=/"}function DeleteCookie(A){var C=new Date();C.setTime(C.getTime()-1);var B=GetCookie(A);window.document.cookie=A+"="+B+"; expires="+C.toGMTString()+";path=/"}String.prototype.endWith=function(A){if(A==null||A==""||this.length==0||A.length>this.length){return false}if(this.substring(this.length-A.length)==A){return true}else{return false}return true};String.prototype.startWith=function(A){if(A==null||A==""||this.length==0||A.length>this.length){return false}if(this.substr(0,A.length)==A){return true}else{return false}return true};String.prototype.replaceAll=function(B,A){return this.replace(new RegExp(B,"gm"),A)};Validator={Require:/.+/,Email:/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,Phone:/^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}(\-\d{1,4})?$/,Mobile:/^((\(\d{2,3}\))|(\d{3}\-))?13\d{9}$/,Url:/^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/,IdCard:"this.IsIdCard(value)",Currency:/^\d+(\.\d+)?$/,Number:/^\d+$/,Zip:/^[1-9]\d{5}$/,QQ:/^[1-9]\d{4,8}$/,Integer:/^[-\+]?\d+$/,Double:/^[-\+]?\d+(\.\d+)?$/,English:/^[A-Za-z]+$/,Chinese:/^[\u0391-\uFFE5]+$/,Username:/^[a-z]\w{3,}$/i,UnSafe:/^(([A-Z]*|[a-z]*|\d*|[-_\~!@#\$%\^&\*\.\(\)\[\]\{\}<>\?\\\/\'\"]*)|.{0,5})$|\s/,IsSafe:function(A){return !this.UnSafe.test(A)},SafeString:"this.IsSafe(value)",Filter:"this.DoFilter(value, getAttribute('accept'))",Limit:"this.limit(value.length,getAttribute('min'), getAttribute('max'))",LimitB:"this.limit(this.LenB(value), getAttribute('min'), getAttribute('max'))",Date:"this.IsDate(value, getAttribute('format'))",Repeat:"value == document.getElementsByName(getAttribute('to'))[0].value",Range:"getAttribute('min') < (value|0) && (value|0) < getAttribute('max')",Compare:"this.compare(value,getAttribute('operator'),getAttribute('to'))",Custom:"this.Exec(value, getAttribute('regexp'))",Group:"this.MustChecked(getAttribute('name'), getAttribute('min'), getAttribute('max'))",ErrorItem:[document.forms[0]],ErrorMessage:["Error Message : \r\n"],Validate:function(theForm,mode){var obj=theForm||event.srcElement;var count=obj.elements.length;this.ErrorMessage.length=1;this.ErrorItem.length=1;this.ErrorItem[0]=obj;for(var i=0;i<count;i++){with(obj.elements[i]){var _dataType=getAttribute("dataType");if(typeof(_dataType)=="object"||typeof(this[_dataType])=="undefined"){continue}this.ClearState(obj.elements[i]);if(getAttribute("require")=="false"&&value==""){continue}switch(_dataType){case"IdCard":case"Date":case"Repeat":case"Range":case"Compare":case"Custom":case"Group":case"Limit":case"LimitB":case"SafeString":case"Filter":break}}}if(this.ErrorMessage.length>1){mode=mode||1;var errCount=this.ErrorItem.length;switch(mode){case 2:for(var i=1;i<errCount;i++){this.ErrorItem[i].style.color="red"}case 1:alert(this.ErrorMessage.join("\n"));this.ErrorItem[1].focus();break;case 3:for(var i=1;i<errCount;i++){try{var span=document.createElement("SPAN");span.id="__ErrorMessagePanel";span.style.color="red";this.ErrorItem[i].parentNode.appendChild(span);span.innerHTML="<br>"+this.ErrorMessage[i].replace(/\d+:/,"*")}catch(e){alert(e.description)}}this.ErrorItem[1].focus();break;default:alert(this.ErrorMessage.join("\n"));break}return false}return true},limit:function(B,C,A){C=C||0;A=A||Number.MAX_VALUE;return C<=B&&B<=A},LenB:function(A){return A.replace(/[^\x00-\xff]/g,"**").length},ClearState:function(elem){with(elem){if(style.color=="red"){style.color=""}var lastNode=parentNode.childNodes[parentNode.childNodes.length-1];if(lastNode.id=="__ErrorMessagePanel"){parentNode.removeChild(lastNode)}}},AddError:function(A,B){this.ErrorItem[this.ErrorItem.length]=this.ErrorItem[0].elements[A];this.ErrorMessage[this.ErrorMessage.length]=this.ErrorMessage.length+":"+B},Exec:function(B,A){return new RegExp(A,"g").test(B)},compare:function(C,A,B){switch(A){case"NotEqual":return(C!=B);case"GreaterThan":return(C>B);case"GreaterThanEqual":return(C>=B);case"LessThan":return(C<B);case"LessThanEqual":return(C<=B);default:return(C==B)}},MustChecked:function(D,F,B){var A=document.getElementsByName(D);var C=0;F=F||1;B=B||A.length;for(var E=A.length-1;E>=0;E--){if(A[E].checked){C++}}return F<=C&&C<=B},DoFilter:function(A,B){return new RegExp("^.+.(?=EXT)(EXT)$".replace(/EXT/g,B.split(/\s*,\s*/).join("|")),"gi").test(A)},IsIdCard:function(A){return true},IsDate:function(H,B){B=B||"ymd";var A,E,F,C;switch(B){case"ymd":A=H.match(new RegExp("^((\\d{4})|(\\d{2}))([-./])(\\d{1,2})\\4(\\d{1,2})$"));if(A==null){return false}C=A[6];F=A[5]*1;E=(A[2].length==4)?A[2]:G(parseInt(A[3],10));break;case"yyyymmdd":A=H.match(new RegExp("^(\\d{4})-(\\d{2})-(\\d{2})$"));if(A==null){return false}C=A[3];F=A[2];E=A[1];break;case"dmy":A=H.match(new RegExp("^(\\d{1,2})([-./])(\\d{1,2})\\2((\\d{4})|(\\d{2}))$"));if(A==null){return false}C=A[1];F=A[3]*1;E=(A[5].length==4)?A[5]:G(parseInt(A[6],10));break;default:break}if(!parseInt(F)){return false}F=F==0?12:F;var D=new Date(E,F-1,C);return(typeof(D)=="object"&&E==D.getFullYear()&&F==(D.getMonth()+1)&&C==D.getDate());function G(I){return((I<30?"20":"19")+I)|0}}};function mainmenu(){$(" #nav ul ").css({display:"none"});$(" #nav li").hover(function(){$(this).find("ul:first").css({visibility:"visible",display:"none"}).show(0);if(typeof($(this).attr("id"))=="undefined"){return false}if($(this).attr("id").startWith("wlk43")){$(this).find("ul:first").css({top:"-250"})}if($(this).attr("id").startWith("wlk59")){$(this).find("ul:first").css({top:"-150"})}if($(this).attr("id").startWith("wlk62")){$(this).find("ul:first").css({top:"-100"})}if($(this).attr("id")=="wlk0"){$(this).find("ul:first").css({top:"-120"})}if($(this).attr("id").startWith("tbc39")){$(this).find("ul:first").css({top:"-100"})}if($(this).attr("id").startWith("tbc32")){$(this).find("ul:first").css({top:"-300"})}},function(){$(this).find("ul:first").css({visibility:"hidden"})})}$(document).ready(function(){mainmenu()});if(typeof infosoftglobal=="undefined"){var infosoftglobal=new Object()}if(typeof infosoftglobal.FusionChartsUtil=="undefined"){infosoftglobal.FusionChartsUtil=new Object()}infosoftglobal.FusionCharts=function(C,A,I,F,K,D,G,J,B,E,H){if(!document.getElementById){return}this.initialDataSet=false;this.params=new Object();this.variables=new Object();this.attributes=new Array();if(C){this.setAttribute("swf",C)}if(A){this.setAttribute("id",A)}if(I){this.setAttribute("width",I)}if(F){this.setAttribute("height",F)}if(G){this.addParam("bgcolor",G)}this.addParam("quality","high");this.addParam("allowScriptAccess","always");this.addVariable("chartWidth",I);this.addVariable("chartHeight",F);K=K?K:0;this.addVariable("debugMode",K);this.addVariable("DOMId",A);D=D?D:0;this.addVariable("registerWithJS",D);J=J?J:"noScale";this.addVariable("scaleMode",J);B=B?B:"EN";this.addVariable("lang",B);this.detectFlashVersion=E?E:1;this.autoInstallRedirect=H?H:1;this.installedVer=infosoftglobal.FusionChartsUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){infosoftglobal.FusionCharts.doPrepUnload=true}};infosoftglobal.FusionCharts.prototype={setAttribute:function(A,B){this.attributes[A]=B},getAttribute:function(A){return this.attributes[A]},addParam:function(A,B){this.params[A]=B},getParams:function(){return this.params},addVariable:function(A,B){this.variables[A]=B},getVariable:function(A){return this.variables[A]},getVariables:function(){return this.variables},getVariablePairs:function(){var A=new Array();var B;var C=this.getVariables();for(B in C){A.push(B+"="+C[B])}return A},getSWFHTML:function(){var D="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){D='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"  ';D+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var C=this.getParams();for(var A in C){D+=[A]+'="'+C[A]+'" '}var B=this.getVariablePairs().join("&");if(B.length>0){D+='flashvars="'+B+'"'}D+="/>"}else{D='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';D+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var C=this.getParams();for(var A in C){D+='<param name="'+A+'" value="'+C[A]+'" />'}var B=this.getVariablePairs().join("&");if(B.length>0){D+='<param name="flashvars" value="'+B+'" />'}D+="</object>"}return D},setDataURL:function(A){if(this.initialDataSet==false){this.addVariable("dataURL",A);this.initialDataSet=true}else{var B=infosoftglobal.FusionChartsUtil.getChartObject(this.getAttribute("id"));B.setDataURL(A)}},setDataXML:function(A){if(this.initialDataSet==false){this.addVariable("dataXML",A);this.initialDataSet=true}else{var B=infosoftglobal.FusionChartsUtil.getChartObject(this.getAttribute("id"));B.setDataXML(A)}},render:function(A){if((this.detectFlashVersion==1)&&(this.installedVer.major<6)){if(this.autoInstallRedirect==1){var B=window.confirm("You need Adobe Flash Player 6 (or above) to view the charts. It is a free and lightweight installation from Adobe.com. Please click on Ok to install the same.");if(B){window.location="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"}else{return false}}else{return false}}else{var C=(typeof A=="string")?document.getElementById(A):A;C.innerHTML=this.getSWFHTML();if(!document.embeds[this.getAttribute("id")]&&!window[this.getAttribute("id")]){window[this.getAttribute("id")]=document.getElementById(this.getAttribute("id"))}return true}}};infosoftglobal.FusionChartsUtil.getPlayerVersion=function(){var C=new infosoftglobal.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){C=new infosoftglobal.PlayerVersion(A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var D=1;var B=3;while(D){try{B++;D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+B);C=new infosoftglobal.PlayerVersion([B,0,0])}catch(E){D=null}}}else{try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(E){try{var D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");C=new infosoftglobal.PlayerVersion([6,0,21]);D.AllowScriptAccess="always"}catch(E){if(C.major==6){return C}}try{D=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(E){}}if(D!=null){C=new infosoftglobal.PlayerVersion(D.GetVariable("$version").split(" ")[1].split(","))}}}return C};infosoftglobal.PlayerVersion=function(A){this.major=A[0]!=null?parseInt(A[0]):0;this.minor=A[1]!=null?parseInt(A[1]):0;this.rev=A[2]!=null?parseInt(A[2]):0};infosoftglobal.FusionChartsUtil.cleanupSWFs=function(){var C=document.getElementsByTagName("OBJECT");for(var B=C.length-1;B>=0;B--){C[B].style.display="none";for(var A in C[B]){if(typeof C[B][A]=="function"){C[B][A]=function(){}}}}};if(infosoftglobal.FusionCharts.doPrepUnload){if(!infosoftglobal.unloadSet){infosoftglobal.FusionChartsUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",infosoftglobal.FusionChartsUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",infosoftglobal.FusionChartsUtil.prepUnload);infosoftglobal.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(A){return document.all[A]}}if(Array.prototype.push==null){Array.prototype.push=function(A){this[this.length]=A;return this.length}}infosoftglobal.FusionChartsUtil.getChartObject=function(B){var A=null;if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[B]){A=document.embeds[B]}else{A=window.document[B]}}else{A=window[B]}if(!A){A=document.getElementById(B)}return A};infosoftglobal.FusionChartsUtil.updateChartXML=function(C,B){var A=infosoftglobal.FusionChartsUtil.getChartObject(C);A.SetVariable("_root.dataURL","");A.SetVariable("_root.isNewData","1");A.SetVariable("_root.newData",B);A.TGotoLabel("/","JavaScriptHandler")};var getChartFromId=infosoftglobal.FusionChartsUtil.getChartObject;var updateChartXML=infosoftglobal.FusionChartsUtil.updateChartXML;var FusionCharts=infosoftglobal.FusionCharts;function formatNumber(E,H){var J=E?E.toString().split("."):["0"];var A=H?H.split("."):[""];var G="";var I=J[0];var B=A[0];var D=I.length-1;var K=false;for(var F=B.length-1;F>=0;F--){switch(B.substr(F,1)){case"#":if(D>=0){G=I.substr(D--,1)+G}break;case"0":if(D>=0){G=I.substr(D--,1)+G}else{G="0"+G}break;case",":K=true;G=","+G;break}}if(D>=0){if(K){var C=I.length;for(;D>=0;D--){G=I.substr(D,1)+G;if(D>0&&((C-D)%3)==0){G=","+G}}}else{G=I.substr(0,D+1)+G}}G=G+".";I=J.length>1?J[1]:"";B=A.length>1?A[1]:"";D=0;for(var F=0;F<B.length;F++){switch(B.substr(F,1)){case"#":if(D<I.length){G+=I.substr(D++,1)}break;case"0":if(D<I.length){G+=I.substr(D++,1)}else{G+="0"}break}}return G.replace(/^,+/,"").replace(/\.$/,"")}function displayFormatNumber(A,B){document.write(formatNumber(A,B))}jQuery.ui||(function(G){var A=G.fn.remove,F=G.browser.mozilla&&(parseFloat(G.browser.version)<1.9);G.ui={version:"1.7.1",plugin:{add:function(L,K,N){var J=G.ui[L].prototype;for(var M in N){J.plugins[M]=J.plugins[M]||[];J.plugins[M].push([K,N[M]])}},call:function(M,K,L){var N=M.plugins[K];if(!N||!M.element[0].parentNode){return}for(var J=0;J<N.length;J++){if(M.options[N[J][0]]){N[J][1].apply(M.element,L)}}}},contains:function(J,K){return document.compareDocumentPosition?J.compareDocumentPosition(K)&16:J!==K&&J.contains(K)},hasScroll:function(J,L){if(G(J).css("overflow")=="hidden"){return false}var M=(L&&L=="left")?"scrollLeft":"scrollTop",K=false;if(J[M]>0){return true}J[M]=1;K=(J[M]>0);J[M]=0;return K},isOverAxis:function(K,L,J){return(K>L)&&(K<(L+J))},isOver:function(N,L,O,J,M,K){return G.ui.isOverAxis(N,O,M)&&G.ui.isOverAxis(L,J,K)},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(F){var D=G.attr,E=G.fn.removeAttr,B="http://www.w3.org/2005/07/aaa",I=/^aria-/,H=/^wairole:/;G.attr=function(L,M,K){var J=K!==undefined;return(M=="role"?(J?D.call(this,L,M,"wairole:"+K):(D.apply(this,arguments)||"").replace(H,"")):(I.test(M)?(J?L.setAttributeNS(B,M.replace(I,"aaa:"),K):D.call(this,L,M.replace(I,"aaa:"))):D.apply(this,arguments)))};G.fn.removeAttr=function(J){return(I.test(J)?this.each(function(){this.removeAttributeNS(B,J.replace(I,""))}):E.call(this,J))}}G.fn.extend({remove:function(){G("*",this).add(this).each(function(){G(this).triggerHandler("remove")});return A.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 J;if((G.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){J=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(G.curCSS(this,"position",1))&&(/(auto|scroll)/).test(G.curCSS(this,"overflow",1)+G.curCSS(this,"overflow-y",1)+G.curCSS(this,"overflow-x",1))}).eq(0)}else{J=this.parents().filter(function(){return(/(auto|scroll)/).test(G.curCSS(this,"overflow",1)+G.curCSS(this,"overflow-y",1)+G.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!J.length?G(document):J}});G.extend(G.expr[":"],{data:function(J,K,L){return !!G.data(J,L[3])},focusable:function(K){var J=K.nodeName.toLowerCase(),L=G.attr(K,"tabindex");return(/input|select|textarea|button|object/.test(J)?!K.disabled:"a"==J||"area"==J?K.href||!isNaN(L):!isNaN(L))&&!G(K)["area"==J?"parents":"closest"](":hidden").length},tabbable:function(J){var K=G.attr(J,"tabindex");return(isNaN(K)||K>=0)&&G(J).is(":focusable")}});function C(J,O,N,K){function L(P){var Q=G[J][O][P]||[];return(typeof Q=="string"?Q.split(/,?\s+/):Q)}var M=L("getter");if(K.length==1&&typeof K[0]=="string"){M=M.concat(L("getterSetter"))}return(G.inArray(N,M)!=-1)}G.widget=function(K,L){var J=K.split(".")[0];K=K.split(".")[1];G.fn[K]=function(N){var P=(typeof N=="string"),O=Array.prototype.slice.call(arguments,1);if(P&&N.substring(0,1)=="_"){return this}if(P&&C(J,K,N,O)){var M=G.data(this[0],K);return(M?M[N].apply(M,O):undefined)}return this.each(function(){var Q=G.data(this,K);(!Q&&!P&&G.data(this,K,new G[J][K](this,N))._init());(Q&&P&&G.isFunction(Q[N])&&Q[N].apply(Q,O))})};G[J]=G[J]||{};G[J][K]=function(N,O){var M=this;this.namespace=J;this.widgetName=K;this.widgetEventPrefix=G[J][K].eventPrefix||K;this.widgetBaseClass=J+"-"+K;this.options=G.extend({},G.widget.defaults,G[J][K].defaults,G.metadata&&G.metadata.get(N)[K],O);this.element=G(N).bind("setData."+K,function(Q,R,P){if(Q.target==N){return M._setData(R,P)}}).bind("getData."+K,function(P,Q){if(P.target==N){return M._getData(Q)}}).bind("remove",function(){return M.destroy()})};G[J][K].prototype=G.extend({},G.widget.prototype,L);G[J][K].getterSetter="option"};G.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(K,J){var L=K,M=this;if(typeof K=="string"){if(J===undefined){return this._getData(K)}L={};L[K]=J}G.each(L,function(O,N){M._setData(O,N)})},_getData:function(J){return this.options[J]},_setData:function(K,J){this.options[K]=J;if(K=="disabled"){this.element[J?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",J)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(K,J,P){var N=this.options[K],M=(K==this.widgetEventPrefix?K:this.widgetEventPrefix+K);J=G.Event(J);J.type=M;if(J.originalEvent){for(var L=G.event.props.length,O;L;){O=G.event.props[--L];J[O]=J.originalEvent[O]}}this.element.trigger(J,P);return !(G.isFunction(N)&&N.call(this.element[0],J,P)===false||J.isDefaultPrevented())}};G.widget.defaults={disabled:false};G.ui.mouse={_mouseInit:function(){var J=this;this.element.bind("mousedown."+this.widgetName,function(K){return J._mouseDown(K)}).bind("click."+this.widgetName,function(K){if(J._preventClickEvent){J._preventClickEvent=false;K.stopImmediatePropagation();return false}});if(G.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(G.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(K){K.originalEvent=K.originalEvent||{};if(K.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(K));this._mouseDownEvent=K;var L=this,J=(K.which==1),M=(typeof this.options.cancel=="string"?G(K.target).parents().add(K.target).filter(this.options.cancel).length:false);if(!J||M||!this._mouseCapture(K)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){L.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(K)&&this._mouseDelayMet(K)){this._mouseStarted=(this._mouseStart(K)!==false);if(!this._mouseStarted){K.preventDefault();return true}}this._mouseMoveDelegate=function(N){return L._mouseMove(N)};this._mouseUpDelegate=function(N){return L._mouseUp(N)};G(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(G.browser.safari||K.preventDefault());K.originalEvent.mouseHandled=true;return true},_mouseMove:function(J){if(G.browser.msie&&!J.button){return this._mouseUp(J)}if(this._mouseStarted){this._mouseDrag(J);return J.preventDefault()}if(this._mouseDistanceMet(J)&&this._mouseDelayMet(J)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,J)!==false);(this._mouseStarted?this._mouseDrag(J):this._mouseUp(J))}return !this._mouseStarted},_mouseUp:function(J){G(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(J.target==this._mouseDownEvent.target);this._mouseStop(J)}return false},_mouseDistanceMet:function(J){return(Math.max(Math.abs(this._mouseDownEvent.pageX-J.pageX),Math.abs(this._mouseDownEvent.pageY-J.pageY))>=this.options.distance)},_mouseDelayMet:function(J){return this.mouseDelayMet},_mouseStart:function(J){},_mouseDrag:function(J){},_mouseStop:function(J){},_mouseCapture:function(J){return true}};G.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(A){A.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable}this._tabify(true)},_setData:function(B,C){if(B=="selected"){if(this.options.collapsible&&C==this.options.selected){return}this.select(C)}else{this.options[B]=C;if(B=="deselectable"){this.options.collapsible=C}this._tabify()}},_tabId:function(B){return B.title&&B.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+A.data(B)},_sanitizeSelector:function(B){return B.replace(/:/g,"\\:")},_cookie:function(){var B=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+A.data(this.list[0]));return A.cookie.apply(null,[B].concat(A.makeArray(arguments)))},_ui:function(C,B){return{tab:C,panel:B,index:this.anchors.index(C)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var B=A(this);B.html(B.data("label.tabs")).removeData("label.tabs")})},_tabify:function(C){this.list=this.element.children("ul:first");this.lis=A("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return A("a",this)[0]});this.panels=A([]);var B=this,L=this.options;var M=/^#.+/;this.anchors.each(function(S,U){var T=A(U).attr("href");var R=T.split("#")[0],Q;if(R&&(R===location.toString().split("#")[0]||(Q=A("base")[0])&&R===Q.href)){T=U.hash;U.href=T}if(M.test(T)){B.panels=B.panels.add(B._sanitizeSelector(T))}else{if(T!="#"){A.data(U,"href.tabs",T);A.data(U,"load.tabs",T.replace(/#.*$/,""));var O=B._tabId(U);U.href="#"+O;var P=A("#"+O);if(!P.length){P=A(L.panelTemplate).attr("id",O).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(B.panels[S-1]||B.list);P.data("destroy.tabs",true)}B.panels=B.panels.add(P)}else{L.disabled.push(S)}}});if(C){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(L.selected===undefined){if(location.hash){this.anchors.each(function(O,P){if(P.hash==location.hash){L.selected=O;return false}})}if(typeof L.selected!="number"&&L.cookie){L.selected=parseInt(B._cookie(),10)}if(typeof L.selected!="number"&&this.lis.filter(".ui-tabs-selected").length){L.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}L.selected=L.selected||0}else{if(L.selected===null){L.selected=-1}}L.selected=((L.selected>=0&&this.anchors[L.selected])||L.selected<0)?L.selected:0;L.disabled=A.unique(L.disabled.concat(A.map(this.lis.filter(".ui-state-disabled"),function(O,P){return B.lis.index(O)}))).sort();if(A.inArray(L.selected,L.disabled)!=-1){L.disabled.splice(A.inArray(L.selected,L.disabled),1)}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(L.selected>=0&&this.anchors.length){this.panels.eq(L.selected).removeClass("ui-tabs-hide");this.lis.eq(L.selected).addClass("ui-tabs-selected ui-state-active");B.element.queue("tabs",function(){B._trigger("show",null,B._ui(B.anchors[L.selected],B.panels[L.selected]))});this.load(L.selected)}A(window).bind("unload",function(){B.lis.add(B.anchors).unbind(".tabs");B.lis=B.anchors=B.panels=null})}else{L.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[L.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(L.cookie){this._cookie(L.selected,L.cookie)}for(var I=0,D;(D=this.lis[I]);I++){A(D)[A.inArray(I,L.disabled)!=-1&&!A(D).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}if(L.cache===false){this.anchors.removeData("cache.tabs")}this.lis.add(this.anchors).unbind(".tabs");if(L.event!="mouseover"){var J=function(P,O){if(O.is(":not(.ui-state-disabled)")){O.addClass("ui-state-"+P)}};var G=function(P,O){O.removeClass("ui-state-"+P)};this.lis.bind("mouseover.tabs",function(){J("hover",A(this))});this.lis.bind("mouseout.tabs",function(){G("hover",A(this))});this.anchors.bind("focus.tabs",function(){J("focus",A(this).closest("li"))});this.anchors.bind("blur.tabs",function(){G("focus",A(this).closest("li"))})}var N,H;if(L.fx){if(A.isArray(L.fx)){N=L.fx[0];H=L.fx[1]}else{N=H=L.fx}}function K(O,P){O.css({display:""});if(A.browser.msie&&P.opacity){O[0].style.removeAttribute("filter")}}var F=H?function(O,P){A(O).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");P.hide().removeClass("ui-tabs-hide").animate(H,H.duration||"normal",function(){K(P,H);B._trigger("show",null,B._ui(O,P[0]))})}:function(O,P){A(O).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");P.removeClass("ui-tabs-hide");B._trigger("show",null,B._ui(O,P[0]))};var E=N?function(P,O){O.animate(N,N.duration||"normal",function(){B.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");O.addClass("ui-tabs-hide");K(O,N);B.element.dequeue("tabs")})}:function(Q,O,P){B.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");O.addClass("ui-tabs-hide");B.element.dequeue("tabs")};this.anchors.bind(L.event+".tabs",function(){var R=this,P=A(this).closest("li"),O=B.panels.filter(":not(.ui-tabs-hide)"),Q=A(B._sanitizeSelector(this.hash));if((P.hasClass("ui-tabs-selected")&&!L.collapsible)||P.hasClass("ui-state-disabled")||P.hasClass("ui-state-processing")||B._trigger("select",null,B._ui(this,Q[0]))===false){this.blur();return false}L.selected=B.anchors.index(this);B.abort();if(L.collapsible){if(P.hasClass("ui-tabs-selected")){L.selected=-1;if(L.cookie){B._cookie(L.selected,L.cookie)}B.element.queue("tabs",function(){E(R,O)}).dequeue("tabs");this.blur();return false}else{if(!O.length){if(L.cookie){B._cookie(L.selected,L.cookie)}B.element.queue("tabs",function(){F(R,Q)});B.load(B.anchors.index(this));this.blur();return false}}}if(L.cookie){B._cookie(L.selected,L.cookie)}if(Q.length){if(O.length){B.element.queue("tabs",function(){E(R,O)})}B.element.queue("tabs",function(){F(R,Q)});B.load(B.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(A.browser.msie){this.blur()}});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var B=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var D=A.data(this,"href.tabs");if(D){this.href=D}var C=A(this).unbind(".tabs");A.each(["href","load","cache"],function(F,E){C.removeData(E+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){if(A.data(this,"destroy.tabs")){A(this).remove()}else{A(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}});if(B.cookie){this._cookie(null,B.cookie)}},add:function(G,H,I){if(I===undefined){I=this.anchors.length}var B=this,E=this.options,C=A(E.tabTemplate.replace(/#\{href\}/g,G).replace(/#\{label\}/g,H)),D=!G.indexOf("#")?G.replace("#",""):this._tabId(A("a",C)[0]);C.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var F=A("#"+D);if(!F.length){F=A(E.panelTemplate).attr("id",D).data("destroy.tabs",true)}F.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(I>=this.lis.length){C.appendTo(this.list);F.appendTo(this.list[0].parentNode)}else{C.insertBefore(this.lis[I]);F.insertBefore(this.panels[I])}E.disabled=A.map(E.disabled,function(J,K){return J>=I?++J:J});this._tabify();if(this.anchors.length==1){C.addClass("ui-tabs-selected ui-state-active");F.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){B._trigger("show",null,B._ui(B.anchors[0],B.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[I],this.panels[I]))},remove:function(B){var D=this.options,C=this.lis.eq(B).remove(),E=this.panels.eq(B).remove();if(C.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(B+(B+1<this.anchors.length?1:-1))}D.disabled=A.map(A.grep(D.disabled,function(F,G){return F!=B}),function(F,G){return F>=B?--F:F});this._tabify();this._trigger("remove",null,this._ui(C.find("a")[0],E[0]))},enable:function(B){var C=this.options;if(A.inArray(B,C.disabled)==-1){return}this.lis.eq(B).removeClass("ui-state-disabled");C.disabled=A.grep(C.disabled,function(D,E){return D!=B});this._trigger("enable",null,this._ui(this.anchors[B],this.panels[B]))},disable:function(D){var B=this,C=this.options;if(D!=C.selected){this.lis.eq(D).addClass("ui-state-disabled");C.disabled.push(D);C.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[D],this.panels[D]))}},select:function(B){if(typeof B=="string"){B=this.anchors.index(this.anchors.filter("[href$="+B+"]"))}else{if(B===null){B=-1}}if(B==-1&&this.options.collapsible){B=this.options.selected}this.anchors.eq(B).trigger(this.options.event+".tabs")},load:function(E){var G=this,C=this.options,B=this.anchors.eq(E)[0],F=A.data(B,"load.tabs");this.abort();if(!F||this.element.queue("tabs").length!==0&&A.data(B,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(E).addClass("ui-state-processing");if(C.spinner){var D=A("span",B);D.data("label.tabs",D.html()).html(C.spinner)}this.xhr=A.ajax(A.extend({},C.ajaxOptions,{url:F,success:function(I,J){A(G._sanitizeSelector(B.hash)).html(I);G._cleanup();if(C.cache){A.data(B,"cache.tabs",true)}G._trigger("load",null,G._ui(G.anchors[E],G.panels[E]));try{C.ajaxOptions.success(I,J)}catch(H){}G.element.dequeue("tabs")}}))},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(C,B){this.anchors.eq(C).removeData("cache.tabs").data("load.tabs",B)},length:function(){return this.anchors.length}});A.extend(A.ui.tabs,{version:"1.7.1",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"<div></div>",spinner:"<em>Loading&#8230;</em>",tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>'}});A.extend(A.ui.tabs.prototype,{rotation:null,rotate:function(F,D){var B=this,C=this.options;var G=B._rotate||(B._rotate=function(H){clearTimeout(B.rotation);B.rotation=setTimeout(function(){var I=C.selected;B.select(++I<B.anchors.length?I:0)},F);if(H){H.stopPropagation()}});var E=B._unrotate||(B._unrotate=!D?function(H){if(H.clientX){B.rotate(null)}}:function(H){t=C.selected;G()});if(F){this.element.bind("tabsshow",G);this.anchors.bind(C.event+".tabs",E);G()}else{clearTimeout(B.rotation);this.element.unbind("tabsshow",G);this.anchors.unbind(C.event+".tabs",E);delete this._rotate;delete this._unrotate}}})})(jQuery);(function(E){var I,H,G,D,F,J,C;E.fn.cluetip=function(L,K){if(typeof L=="object"){K=L;L=null}return this.each(function(k){var U=E(this);var f=E.extend(true,{},E.fn.cluetip.defaults,K||{},E.metadata?U.metadata():E.meta?U.data():{});var O=false;var Y=parseInt(f.cluezIndex,10)-1;var s=false,r=0;if(!E("#cluetip").length){H=E('<div id="cluetip-inner"></div>');D=E('<h3 id="cluetip-title"></h3>');G=E('<div id="cluetip-outer"></div>').append(H).prepend(D);I=E('<div id="cluetip"></div>').css({zIndex:f.cluezIndex}).append(G).append('<div id="cluetip-extra"></div>')[B](A).hide();E('<div id="cluetip-waitimage"></div>').css({position:"absolute",zIndex:Y-1}).insertBefore("#cluetip").hide();I.css({position:"absolute",zIndex:Y});G.css({position:"relative",zIndex:Y+1});F=E('<div id="cluetip-arrows" class="cluetip-arrows"></div>').css({zIndex:Y+1}).appendTo("#cluetip")}var h=(f.dropShadow)?+f.dropShadowSteps:0;if(!J){J=E([]);for(var w=0;w<h;w++){J=J.add(E("<div></div>").css({zIndex:Y-w-1,opacity:0.1,top:1+w,left:1+w}))}J.css({position:"absolute",backgroundColor:"#000"}).prependTo(I)}var d=U.attr(f.attribute),R=f.cluetipClass;if(!d&&!f.splitTitle&&!L){return true}if(f.local&&f.localPrefix){d=f.localPrefix+d}if(f.local&&f.hideLocal){E(d+":first").hide()}var e=parseInt(f.topOffset,10),a=parseInt(f.leftOffset,10);var Z,u;var W=isNaN(parseInt(f.height,10))?"auto":(/\D/g).test(f.height)?f.height:f.height+"px";var M,S,l,z,n,v;var X=isNaN(parseInt(f.width,10))?275:parseInt(f.width,10);var x=X+(parseInt(I.css("paddingLeft"),10)||0)+(parseInt(I.css("paddingRight"),10)||0)+h;var b=this.offsetWidth;var T,m,AA,o,N;var q;var g=(f.attribute!="title")?U.attr(f.titleAttribute):"";if(f.splitTitle){if(g==undefined){g=""}q=g.split(f.splitTitle);g=q.shift()}if(f.escapeTitle){g=g.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;")}var Q;var V=function(AF){if(!f.onActivate(U)){return false}s=true;I.removeClass().css({width:X});if(d==U.attr("href")){U.css("cursor",f.cursor)}U.attr("title","");if(f.hoverClass){U.addClass(f.hoverClass)}S=l=U.offset().top;T=U.offset().left;o=AF.pageX;n=AF.pageY;if(U[0].tagName.toLowerCase()!="area"){M=E(document).scrollTop();N=E(window).width()}if(f.positionBy=="fixed"){m=b+T+a;I.css({left:m})}else{m=(b>T&&T>x)||T+b+x+a>N?T-x-a:b+T+a;if(U[0].tagName.toLowerCase()=="area"||f.positionBy=="mouse"||b+x>N){if(o+20+x>N){I.addClass(" cluetip-"+R);m=(o-x-a)>=0?o-x-a-parseInt(I.css("marginLeft"),10)+parseInt(H.css("marginRight"),10):o-(x/2)}else{m=o+a}}var AB=m<0?AF.pageY+e:AF.pageY;I.css({left:(m>0&&f.positionBy!="bottomTop")?m:(o+(x/2)>N)?N/2-x/2:Math.max(o-(x/2),0)})}u=E(window).height();if(L){if(typeof L=="function"){L=L(U[0])}H.html(L);p(AB)}else{if(q){var AC=q.length;H.empty();for(var AD=0;AD<AC;AD++){if(AD==0){H.html(q[AD])}else{var AE=q[AD].replaceAll("{","<");AE=AE.replaceAll("}",">");H.append('<div class="split-body">'+AE+"</div>")}}p(AB)}else{if(!f.local&&d.indexOf("#")!=0){if(/\.(jpe?g|tiff?|gif|png)$/i.test(d)){H.html('<img src="'+d+'" alt="'+g+'" />');p(AB)}else{if(O&&f.ajaxCache){H.html(O);p(AB)}else{var AG=f.ajaxSettings;AG.cache=false;AG.url=d;AG.beforeSend=function(){G.children().empty();if(f.waitImage){E("#cluetip-waitimage").css({top:n+20,left:o+20}).show()}};AG.error=function(){if(s){H.html("<i>sorry, the contents could not be loaded</i>")}};AG.success=function(AI){O=f.ajaxProcess(AI);if(s){H.html(O)}};AG.complete=function(){C=E("#cluetip-inner img").length;if(C&&!E.browser.opera){E("#cluetip-inner img").load(function(){C--;if(C<1){E("#cluetip-waitimage").hide();if(s){p(AB)}}})}else{E("#cluetip-waitimage").hide();if(s){p(AB)}}};E.ajax(AG)}}}else{if(f.local){var AH=E(d+":eq("+k+")").clone(true).show();H.html(AH);p(AB)}}}}};var p=function(AD){I.addClass("cluetip-"+R);if(f.truncate){var AE=H.text().slice(0,f.truncate)+"...";H.html(AE)}function AB(){}g?D.show().html(g):(f.showTitle)?D.show().html("&nbsp;"):D.hide();if(f.sticky){var AC=E('<div id="cluetip-close"><a href="#">'+f.closeText+"</a></div>");(f.closePosition=="bottom")?AC.appendTo(H):(f.closePosition=="title")?AC.prependTo(D):AC.prependTo(H);AC.click(function(){c();return false});if(f.mouseOutClose){if(E.fn.hoverIntent&&f.hoverIntent){I.hoverIntent({over:AB,timeout:f.hoverIntent.timeout,out:function(){AC.trigger("click")}})}else{I.hover(AB,function(){AC.trigger("click")})}}else{I.unbind("mouseout")}}var AF="";G.css({overflow:W=="auto"?"visible":"auto",height:W});Z=W=="auto"?Math.max(I.outerHeight(),I.height()):parseInt(W,10);z=l;v=M+u;if(f.positionBy=="fixed"){z=l-f.dropShadowSteps+e}else{if((m<o&&Math.max(m,0)+x>o)||f.positionBy=="bottomTop"){if(l+Z+e>v&&n-M>Z+e){z=n-Z-e;AF="top"}else{z=n+e;AF="bottom"}}else{if(l+Z+e>v){z=(Z>=u)?M:v-Z-e}else{if(U.css("display")=="block"||U[0].tagName.toLowerCase()=="area"||f.positionBy=="mouse"){z=AD-e}else{z=l-f.dropShadowSteps}}}}if(AF==""){m<T?AF="left":AF="right"}I.css({top:z+"px"}).removeClass().addClass("clue-"+AF+"-"+R).addClass(" cluetip-"+R);if(f.arrows){var AG=(l-z-f.dropShadowSteps);F.css({top:(/(left|right)/.test(AF)&&m>=0&&AG>0)?AG+"px":/(left|right)/.test(AF)?0:""}).show()}else{F.hide()}J.hide();I.hide()[f.fx.open](f.fx.open!="show"&&f.fx.openSpeed);if(f.dropShadow){J.css({height:Z,width:X}).show()}if(E.fn.bgiframe){I.bgiframe()}if(f.delayedClose>0){r=setTimeout(c,f.delayedClose)}f.onShow(I,H)};var y=function(AB){s=false;E("#cluetip-waitimage").hide();if(!f.sticky||(/click|toggle/).test(f.activation)){c();clearTimeout(r)}if(f.hoverClass){U.removeClass(f.hoverClass)}};var c=function(){G.parent().hide().removeClass();f.onHide(I,H);U.removeClass("cluetip-clicked");if(g){U.attr(f.titleAttribute,g)}U.css("cursor","");if(f.arrows){F.css({top:""})}};if((/click|toggle/).test(f.activation)){U.click(function(AB){if(I.is(":hidden")||!U.is(".cluetip-clicked")){V(AB);E(".cluetip-clicked").removeClass("cluetip-clicked");U.addClass("cluetip-clicked")}else{y(AB)}this.blur();return false})}else{if(f.activation=="focus"){U.focus(function(AB){V(AB)});U.blur(function(AB){y(AB)})}else{U.click(function(){if(U.attr("href")&&U.attr("href")==d&&!f.clickThrough){return false}});var P=function(AB){if(f.tracking==true){var AD=m-AB.pageX;var AC=z?z-AB.pageY:l-AB.pageY;U.mousemove(function(AE){I.css({left:AE.pageX+AD,top:AE.pageY+AC})})}};if(E.fn.hoverIntent&&f.hoverIntent){U.mouseover(function(){U.attr("title","")}).hoverIntent({sensitivity:f.hoverIntent.sensitivity,interval:f.hoverIntent.interval,over:function(AB){V(AB);P(AB)},timeout:f.hoverIntent.timeout,out:function(AB){y(AB);U.unbind("mousemove")}})}else{U.hover(function(AB){V(AB);P(AB)},function(AB){y(AB);U.unbind("mousemove")})}}}})};E.fn.cluetip.defaults={width:275,height:"auto",cluezIndex:97,positionBy:"auto",topOffset:15,leftOffset:15,local:false,localPrefix:null,hideLocal:true,attribute:"rel",titleAttribute:"title",splitTitle:"",escapeTitle:false,showTitle:true,cluetipClass:"default",hoverClass:"",waitImage:true,cursor:"help",arrows:false,dropShadow:true,dropShadowSteps:6,sticky:false,mouseOutClose:false,activation:"hover",clickThrough:false,tracking:false,delayedClose:0,closePosition:"top",closeText:"Close",truncate:0,fx:{open:"show",openSpeed:""},hoverIntent:{sensitivity:3,interval:50,timeout:0},onActivate:function(K){return true},onShow:function(K,L){},onHide:function(K,L){},ajaxCache:true,ajaxProcess:function(K){K=K.replace(/<s(cript|tyle)(.|\s)*?\/s(cript|tyle)>/g,"").replace(/<(link|title)(.|\s)*?\/(link|title)>/g,"");return K},ajaxSettings:{dataType:"html"},debug:false};var B="prependTo",A="body";E.cluetip={};E.cluetip.setup=function(K){if(K&&K.insertionType&&(K.insertionType).match(/appendTo|prependTo|insertBefore|insertAfter/)){B=K.insertionType}if(K&&K.insertionElement){A=K.insertionElement}}})(jQuery);