/*-----------------------Definitions--------------------------------------------*/ var freidefines = { url:'http://www.usmjparty.org/freichat/', theme:'ModernAqua', ses_status:'1', fonload:'hide', reidfrom:'', chatspeed:'3000', getid:'surltkta1of90t17ill9fbko14', pbyevnix:'hidden', draggable:'enable', fxval:'true', //Jquery Effects fromname:'', mesgSendSpeed:'1000', newtopimg: 'newtop.png', btopimg:'btop.png', notransimg: 'translatedisabled.png', translateimg:'translate.gif', uploadimg:'upload.png', deleteimg:'delete.jpeg', minimg:'min.jpeg', maximg:'max.jpeg', closeimg:'close.jpeg', logoutimg:'logout.gif', onlineimg:'online.png', busyimg:'busy.png', invisibleimg:'invisible.png', restoreimg:'restore.png', offlineimg:'offlineimg.png', offline:'offline.png', optimg:'opt.gif', toolimg:'tool.png', fnopermsht:36, //Height When user has no permissions fnoonlineht:18, //Height When No one is online fonlineht:65, //Height When one user online fmaxht:90, //Height when more than one user cb_head:'Users', go_online:'Go Online', go_offline:'Go Offline', go_busy:'Go Busy', go_invisible:'Go Invisible', pwdby:'Powered By', nopermsmesg:'Please LogIn to chat!', nolinemesg:'No One Is Online', newmesg:'New Message! From', onfoffline:'Fetching...User..List
Querying DataBase
..............................', restore_drag_pos:'Restore Positions', status_txt:'Change Status', opt_txt:'Additional Options', onOfflinemesg:'Click to chat!', plugin_trans_disable:'Disable', plugin_trans_orig:'Original message:', titles_translate:'Translate', titles_upload:'Send file', status_online:'You are online', status_busy:'You are busy', status_invisible:'You are invisible', status_offline:'You are offline', show_file_send:'true', showtranslate:'enabled', JSdebug:'', busy_timeOut:'200', offline_timeOut:'500', jconflicts:'' }; /*----------------------THE-PHP-JS-Bridge---------------------------------------*//* * jQuery JavaScript Library v1.5 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * * Date: Mon Jan 31 08:31:29 2011 -0500 */ (function(aI,aG){function cJ(b){return aC.isWindow(b)?b:b.nodeType===9?b.defaultView||b.parentWindow:!1}function cf(e){if(!cq[e]){var d=aC("<"+e+">").appendTo("body"),f=d.css("display");d.remove();if(f==="none"||f===""){f="block"}cq[e]=f}return cq[e]}function ch(e,d){var f={};aC.each(ci.concat.apply([],ci.slice(0,d)),function(){f[this]=e});return f}function cy(z,y){z.dataFilter&&(y=z.dataFilter(y,z.dataType));var x=z.dataTypes,w=z.converters,v,u=x.length,t,s=x[0],r,q,p,d,b;for(v=1;v=0===h})}function b4(b){return !b||!b.parentNode||b.parentNode.nodeType===11}function ce(d,c){return(d&&d!=="*"?d+".":"")+c.replace(aj,"`").replace(ai,"&")}function cg(J){var I,H,G,F,E,D,C,B,A,z,y,x,w,v=[],u=[],o=aC._data(this,af);typeof o==="function"&&(o=o.events);if(J.liveFired!==this&&o&&o.live&&!J.target.disabled&&(!J.button||J.type!=="click")){J.namespace&&(x=new RegExp("(^|\\.)"+J.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),J.liveFired=this;var d=o.live.slice(0);for(C=0;CH){break}J.currentTarget=F.elem,J.data=F.handleObj.data,J.handleObj=F.handleObj,w=F.handleObj.origHandler.apply(F.elem,arguments);if(w===!1||J.isPropagationStopped()){H=F.level,w===!1&&(I=!1);if(J.isImmediatePropagationStopped()){break}}}return I}}function cl(e,d,f){f[0].type=e;return aC.event.handle.apply(d,f)}function ad(){return !0}function ae(){return !1}function ay(b,h,e){if(e===aG&&b.nodeType===1){e=b.getAttribute("data-"+h);if(typeof e==="string"){try{e=e==="true"?!0:e==="false"?!1:e==="null"?null:aC.isNaN(e)?aA.test(e)?aC.parseJSON(e):e:parseFloat(e)}catch(d){}aC.data(b,h,e)}else{e=aG}}return e}var aE=aI.document,aC=function(){function J(){if(!bl.isReady){try{aE.documentElement.doScroll("left")}catch(d){setTimeout(J,1);return}bl.ready()}}var bl=function(e,d){return new bl.fn.init(e,d,bi)},bk=aI.jQuery,bj=aI.$,bi,bh=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,bg=/\S/,bf=/^\s+/,be=/\s+$/,bd=/\d/,bc=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bb=/^[\],:{}\s]*$/,ba=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,Z=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,X=/(?:^|:|,)(?:\s*\[)+/g,V=/(webkit)[ \/]([\w.]+)/,T=/(opera)(?:.*version)?[ \/]([\w.]+)/,R=/(msie) ([\w.]+)/,P=/(mozilla)(?:.*? rv:([\w.]+))?/,N=navigator.userAgent,L,c=!1,b,a="then done fail isResolved isRejected promise".split(" "),Y,W=Object.prototype.toString,U=Object.prototype.hasOwnProperty,S=Array.prototype.push,Q=Array.prototype.slice,O=String.prototype.trim,M=Array.prototype.indexOf,K={};bl.fn=bl.prototype={constructor:bl,init:function(d,p,o){var n,m,l,h;if(!d){return this}if(d.nodeType){this.context=this[0]=d,this.length=1;return this}if(d==="body"&&!p&&aE.body){this.context=aE,this[0]=aE.body,this.selector="body",this.length=1;return this}if(typeof d==="string"){n=bh.exec(d);if(!n||!n[1]&&p){return !p||p.jquery?(p||o).find(d):this.constructor(p).find(d)}if(n[1]){p=p instanceof bl?p[0]:p,h=p?p.ownerDocument||p:aE,l=bc.exec(d),l?bl.isPlainObject(p)?(d=[aE.createElement(l[1])],bl.fn.attr.call(d,p,!0)):d=[h.createElement(l[1])]:(l=bl.buildFragment([n[1]],[h]),d=(l.cacheable?bl.clone(l.fragment):l.fragment).childNodes);return bl.merge(this,d)}m=aE.getElementById(n[2]);if(m&&m.parentNode){if(m.id!==n[2]){return o.find(d)}this.length=1,this[0]=m}this.context=aE,this.selector=d;return this}if(bl.isFunction(d)){return o.ready(d)}d.selector!==aG&&(this.selector=d.selector,this.context=d.context);return bl.makeArray(d,this)},selector:"",jquery:"1.5",length:0,size:function(){return this.length},toArray:function(){return Q.call(this,0)},get:function(d){return d==null?this.toArray():d<0?this[this.length+d]:this[d]},pushStack:function(f,d,h){var g=this.constructor();bl.isArray(f)?S.apply(g,f):bl.merge(g,f),g.prevObject=this,g.context=this.context,d==="find"?g.selector=this.selector+(this.selector?" ":"")+h:d&&(g.selector=this.selector+"."+d+"("+h+")");return g},each:function(e,d){return bl.each(this,e,d)},ready:function(d){bl.bindReady(),b.done(d);return this},eq:function(d){return d===-1?this.slice(d):this.slice(d,+d+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Q.apply(this,arguments),"slice",Q.call(arguments).join(","))},map:function(d){return this.pushStack(bl.map(this,function(e,f){return d.call(e,f,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:S,sort:[].sort,splice:[].splice},bl.fn.init.prototype=bl.fn,bl.extend=bl.fn.extend=function(){var u,t,s,r,q,p,o=arguments[0]||{},n=1,m=arguments.length,d=!1;typeof o==="boolean"&&(d=o,o=arguments[1]||{},n=2),typeof o!=="object"&&!bl.isFunction(o)&&(o={}),m===n&&(o=this,--n);for(;n0){return}b.resolveWith(aE,[bl]),bl.fn.trigger&&bl(aE).trigger("ready").unbind("ready")}},bindReady:function(){if(!c){c=!0;if(aE.readyState==="complete"){return setTimeout(bl.ready,1)}if(aE.addEventListener){aE.addEventListener("DOMContentLoaded",Y,!1),aI.addEventListener("load",bl.ready,!1)}else{if(aE.attachEvent){aE.attachEvent("onreadystatechange",Y),aI.attachEvent("onload",bl.ready);var d=!1;try{d=aI.frameElement==null}catch(f){}aE.documentElement.doScroll&&d&&J()}}}},isFunction:function(d){return bl.type(d)==="function"},isArray:Array.isArray||function(d){return bl.type(d)==="array"},isWindow:function(d){return d&&typeof d==="object"&&"setInterval" in d},isNaN:function(d){return d==null||!bd.test(d)||isNaN(d)},type:function(d){return d==null?String(d):K[W.call(d)]||"object"},isPlainObject:function(d){if(!d||bl.type(d)!=="object"||d.nodeType||bl.isWindow(d)){return !1}if(d.constructor&&!U.call(d,"constructor")&&!U.call(d.constructor.prototype,"isPrototypeOf")){return !1}var e;for(e in d){}return e===aG||U.call(d,e)},isEmptyObject:function(e){for(var d in e){return !1}return !0},error:function(d){throw d},parseJSON:function(d){if(typeof d!=="string"||!d){return null}d=bl.trim(d);if(bb.test(d.replace(ba,"@").replace(Z,"]").replace(X,""))){return aI.JSON&&aI.JSON.parse?aI.JSON.parse(d):(new Function("return "+d))()}bl.error("Invalid JSON: "+d)},parseXML:function(d,g,f){aI.DOMParser?(f=new DOMParser,g=f.parseFromString(d,"text/xml")):(g=new ActiveXObject("Microsoft.XMLDOM"),g.async="false",g.loadXML(d)),f=g.documentElement,(!f||!f.nodeName||f.nodeName==="parsererror")&&bl.error("Invalid XML: "+d);return g},noop:function(){},globalEval:function(f){if(f&&bg.test(f)){var d=aE.getElementsByTagName("head")[0]||aE.documentElement,g=aE.createElement("script");g.type="text/javascript",bl.support.scriptEval()?g.appendChild(aE.createTextNode(f)):g.text=f,d.insertBefore(g,d.firstChild),d.removeChild(g)}},nodeName:function(e,d){return e.nodeName&&e.nodeName.toUpperCase()===d.toUpperCase()},each:function(d,q,p){var o,n=0,m=d.length,l=m===aG||bl.isFunction(d);if(p){if(l){for(o in d){if(q.apply(d[o],p)===!1){break}}}else{for(;n1?(i=Array(l),bl.each(d,function(f,e){bl.when(e).then(function(g){i[f]=arguments.length>1?Q.call(arguments,0):g,--l||k.resolveWith(j,i)},k.reject)})):k!==h&&k.resolve(h);return j},uaMatch:function(e){e=e.toLowerCase();var d=V.exec(e)||T.exec(e)||R.exec(e)||e.indexOf("compatible")<0&&P.exec(e)||[];return{browser:d[1]||"",version:d[2]||"0"}},sub:function(){function f(e,h){return new f.fn.init(e,h)}bl.extend(!0,f,this),f.superclass=this,f.fn=f.prototype=this(),f.fn.constructor=f,f.subclass=this.subclass,f.fn.init=function d(e,h){h&&h instanceof bl&&!(h instanceof f)&&(h=f(h));return bl.fn.init.call(this,e,h,g)},f.fn.init.prototype=f.fn;var g=f(aE);return f},browser:{}}),b=bl._Deferred(),bl.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,d){K["[object "+d+"]"]=d.toLowerCase()}),L=bl.uaMatch(N),L.browser&&(bl.browser[L.browser]=!0,bl.browser.version=L.version),bl.browser.webkit&&(bl.browser.safari=!0),M&&(bl.inArray=function(e,d){return M.call(d,e)}),bg.test(" ")&&(bf=/^[\s\xA0]+/,be=/[\s\xA0]+$/),bi=bl(aE),aE.addEventListener?Y=function(){aE.removeEventListener("DOMContentLoaded",Y,!1),bl.ready()}:aE.attachEvent&&(Y=function(){aE.readyState==="complete"&&(aE.detachEvent("onreadystatechange",Y),bl.ready())});return aI.jQuery=aI.$=bl}();(function(){aC.support={};var r=aE.createElement("div");r.style.display="none",r.innerHTML="
a";var q=r.getElementsByTagName("*"),p=r.getElementsByTagName("a")[0],o=aE.createElement("select"),n=o.appendChild(aE.createElement("option"));if(q&&q.length&&p){aC.support={leadingWhitespace:r.firstChild.nodeType===3,tbody:!r.getElementsByTagName("tbody").length,htmlSerialize:!!r.getElementsByTagName("link").length,style:/red/.test(p.getAttribute("style")),hrefNormalized:p.getAttribute("href")==="/a",opacity:/^0.55$/.test(p.style.opacity),cssFloat:!!p.style.cssFloat,checkOn:r.getElementsByTagName("input")[0].value==="on",optSelected:n.selected,deleteExpando:!0,optDisabled:!1,checkClone:!1,_scriptEval:null,noCloneEvent:!0,boxModel:null,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableHiddenOffsets:!0},o.disabled=!0,aC.support.optDisabled=!n.disabled,aC.support.scriptEval=function(){if(aC.support._scriptEval===null){var h=aE.documentElement,k=aE.createElement("script"),j="script"+aC.now();k.type="text/javascript";try{k.appendChild(aE.createTextNode("window."+j+"=1;"))}catch(i){}h.insertBefore(k,h.firstChild),aI[j]?(aC.support._scriptEval=!0,delete aI[j]):aC.support._scriptEval=!1,h.removeChild(k),h=k=j=null}return aC.support._scriptEval};try{delete r.test}catch(m){aC.support.deleteExpando=!1}r.attachEvent&&r.fireEvent&&(r.attachEvent("onclick",function d(){aC.support.noCloneEvent=!1,r.detachEvent("onclick",d)}),r.cloneNode(!0).fireEvent("onclick")),r=aE.createElement("div"),r.innerHTML="";var c=aE.createDocumentFragment();c.appendChild(r.firstChild),aC.support.checkClone=c.cloneNode(!0).cloneNode(!0).lastChild.checked,aC(function(){var g=aE.createElement("div"),f=aE.getElementsByTagName("body")[0];if(f){g.style.width=g.style.paddingLeft="1px",f.appendChild(g),aC.boxModel=aC.support.boxModel=g.offsetWidth===2,"zoom" in g.style&&(g.style.display="inline",g.style.zoom=1,aC.support.inlineBlockNeedsLayout=g.offsetWidth===2,g.style.display="",g.innerHTML="
",aC.support.shrinkWrapBlocks=g.offsetWidth!==2),g.innerHTML="
t
";var h=g.getElementsByTagName("td");aC.support.reliableHiddenOffsets=h[0].offsetHeight===0,h[0].style.display="",h[1].style.display="none",aC.support.reliableHiddenOffsets=aC.support.reliableHiddenOffsets&&h[0].offsetHeight===0,g.innerHTML="",f.removeChild(g).style.display="none",g=h=null}});var a=function(f){var e=aE.createElement("div");f="on"+f;if(!e.attachEvent){return !0}var g=f in e;g||(e.setAttribute(f,"return;"),g=typeof e[f]==="function"),e=null;return g};aC.support.submitBubbles=a("submit"),aC.support.changeBubbles=a("change"),r=q=p=null}})();var aA=/^(?:\{.*\}|\[.*\])$/;aC.extend({cache:{},uuid:0,expando:"jQuery"+(aC.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(b){b=b.nodeType?aC.cache[b[aC.expando]]:b[aC.expando];return !!b&&!aC.isEmptyObject(b)},data:function(t,s,r,q){if(aC.acceptData(t)){var p=aC.expando,o=typeof s==="string",n,m=t.nodeType,d=m?aC.cache:t,b=m?t[aC.expando]:t[aC.expando]&&aC.expando;if((!b||q&&b&&!d[b][p])&&o&&r===aG){return}b||(m?t[aC.expando]=b=++aC.uuid:b=aC.expando),d[b]||(d[b]={}),typeof s==="object"&&(q?d[b][p]=aC.extend(d[b][p],s):d[b]=aC.extend(d[b],s)),n=d[b],q&&(n[p]||(n[p]={}),n=n[p]),r!==aG&&(n[s]=r);if(s==="events"&&!n[s]){return n[p]&&n[p].events}return o?n[s]:n}},removeData:function(r,q,p){if(aC.acceptData(r)){var o=aC.expando,n=r.nodeType,m=n?aC.cache:r,l=n?r[aC.expando]:aC.expando;if(!m[l]){return}if(q){var d=p?m[l][o]:m[l];if(d){delete d[q];if(!aC.isEmptyObject(d)){return}}}if(p){delete m[l][o];if(!aC.isEmptyObject(m[l])){return}}var a=m[l][o];aC.support.deleteExpando||m!=aI?delete m[l]:m[l]=null,a?(m[l]={},m[l][o]=a):n&&(aC.support.deleteExpando?delete r[aC.expando]:r.removeAttribute?r.removeAttribute(aC.expando):r[aC.expando]=null)}},_data:function(e,d,f){return aC.data(e,d,f,!0)},acceptData:function(d){if(d.nodeName){var c=aC.noData[d.nodeName.toLowerCase()];if(c){return c!==!0&&d.getAttribute("classid")===c}}return !0}}),aC.fn.extend({data:function(b,p){var o=null;if(typeof b==="undefined"){if(this.length){o=aC.data(this[0]);if(this[0].nodeType===1){var n=this[0].attributes,m;for(var l=0,f=n.length;l-1){return !0}}return !1},val:function(v){if(!arguments.length){var u=this[0];if(u){if(aC.nodeName(u,"option")){var t=u.attributes.value;return !t||t.specified?u.value:u.text}if(aC.nodeName(u,"select")){var s=u.selectedIndex,r=[],q=u.options,p=u.type==="select-one";if(s<0){return null}for(var n=p?s:0,i=p?s+1:q.length;n=0}else{if(aC.nodeName(this,"select")){var g=aC.makeArray(h);aC("option",this).each(function(){this.selected=aC.inArray(aC(this).val(),g)>=0}),g.length||(this.selectedIndex=-1)}else{this.value=h}}}})}}),aC.extend({attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(t,s,r,q){if(!t||t.nodeType===3||t.nodeType===8||t.nodeType===2){return aG}if(q&&s in aC.attrFn){return aC(t)[s](r)}var m=t.nodeType!==1||!aC.isXMLDoc(t),l=r!==aG;s=m&&aC.props[s]||s;if(t.nodeType===1){var k=aq.test(s);if(s==="selected"&&!aC.support.optSelected){var j=t.parentNode;j&&(j.selectedIndex,j.parentNode&&j.parentNode.selectedIndex)}if((s in t||t[s]!==aG)&&m&&!k){l&&(s==="type"&&ap.test(t.nodeName)&&t.parentNode&&aC.error("type property can't be changed"),r===null?t.nodeType===1&&t.removeAttribute(s):t[s]=r);if(aC.nodeName(t,"form")&&t.getAttributeNode(s)){return t.getAttributeNode(s).nodeValue}if(s==="tabIndex"){var d=t.getAttributeNode("tabIndex");return d&&d.specified?d.value:ao.test(t.nodeName)||an.test(t.nodeName)&&t.href?0:aG}return t[s]}if(!aC.support.style&&m&&s==="style"){l&&(t.style.cssText=""+r);return t.style.cssText}l&&t.setAttribute(s,""+r);if(!t.attributes[s]&&(t.hasAttribute&&!t.hasAttribute(s))){return aG}var b=!aC.support.hrefNormalized&&m&&k?t.getAttribute(s,2):t.getAttribute(s);return b===null?aG:b}l&&(t[s]=r);return t[s]}});var al=/\.(.*)$/,ak=/^(?:textarea|input|select)$/i,aj=/\./g,ai=/ /g,ah=/[^\w\s.|`]/g,ag=function(b){return b.replace(ah,"\\$&")},af="events";aC.event={add:function(B,A,z,y){if(B.nodeType!==3&&B.nodeType!==8){aC.isWindow(B)&&(B!==aI&&!B.frameElement)&&(B=aI);if(z===!1){z=ae}else{if(!z){return}}var x,w;z.handler&&(x=z,z=x.handler),z.guid||(z.guid=aC.guid++);var v=aC._data(B);if(!v){return}var u=v[af],t=v.handle;typeof u==="function"?(t=u.handle,u=u.events):u||(B.nodeType||(v[af]=v=function(){}),v.events=u={}),t||(v.handle=t=function(){return typeof aC!=="undefined"&&!aC.event.triggered?aC.event.handle.apply(t.elem,arguments):aG}),t.elem=B,A=A.split(" ");var s,r=0,d;while(s=A[r++]){w=x?aC.extend({},x):{handler:z,data:y},s.indexOf(".")>-1?(d=s.split("."),s=d.shift(),w.namespace=d.slice(0).sort().join(".")):(d=[],w.namespace=""),w.type=s,w.guid||(w.guid=z.guid);var b=u[s],a=aC.event.special[s]||{};if(!b){b=u[s]=[];if(!a.setup||a.setup.call(B,y,d,t)===!1){B.addEventListener?B.addEventListener(s,t,!1):B.attachEvent&&B.attachEvent("on"+s,t)}}a.add&&(a.add.call(B,w),w.handler.guid||(w.handler.guid=z.guid)),b.push(w),aC.event.global[s]=!0}B=null}},global:{},remove:function(L,K,J,I){if(L.nodeType!==3&&L.nodeType!==8){J===!1&&(J=ae);var H,G,F,E,D=0,C,B,A,z,y,v,u,t=aC.hasData(L)&&aC._data(L),d=t&&t[af];if(!t||!d){return}typeof d==="function"&&(t=d,d=d.events),K&&K.type&&(J=K.handler,K=K.type);if(!K||typeof K==="string"&&K.charAt(0)==="."){K=K||"";for(G in d){aC.event.remove(L,G+K)}return}K=K.split(" ");while(G=K[D++]){u=G,v=null,C=G.indexOf(".")<0,B=[],C||(B=G.split("."),G=B.shift(),A=new RegExp("(^|\\.)"+aC.map(B.slice(0).sort(),ag).join("\\.(?:.*\\.)?")+"(\\.|$)")),y=d[G];if(!y){continue}if(!J){for(E=0;E=0&&(B.type=y=y.slice(0,-1),B.exclusive=!0),z||(B.stopPropagation(),aC.event.global[y]&&aC.each(aC.cache,function(){var a=aC.expando,c=this[a];c&&c.events&&c.events[y]&&aC.event.trigger(B,A,c.handle.elem)}));if(!z||z.nodeType===3||z.nodeType===8){return aG}B.result=aG,B.target=z,A=aC.makeArray(A),A.unshift(B)}B.currentTarget=z;var w=z.nodeType?aC._data(z,"handle"):(aC._data(z,af)||{}).handle;w&&w.apply(z,A);var v=z.parentNode||z.ownerDocument;try{z&&z.nodeName&&aC.noData[z.nodeName.toLowerCase()]||z["on"+y]&&z["on"+y].apply(z,A)===!1&&(B.result=!1,B.preventDefault())}catch(u){}if(!B.isPropagationStopped()&&v){aC.event.trigger(B,A,v,!0)}else{if(!B.isDefaultPrevented()){var t,s=B.target,r=y.replace(al,""),o=aC.nodeName(s,"a")&&r==="click",d=aC.event.special[r]||{};if((!d._default||d._default.call(z,B)===!1)&&!o&&!(s&&s.nodeName&&aC.noData[s.nodeName.toLowerCase()])){try{s[r]&&(t=s["on"+r],t&&(s["on"+r]=null),aC.event.triggered=!0,s[r]())}catch(b){}t&&(s["on"+r]=t),aC.event.triggered=!1}}}},handle:function(x){var w,v,u,t,s,r=[],q=aC.makeArray(arguments);x=q[0]=aC.event.fix(x||aI.event),x.currentTarget=this,w=x.type.indexOf(".")<0&&!x.exclusive,w||(u=x.type.split("."),x.type=u.shift(),r=u.slice(0).sort(),t=new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.)?")+"(\\.|$)")),x.namespace=x.namespace||r.join("."),s=aC._data(this,af),typeof s==="function"&&(s=s.events),v=(s||{})[x.type];if(s&&v){v=v.slice(0);for(var p=0,d=v.length;p-1?aC.map(e.options,function(b){return b.selected}).join("-"):"":e.nodeName.toLowerCase()==="select"&&(f=e.selectedIndex);return f},cn=function cn(b){var h=b.target,g,d;if(ak.test(h.nodeName)&&!h.readOnly){g=aC._data(h,"_change_data"),d=cp(h),(b.type!=="focusout"||h.type!=="radio")&&aC._data(h,"_change_data",d);if(g===aG||d===g){return}if(g!=null||d){b.type="change",b.liveFired=aG;return aC.event.trigger(b,arguments[1],h)}}};aC.event.special.change={filters:{focusout:cn,beforedeactivate:cn,click:function(e){var d=e.target,f=d.type;if(f==="radio"||f==="checkbox"||d.nodeName.toLowerCase()==="select"){return cn.call(this,e)}},keydown:function(e){var d=e.target,f=d.type;if(e.keyCode===13&&d.nodeName.toLowerCase()!=="textarea"||e.keyCode===32&&(f==="checkbox"||f==="radio")||f==="select-multiple"){return cn.call(this,e)}},beforeactivate:function(d){var c=d.target;aC._data(c,"_change_data",cp(c))}},setup:function(e,d){if(this.type==="file"){return !1}for(var f in aa){aC.event.add(this,f+".specialChange",aa[f])}return ak.test(this.nodeName)},teardown:function(b){aC.event.remove(this,".specialChange");return ak.test(this.nodeName)}},aa=aC.event.special.change.filters,aa.focus=aa.beforeactivate}aE.addEventListener&&aC.each({focus:"focusin",blur:"focusout"},function(e,d){function f(b){b=aC.event.fix(b),b.type=d;return aC.event.handle.call(this,b)}aC.event.special[d]={setup:function(){this.addEventListener(e,f,!0)},teardown:function(){this.removeEventListener(e,f,!0)}}}),aC.each(["bind","one"],function(b,d){aC.fn[d]=function(c,p,o){if(typeof c==="object"){for(var n in c){this[d](n,p,c[n],o)}return this}if(aC.isFunction(p)||p===!1){o=p,p=aG}var m=d==="one"?aC.proxy(o,function(e){aC(this).unbind(e,m);return o.apply(this,arguments)}):o;if(c==="unload"&&d!=="one"){this.one(c,p,o)}else{for(var l=0,k=this.length;l0?this.bind(c,b,e):this.trigger(c)},aC.attrFn&&(aC.attrFn[c]=!0)}),function(){function H(t,s,r,q,p,o){for(var n=0,m=q.length;n0){i=l;break}}}l=l[t]}q[n]=i}}}function b(t,s,r,q,p,o){for(var n=0,m=q.length;n+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,E=0,D=Object.prototype.toString,C=!1,B=!0;[0,0].sort(function(){B=!1;return 0});var A=function(M,K,J,I){J=J||[],K=K||aE;var t=K;if(K.nodeType!==1&&K.nodeType!==9){return[]}if(!M||typeof M!=="string"){return J}var n,k,j,i,f,a,R,Q,P=!0,O=A.isXML(K),N=[],L=M;do{F.exec(""),n=F.exec(L);if(n){L=n[3],N.push(n[1]);if(n[2]){i=n[3];break}}}while(n);if(N.length>1&&y.exec(M)){if(N.length===2&&z.relative[N[0]]){k=G(N[0]+N[1],K)}else{k=z.relative[N[0]]?[K]:A(N.shift(),K);while(N.length){M=N.shift(),z.relative[M]&&(M+=N.shift()),k=G(M,k)}}}else{!I&&N.length>1&&K.nodeType===9&&!O&&z.match.ID.test(N[0])&&!z.match.ID.test(N[N.length-1])&&(f=A.find(N.shift(),K,O),K=f.expr?A.filter(f.expr,f.set)[0]:f.set[0]);if(K){f=I?{expr:N.pop(),set:v(I)}:A.find(N.pop(),N.length===1&&(N[0]==="~"||N[0]==="+")&&K.parentNode?K.parentNode:K,O),k=f.expr?A.filter(f.expr,f.set):f.set,N.length>0?j=v(k):P=!1;while(N.length){a=N.pop(),R=a,z.relative[a]?R=N.pop():a="",R==null&&(R=K),z.relative[a](j,R,O)}}else{j=N=[]}}j||(j=k),j||A.error(a||M);if(D.call(j)==="[object Array]"){if(P){if(K&&K.nodeType===1){for(Q=0;j[Q]!=null;Q++){j[Q]&&(j[Q]===!0||j[Q].nodeType===1&&A.contains(K,j[Q]))&&J.push(k[Q])}}else{for(Q=0;j[Q]!=null;Q++){j[Q]&&j[Q].nodeType===1&&J.push(k[Q])}}}else{J.push.apply(J,j)}}else{v(j,J)}i&&(A(i,t,J,I),A.uniqueSort(J));return J};A.uniqueSort=function(f){if(d){C=B,f.sort(d);if(C){for(var e=1;e0},A.find=function(r,q,p){var o;if(!r){return[]}for(var n=0,m=z.order.length;n":function(i,h){var n,m=typeof h==="string",l=0,k=i.length;if(m&&!/\W/.test(h)){h=h.toLowerCase();for(;l=0)?p||o.push(k):p&&(i[l]=!1))}return !1},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(f,e){return f[1].toLowerCase()},CHILD:function(f){if(f[1]==="nth"){f[2]||A.error(f[0]),f[2]=f[2].replace(/^\+|\s*/g,"");var e=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(f[2]==="even"&&"2n"||f[2]==="odd"&&"2n+1"||!/\D/.test(f[2])&&"0n+"+f[2]||f[2]);f[2]=e[1]+(e[2]||1)-0,f[3]=e[3]-0}else{f[2]&&A.error(f[0])}f[0]=E++;return f},ATTR:function(i,h,n,m,l,k){var j=i[1]=i[1].replace(/\\/g,"");!k&&z.attrMap[j]&&(i[1]=z.attrMap[j]),i[4]=(i[4]||i[5]||"").replace(/\\/g,""),i[2]==="~="&&(i[4]=" "+i[4]+" ");return i},PSEUDO:function(a,l,k,j,i){if(a[1]==="not"){if((F.exec(a[3])||"").length>1||/^\w/.test(a[3])){a[3]=A(a[3],null,null,l)}else{var h=A.filter(a[3],l,k,!0^i);k||j.push.apply(j,h);return !1}}else{if(z.match.POS.test(a[0])||z.match.CHILD.test(a[0])){return !0}}return a},POS:function(e){e.unshift(!0);return e}},filters:{enabled:function(e){return e.disabled===!1&&e.type!=="hidden"},disabled:function(e){return e.disabled===!0},checked:function(e){return e.checked===!0},selected:function(e){e.parentNode.selectedIndex;return e.selected===!0},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(f,e,g){return !!A(g[3],f).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toLowerCase()==="button"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},setFilters:{first:function(f,e){return e===0},last:function(f,e,h,g){return e===g.length-1},even:function(f,e){return e%2===0},odd:function(f,e){return e%2===1},lt:function(f,e,g){return eg[3]-0},nth:function(f,e,g){return g[3]-0===e},eq:function(f,e,g){return g[3]-0===e}},filter:{PSEUDO:function(r,q,p,o){var n=q[1],m=z.filters[n];if(m){return m(r,p,q,o)}if(n==="contains"){return(r.textContent||r.innerText||A.getText([r])||"").indexOf(q[3])>=0}if(n==="not"){var l=q[3];for(var j=0,i=l.length;j=0}},ID:function(f,e){return f.nodeType===1&&f.getAttribute("id")===e},TAG:function(f,e){return e==="*"&&f.nodeType===1||f.nodeName.toLowerCase()===e},CLASS:function(f,e){return(" "+(f.className||f.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(i,h){var n=h[1],m=z.attrHandle[n]?z.attrHandle[n](i):i[n]!=null?i[n]:i.getAttribute(n),l=m+"",k=h[2],j=h[4];return m==null?k==="!=":k==="="?l===j:k==="*="?l.indexOf(j)>=0:k==="~="?(" "+l+" ").indexOf(j)>=0:j?k==="!="?l!==j:k==="^="?l.indexOf(j)===0:k==="$="?l.substr(l.length-j.length)===j:k==="|="?l===j||l.substr(0,j.length+1)===j+"-":!1:l&&m!==!1},POS:function(h,g,l,k){var j=g[2],i=z.setFilters[j];if(i){return i(h,l,g,k)}}}},y=z.match.POS,x=function(f,e){return"\\"+(e-0+1)};for(var w in z.match){z.match[w]=new RegExp(z.match[w].source+/(?![^\[]*\])(?![^\(]*\))/.source),z.leftMatch[w]=new RegExp(/(^(?:.|\r|\n)*?)/.source+z.match[w].source.replace(/\\(\d+)/g,x))}var v=function(f,e){f=Array.prototype.slice.call(f,0);if(e){e.push.apply(e,f);return e}return f};try{Array.prototype.slice.call(aE.documentElement.childNodes,0)[0].nodeType}catch(u){v=function(g,f){var j=0,i=f||[];if(D.call(g)==="[object Array]"){Array.prototype.push.apply(i,g)}else{if(typeof g.length==="number"){for(var h=g.length;j",g.insertBefore(f,g.firstChild),aE.getElementById(h)&&(z.find.ID=function(i,l,k){if(typeof l.getElementById!=="undefined"&&!k){var j=l.getElementById(i[1]);return j?j.id===i[1]||typeof j.getAttributeNode!=="undefined"&&j.getAttributeNode("id").nodeValue===i[1]?[j]:aG:[]}},z.filter.ID=function(i,e){var j=typeof i.getAttributeNode!=="undefined"&&i.getAttributeNode("id");return i.nodeType===1&&j&&j.nodeValue===e}),g.removeChild(f),g=f=null}(),function(){var e=aE.createElement("div");e.appendChild(aE.createComment("")),e.getElementsByTagName("*").length>0&&(z.find.TAG=function(g,f){var j=f.getElementsByTagName(g[1]);if(g[1]==="*"){var i=[];for(var h=0;j[h];h++){j[h].nodeType===1&&i.push(j[h])}j=i}return j}),e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"&&(z.attrHandle.href=function(f){return f.getAttribute("href",2)}),e=null}(),aE.querySelectorAll&&function(){var g=A,f=aE.createElement("div"),i="__sizzle__";f.innerHTML="

";if(!f.querySelectorAll||f.querySelectorAll(".TEST").length!==0){A=function(O,N,M,L){N=N||aE;if(!L&&!A.isXML(N)){var K=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(O);if(K&&(N.nodeType===1||N.nodeType===9)){if(K[1]){return v(N.getElementsByTagName(O),M)}if(K[2]&&z.find.CLASS&&N.getElementsByClassName){return v(N.getElementsByClassName(K[2]),M)}}if(N.nodeType===9){if(O==="body"&&N.body){return v([N.body],M)}if(K&&K[3]){var J=N.getElementById(K[3]);if(!J||!J.parentNode){return v([],M)}if(J.id===K[3]){return v([J],M)}}try{return v(N.querySelectorAll(O),M)}catch(I){}}else{if(N.nodeType===1&&N.nodeName.toLowerCase()!=="object"){var t=N.getAttribute("id"),s=t||i,n=N.parentNode,j=/^\s*[+~]/.test(O);t?s=s.replace(/'/g,"\\$&"):N.setAttribute("id",s),j&&n&&(N=N.parentNode);try{if(!j||n){return v(N.querySelectorAll("[id='"+s+"'] "+O),M)}}catch(a){}finally{t||N.removeAttribute("id")}}}}return g(O,N,M,L)};for(var h in g){A[h]=g[h]}f=null}}(),function(){var g=aE.documentElement,f=g.matchesSelector||g.mozMatchesSelector||g.webkitMatchesSelector||g.msMatchesSelector,i=!1;try{f.call(aE.documentElement,"[test!='']:sizzle")}catch(h){i=!0}f&&(A.matchesSelector=function(j,l){l=l.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!A.isXML(j)){try{if(i||!z.match.PSEUDO.test(l)&&!/!=/.test(l)){return f.call(j,l)}}catch(k){}}return A(l,null,null,[j]).length>0})}(),function(){var e=aE.createElement("div");e.innerHTML="
";if(e.getElementsByClassName&&e.getElementsByClassName("e").length!==0){e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}z.order.splice(1,0,"CLASS"),z.find.CLASS=function(g,f,h){if(typeof f.getElementsByClassName!=="undefined"&&!h){return f.getElementsByClassName(g[1])}},e=null}}(),aE.documentElement.contains?A.contains=function(f,e){return f!==e&&(f.contains?f.contains(e):!0)}:aE.documentElement.compareDocumentPosition?A.contains=function(f,e){return !!(f.compareDocumentPosition(e)&16)}:A.contains=function(){return !1},A.isXML=function(f){var e=(f?f.ownerDocument||f:0).documentElement;return e?e.nodeName!=="HTML":!1};var G=function(j,i){var p,o=[],n="",m=i.nodeType?[i]:i;while(p=z.match.PSEUDO.exec(j)){n+=p[0],j=j.replace(z.match.PSEUDO,"")}j=z.relative[j]?j+"*":j;for(var l=0,k=m.length;l0){for(var k=n;k0},closest:function(v,u){var t=[],s,r,q=this[0];if(aC.isArray(v)){var p,o,n={},m=1;if(q&&v.length){for(s=0,r=v.length;s-1:aC(q).is(p))&&t.push({selector:o,elem:q,level:m})}q=q.parentNode,m++}}return t}var d=b6.test(v)?aC(v,u||this.context):null;for(s=0,r=this.length;s-1:aC.find.matchesSelector(q,v)){t.push(q);break}q=q.parentNode;if(!q||!q.ownerDocument||q===u){break}}}t=t.length>1?aC.unique(t):t;return this.pushStack(t,"closest",v)},index:function(b){if(!b||typeof b==="string"){return aC.inArray(this[0],b?aC(b):this.parent().children())}return aC.inArray(b.jquery?b[0]:b,this)},add:function(f,d){var h=typeof f==="string"?aC(f,d):aC.makeArray(f),g=aC.merge(this.get(),h);return this.pushStack(b4(h[0])||b4(g[0])?g:aC.unique(g))},andSelf:function(){return this.add(this.prevObject)}}),aC.each({parent:function(d){var c=d.parentNode;return c&&c.nodeType!==11?c:null},parents:function(b){return aC.dir(b,"parentNode")},parentsUntil:function(e,d,f){return aC.dir(e,"parentNode",f)},next:function(b){return aC.nth(b,2,"nextSibling")},prev:function(b){return aC.nth(b,2,"previousSibling")},nextAll:function(b){return aC.dir(b,"nextSibling")},prevAll:function(b){return aC.dir(b,"previousSibling")},nextUntil:function(e,d,f){return aC.dir(e,"nextSibling",f)},prevUntil:function(e,d,f){return aC.dir(e,"previousSibling",f)},siblings:function(b){return aC.sibling(b.parentNode.firstChild,b)},children:function(b){return aC.sibling(b.firstChild)},contents:function(b){return aC.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:aC.makeArray(b.childNodes)}},function(d,c){aC.fn[d]=function(i,h){var b=aC.map(this,c,i),a=b7.call(arguments);cd.test(d)||(h=i),h&&typeof h==="string"&&(b=aC.filter(h,b)),b=this.length>1&&!b5[d]?aC.unique(b):b,(this.length>1||b9.test(h))&&cb.test(d)&&(b=b.reverse());return this.pushStack(b,d,a.join(","))}}),aC.extend({filter:function(e,d,f){f&&(e=":not("+e+")");return d.length===1?aC.find.matchesSelector(d[0],e)?[d[0]]:[]:aC.find.matches(e,d)},dir:function(b,j,i){var h=[],d=b[j];while(d&&d.nodeType!==9&&(i===aG||d.nodeType!==1||!aC(d).is(i))){d.nodeType===1&&h.push(d),d=d[j]}return h},nth:function(g,f,j,i){f=f||1;var h=0;for(;g;g=g[j]){if(g.nodeType===1&&++h===f){break}}return g},sibling:function(e,d){var f=[];for(;e;e=e.nextSibling){e.nodeType===1&&e!==d&&f.push(e)}return f}});var b1=/ jQuery\d+="(?:\d+|null)"/g,a9=/^\s+/,a7=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,a5=/<([\w:]+)/,a3=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};aV.optgroup=aV.option,aV.tbody=aV.tfoot=aV.colgroup=aV.caption=aV.thead,aV.th=aV.td,aC.support.htmlSerialize||(aV._default=[1,"div
","
"]),aC.fn.extend({text:function(b){if(aC.isFunction(b)){return this.each(function(a){var d=aC(this);d.text(b.call(this,a,d.text()))})}if(typeof b!=="object"&&b!==aG){return this.empty().append((this[0]&&this[0].ownerDocument||aE).createTextNode(b))}return aC.text(this)},wrapAll:function(d){if(aC.isFunction(d)){return this.each(function(a){aC(this).wrapAll(d.call(this,a))})}if(this[0]){var c=aC(d,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&c.insertBefore(this[0]),c.map(function(){var b=this;while(b.firstChild&&b.firstChild.nodeType===1){b=b.firstChild}return b}).append(this)}return this},wrapInner:function(b){if(aC.isFunction(b)){return this.each(function(a){aC(this).wrapInner(b.call(this,a))})}return this.each(function(){var a=aC(this),d=a.contents();d.length?d.wrapAll(b):a.append(b)})},wrap:function(b){return this.each(function(){aC(this).wrapAll(b)})},unwrap:function(){return this.parent().each(function(){aC.nodeName(this,"body")||aC(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(b){this.nodeType===1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments,!0,function(b){this.nodeType===1&&this.insertBefore(b,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this)})}if(arguments.length){var b=aC(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(c){this.parentNode.insertBefore(c,this.nextSibling)})}if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,aC(arguments[0]).toArray());return b}},remove:function(f,d){for(var h=0,g;(g=this[h])!=null;h++){if(!f||aC.filter(f,[g]).length){!d&&g.nodeType===1&&(aC.cleanData(g.getElementsByTagName("*")),aC.cleanData([g])),g.parentNode&&g.parentNode.removeChild(g)}}return this},empty:function(){for(var d=0,c;(c=this[d])!=null;d++){c.nodeType===1&&aC.cleanData(c.getElementsByTagName("*"));while(c.firstChild){c.removeChild(c.firstChild)}}return this},clone:function(d,c){d=d==null?!0:d,c=c==null?d:c;return this.map(function(){return aC.clone(this,d,c)})},html:function(b){if(b===aG){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(b1,""):null}if(typeof b!=="string"||aZ.test(b)||!aC.support.leadingWhitespace&&a9.test(b)||aV[(a5.exec(b)||["",""])[1].toLowerCase()]){aC.isFunction(b)?this.each(function(a){var e=aC(this);e.html(b.call(this,a,e.html()))}):this.empty().append(b)}else{b=b.replace(a7,"<$1>");try{for(var h=0,g=this.length;h1&&o0?this.clone(!0):this).get();aC(m[k])[c](a),n=n.concat(a)}return this.pushStack(n,d,m.selector)}}),aC.extend({clone:function(i,d,n){var m=i.cloneNode(!0),l,k,j;if(!aC.support.noCloneEvent&&(i.nodeType===1||i.nodeType===11)&&!aC.isXMLDoc(i)){l=i.getElementsByTagName("*"),k=m.getElementsByTagName("*");for(j=0;l[j];++j){cI(l[j],k[j])}cI(i,m)}if(d){aR(i,m);if(n&&"getElementsByTagName" in i){l=i.getElementsByTagName("*"),k=m.getElementsByTagName("*");if(l.length){for(j=0;l[j];++j){aR(l[j],k[j])}}}}return m},clean:function(B,A,z,y){A=A||aE,typeof A.createElement==="undefined"&&(A=A.ownerDocument||A[0]&&A[0].ownerDocument||aE);var x=[];for(var w=0,v;(v=B[w])!=null;w++){typeof v==="number"&&(v+="");if(!v){continue}if(typeof v!=="string"||a1.test(v)){if(typeof v==="string"){v=v.replace(a7,"<$1>");var u=(a5.exec(v)||["",""])[1].toLowerCase(),t=aV[u]||aV._default,s=t[0],r=A.createElement("div");r.innerHTML=t[1]+v+t[2];while(s--){r=r.lastChild}if(!aC.support.tbody){var q=a3.test(v),d=u==="table"&&!q?r.firstChild&&r.firstChild.childNodes:t[1]===""&&!q?r.childNodes:[];for(var c=d.length-1;c>=0;--c){aC.nodeName(d[c],"tbody")&&!d[c].childNodes.length&&d[c].parentNode.removeChild(d[c])}}!aC.support.leadingWhitespace&&a9.test(v)&&r.insertBefore(A.createTextNode(a9.exec(v)[0]),r.firstChild),v=r.childNodes}}else{v=A.createTextNode(v)}v.nodeType?x.push(v):x=aC.merge(x,v)}if(z){for(w=0;x[w];w++){!y||!aC.nodeName(x[w],"script")||x[w].type&&x[w].type.toLowerCase()!=="text/javascript"?(x[w].nodeType===1&&x.splice.apply(x,[w+1,0].concat(aC.makeArray(x[w].getElementsByTagName("script")))),z.appendChild(x[w])):y.push(x[w].parentNode?x[w].parentNode.removeChild(x[w]):x[w])}}return x},cleanData:function(t){var s,r,q=aC.cache,p=aC.expando,o=aC.event.special,n=aC.support.deleteExpando;for(var m=0,l;(l=t[m])!=null;m++){if(l.nodeName&&aC.noData[l.nodeName.toLowerCase()]){continue}r=l[aC.expando];if(r){s=q[r]&&q[r][p];if(s&&s.events){for(var d in s.events){o[d]?aC.event.remove(l,d):aC.removeEvent(l,d,s.handle)}s.handle&&(s.handle.elem=null)}n?delete l[aC.expando]:l.removeAttribute&&l.removeAttribute(aC.expando),delete q[r]}}}});var b2=/alpha\([^)]*\)/i,b0=/opacity=([^)]*)/,a8=/-([a-z])/ig,a6=/([A-Z])/g,a4=/^-?\d+(?:px)?$/i,a2=/^-?\d/,a0={position:"absolute",visibility:"hidden",display:"block"},aY=["Left","Right"],aW=["Top","Bottom"],aU,aS,aQ,aP=function(d,c){return c.toUpperCase()};aC.fn.css=function(b,d){if(arguments.length===2&&d===aG){return this}return aC.access(this,b,d,!0,function(f,h,g){return g!==aG?aC.style(f,h,g):aC.css(f,h)})},aC.extend({cssHooks:{opacity:{get:function(e,d){if(d){var f=aU(e,"opacity","opacity");return f===""?"1":f}return e.style.opacity}}},cssNumber:{zIndex:!0,fontWeight:!0,opacity:!0,zoom:!0,lineHeight:!0},cssProps:{"float":aC.support.cssFloat?"cssFloat":"styleFloat"},style:function(r,q,p,o){if(r&&r.nodeType!==3&&r.nodeType!==8&&r.style){var n,m=aC.camelCase(q),l=r.style,d=aC.cssHooks[m];q=aC.cssProps[m]||m;if(p===aG){if(d&&"get" in d&&(n=d.get(r,!1,o))!==aG){return n}return l[q]}if(typeof p==="number"&&isNaN(p)||p==null){return}typeof p==="number"&&!aC.cssNumber[m]&&(p+="px");if(!d||!("set" in d)||(p=d.set(r,p))!==aG){try{l[q]=p}catch(b){}}}},css:function(b,l,k){var j,i=aC.camelCase(l),d=aC.cssHooks[i];l=aC.cssProps[i]||i;if(d&&"get" in d&&(j=d.get(b,!0,k))!==aG){return j}if(aU){return aU(b,l,i)}},swap:function(g,f,j){var i={};for(var h in f){i[h]=g.style[h],g.style[h]=f[h]}j.call(g);for(h in f){g.style[h]=i[h]}},camelCase:function(b){return b.replace(a8,aP)}}),aC.curCSS=aC.css,aC.each(["height","width"],function(d,c){aC.cssHooks[c]={get:function(b,i,h){var g;if(i){b.offsetWidth!==0?g=aO(b,c,h):aC.swap(b,a0,function(){g=aO(b,c,h)});if(g<=0){g=aU(b,c,c),g==="0px"&&aQ&&(g=aQ(b,c,c));if(g!=null){return g===""||g==="auto"?"0px":g}}if(g<0||g==null){g=b.style[c];return g===""||g==="auto"?"0px":g}return typeof g==="string"?g:g+"px"}},set:function(f,e){if(!a4.test(e)){return e}e=parseFloat(e);if(e>=0){return e+"px"}}}}),aC.support.opacity||(aC.cssHooks.opacity={get:function(d,c){return b0.test((c&&d.currentStyle?d.currentStyle.filter:d.style.filter)||"")?parseFloat(RegExp.$1)/100+"":c?"1":""},set:function(g,d){var j=g.style;j.zoom=1;var i=aC.isNaN(d)?"":"alpha(opacity="+d*100+")",h=j.filter||"";j.filter=b2.test(h)?h.replace(b2,i):j.filter+" "+i}}),aE.defaultView&&aE.defaultView.getComputedStyle&&(aS=function(b,l,k){var j,i,d;k=k.replace(a6,"-$1").toLowerCase();if(!(i=b.ownerDocument.defaultView)){return aG}if(d=i.getComputedStyle(b,null)){j=d.getPropertyValue(k),j===""&&!aC.contains(b.ownerDocument.documentElement,b)&&(j=aC.style(b,k))}return j}),aE.documentElement.currentStyle&&(aQ=function(h,g){var l,k=h.currentStyle&&h.currentStyle[g],j=h.runtimeStyle&&h.runtimeStyle[g],i=h.style;!a4.test(k)&&a2.test(k)&&(l=i.left,j&&(h.runtimeStyle.left=h.currentStyle.left),i.left=g==="fontSize"?"1em":k||0,k=i.pixelLeft+"px",i.left=l,j&&(h.runtimeStyle.left=j));return k===""?"auto":k}),aU=aS||aQ,aC.expr&&aC.expr.filters&&(aC.expr.filters.hidden=function(e){var d=e.offsetWidth,f=e.offsetHeight;return d===0&&f===0||!aC.support.reliableHiddenOffsets&&(e.style.display||aC.css(e,"display"))==="none"},aC.expr.filters.visible=function(b){return !aC.expr.filters.hidden(b)});var aN=/%20/g,aM=/\[\]$/,aK=/\r?\n/g,aJ=/#.*$/,aH=/^(.*?):\s*(.*?)\r?$/mg,aF=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aD=/^(?:GET|HEAD)$/,aB=/^\/\//,az=/\?/,ax=/)<[^<]*)*<\/script>/gi,av=/^(?:select|textarea)/i,at=/\s+/,cH=/([?&])_=[^&]*/,cG=/^(\w+:)\/\/([^\/?#:]+)(?::(\d+))?/,cF=aC.fn.load,cE={},cD={};aC.fn.extend({load:function(i,d,n){if(typeof i!=="string"&&cF){return cF.apply(this,arguments)}if(!this.length){return this}var m=i.indexOf(" ");if(m>=0){var l=i.slice(m,i.length);i=i.slice(0,m)}var k="GET";d&&(aC.isFunction(d)?(n=d,d=null):typeof d==="object"&&(d=aC.param(d,aC.ajaxSettings.traditional),k="POST"));var j=this;aC.ajax({url:i,type:k,dataType:"html",data:d,complete:function(f,c,g){g=f.responseText,f.isResolved()&&(f.done(function(b){g=b}),j.html(l?aC("
").append(g.replace(ax,"")).find(l):g)),n&&j.each(n,[g,c,f])}});return this},serialize:function(){return aC.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?aC.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||av.test(this.nodeName)||aF.test(this.type))}).map(function(e,d){var f=aC(this).val();return f==null?null:aC.isArray(f)?aC.map(f,function(b,g){return{name:d.name,value:b.replace(aK,"\r\n")}}):{name:d.name,value:f.replace(aK,"\r\n")}}).get()}}),aC.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(d,c){aC.fn[c]=function(b){return this.bind(c,b)}}),aC.each(["get","post"],function(d,c){aC[c]=function(b,i,h,g){aC.isFunction(i)&&(g=g||h,h=i,i=null);return aC.ajax({type:c,url:b,data:i,success:h,dataType:g})}}),aC.extend({getScript:function(d,c){return aC.get(d,null,c,"script")},getJSON:function(e,d,f){return aC.get(e,d,f,"json")},ajaxSetup:function(b){aC.extend(!0,aC.ajaxSettings,b),b.context&&(aC.ajaxSettings.context=b.context)},ajaxSettings:{url:location.href,global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":aI.String,"text html":!0,"text json":aC.parseJSON,"text xml":aC.parseXML}},ajaxPrefilter:cC(cE),ajaxTransport:cC(cD),ajax:function(T,S){function A(o,k,j,i){if(D!==2){D=2,H&&clearTimeout(H),I=aG,K=i||"",B.readyState=o?4:0;var h,g,f,v=j?cz(R,B,j):aG,t,p;if(o>=200&&o<300||o===304){if(R.ifModified){if(t=B.getResponseHeader("Last-Modified")){aC.lastModified[R.url]=t}if(p=B.getResponseHeader("Etag")){aC.etag[R.url]=p}}if(o===304){k="notmodified",h=!0}else{try{g=cy(R,v),k="success",h=!0}catch(m){k="parsererror",f=m}}}else{f=k,o&&(k="error",o<0&&(o=0))}B.status=o,B.statusText=k,h?O.resolveWith(Q,[g,k,B]):O.rejectWith(Q,[B,k,f]),B.statusCode(M),M=aG,R.global&&P.trigger("ajax"+(h?"Success":"Error"),[B,R,h?g:f]),N.resolveWith(Q,[B,k]),R.global&&(P.trigger("ajaxComplete",[B,R]),--aC.active||aC.event.trigger("ajaxStop"))}}typeof S!=="object"&&(S=T,T=aG),S=S||{};var R=aC.extend(!0,{},aC.ajaxSettings,S),Q=(R.context=("context" in S?S:aC.ajaxSettings).context)||R,P=Q===R?aC.event:aC(Q),O=aC.Deferred(),N=aC._Deferred(),M=R.statusCode||{},L={},K,J,I,H,G=aE.location,F=G.protocol||"http:",E,D=0,C,B={readyState:0,setRequestHeader:function(f,e){D===0&&(L[f.toLowerCase()]=e);return this},getAllResponseHeaders:function(){return D===2?K:null},getResponseHeader:function(f){var e;if(D===2){if(!J){J={};while(e=aH.exec(K)){J[e[1].toLowerCase()]=e[2]}}e=J[f.toLowerCase()]}return e||null},abort:function(e){e=e||"abort",I&&I.abort(e),A(0,e);return this}};O.promise(B),B.success=B.done,B.error=B.fail,B.complete=N.done,B.statusCode=function(f){if(f){var e;if(D<2){for(e in f){M[e]=[M[e],f[e]]}}else{e=f[B.status],B.then(e,e)}}return this},R.url=(""+(T||R.url)).replace(aJ,"").replace(aB,F+"//"),R.dataTypes=aC.trim(R.dataType||"*").toLowerCase().split(at),R.crossDomain||(E=cG.exec(R.url.toLowerCase()),R.crossDomain=E&&(E[1]!=F||E[2]!=G.hostname||(E[3]||(E[1]==="http:"?80:443))!=(G.port||(F==="http:"?80:443)))),R.data&&R.processData&&typeof R.data!=="string"&&(R.data=aC.param(R.data,R.traditional)),cB(cE,R,S,B),R.type=R.type.toUpperCase(),R.hasContent=!aD.test(R.type),R.global&&aC.active++===0&&aC.event.trigger("ajaxStart");if(!R.hasContent){R.data&&(R.url+=(az.test(R.url)?"&":"?")+R.data);if(R.cache===!1){var d=aC.now(),c=R.url.replace(cH,"$1_="+d);R.url=c+(c===R.url?(az.test(R.url)?"&":"?")+"_="+d:"")}}if(R.data&&R.hasContent&&R.contentType!==!1||S.contentType){L["content-type"]=R.contentType}R.ifModified&&(aC.lastModified[R.url]&&(L["if-modified-since"]=aC.lastModified[R.url]),aC.etag[R.url]&&(L["if-none-match"]=aC.etag[R.url])),L.accept=R.dataTypes[0]&&R.accepts[R.dataTypes[0]]?R.accepts[R.dataTypes[0]]+(R.dataTypes[0]!=="*"?", */*; q=0.01":""):R.accepts["*"];for(C in R.headers){L[C.toLowerCase()]=R.headers[C]}if(!R.beforeSend||R.beforeSend.call(Q,B,R)!==!1&&D!==2){for(C in {success:1,error:1,complete:1}){B[C](R[C])}I=cB(cD,R,S,B);if(I){D=B.readyState=1,R.global&&P.trigger("ajaxSend",[B,R]),R.async&&R.timeout>0&&(H=setTimeout(function(){B.abort("timeout")},R.timeout));try{I.send(L,A)}catch(b){status<2?A(-1,b):aC.error(b)}}else{A(-1,"No Transport")}}else{A(0,"abort"),B=!1}return B},param:function(b,j){var i=[],h=function(e,c){c=aC.isFunction(c)?c():c,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(c)};j===aG&&(j=aC.ajaxSettings.traditional);if(aC.isArray(b)||b.jquery){aC.each(b,function(){h(this.name,this.value)})}else{for(var d in b){cA(d,b[d],j,h)}}return i.join("&").replace(aN,"+")}}),aC.extend({active:0,lastModified:{},etag:{}});var cx=aC.now(),cw=/(\=)\?(&|$)|()\?\?()/i;aC.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return aC.expando+"_"+cx++}}),aC.ajaxPrefilter("json jsonp",function(r,q,p){p=typeof r.data==="string";if(r.dataTypes[0]==="jsonp"||q.jsonpCallback||q.jsonp!=null||r.jsonp!==!1&&(cw.test(r.url)||p&&cw.test(r.data))){var o,n=r.jsonpCallback=aC.isFunction(r.jsonpCallback)?r.jsonpCallback():r.jsonpCallback,m=aI[n],l=r.url,d=r.data,a="$1"+n+"$2";r.jsonp!==!1&&(l=l.replace(cw,a),r.url===l&&(p&&(d=d.replace(cw,a)),r.data===d&&(l+=(/\?/.test(l)?"&":"?")+r.jsonp+"="+n))),r.url=l,r.data=d,aI[n]=function(b){o=[b]},r.complete=[function(){aI[n]=m;if(m){o&&aC.isFunction(m)&&aI[n](o[0])}else{try{delete aI[n]}catch(c){}}},r.complete],r.converters["script json"]=function(){o||aC.error(n+" was not called");return o[0]},r.dataTypes[0]="json";return"script"}}),aC.ajaxSetup({accepts:{script:"text/javascript, application/javascript"},contents:{script:/javascript/},converters:{"text script":function(b){aC.globalEval(b);return b}}}),aC.ajaxPrefilter("script",function(b){b.cache===aG&&(b.cache=!1),b.crossDomain&&(b.type="GET",b.global=!1)}),aC.ajaxTransport("script",function(b){if(b.crossDomain){var f,c=aE.getElementsByTagName("head")[0]||aE.documentElement;return{send:function(d,a){f=aE.createElement("script"),f.async="async",b.scriptCharset&&(f.charset=b.scriptCharset),f.src=b.url,f.onload=f.onreadystatechange=function(e,g){if(!f.readyState||/loaded|complete/.test(f.readyState)){f.onload=f.onreadystatechange=null,c&&f.parentNode&&c.removeChild(f),f=aG,g||a(200,"success")}},c.insertBefore(f,c.firstChild)},abort:function(){f&&f.onload(0,1)}}}});var cv=aC.now(),cu={},ct,cs;aC.ajaxSettings.xhr=aI.ActiveXObject?function(){if(aI.location.protocol!=="file:"){try{return new aI.XMLHttpRequest}catch(a){}}try{return new aI.ActiveXObject("Microsoft.XMLHTTP")}catch(d){}}:function(){return new aI.XMLHttpRequest};try{cs=aC.ajaxSettings.xhr()}catch(cr){}aC.support.ajax=!!cs,aC.support.cors=cs&&"withCredentials" in cs,cs=aG,aC.support.ajax&&aC.ajaxTransport(function(a){if(!a.crossDomain||aC.support.cors){var d;return{send:function(l,k){ct||(ct=1,aC(aI).bind("unload",function(){aC.each(cu,function(f,e){e.onreadystatechange&&e.onreadystatechange(1)})}));var j=a.xhr(),c;a.username?j.open(a.type,a.url,a.async,a.username,a.password):j.open(a.type,a.url,a.async),(!a.crossDomain||a.hasContent)&&!l["x-requested-with"]&&(l["x-requested-with"]="XMLHttpRequest");try{aC.each(l,function(f,e){j.setRequestHeader(f,e)})}catch(b){}j.send(a.hasContent&&a.data||null),d=function(h,r){if(d&&(r||j.readyState===4)){d=0,c&&(j.onreadystatechange=aC.noop,delete cu[c]);if(r){j.readyState!==4&&j.abort()}else{var q=j.status,p,o=j.getAllResponseHeaders(),g={},f=j.responseXML;f&&f.documentElement&&(g.xml=f),g.text=j.responseText;try{p=j.statusText}catch(s){p=""}q=q===0?!a.crossDomain||p?o?304:0:302:q==1223?204:q,k(q,p,g,o)}}},a.async&&j.readyState!==4?(c=cv++,cu[c]=j,j.onreadystatechange=d):d()},abort:function(){d&&d(0,1)}}}});var cq={},co=/^(?:toggle|show|hide)$/,cm=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,ck,ci=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];aC.fn.extend({show:function(i,d,n){var m,l;if(i||i===0){return this.animate(ch("show",3),i,d,n)}for(var k=0,j=this.length;k=0;b--){f[b].elem===this&&(d&&f[b](!0),f.splice(b,1))}}),d||this.dequeue();return this}}),aC.each({slideDown:ch("show",1),slideUp:ch("hide",1),slideToggle:ch("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(d,c){aC.fn[d]=function(b,f,e){return this.animate(c,b,f,e)}}),aC.extend({speed:function(f,d,h){var g=f&&typeof f==="object"?aC.extend({},f):{complete:h||!h&&d||aC.isFunction(f)&&f,duration:f,easing:h&&d||d&&!aC.isFunction(d)&&d};g.duration=aC.fx.off?0:typeof g.duration==="number"?g.duration:g.duration in aC.fx.speeds?aC.fx.speeds[g.duration]:aC.fx.speeds._default,g.old=g.complete,g.complete=function(){g.queue!==!1&&aC(this).dequeue(),aC.isFunction(g.old)&&g.old.call(this)};return g},easing:{linear:function(f,e,h,g){return h+g*f},swing:function(f,e,h,g){return(-Math.cos(f*Math.PI)/2+0.5)*g+h}},timers:[],fx:function(e,d,f){this.options=d,this.elem=e,this.prop=f,d.orig||(d.orig={})}}),aC.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(aC.fx.step[this.prop]||aC.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var b=parseFloat(aC.css(this.elem,this.prop));return b||0},custom:function(h,d,l){function i(b){return k.step(b)}var k=this,j=aC.fx;this.startTime=aC.now(),this.start=h,this.end=d,this.unit=l||this.unit||"px",this.now=this.start,this.pos=this.state=0,i.elem=this.elem,i()&&aC.timers.push(i)&&!ck&&(ck=setInterval(j.tick,j.interval))},show:function(){this.options.orig[this.prop]=aC.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),aC(this.elem).show()},hide:function(){this.options.orig[this.prop]=aC.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(t){var s=aC.now(),r=!0;if(t||s>=this.options.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0;for(var q in this.options.curAnim){this.options.curAnim[q]!==!0&&(r=!1)}if(r){if(this.options.overflow!=null&&!aC.support.shrinkWrapBlocks){var p=this.elem,o=this.options;aC.each(["","X","Y"],function(e,c){p.style["overflow"+c]=o.overflow[e]})}this.options.hide&&aC(this.elem).hide();if(this.options.hide||this.options.show){for(var n in this.options.curAnim){aC.style(this.elem,n,this.options.orig[n])}}this.options.complete.call(this.elem)}return !1}var m=s-this.startTime;this.state=m/this.options.duration;var l=this.options.specialEasing&&this.options.specialEasing[this.prop],d=this.options.easing||(aC.easing.swing?"swing":"linear");this.pos=aC.easing[l||d](this.state,m,0,1,this.options.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update();return !0}},aC.extend(aC.fx,{tick:function(){var d=aC.timers;for(var c=0;c
";aC.extend(c.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),c.innerHTML=k,d.insertBefore(c,d.firstChild),p=c.firstChild,o=p.firstChild,m=p.nextSibling.firstChild.firstChild,this.doesNotAddBorder=o.offsetTop!==5,this.doesAddBorderForTableAndCells=m.offsetTop===5,o.style.position="fixed",o.style.top="20px",this.supportsFixedPosition=o.offsetTop===20||o.offsetTop===15,o.style.position=o.style.top="",p.style.overflow="hidden",p.style.position="relative",this.subtractsBorderForOverflowNotVisible=o.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=d.offsetTop!==l,d.removeChild(c),d=c=p=o=n=m=null,aC.offset.initialize=aC.noop},bodyOffset:function(e){var d=e.offsetTop,f=e.offsetLeft;aC.offset.initialize(),aC.offset.doesNotIncludeMarginInBodyOffset&&(d+=parseFloat(aC.css(e,"marginTop"))||0,f+=parseFloat(aC.css(e,"marginLeft"))||0);return{top:d,left:f}},setOffset:function(z,y,x){var w=aC.css(z,"position");w==="static"&&(z.style.position="relative");var v=aC(z),u=v.offset(),t=aC.css(z,"top"),s=aC.css(z,"left"),r=w==="absolute"&&aC.inArray("auto",[t,s])>-1,q={},p={},o,d;r&&(p=v.position()),o=r?p.top:parseInt(t,10)||0,d=r?p.left:parseInt(s,10)||0,aC.isFunction(y)&&(y=y.call(z,x,u)),y.top!=null&&(q.top=y.top-u.top+o),y.left!=null&&(q.left=y.left-u.left+d),"using" in y?y.using.call(z,q):v.css(q)}},aC.fn.extend({position:function(){if(!this[0]){return null}var f=this[0],d=this.offsetParent(),h=this.offset(),g=ca.test(d[0].nodeName)?{top:0,left:0}:d.offset();h.top-=parseFloat(aC.css(f,"marginTop"))||0,h.left-=parseFloat(aC.css(f,"marginLeft"))||0,g.top+=parseFloat(aC.css(d[0],"borderTopWidth"))||0,g.left+=parseFloat(aC.css(d[0],"borderLeftWidth"))||0;return{top:h.top-g.top,left:h.left-g.left}},offsetParent:function(){return this.map(function(){var b=this.offsetParent||aE.body;while(b&&(!ca.test(b.nodeName)&&aC.css(b,"position")==="static")){b=b.offsetParent}return b})}}),aC.each(["Left","Top"],function(b,f){var d="scroll"+f;aC.fn[d]=function(h){var e=this[0],a;if(!e){return null}if(h!==aG){return this.each(function(){a=cJ(this),a?a.scrollTo(b?aC(a).scrollLeft():h,b?h:aC(a).scrollTop()):this[d]=h})}a=cJ(e);return a?"pageXOffset" in a?a[b?"pageYOffset":"pageXOffset"]:aC.support.boxModel&&a.document.documentElement[d]||a.document.body[d]:e[d]}}),aC.each(["Height","Width"],function(b,f){var d=f.toLowerCase();aC.fn["inner"+f]=function(){return this[0]?parseFloat(aC.css(this[0],d,"padding")):null},aC.fn["outer"+f]=function(c){return this[0]?parseFloat(aC.css(this[0],d,c?"margin":"border")):null},aC.fn[d]=function(c){var l=this[0];if(!l){return c==null?null:this}if(aC.isFunction(c)){return this.each(function(a){var g=aC(this);g[d](c.call(this,a,g[d]()))})}if(aC.isWindow(l)){var k=l.document.documentElement["client"+f];return l.document.compatMode==="CSS1Compat"&&k||l.document.body["client"+f]||k}if(l.nodeType===9){return Math.max(l.documentElement["client"+f],l.body["scroll"+f],l.documentElement["scroll"+f],l.body["offset"+f],l.documentElement["offset"+f])}if(c===aG){var j=aC.css(l,d),e=parseFloat(j);return aC.isNaN(e)?j:e}return this.css(d,typeof c==="string"?c:c+"px")}})})(window);function Get_Cookie(b){var g=document.cookie.split(";");var c="";var e="";var f="";var d=false;var a="";for(a=0;a1){f=unescape(c[1].replace(/^\s+|\s+$/g,""))}return f;break}c=null;e=""}if(!d){return null}}function Set_Cookie(c,e,a,h,d,g){var b=new Date();b.setTime(b.getTime());if(a){a=a*1000*60*60*24}var f=new Date(b.getTime()+(a));document.cookie=c+"="+escape(e)+((a)?";expires="+f.toGMTString():"")+((h)?";path="+h:"")+((d)?";domain="+d:"")+((g)?";secure":"")}function Delete_Cookie(a,c,b){if(Get_Cookie(a)){document.cookie=a+"="+((c)?";path="+c:"")+((b)?";domain="+b:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}} /* * jQuery UI 1.8.9 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI */ (function(d,b){function a(c){return !d(c).parents().andSelf().filter(function(){return d.curCSS(this,"visibility")==="hidden"||d.expr.filters.hidden(this)}).length}d.ui=d.ui||{};if(!d.ui.version){d.extend(d.ui,{version:"1.8.9",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,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,WINDOWS:91}});d.fn.extend({_focus:d.fn.focus,focus:function(e,c){return typeof e==="number"?this.each(function(){var f=this;setTimeout(function(){d(f).focus();c&&c.call(f)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var c;c=d.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(d.curCSS(this,"position",1))&&/(auto|scroll)/.test(d.curCSS(this,"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(d.curCSS(this,"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?d(document):c},zIndex:function(e){if(e!==b){return this.css("zIndex",e)}if(this.length){e=d(this[0]);for(var c;e.length&&e[0]!==document;){c=e.css("position");if(c==="absolute"||c==="relative"||c==="fixed"){c=parseInt(e.css("zIndex"),10);if(!isNaN(c)&&c!==0){return c}}e=e.parent()}}return 0},disableSelection:function(){return this.bind((d.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(c){c.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});d.each(["Width","Height"],function(f,c){function l(n,i,h,e){d.each(k,function(){i-=parseFloat(d.curCSS(n,"padding"+this,true))||0;if(h){i-=parseFloat(d.curCSS(n,"border"+this+"Width",true))||0}if(e){i-=parseFloat(d.curCSS(n,"margin"+this,true))||0}});return i}var k=c==="Width"?["Left","Right"]:["Top","Bottom"],j=c.toLowerCase(),g={innerWidth:d.fn.innerWidth,innerHeight:d.fn.innerHeight,outerWidth:d.fn.outerWidth,outerHeight:d.fn.outerHeight};d.fn["inner"+c]=function(e){if(e===b){return g["inner"+c].call(this)}return this.each(function(){d(this).css(j,l(this,e)+"px")})};d.fn["outer"+c]=function(h,e){if(typeof h!=="number"){return g["outer"+c].call(this,h)}return this.each(function(){d(this).css(j,l(this,h,true,e)+"px")})}});d.extend(d.expr[":"],{data:function(e,c,f){return !!d.data(e,f[3])},focusable:function(e){var c=e.nodeName.toLowerCase(),f=d.attr(e,"tabindex");if("area"===c){c=e.parentNode;f=c.name;if(!e.href||!f||c.nodeName.toLowerCase()!=="map"){return false}e=d("img[usemap=#"+f+"]")[0];return !!e&&a(e)}return(/input|select|textarea|button|object/.test(c)?!e.disabled:"a"==c?e.href||!isNaN(f):!isNaN(f))&&a(e)},tabbable:function(e){var c=d.attr(e,"tabindex");return(isNaN(c)||c>=0)&&d(e).is(":focusable")}});d(function(){var e=document.body,c=e.appendChild(c=document.createElement("div"));d.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});d.support.minHeight=c.offsetHeight===100;d.support.selectstart="onselectstart" in c;e.removeChild(c).style.display="none"});d.extend(d.ui,{plugin:{add:function(f,c,h){f=d.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g0){return true}e[c]=1;f=e[c]>0;e[c]=0;return f},isOverAxis:function(e,c,f){return e>c&&e=9)&&!b.button){return this._mouseUp(b)}if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false)?this._mouseDrag(b):this._mouseUp(b)}return !this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",true);this._mouseStop(b)}return false},_mouseDistanceMet:function(b){return Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);(function(f){f.ui=f.ui||{};var e=/left|center|right/,d=/top|center|bottom/,b=f.fn.position,a=f.fn.offset;f.fn.position=function(c){if(!c||!c.of){return b.apply(this,arguments)}c=f.extend({},c);var i=f(c.of),q=i[0],o=(c.collision||"flip").split(" "),p=c.offset?c.offset.split(" "):[0,0],n,l,m;if(q.nodeType===9){n=i.width();l=i.height();m={top:0,left:0}}else{if(q.setTimeout){n=i.width();l=i.height();m={top:i.scrollTop(),left:i.scrollLeft()}}else{if(q.preventDefault){c.at="left top";n=l=0;m={top:c.of.pageY,left:c.of.pageX}}else{n=i.outerWidth();l=i.outerHeight();m=i.offset()}}}f.each(["my","at"],function(){var g=(c[this]||"").split(" ");if(g.length===1){g=e.test(g[0])?g.concat(["center"]):d.test(g[0])?["center"].concat(g):["center","center"]}g[0]=e.test(g[0])?g[0]:"center";g[1]=d.test(g[1])?g[1]:"center";c[this]=g});if(o.length===1){o[1]=o[0]}p[0]=parseInt(p[0],10)||0;if(p.length===1){p[1]=p[0]}p[1]=parseInt(p[1],10)||0;if(c.at[0]==="right"){m.left+=n}else{if(c.at[0]==="center"){m.left+=n/2}}if(c.at[1]==="bottom"){m.top+=l}else{if(c.at[1]==="center"){m.top+=l/2}}m.left+=p[0];m.top+=p[1];return this.each(function(){var u=f(this),s=u.outerWidth(),k=u.outerHeight(),j=parseInt(f.curCSS(this,"marginLeft",true))||0,h=parseInt(f.curCSS(this,"marginTop",true))||0,y=s+j+(parseInt(f.curCSS(this,"marginRight",true))||0),x=k+h+(parseInt(f.curCSS(this,"marginBottom",true))||0),t=f.extend({},m),g;if(c.my[0]==="right"){t.left-=s}else{if(c.my[0]==="center"){t.left-=s/2}}if(c.my[1]==="bottom"){t.top-=k}else{if(c.my[1]==="center"){t.top-=k/2}}t.left=Math.round(t.left);t.top=Math.round(t.top);g={left:t.left-j,top:t.top-h};f.each(["left","top"],function(v,r){f.ui.position[o[v]]&&f.ui.position[o[v]][r](t,{targetWidth:n,targetHeight:l,elemWidth:s,elemHeight:k,collisionPosition:g,collisionWidth:y,collisionHeight:x,offset:p,my:c.my,at:c.at})});f.fn.bgiframe&&u.bgiframe();u.offset(f.extend(t,{using:c.using}))})};f.ui.position={fit:{left:function(c,g){var h=f(window);h=g.collisionPosition.left+g.collisionWidth-h.width()-h.scrollLeft();c.left=h>0?c.left-h:Math.max(c.left-g.collisionPosition.left,c.left)},top:function(c,g){var h=f(window);h=g.collisionPosition.top+g.collisionHeight-h.height()-h.scrollTop();c.top=h>0?c.top-h:Math.max(c.top-g.collisionPosition.top,c.top)}},flip:{left:function(c,i){if(i.at[0]!=="center"){var m=f(window);m=i.collisionPosition.left+i.collisionWidth-m.width()-m.scrollLeft();var k=i.my[0]==="left"?-i.elemWidth:i.my[0]==="right"?i.elemWidth:0,l=i.at[0]==="left"?i.targetWidth:-i.targetWidth,j=-2*i.offset[0];c.left+=i.collisionPosition.left<0?k+l+j:m>0?k+l+j:0}},top:function(c,i){if(i.at[1]!=="center"){var m=f(window);m=i.collisionPosition.top+i.collisionHeight-m.height()-m.scrollTop();var k=i.my[1]==="top"?-i.elemHeight:i.my[1]==="bottom"?i.elemHeight:0,l=i.at[1]==="top"?i.targetHeight:-i.targetHeight,j=-2*i.offset[1];c.top+=i.collisionPosition.top<0?k+l+j:m>0?k+l+j:0}}}};if(!f.offset.setOffset){f.offset.setOffset=function(c,i){if(/static/.test(f.curCSS(c,"position"))){c.style.position="relative"}var m=f(c),k=m.offset(),l=parseInt(f.curCSS(c,"top",true),10)||0,j=parseInt(f.curCSS(c,"left",true),10)||0;k={top:i.top-k.top+l,left:i.left-k.left+j};"using" in i?i.using.call(c,k):m.css(k)};f.fn.offset=function(c){var g=this[0];if(!g||!g.ownerDocument){return null}if(c){return this.each(function(){f.offset.setOffset(this,c)})}return a.call(this)}}})(jQuery);(function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))){this.element[0].style.position="relative"}this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(d){var c=this.options;if(this.helper||c.disabled||a(d.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(d);if(!this.handle){return false}return true},_mouseStart:function(d){var c=this.options;this.helper=this._createHelper(d);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);c.containment&&this._setContainment();if(this._trigger("start",d)===false){this._clear();return false}this._cacheHelperProportions();a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,d);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(d,true);return true},_mouseDrag:function(d,c){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");if(!c){c=this._uiHash();if(this._trigger("drag",d,c)===false){this._mouseUp({});return false}this.position=c.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"}a.ui.ddmanager&&a.ui.ddmanager.drag(this,d);return false},_mouseStop:function(e){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,e)}if(this.dropped){d=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original"){return false}if(this.options.revert=="invalid"&&!d||this.options.revert=="valid"&&d||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)){var f=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",e)!==false&&f._clear()})}else{this._trigger("stop",e)!==false&&this._clear()}return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(d){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==d.target){c=true}});return c},_createHelper:function(d){var c=this.options;d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[d])):c.helper=="clone"?this.element.clone():this.element;d.parents("body").length||d.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo);d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute");return d},_adjustOffsetFromHelper:function(b){if(typeof b=="string"){b=b.split(" ")}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}}if("left" in b){this.offset.click.left=b.left+this.margins.left}if("right" in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if("top" in b){this.offset.click.top=b.top+this.margins.top}if("bottom" in b){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.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 e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[(e.containment=="document"?0:a(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(e.containment=="document"?0:a(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(e.containment=="document"?0:a(window).scrollLeft())+a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(e.containment=="document"?0:a(window).scrollTop())+(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(e.containment)&&e.containment.constructor!=Array){var d=a(e.containment)[0];if(d){e=a(e.containment).offset();var f=a(d).css("overflow")!="hidden";this.containment=[e.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,e.left+(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(e,d){if(!d){d=this.position}e=e=="absolute"?1:-1;var h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(h[0].tagName);return{top:d.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:h.scrollTop())*e),left:d.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:h.scrollLeft())*e)}},_generatePosition:function(h){var d=this.options,l=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=/(html|body)/i.test(l[0].tagName),k=h.pageX,i=h.pageY;if(this.originalPosition){if(this.containment){if(h.pageX-this.offset.click.leftthis.containment[2]){k=this.containment[2]+this.offset.click.left}if(h.pageY-this.offset.click.top>this.containment[3]){i=this.containment[3]+this.offset.click.top}}if(d.grid){i=this.originalPageY+Math.round((i-this.originalPageY)/d.grid[1])*d.grid[1];i=this.containment?!(i-this.offset.click.topthis.containment[3])?i:!(i-this.offset.click.topthis.containment[2])?k:!(k-this.offset.click.left').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})},stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(d,c){d=a(c.helper);c=a(this).data("draggable").options;if(d.css("opacity")){c._opacity=d.css("opacity")}d.css("opacity",c.opacity)},stop:function(d,c){d=a(this).data("draggable").options;d._opacity&&a(c.helper).css("opacity",d._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()}},drag:function(e){var d=a(this).data("draggable"),h=d.options,g=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!h.axis||h.axis!="x"){if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-e.pageY=0;F--){var E=J.snapElements[F].left,C=E+J.snapElements[F].width,D=J.snapElements[F].top,B=D+J.snapElements[F].height;if(E-I *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000},_create:function(){this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?/left|right/.test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var b=this.items.length-1;b>=0;b--){this.items[b].item.removeData("sortable-item")}return this},_setOption:function(d,c){if(d==="disabled"){this.options[d]=c;this.widget()[c?"addClass":"removeClass"]("ui-sortable-disabled")}else{a.Widget.prototype._setOption.apply(this,arguments)}},_mouseCapture:function(g,d){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(g);var j=null,i=this;a(g.target).parents().each(function(){if(a.data(this,"sortable-item")==i){j=a(this);return false}});if(a.data(g.target,"sortable-item")==i){j=a(g.target)}if(!j){return false}if(this.options.handle&&!d){var h=false;a(this.options.handle,j).find("*").andSelf().each(function(){if(this==g.target){h=true}});if(!h){return false}}this.currentItem=j;this._removeCurrentsFromItems();return true},_mouseStart:function(f,d,h){d=this.options;var g=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(f);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");a.extend(this.offset,{click:{left:f.pageX-this.offset.left,top:f.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(f);this.originalPageX=f.pageX;this.originalPageY=f.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();d.containment&&this._setContainment();if(d.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")}a("body").css("cursor",d.cursor)}if(d.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",d.opacity)}if(d.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",d.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",f,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!h){for(h=this.containers.length-1;h>=0;h--){this.containers[h]._trigger("activate",f,g._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,f);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(f);return true},_mouseDrag:function(g){this.position=this._generatePosition(g);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var d=this.options,j=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-g.pageY=0;d--){j=this.items[d];var i=j.item[0],h=this._intersectsWithPointer(j);if(h){if(i!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=i&&!a.ui.contains(this.placeholder[0],i)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],i):true)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(j)){this._rearrange(g,j)}else{break}this._trigger("change",g,this._uiHash());break}}}this._contactContainers(g);a.ui.ddmanager&&a.ui.ddmanager.drag(this,g);this._trigger("sort",g,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(e,d){if(e){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,e);if(this.options.revert){var f=this;d=f.placeholder.offset();f.reverting=true;a(this.helper).animate({left:d.left-this.offset.parent.left-f.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-f.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){f._clear(e)})}else{this._clear(e,d)}return false}},cancel:function(){var d=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var c=this.containers.length-1;c>=0;c--){this.containers[c]._trigger("deactivate",null,d._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,d._uiHash(this));this.containers[c].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(e){var d=this._getItemsAsjQuery(e&&e.connected),f=[];e=e||{};a(d).each(function(){var b=(a(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);if(b){f.push((e.key||b[1]+"[]")+"="+(e.key&&e.expression?b[1]:b[2]))}});!f.length&&e.key&&f.push(e.key+"=");return f.join("&")},toArray:function(e){var d=this._getItemsAsjQuery(e&&e.connected),f=[];e=e||{};d.each(function(){f.push(a(e.item||this).attr(e.attribute||"id")||"")});return f},_intersectsWith:function(v){var u=this.positionAbs.left,t=u+this.helperProportions.width,s=this.positionAbs.top,r=s+this.helperProportions.height,q=v.left,p=q+v.width,o=v.top,m=o+v.height,n=this.offset.click.top,d=this.offset.click.left;n=s+n>o&&s+nq&&u+dv[this.floating?"width":"height"]?n:q0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions();return this},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(i){var d=[],n=[],m=this._connectWith();if(m&&i){for(i=m.length-1;i>=0;i--){for(var l=a(m[i]),k=l.length-1;k>=0;k--){var j=a.data(l[k],"sortable");if(j&&j!=this&&!j.options.disabled){n.push([a.isFunction(j.options.items)?j.options.items.call(j.element):a(j.options.items,j.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),j])}}}}n.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(i=n.length-1;i>=0;i--){n[i][0].each(function(){d.push(this)})}return a(d)},_removeCurrentsFromItems:function(){for(var e=this.currentItem.find(":data(sortable-item)"),d=0;d=0;n--){for(var m=a(o[n]),l=m.length-1;l>=0;l--){var k=a.data(m[l],"sortable");if(k&&k!=this&&!k.options.disabled){p.push([a.isFunction(k.options.items)?k.options.items.call(k.element[0],j,{item:this.currentItem}):a(k.options.items,k.element),k]);this.containers.push(k)}}}}for(n=p.length-1;n>=0;n--){j=p[n][1];o=p[n][0];l=0;for(m=o.length;l=0;d--){var h=this.items[d],g=this.options.toleranceElement?a(this.options.toleranceElement,h.item):h.item;if(!f){h.width=g.outerWidth();h.height=g.outerHeight()}g=g.offset();h.left=g.left;h.top=g.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(d=this.containers.length-1;d>=0;d--){g=this.containers[d].element.offset();this.containers[d].containerCache.left=g.left;this.containers[d].containerCache.top=g.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}}return this},_createPlaceholder:function(f){var d=f||this,h=d.options;if(!h.placeholder||h.placeholder.constructor==String){var g=h.placeholder;h.placeholder={element:function(){var b=a(document.createElement(d.currentItem[0].nodeName)).addClass(g||d.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!g){b.style.visibility="hidden"}return b},update:function(c,b){if(!(g&&!h.forcePlaceholderSize)){b.height()||b.height(d.currentItem.innerHeight()-parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10));b.width()||b.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||0,10))}}}}d.placeholder=a(h.placeholder.element.call(d.element,d.currentItem));d.currentItem.after(d.placeholder);h.placeholder.update(d,d.placeholder)},_contactContainers:function(i){for(var d=null,n=null,m=this.containers.length-1;m>=0;m--){if(!a.ui.contains(this.currentItem[0],this.containers[m].element[0])){if(this._intersectsWith(this.containers[m].containerCache)){if(!(d&&a.ui.contains(this.containers[m].element[0],d.element[0]))){d=this.containers[m];n=m}}else{if(this.containers[m].containerCache.over){this.containers[m]._trigger("out",i,this._uiHash(this));this.containers[m].containerCache.over=0}}}}if(d){if(this.containers.length===1){this.containers[n]._trigger("over",i,this._uiHash(this));this.containers[n].containerCache.over=1}else{if(this.currentContainer!=this.containers[n]){d=10000;m=null;for(var l=this.positionAbs[this.containers[n].floating?"left":"top"],k=this.items.length-1;k>=0;k--){if(a.ui.contains(this.containers[n].element[0],this.items[k].item[0])){var j=this.items[k][this.containers[n].floating?"left":"top"];if(Math.abs(j-l)this.containment[2]){j=this.containment[2]+this.offset.click.left}if(h.pageY-this.offset.click.top>this.containment[3]){i=this.containment[3]+this.offset.click.top}}if(d.grid){i=this.originalPageY+Math.round((i-this.originalPageY)/d.grid[1])*d.grid[1];i=this.containment?!(i-this.offset.click.topthis.containment[3])?i:!(i-this.offset.click.topthis.containment[2])?j:!(j-this.offset.click.left=0;g--){if(a.ui.contains(this.containers[g].element[0],this.currentItem[0])&&!d){h.push(function(b){return function(c){b._trigger("receive",c,this._uiHash(this))}}.call(this,this.containers[g]));h.push(function(b){return function(c){b._trigger("update",c,this._uiHash(this))}}.call(this,this.containers[g]))}}}for(g=this.containers.length-1;g>=0;g--){d||h.push(function(b){return function(c){b._trigger("deactivate",c,this._uiHash(this))}}.call(this,this.containers[g]));if(this.containers[g].containerCache.over){h.push(function(b){return function(c){b._trigger("out",c,this._uiHash(this))}}.call(this,this.containers[g]));this.containers[g].containerCache.over=0}}this._storedCursor&&a("body").css("cursor",this._storedCursor);this._storedOpacity&&this.helper.css("opacity",this._storedOpacity);if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!d){this._trigger("beforeStop",f,this._uiHash());for(g=0;g")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c.dialogClass).css({zIndex:c.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(f){if(c.closeOnEscape&&f.keyCode&&f.keyCode===e.ui.keyCode.ESCAPE){i.close(f);f.preventDefault()}}).attr({role:"dialog","aria-labelledby":m}).mousedown(function(f){i.moveToTop(false,f)});i.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(k);var l=(i.uiDialogTitlebar=e("
")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(k),j=e('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){j.addClass("ui-state-hover")},function(){j.removeClass("ui-state-hover")}).focus(function(){j.addClass("ui-state-focus")}).blur(function(){j.removeClass("ui-state-focus")}).click(function(f){i.close(f);return false}).appendTo(l);(i.uiDialogTitlebarCloseText=e("")).addClass("ui-icon ui-icon-closethick").text(c.closeText).appendTo(j);e("").addClass("ui-dialog-title").attr("id",m).html(n).prependTo(l);if(e.isFunction(c.beforeclose)&&!e.isFunction(c.beforeClose)){c.beforeClose=c.beforeclose}l.find("*").add(l).disableSelection();c.draggable&&e.fn.draggable&&i._makeDraggable();c.resizable&&e.fn.resizable&&i._makeResizable();i._createButtons(c.buttons);i._isOpen=false;e.fn.bgiframe&&k.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var c=this;c.overlay&&c.overlay.destroy();c.uiDialog.hide();c.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");c.uiDialog.remove();c.originalTitle&&c.element.attr("title",c.originalTitle);return c},widget:function(){return this.uiDialog},close:function(f){var c=this,h,g;if(false!==c._trigger("beforeClose",f)){c.overlay&&c.overlay.destroy();c.uiDialog.unbind("keypress.ui-dialog");c._isOpen=false;if(c.options.hide){c.uiDialog.hide(c.options.hide,function(){c._trigger("close",f)})}else{c.uiDialog.hide();c._trigger("close",f)}e.ui.dialog.overlay.resize();if(c.options.modal){h=0;e(".ui-dialog").each(function(){if(this!==c.uiDialog[0]){g=e(this).css("z-index");isNaN(g)||(h=Math.max(h,g))}});e.ui.dialog.maxZ=h}return c}},isOpen:function(){return this._isOpen},moveToTop:function(f,c){var h=this,g=h.options;if(g.modal&&!f||!g.stack&&!g.modal){return h._trigger("focus",c)}if(g.zIndex>e.ui.dialog.maxZ){e.ui.dialog.maxZ=g.zIndex}if(h.overlay){e.ui.dialog.maxZ+=1;h.overlay.$el.css("z-index",e.ui.dialog.overlay.maxZ=e.ui.dialog.maxZ)}f={scrollTop:h.element.attr("scrollTop"),scrollLeft:h.element.attr("scrollLeft")};e.ui.dialog.maxZ+=1;h.uiDialog.css("z-index",e.ui.dialog.maxZ);h.element.attr(f);h._trigger("focus",c);return h},open:function(){if(!this._isOpen){var f=this,c=f.options,g=f.uiDialog;f.overlay=c.modal?new e.ui.dialog.overlay(f):null;f._size();f._position(c.position);g.show(c.show);f.moveToTop(true);c.modal&&g.bind("keypress.ui-dialog",function(j){if(j.keyCode===e.ui.keyCode.TAB){var h=e(":tabbable",this),i=h.filter(":first");h=h.filter(":last");if(j.target===h[0]&&!j.shiftKey){i.focus(1);return false}else{if(j.target===i[0]&&j.shiftKey){h.focus(1);return false}}}});e(f.element.find(":tabbable").get().concat(g.find(".ui-dialog-buttonpane :tabbable").get().concat(g.get()))).eq(0).focus();f._isOpen=true;f._trigger("open");return f}},_createButtons:function(f){var c=this,j=false,i=e("
").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),h=e("
").addClass("ui-dialog-buttonset").appendTo(i);c.uiDialog.find(".ui-dialog-buttonpane").remove();typeof f==="object"&&f!==null&&e.each(f,function(){return !(j=true)});if(j){e.each(f,function(k,g){g=e.isFunction(g)?{click:g,text:k}:g;k=e('').attr(g,true).unbind("click").click(function(){g.click.apply(c.element[0],arguments)}).appendTo(h);e.fn.button&&k.button()});i.appendTo(c.uiDialog)}},_makeDraggable:function(){function f(g){return{position:g.position,offset:g.offset}}var c=this,j=c.options,i=e(document),h;c.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(k,g){h=j.height==="auto"?"auto":e(this).height();e(this).height(e(this).height()).addClass("ui-dialog-dragging");c._trigger("dragStart",k,f(g))},drag:function(k,g){c._trigger("drag",k,f(g))},stop:function(k,g){j.position=[g.position.left-i.scrollLeft(),g.position.top-i.scrollTop()];e(this).removeClass("ui-dialog-dragging").height(h);c._trigger("dragStop",k,f(g));e.ui.dialog.overlay.resize()}})},_makeResizable:function(f){function c(g){return{originalPosition:g.originalPosition,originalSize:g.originalSize,position:g.position,size:g.size}}f=f===d?this.options.resizable:f;var j=this,i=j.options,h=j.uiDialog.css("position");f=typeof f==="string"?f:"n,e,s,w,se,sw,ne,nw";j.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:j.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:j._minHeight(),handles:f,start:function(k,g){e(this).addClass("ui-dialog-resizing");j._trigger("resizeStart",k,c(g))},resize:function(k,g){j._trigger("resize",k,c(g))},stop:function(k,g){e(this).removeClass("ui-dialog-resizing");i.height=e(this).height();i.width=e(this).width();j._trigger("resizeStop",k,c(g));e.ui.dialog.overlay.resize()}}).css("position",h).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var c=this.options;return c.height==="auto"?c.minHeight:Math.min(c.minHeight,c.height)},_position:function(f){var c=[],h=[0,0],g;if(f){if(typeof f==="string"||typeof f==="object"&&"0" in f){c=f.split?f.split(" "):[f[0],f[1]];if(c.length===1){c[1]=c[0]}e.each(["left","top"],function(i,j){if(+c[i]===c[i]){h[i]=c[i];c[i]=j}});f={my:c.join(" "),at:c.join(" "),offset:h.join(" ")}}f=e.extend({},e.ui.dialog.prototype.options.position,f)}else{f=e.ui.dialog.prototype.options.position}(g=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(e.extend({of:window},f));g||this.uiDialog.hide()},_setOptions:function(f){var c=this,h={},g=false;e.each(f,function(i,j){c._setOption(i,j);if(i in b){g=true}if(i in a){h[i]=j}});g&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",h)},_setOption:function(f,c){var j=this,i=j.uiDialog;switch(f){case"beforeclose":f="beforeClose";break;case"buttons":j._createButtons(c);break;case"closeText":j.uiDialogTitlebarCloseText.text(""+c);break;case"dialogClass":i.removeClass(j.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c);break;case"disabled":c?i.addClass("ui-dialog-disabled"):i.removeClass("ui-dialog-disabled");break;case"draggable":var h=i.is(":data(draggable)");h&&!c&&i.draggable("destroy");!h&&c&&j._makeDraggable();break;case"position":j._position(c);break;case"resizable":(h=i.is(":data(resizable)"))&&!c&&i.resizable("destroy");h&&typeof c==="string"&&i.resizable("option","handles",c);!h&&c!==false&&j._makeResizable(c);break;case"title":e(".ui-dialog-title",j.uiDialogTitlebar).html(""+(c||" "));break}e.Widget.prototype._setOption.apply(j,arguments)},_size:function(){var f=this.options,c,h,g=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(f.minWidth>f.width){f.width=f.minWidth}c=this.uiDialog.css({height:"auto",width:f.width}).height();h=Math.max(0,f.minHeight-c);if(f.height==="auto"){if(e.support.minHeight){this.element.css({minHeight:h,height:"auto"})}else{this.uiDialog.show();f=this.element.css("height","auto").height();g||this.uiDialog.hide();this.element.height(Math.max(f,h))}}else{this.element.height(Math.max(f.height-c,0))}this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});e.extend(e.ui.dialog,{version:"1.8.9",uuid:0,maxZ:0,getTitleId:function(c){c=c.attr("id");if(!c){this.uuid+=1;c=this.uuid}return"ui-dialog-title-"+c},overlay:function(c){this.$el=e.ui.dialog.overlay.create(c)}});e.extend(e.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:e.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(c){return c+".dialog-overlay"}).join(" "),create:function(f){if(this.instances.length===0){setTimeout(function(){e.ui.dialog.overlay.instances.length&&e(document).bind(e.ui.dialog.overlay.events,function(g){if(e(g.target).zIndex()").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});e.fn.bgiframe&&c.bgiframe();this.instances.push(c);return c},destroy:function(f){var c=e.inArray(f,this.instances);c!=-1&&this.oldInstances.push(this.instances.splice(c,1)[0]);this.instances.length===0&&e([document,window]).unbind(".dialog-overlay");f.remove();var g=0;e.each(this.instances,function(){g=Math.max(g,this.css("z-index"))});this.maxZ=g},height:function(){var f,c;if(e.browser.msie&&e.browser.version<7){f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return f").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});k.wrap(f);f=k.parent();if(k.css("position")=="static"){f.css({position:"relative"});k.css({position:"relative"})}else{l.extend(j,{position:k.css("position"),zIndex:k.css("z-index")});l.each(["top","left","bottom","right"],function(n,m){j[m]=k.css(m);if(isNaN(parseInt(j[m],10))){j[m]="auto"}});k.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return f.css(j).show()},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)}return f},setTransition:function(m,j,f,k){k=k||{};l.each(j,function(o,n){unit=m.cssUnit(n);if(unit[0]>0){k[n]=unit[0]*f+unit[1]}});return k}});l.fn.extend({effect:function(m){var j=h.apply(this,arguments),f={options:j[1],duration:j[2],callback:j[3]};j=f.options.mode;var k=l.effects[m];if(l.fx.off||!k){return j?this[j](f.duration,f.callback):this.each(function(){f.callback&&f.callback.call(this)})}return k.call(this,f)},_show:l.fn.show,show:function(j){if(g(j)){return this._show.apply(this,arguments)}else{var f=h.apply(this,arguments);f[1].mode="show";return this.effect.apply(this,f)}},_hide:l.fn.hide,hide:function(j){if(g(j)){return this._hide.apply(this,arguments)}else{var f=h.apply(this,arguments);f[1].mode="hide";return this.effect.apply(this,f)}},__toggle:l.fn.toggle,toggle:function(j){if(g(j)||typeof j==="boolean"||l.isFunction(j)){return this.__toggle.apply(this,arguments)}else{var f=h.apply(this,arguments);f[1].mode="toggle";return this.effect.apply(this,f)}},cssUnit:function(k){var j=this.css(k),f=[];l.each(["em","px","%","pt"],function(n,m){if(j.indexOf(m)>0){f=[parseFloat(j),m]}});return f}});l.easing.jswing=l.easing.swing;l.extend(l.easing,{def:"easeOutQuad",swing:function(n,j,f,m,k){return l.easing[l.easing.def](n,j,f,m,k)},easeInQuad:function(n,j,f,m,k){return m*(j/=k)*j+f},easeOutQuad:function(n,j,f,m,k){return -m*(j/=k)*(j-2)+f},easeInOutQuad:function(n,j,f,m,k){if((j/=k/2)<1){return m/2*j*j+f}return -m/2*(--j*(j-2)-1)+f},easeInCubic:function(n,j,f,m,k){return m*(j/=k)*j*j+f},easeOutCubic:function(n,j,f,m,k){return m*((j=j/k-1)*j*j+1)+f},easeInOutCubic:function(n,j,f,m,k){if((j/=k/2)<1){return m/2*j*j*j+f}return m/2*((j-=2)*j*j+2)+f},easeInQuart:function(n,j,f,m,k){return m*(j/=k)*j*j*j+f},easeOutQuart:function(n,j,f,m,k){return -m*((j=j/k-1)*j*j*j-1)+f},easeInOutQuart:function(n,j,f,m,k){if((j/=k/2)<1){return m/2*j*j*j*j+f}return -m/2*((j-=2)*j*j*j-2)+f},easeInQuint:function(n,j,f,m,k){return m*(j/=k)*j*j*j*j+f},easeOutQuint:function(n,j,f,m,k){return m*((j=j/k-1)*j*j*j*j+1)+f},easeInOutQuint:function(n,j,f,m,k){if((j/=k/2)<1){return m/2*j*j*j*j*j+f}return m/2*((j-=2)*j*j*j*j+2)+f},easeInSine:function(n,j,f,m,k){return -m*Math.cos(j/k*(Math.PI/2))+m+f},easeOutSine:function(n,j,f,m,k){return m*Math.sin(j/k*(Math.PI/2))+f},easeInOutSine:function(n,j,f,m,k){return -m/2*(Math.cos(Math.PI*j/k)-1)+f},easeInExpo:function(n,j,f,m,k){return j==0?f:m*Math.pow(2,10*(j/k-1))+f},easeOutExpo:function(n,j,f,m,k){return j==k?f+m:m*(-Math.pow(2,-10*j/k)+1)+f},easeInOutExpo:function(n,j,f,m,k){if(j==0){return f}if(j==k){return f+m}if((j/=k/2)<1){return m/2*Math.pow(2,10*(j-1))+f}return m/2*(-Math.pow(2,-10*--j)+2)+f},easeInCirc:function(n,j,f,m,k){return -m*(Math.sqrt(1-(j/=k)*j)-1)+f},easeOutCirc:function(n,j,f,m,k){return m*Math.sqrt(1-(j=j/k-1)*j)+f},easeInOutCirc:function(n,j,f,m,k){if((j/=k/2)<1){return -m/2*(Math.sqrt(1-j*j)-1)+f}return m/2*(Math.sqrt(1-(j-=2)*j)+1)+f},easeInElastic:function(p,j,f,o,n){p=1.70158;var m=0,k=o;if(j==0){return f}if((j/=n)==1){return f+o}m||(m=n*0.3);if(k").css({position:"absolute",visibility:"visible",left:-n*(l/p),top:-o*(k/q)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:l/p,height:k/q,left:m.left+n*(l/p)+(b.options.mode=="show"?(n-Math.floor(p/2))*(l/p):0),top:m.top+o*(k/q)+(b.options.mode=="show"?(o-Math.floor(q/2))*(k/q):0),opacity:b.options.mode=="show"?0:1}).animate({left:m.left+n*(l/p)+(b.options.mode=="show"?0:(n-Math.floor(p/2))*(l/p)),top:m.top+o*(k/q)+(b.options.mode=="show"?0:(o-Math.floor(q/2))*(k/q)),opacity:b.options.mode=="show"?1:0},b.duration||500)}}setTimeout(function(){b.options.mode=="show"?j.css({visibility:"visible"}):j.css({visibility:"visible"}).hide();b.callback&&b.callback.apply(j[0]);j.dequeue();a("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery);(function(c){function b(bb,a0){function ao(j){return function(k){return !this._t||!this._t._a?null:j.call(this,k)}}function bi(){if(ay.debugURLParam.test(aI)){ay.debugMode=true}}this.flashVersion=8;this.debugFlash=this.debugMode=false;this.useConsole=true;this.waitForWindowLoad=this.consoleOnly=false;this.nullURL="about:blank";this.allowPolling=true;this.useFastPolling=false;this.useMovieStar=true;this.bgColor="#ffffff";this.useHighPerformance=false;this.flashPollingInterval=null;this.flashLoadTimeout=1000;this.wmode=null;this.allowScriptAccess="always";this.useHTML5Audio=this.useFlashBlock=false;this.html5Test=/^probably$/i;this.useGlobalHTML5Audio=true;this.requireFlash=false;this.audioFormats={mp3:{type:['audio/mpeg; codecs="mp3"',"audio/mpeg","audio/mp3","audio/MPA","audio/mpa-robust"],required:true},mp4:{related:["aac","m4a"],type:['audio/mp4; codecs="mp4a.40.2"',"audio/aac","audio/x-m4a","audio/MP4A-LATM","audio/mpeg4-generic"],required:true},ogg:{type:["audio/ogg; codecs=vorbis"],required:false},wav:{type:['audio/wav; codecs="1"',"audio/wav","audio/wave","audio/x-wav"],required:false}};this.defaultOptions={autoLoad:false,stream:true,autoPlay:false,loops:1,onid3:null,onload:null,whileloading:null,onplay:null,onpause:null,onresume:null,whileplaying:null,onstop:null,onfailure:null,onfinish:null,onbeforefinish:null,onbeforefinishtime:5000,onbeforefinishcomplete:null,onjustbeforefinish:null,onjustbeforefinishtime:200,multiShot:true,multiShotEvents:false,position:null,pan:0,type:null,usePolicyFile:false,volume:100};this.flash9Options={isMovieStar:null,usePeakData:false,useWaveformData:false,useEQData:false,onbufferchange:null,ondataerror:null};this.movieStarOptions={bufferTime:3,serverURL:null,onconnect:null,duration:null};this.version=null;this.versionNumber="V2.97a.20110123";this.movieURL=null;this.url=bb||null;this.altURL=null;this.enabled=this.swfLoaded=false;this.o=null;this.movieID="sm2-container";this.id=a0||"sm2movie";this.swfCSS={swfBox:"sm2-object-box",swfDefault:"movieContainer",swfError:"swf_error",swfTimedout:"swf_timedout",swfLoaded:"swf_loaded",swfUnblocked:"swf_unblocked",sm2Debug:"sm2_debug",highPerf:"high_performance",flashDebug:"flash_debug"};this.oMC=null;this.sounds={};this.soundIDs=[];this.muted=false;this.debugID="soundmanager-debug";this.debugURLParam=/([#?&])debug=1/i;this.didFlashBlock=this.specialWmodeCase=false;this.filePattern=null;this.filePatterns={flash8:/\.mp3(\?.*)?$/i,flash9:/\.mp3(\?.*)?$/i};this.baseMimeTypes=/^\s*audio\/(?:x-)?(?:mp(?:eg|3))\s*(?:$|;)/i;this.netStreamMimeTypes=/^\s*audio\/(?:x-)?(?:mp(?:eg|3))\s*(?:$|;)/i;this.netStreamTypes=["aac","flv","mov","mp4","m4v","f4v","m4a","mp4v","3gp","3g2"];this.netStreamPattern=RegExp("\\.("+this.netStreamTypes.join("|")+")(\\?.*)?$","i");this.mimePattern=this.baseMimeTypes;this.features={buffering:false,peakData:false,waveformData:false,eqData:false,movieStar:false};this.sandbox={};this.hasHTML5=null;this.html5={usingFlash:null};this.ignoreFlash=false;var a6,ay=this,aY,aj=navigator.userAgent,aI=c.location.href.toString(),aq=this.flashVersion,at=document,ar=c,aL,aH,ag=[],aR=false,aQ=false,al=false,ae=false,bd=false,aP,ak,ap,ad,aX,i,aG,a4,e,a3,az,aO,aW,bf,a7,aF,aS,ac,h,aE,d,aN=null,au=null,a2,m,aV,aD,aC,f,an,aB=false,bh=false,be,a5,a1=null,bg,aA,ai=false,aM,af,a9,a8,am,ax=Array.prototype.slice,aK=false,bc,aZ,aU,av=aj.match(/pre\//i),ab=aj.match(/(ipad|iphone|ipod)/i);aj.match(/mobile/i);var ah=aj.match(/MSIE/i),n=aj.match(/webkit/i),aJ=aj.match(/safari/i)&&!aj.match(/chrome/i),aw=!aI.match(/usehtml5audio/i)&&!aI.match(/sm2\-ignorebadua/i)&&aJ&&aj.match(/OS X 10_6_(3|4|5|6)/i),D=typeof at.hasFocus!=="undefined"?at.hasFocus():null,aT=typeof at.hasFocus==="undefined"&&aJ,g=!aT;this._use_maybe=aI.match(/sm2\-useHTML5Maybe\=1/i);this._overHTTP=at.location?at.location.protocol.match(/http/i):null;this.useAltURL=!this._overHTTP;this._global_a=null;if(ab||av){ay.useHTML5Audio=true;ay.ignoreFlash=true;if(ay.useGlobalHTML5Audio){aK=true}}if(av||this._use_maybe){ay.html5Test=/^(probably|maybe)$/i}this.supported=this.ok=function(){return a1?al&&!ae:ay.useHTML5Audio&&ay.hasHTML5};this.getMovie=function(j){return ah?ar[j]:aJ?aY(j)||at[j]:aY(j)};this.createSound=function(p){function j(){l=aD(l);ay.sounds[o.id]=new a6(o);ay.soundIDs.push(o.id);return ay.sounds[o.id]}var l=null,k=null,o=null;if(!al||!ay.ok()){f("soundManager.createSound(): "+a2(!al?"notReady":"notOK"));return false}if(arguments.length===2){p={id:arguments[0],url:arguments[1]}}o=l=ak(p);if(an(o.id,true)){return ay.sounds[o.id]}if(aA(o)){k=j();k._setup_html5(o)}else{if(aq>8&&ay.useMovieStar){if(o.isMovieStar===null){o.isMovieStar=o.serverURL||(o.type?o.type.match(ay.netStreamPattern):false)||o.url.match(ay.netStreamPattern)?true:false}if(o.isMovieStar){if(o.usePeakData){o.usePeakData=false}}}o=aC(o,"soundManager.createSound(): ");k=j();if(aq===8){ay.o._createSound(o.id,o.onjustbeforefinishtime,o.loops||1,o.usePolicyFile)}else{ay.o._createSound(o.id,o.url,o.onjustbeforefinishtime,o.usePeakData,o.useWaveformData,o.useEQData,o.isMovieStar,o.isMovieStar?o.bufferTime:false,o.loops||1,o.serverURL,o.duration||null,o.autoPlay,true,o.autoLoad,o.usePolicyFile);if(!o.serverURL){k.connected=true;o.onconnect&&o.onconnect.apply(k)}}if((o.autoLoad||o.autoPlay)&&!o.serverURL){k.load(o)}}o.autoPlay&&!o.serverURL&&k.play();return k};this.destroySound=function(o,j){if(!an(o)){return false}var l=ay.sounds[o],k;l._iO={};l.stop();l.unload();for(k=0;k0){j.resume()}else{j.playState=1;j.paused=false;if(!j.instanceCount||j._iO.multiShotEvents||aq>8&&!j.isHTML5&&!j.getAutoPlay()){j.instanceCount++}j.position=typeof j._iO.position!=="undefined"&&!isNaN(j._iO.position)?j._iO.position:0;if(!j.isHTML5){j._iO=aC(aD(j._iO))}if(j._iO.onplay&&r){j._iO.onplay.apply(j);j._onplay_called=true}j.setVolume(j._iO.volume,true);j.setPan(j._iO.pan,true);if(j.isHTML5){o();j._setup_html5().play()}else{ay.o._start(j.sID,j._iO.loops||1,aq===9?j.position:j.position/1000)}}return j};this.stop=function(q){if(j.playState===1){j._onbufferchange(0);j.resetOnPosition(0);if(!j.isHTML5){j.playState=0}j.paused=false;j._iO.onstop&&j._iO.onstop.apply(j);if(j.isHTML5){if(j._a){j.setPosition(0);j._a.pause();j.playState=0;j._onTimer();k();j.unload()}}else{ay.o._stop(j.sID,q);j._iO.serverURL&&j.unload()}j.instanceCount=0;j._iO={}}return j};this.setAutoPlay=function(q){j._iO.autoPlay=q;if(j.isHTML5){j._a&&q&&j.play()}else{ay.o._setAutoPlay(j.sID,q)}q&&!j.instanceCount&&j.readyState===1&&j.instanceCount++};this.getAutoPlay=function(){return j._iO.autoPlay};this.setPosition=function(s){if(s===undefined){s=0}var r=j.isHTML5?Math.max(s,0):Math.min(j.duration||j._iO.duration,Math.max(s,0));j.position=r;s=j.position/1000;j.resetOnPosition(j.position);j._iO.position=r;if(j.isHTML5){if(j._a){if(j._html5_canplay){if(j._a.currentTime!==s){try{j._a.currentTime=s}catch(q){}}}}}else{s=aq===9?j.position:s;ay.o._setPosition(j.sID,s,j.paused||!j.playState)}j.isHTML5&&j.paused&&j._onTimer(true);return j};this.pause=function(q){if(j.paused||j.playState===0&&j.readyState!==1){return j}j.paused=true;if(j.isHTML5){j._setup_html5().pause();k()}else{if(q||q===undefined){ay.o._pause(j.sID)}}j._iO.onpause&&j._iO.onpause.apply(j);return j};this.resume=function(){if(!j.paused){return j}j.paused=false;j.playState=1;if(j.isHTML5){j._setup_html5().play();o()}else{ay.o._pause(j.sID);j._iO.isMovieStar&&n&&j.setPosition(j.position)}if(!j._onplay_called&&j._iO.onplay){j._iO.onplay.apply(j);j._onplay_called=true}else{j._iO.onresume&&j._iO.onresume.apply(j)}return j};this.togglePause=function(){if(j.playState===0){j.play({position:aq===9&&!j.isHTML5?j.position:j.position/1000});return j}j.paused?j.resume():j.pause();return j};this.setPan=function(r,q){if(typeof r==="undefined"){r=0}if(typeof q==="undefined"){q=false}j.isHTML5||ay.o._setPan(j.sID,r);j._iO.pan=r;if(!q){j.pan=r}return j};this.setVolume=function(r,q){if(typeof r==="undefined"){r=100}if(typeof q==="undefined"){q=false}if(j.isHTML5){if(j._a){j._a.volume=r/100}}else{ay.o._setVolume(j.sID,ay.muted&&!j.muted||j.muted?0:r)}j._iO.volume=r;if(!q){j.volume=r}return j};this.mute=function(){j.muted=true;if(j.isHTML5){if(j._a){j._a.muted=true}}else{ay.o._setVolume(j.sID,0)}return j};this.unmute=function(){j.muted=false;var q=typeof j._iO.volume!=="undefined";if(j.isHTML5){if(j._a){j._a.muted=false}}else{ay.o._setVolume(j.sID,q?j._iO.volume:j.options.volume)}return j};this.toggleMute=function(){return j.muted?j.unmute():j.mute()};this.onposition=function(s,r,q){j._onPositionItems.push({position:s,method:r,scope:typeof q!=="undefined"?q:j,fired:false});return j};this.processOnPosition=function(){var r,q;r=j._onPositionItems.length;if(!r||!j.playState||j._onPositionFired>=r){return false}for(r=r;r--;){q=j._onPositionItems[r];if(!q.fired&&j.position>=q.position){q.method.apply(q.scope,[q.position]);q.fired=true;ay._onPositionFired++}}return true};this.resetOnPosition=function(s){var r,q;r=j._onPositionItems.length;if(!r){return false}for(r=r;r--;){q=j._onPositionItems[r];if(q.fired&&s<=q.position){q.fired=false;ay._onPositionFired--}}return true};this._onTimer=function(r){var q={};if(j._hasTimer||r){if(j._a&&(r||(j.playState>0||j.readyState===1)&&!j.paused)){j.duration=j._get_html5_duration();j.durationEstimate=j.duration;r=j._a.currentTime?j._a.currentTime*1000:0;j._whileplaying(r,q,q,q,q);return true}else{return false}}};this._get_html5_duration=function(){var q=j._a?j._a.duration*1000:j._iO?j._iO.duration:undefined;return q&&!isNaN(q)&&q!==Infinity?q:j._iO?j._iO.duration:null};o=function(){j.isHTML5&&be(j)};k=function(){j.isHTML5&&a5(j)};l=function(){j._onPositionItems=[];j._onPositionFired=0;j._hasTimer=null;j._onplay_called=false;j._a=null;j._html5_canplay=false;j.bytesLoaded=null;j.bytesTotal=null;j.position=null;j.duration=j._iO&&j._iO.duration?j._iO.duration:null;j.durationEstimate=null;j.failures=0;j.loaded=false;j.playState=0;j.paused=false;j.readyState=0;j.muted=false;j.didBeforeFinish=false;j.didJustBeforeFinish=false;j.isBuffering=false;j.instanceOptions={};j.instanceCount=0;j.peakData={left:0,right:0};j.waveformData={left:[],right:[]};j.eqData=[];j.eqData.left=[];j.eqData.right=[]};l();this._setup_html5=function(s){s=ak(j._iO,s);var r=decodeURI,q=aK?ay._global_a:j._a;if(q){if(q._t&&r(q.src)===r(s.url)){return q}aK&&q._t.playState&&q._t&&q._t.url&&r(q._t.url)!==r(s.url)&&q._t.stop();q.src=s.url}else{q=new Audio(s.url);if(aK){ay._global_a=q}}q._called_load=false;j.isHTML5=true;j._a=q;q._t=j;j._add_html5_events();q.loop=s.loops>1?"loop":"";if(s.autoLoad||s.autoPlay){q.autobuffer="auto";q.preload="auto";j.load()}else{q.autobuffer=false;q.preload="none"}q.loop=s.loops>1?"loop":"";return q};this._add_html5_events=function(){if(j._a._added_events){return false}var q;j._a._added_events=true;for(q in ay._html5_events){ay._html5_events.hasOwnProperty(q)&&j._a&&j._a.addEventListener(q,ay._html5_events[q],false)}return true};this._remove_html5_events=function(){j._a._added_events=false;for(var q in ay._html5_events){ay._html5_events.hasOwnProperty(q)&&j._a&&j._a.removeEventListener(q,ay._html5_events[q],false)}};this._whileloading=function(t,s,r,q){j.bytesLoaded=t;j.bytesTotal=s;j.duration=Math.floor(r);j.bufferLength=q;if(j._iO.isMovieStar){j.durationEstimate=j.duration}else{j.durationEstimate=j._iO.duration?j.duration>j._iO.duration?j.duration:j._iO.duration:parseInt(j.bytesTotal/j.bytesLoaded*j.duration,10);if(j.durationEstimate===undefined){j.durationEstimate=j.duration}}j.readyState!==3&&j._iO.whileloading&&j._iO.whileloading.apply(j)};this._onid3=function(t,s){var r=[],q,u;q=0;for(u=t.length;q0){t=0}j.position=t;j.processOnPosition();if(aq>8&&!j.isHTML5){if(j._iO.usePeakData&&typeof s!=="undefined"&&s){j.peakData={left:s.leftPeak,right:s.rightPeak}}if(j._iO.useWaveformData&&typeof r!=="undefined"&&r){j.waveformData={left:r.split(","),right:q.split(",")}}if(j._iO.useEQData){if(typeof u!=="undefined"&&u&&u.leftEQ){t=u.leftEQ.split(",");j.eqData=t;j.eqData.left=t;if(typeof u.rightEQ!=="undefined"&&u.rightEQ){j.eqData.right=u.rightEQ.split(",")}}}}if(j.playState===1){!j.isHTML5&&ay.flashVersion===8&&!j.position&&j.isBuffering&&j._onbufferchange(0);j._iO.whileplaying&&j._iO.whileplaying.apply(j);if((j.loaded||!j.loaded&&j._iO.isMovieStar)&&j._iO.onbeforefinish&&j._iO.onbeforefinishtime&&!j.didBeforeFinish&&j.duration-j.position<=j._iO.onbeforefinishtime){j._onbeforefinish()}}return true};this._onconnect=function(q){q=q===1;if(j.connected=q){j.failures=0;if(an(j.sID)){if(j.getAutoPlay()){j.play(undefined,j.getAutoPlay())}else{j._iO.autoLoad&&j.load()}}j._iO.onconnect&&j._iO.onconnect.apply(j,[q])}};this._onload=function(q){q=q?true:false;j.loaded=q;j.readyState=q?3:2;j._onbufferchange(0);j._iO.onload&&j._iO.onload.apply(j,[q]);return true};this._onfailure=function(s,r,q){j.failures++;j._iO.onfailure&&j.failures===1&&j._iO.onfailure(j,s,r,q)};this._onbeforefinish=function(){if(!j.didBeforeFinish){j.didBeforeFinish=true;j._iO.onbeforefinish&&j._iO.onbeforefinish.apply(j)}};this._onjustbeforefinish=function(){if(!j.didJustBeforeFinish){j.didJustBeforeFinish=true;j._iO.onjustbeforefinish&&j._iO.onjustbeforefinish.apply(j)}};this._onfinish=function(){j._onbufferchange(0);j.resetOnPosition(0);j._iO.onbeforefinishcomplete&&j._iO.onbeforefinishcomplete.apply(j);j.didBeforeFinish=false;j.didJustBeforeFinish=false;if(j.instanceCount){j.instanceCount--;if(!j.instanceCount){j.playState=0;j.paused=false;j.instanceCount=0;j.instanceOptions={};k()}if(!j.instanceCount||j._iO.multiShotEvents){j._iO.onfinish&&j._iO.onfinish.apply(j)}}};this._onbufferchange=function(q){if(j.playState===0){return false}if(q&&j.isBuffering||!q&&!j.isBuffering){return false}j.isBuffering=q===1;j._iO.onbufferchange&&j._iO.onbufferchange.apply(j);return true};this._ondataerror=function(){j.playState>0&&j._iO.ondataerror&&j._iO.ondataerror.apply(j)}};a7=function(){return at.body?at.body:at._docElement?at.documentElement:at.getElementsByTagName("div")[0]};aY=function(j){return at.getElementById(j)};ak=function(p,j){var l={},k,o;for(k in p){if(p.hasOwnProperty(k)){l[k]=p[k]}}k=typeof j==="undefined"?ay.defaultOptions:j;for(o in k){if(k.hasOwnProperty(o)&&typeof l[o]==="undefined"){l[o]=k[o]}}return l};am=function(){function o(p){p=ax.call(p);var q=p.length;if(l){p[1]="on"+p[1];q>3&&p.pop()}else{q===3&&p.push(false)}return p}function j(r,s){var q=r.shift(),p=[k[s]];l?q[p](r[0],r[1]):q[p].apply(q,r)}var l=ar.attachEvent,k={add:l?"attachEvent":"addEventListener",remove:l?"detachEvent":"removeEventListener"};return{add:function(){j(o(arguments),"add")},remove:function(){j(o(arguments),"remove")}}}();aA=function(j){return !j.serverURL&&(j.type?aM({type:j.type}):aM(j.url)||ai)};aM=function(l){if(!ay.useHTML5Audio||!ay.hasHTML5){return false}var j,k=ay.audioFormats;if(!af){af=[];for(j in k){if(k.hasOwnProperty(j)){af.push(j);if(k[j].related){af=af.concat(k[j].related)}}}af=RegExp("\\.("+af.join("|")+")","i")}j=typeof l.type!=="undefined"?l.type:null;l=typeof l==="string"?l.toLowerCase().match(af):null;if(!l||!l.length){if(j){l=j.indexOf(";");l=(l!==-1?j.substr(0,l):j).substr(6)}else{return false}}else{l=l[0].substr(1)}if(l&&typeof ay.html5[l]!=="undefined"){return ay.html5[l]}else{if(!j){if(l&&ay.html5[l]){return ay.html5[l]}else{j="audio/"+l}}j=ay.html5.canPlayType(j);return ay.html5[l]=j}};a8=function(){function q(t){var s,r,u=false;if(!j||typeof j.canPlayType!=="function"){return false}if(t instanceof Array){s=0;for(r=t.length;s1&&j.stream){j.stream=false}return j};aC=function(j){if(j&&!j.usePolicyFile&&(j.onid3||j.usePeakData||j.useWaveformData||j.useEQData)){j.usePolicyFile=true}return j};f=function(j){typeof console!=="undefined"&&typeof console.warn!=="undefined"&&console.warn(j)};aL=function(){return false};h=function(k){for(var j in k){if(k.hasOwnProperty(j)&&typeof k[j]==="function"){k[j]=aL}}};aE=function(j){if(typeof j==="undefined"){j=false}if(ae||j){ay.disable(j)}};d=function(k){var j=null;if(k){if(k.match(/\.swf(\?.*)?$/i)){if(j=k.substr(k.toLowerCase().lastIndexOf(".swf?")+4)){return k}}else{if(k.lastIndexOf("/")!==k.length-1){k+="/"}}}return(k&&k.lastIndexOf("/")!==-1?k.substr(0,k.lastIndexOf("/")+1):"./")+ay.movieURL};e=function(){if(aq!==8&&aq!==9){ay.flashVersion=8}var j=ay.debugMode||ay.debugFlash?"_debug.swf":".swf";if(ay.useHTML5Audio&&!ai&&ay.audioFormats.mp4.required&&ay.flashVersion<9){ay.flashVersion=9}aq=ay.flashVersion;ay.version=ay.versionNumber+(ai?" (HTML5-only mode)":aq===9?" (AS3/Flash 9)":" (AS2/Flash 8)");if(aq>8){ay.defaultOptions=ak(ay.defaultOptions,ay.flash9Options);ay.features.buffering=true}if(aq>8&&ay.useMovieStar){ay.defaultOptions=ak(ay.defaultOptions,ay.movieStarOptions);ay.filePatterns.flash9=RegExp("\\.(mp3|"+ay.netStreamTypes.join("|")+")(\\?.*)?$","i");ay.mimePattern=ay.netStreamMimeTypes;ay.features.movieStar=true}else{ay.useMovieStar=false;ay.features.movieStar=false}ay.filePattern=ay.filePatterns[aq!==8?"flash9":"flash8"];ay.movieURL=(aq===8?"soundmanager2.swf":"soundmanager2_flash9.swf").replace(".swf",j);ay.features.peakData=ay.features.waveformData=ay.features.eqData=aq>8};ac=function(k,j){if(!ay.o||!ay.allowPolling){return false}ay.o._setPolling(k,j)};aF=function(u,v){var q=v?v:ay.url,o=ay.altURL?ay.altURL:q,s;s=a7();var t,r,p=aV(),k,j=null;j=(j=at.getElementsByTagName("html")[0])&&j.dir&&j.dir.match(/rtl/i);u=typeof u==="undefined"?ay.id:u;if(aR&&aQ){return false}if(ai){e();ay.oMC=aY(ay.movieID);aH();aQ=aR=true;return false}aR=true;e();ay.url=d(ay._overHTTP?q:o);v=ay.url;ay.wmode=!ay.wmode&&ay.useHighPerformance&&!ay.useMovieStar?"transparent":ay.wmode;if(ay.wmode!==null&&!ah&&!ay.useHighPerformance&&navigator.platform.match(/win32/i)){ay.specialWmodeCase=true;ay.wmode=null}s={name:u,id:u,src:v,width:"100%",height:"100%",quality:"high",allowScriptAccess:ay.allowScriptAccess,bgcolor:ay.bgColor,pluginspage:"http://www.macromedia.com/go/getflashplayer",type:"application/x-shockwave-flash",wmode:ay.wmode};if(ay.debugFlash){s.FlashVars="debug=1"}ay.wmode||delete s.wmode;if(ah){q=at.createElement("div");r=''+(ay.wmode?' ':"")+''+(ay.debugFlash?'':"")+""}else{q=at.createElement("embed");for(t in s){s.hasOwnProperty(t)&&q.setAttribute(t,s[t])}}bi();p=aV();if(s=a7()){ay.oMC=aY(ay.movieID)?aY(ay.movieID):at.createElement("div");if(ay.oMC.id){k=ay.oMC.className;ay.oMC.className=(k?k+" ":ay.swfCSS.swfDefault)+(p?" "+p:"");ay.oMC.appendChild(q);if(ah){t=ay.oMC.appendChild(at.createElement("div"));t.className=ay.swfCSS.swfBox;t.innerHTML=r}aQ=true}else{ay.oMC.id=ay.movieID;ay.oMC.className=ay.swfCSS.swfDefault+" "+p;t=p=null;if(!ay.useFlashBlock){if(ay.useHighPerformance){p={position:"fixed",width:"8px",height:"8px",bottom:"0px",left:"0px",overflow:"hidden",hasPriority:"true"}}else{p={position:"absolute",width:"6px",height:"6px",top:"-9999px",left:"-9999px",hasPriority:"true"};if(j){p.left=Math.abs(parseInt(p.left,10))+"px"}}}if(n){ay.oMC.style.zIndex=10000}if(!ay.debugFlash){for(k in p){if(p.hasOwnProperty(k)){ay.oMC.style[k]=p[k]}}}try{ah||ay.oMC.appendChild(q);s.appendChild(ay.oMC);if(ah){t=ay.oMC.appendChild(at.createElement("div"));t.className=ay.swfCSS.swfBox;t.innerHTML=r}aQ=true}catch(l){throw Error(a2("appXHTML"))}}}return true};an=this.getSoundById;aO=function(){if(ai){aF();return false}if(ay.o){return false}ay.o=ay.getMovie(ay.id);if(!ay.o){if(aN){if(ah){ay.oMC.innerHTML=au}else{ay.oMC.appendChild(aN)}aN=null;aR=true}else{aF(ay.id,ay.url)}ay.o=ay.getMovie(ay.id)}ay.oninitmovie instanceof Function&&setTimeout(ay.oninitmovie,1);return true};i=function(j){if(j){ay.url=j}aO()};aG=function(){setTimeout(a4,500)};a4=function(){if(aB){return false}aB=true;am.remove(ar,"load",aG);if(aT&&!D){return false}var j;al||(j=ay.getMoviePercent());setTimeout(function(){j=ay.getMoviePercent();if(!al&&g){if(j===null){if(ay.useFlashBlock||ay.flashLoadTimeout===0){ay.useFlashBlock&&m()}else{aE(true)}}else{ay.flashLoadTimeout!==0&&aE(true)}}},ay.flashLoadTimeout)};i=function(j){if(j){ay.url=j}aO()};aV=function(){var j=[];ay.debugMode&&j.push(ay.swfCSS.sm2Debug);ay.debugFlash&&j.push(ay.swfCSS.flashDebug);ay.useHighPerformance&&j.push(ay.swfCSS.highPerf);return j.join(" ")};m=function(){a2("fbHandler");var k=ay.getMoviePercent(),j=ay.swfCSS;if(ay.ok()){if(ay.oMC){ay.oMC.className=[aV(),j.swfDefault,j.swfLoaded+(ay.didFlashBlock?" "+j.swfUnblocked:"")].join(" ")}}else{if(a1){ay.oMC.className=aV()+" "+j.swfDefault+" "+(k===null?j.swfTimedout:j.swfError)}ay.didFlashBlock=true;ad({type:"ontimeout",ignoreInit:true});ay.onerror instanceof Function&&ay.onerror.apply(ar)}};a3=function(){function j(){am.remove(ar,"focus",a3);am.remove(ar,"load",a3)}if(D||!aT){j();return true}D=g=true;aJ&&aT&&am.remove(ar,"mousemove",a3);aB=false;j();return true};aP=function(j){if(al){return false}if(ai){al=true;ad();aX();return true}ay.useFlashBlock&&ay.flashLoadTimeout&&!ay.getMoviePercent()||(al=true);if(ae||j){if(ay.useFlashBlock){ay.oMC.className=aV()+" "+(ay.getMoviePercent()===null?ay.swfCSS.swfTimedout:ay.swfCSS.swfError)}ad({type:"ontimeout"});ay.onerror instanceof Function&&ay.onerror.apply(ar);return false}am.add(c,"unload",aL);if(ay.waitForWindowLoad&&!bd){am.add(ar,"load",aX);return false}else{aX()}return true};ap=function(l,j,k){if(typeof ag[l]==="undefined"){ag[l]=[]}ag[l].push({method:j,scope:k||null,fired:false})};ad=function(p){p||(p={type:"onready"});if(!al&&p&&!p.ignoreInit){return false}var j={success:p&&p.ignoreInit?ay.ok():!ae},l=p&&p.type?ag[p.type]||[]:[];p=[];var k,o=a1&&ay.useFlashBlock&&!ay.ok();for(k=0;k/)!==null){if(c.nodeValue.match(/(\S+(?=.*<))|(>(?=.*\S+))/)!==null){hasTextNode=true;break}}else{hasTextNode=true;break}}c=c.nextSibling}if(hasTextNode){text=e.html();text=o.stripScripts?text.replace(/]*>([\s\S]*?)<\/script>/gi,""):text;this.jq=this.jq.not(e.find("*"))}}}}if(!text)return this.process();this.elements.push(el);this.textArray.push(text);o.each.call(el,this.elements.length-1,el,text);if(o.async){setTimeout(function(){that.process()},o.async);return this.jquery}else return this.process()}};var defaults={not:"",async:false,each:function(){},complete:function(){},comments:false,returnAll:true,walk:true,altAndVal:false,subject:true,stripScripts:true};$.fn.nodesContainingText=function(o){o=$.extend({},defaults,$.fn.nodesContainingText.defaults,o);return new Nct().init(this,o)};$.fn.nodesContainingText.defaults=defaults})(jQuery);(function($){function $function(){}var True=true,False=false,undefined,replace="".replace,Str=String,Fn=Function,Obj=Object,GL,GLL,toLangCode,inverseLanguages={},loading,readyList=[],defaults={from:"",to:"",start:$function,error:$function,each:$function,complete:$function,onTimeout:$function,timeout:0,stripComments:True,stripWhitespace:True,stripScripts:True,separators:/\.\?\!;:/,limit:500,walk:True,returnAll:False,replace:True,rebind:True,data:True,setLangAttr:False,subject:True,not:"",altAndVal:True,async:False,toggle:True,fromOriginal:True,parallel:false,trim:true,alwaysReplace:false};function loaded(){$.translate.GL=GL=google.language;$.translate.GLL=GLL=GL.Languages;toLangCode=$.translate.toLanguageCode;$.each(GLL,function(l,lc){inverseLanguages[lc.toUpperCase()]=l});$.translate.isReady=True;var fn;while((fn=readyList.shift()))fn()}function filter(obj,fn){var newObj={};$.each(obj,function(lang,langCode){if(fn(langCode,lang)===True)newObj[lang]=langCode});return newObj}function bind(fn,thisObj,args){return function(){return fn.apply(thisObj===True?arguments[0]:thisObj,args||arguments)}}function isSet(e){return e!==undefined}function validate(_args,overload,error){var matched,obj={},args=$.grep(_args,isSet);$.each(overload,function(_,el){var matches=$.grep(el[0],function(e,i){return isSet(args[i])&&args[i].constructor===e}).length;if(matches===args.length&&matches===el[0].length&&(matched=True)){$.each(el[1],function(i,prop){obj[prop]=args[i]});return False}});if(!matched)throw error;return obj}function getOpt(args0,_defaults){var args=validate(args0,$.translate.overload,"jQuery.translate: Invalid arguments"),o=args.options||{};delete args.options;o=$.extend({},defaults,_defaults,$.extend(o,args));if(o.fromOriginal)o.toggle=True;if(o.toggle)o.data=True;if(o.async===True)o.async=2;return o}function T(){this.extend($.translate);delete this.defaults;delete this.fn}T.prototype={version:"1.4.7",_init:function(t,o){var separator=o.separators.source||o.separators,isString=this.isString=typeof t==="string",lastpos=0,substr;$.each(["stripComments","stripScripts","stripWhitespace"],function(i,name){var fn=$.translate[name];if(o[name])t=isString?fn(t):$.map(t,fn)});this.rawSource="
"+(isString?t:t.join("
"))+"
";this._m3=new RegExp("["+separator+"](?![^"+separator+"]*["+separator+"])");this.options=o;this.from=o.from=toLangCode(o.from)||"";this.to=o.to=toLangCode(o.to)||"";this.source=t;this.rawTranslation="";this.translation=[];this.i=0;this.stopped=False;this.elements=o.nodes;this._i=-1;this.rawSources=[];while(True){substr=this.truncate(this.rawSource.substr(lastpos),o.limit);if(!substr)break;this.rawSources.push(substr);lastpos+=substr.length}this.queue=new Array(this.rawSources.length);this.done=0;o.start.call(this,t,o.from,o.to,o);if(o.timeout)this.timeout=setTimeout(bind(o.onTimeout,this,[t,o.from,o.to,o]),o.timeout);(o.toggle&&o.nodes)?(o.textNodes?this._toggleTextNodes():this._toggle()):this._process()},_process:function(){if(this.stopped)return;var o=this.options,i=this.rawTranslation.length,lastpos,subst,divst,divcl;var that=this;while((lastpos=this.rawTranslation.lastIndexOf("",i))>-1){i=lastpos-1;subst=this.rawTranslation.substr(0,i+1);divst=subst.match(/ ]/gi);divcl=subst.match(/<\/div>/gi);divst=divst?divst.length:0;divcl=divcl?divcl.length:0;if(divst!==divcl+1)continue;var divscompl=$(this.rawTranslation.substr(0,i+7)),divlen=divscompl.length,l=this.i;if(l===divlen)break;divscompl.slice(l,divlen).each(bind(function(j,e){if(this.stopped)return False;var e_html=$(e).html(),tr=o.trim?$.trim(e_html):e_html,i=l+j,src=this.source,from=!this.from&&this.detectedSourceLanguage||this.from;this.translation[i]=tr;this.isString?this.translation=tr:src=this.source[i];o.each.call(this,i,tr,src,from,this.to,o);this.i++},this));break}if(this.rawSources.length-1==this._i)this._complete();var _translate=bind(this._translate,this);if(o.parallel){if(this._i<0){if(!o.parallel){$.each(this.rawSources,_translate)}else{var j=0,n=this.rawSources.length;function seq(){_translate();if(jthis.done)||(done===this.queue.length-1)){for(var i=0;i<=done;i++)this.rawTranslation+=this.queue[i];this._process()}this.done=done},_complete:function(){clearTimeout(this.timeout);this.options.complete.call(this,this.translation,this.source,!this.from&&this.detectedSourceLanguage||this.from,this.to,this.options)},stop:function(){if(this.stopped)return this;this.stopped=True;this.options.error.call(this,{message:"stopped"});return this}};$.translate=function(t,a){if(t==undefined)return new T();if($.isFunction(t))return $.translate.ready(t,a);var that=new T();var args=[].slice.call(arguments,0);args.shift();return $.translate.ready(bind(that._init,that,[t,getOpt(args,$.translate.defaults)]),False,that)};$.translate.fn=$.translate.prototype=T.prototype;$.translate.fn.extend=$.translate.extend=$.extend;$.translate.extend({_bind:bind,_filter:filter,_validate:validate,_getOpt:getOpt,_defaults:defaults,defaults:$.extend({},defaults),capitalize:function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()},truncate:function(text,limit){var i,m1,m2,m3,m4,t,encoded=encodeURIComponent(text);for(i=0;i<10;i++){try{t=decodeURIComponent(encoded.substr(0,limit-i))}catch(e){continue}if(t)break}return(!(m1=/<(?![^<]*>)/.exec(t)))?((!(m2=/>\s*$/.exec(t)))?((m3=this._m3.exec(t))?((m4=/>(?![^>]*<)/.exec(t))?(m3.index>m4.index?t.substring(0,m3.index+1):t.substring(0,m4.index+1)):t.substring(0,m3.index+1)):t):t):t.substring(0,m1.index)},getLanguages:function(a,b){if(a==undefined||(b==undefined&&!a))return GLL;var newObj={},typeof_a=typeof a,languages=b?$.translate.getLanguages(a):GLL,filterArg=(typeof_a==="object"||typeof_a==="function")?a:b;if(filterArg)if(filterArg.call)newObj=filter(languages,filterArg);else for(var i=0,length=filterArg.length,lang;i]*>([\s\S]*?)<\/script>/gi,""]),stripWhitespace:bind(replace,True,[/\s\s+/g," "]),stripComments:bind(replace,True,[//g,""])})})(jQuery);(function($){var True=true,isInput={text:True,button:True,submit:True},dontCopyEvents={SCRIPT:True,NOSCRIPT:True,STYLE:True,OBJECT:True,IFRAME:True},$fly=$([]);$fly.length=1;function getDoc(node){while(node&&node.nodeType!=9)node=node.parentNode;return node}function toggleDir(e,dir){var align=e.css("text-align");e.css("direction",dir);if(align==="right")e.css("text-align","left");if(align==="left")e.css("text-align","right")}function getType(el,o){var nodeName=el.nodeName.toUpperCase(),type=nodeName==='INPUT'&&$.attr(el,'type').toLowerCase();o=o||{altAndVal:True,subject:True};return typeof o.subject==="string"?o.subject:o.altAndVal&&(nodeName==='IMG'||type==="image")?"alt":o.altAndVal&&isInput[type]?"$val":nodeName==="TEXTAREA"?"$val":"$html"}$.translate.fn._toggle=function(){var o=this.options,to=o.to,stop;this.elements.each($.translate._bind(function(i,el){this.i=i;var e=$(el),tr=$.translate.getData(e,to,o);if(!tr)return!(stop=True);this.translation.push(tr);o.each.call(this,i,el,tr,this.source[i],this.from,to,o)},this));!stop?this._complete():this._process()};$.translate.extend({_getType:getType,each:function(i,el,t,s,from,to,o){$fly[0]=el;$.translate.setData($fly,to,t,from,s,o);$.translate.replace($fly,t,to,o);$.translate.setLangAttr($fly,to,o)},getData:function(e,lang,o){var el=e[0]||e,data=$.data(el,"translation");return data&&data[lang]&&data[lang][getType(el,o)]},setData:function(e,to,t,from,s,o){if(o&&!o.data)return;var el=e[0]||e,type=getType(el,o),data=$.data(el,"translation");data=data||$.data(el,"translation",{});(data[from]=data[from]||{})[type]=s;(data[to]=data[to]||{})[type]=t},replace:function(e,t,to,o){if(o&&!o.replace)return;if(o&&typeof o.subject==="string")return e.attr(o.subject,t);var el=e[0]||e,nodeName=el.nodeName.toUpperCase(),type=nodeName==='INPUT'&&$.attr(el,'type').toLowerCase(),isRtl=$.translate.isRtl,lang=$.data(el,"lang");if(!o.alwaysReplace)if(lang===to)return;if(isRtl[to]!==isRtl[lang||o&&o.from]){if(isRtl[to])toggleDir(e,"rtl");else if(e.css("direction")==="rtl")toggleDir(e,"ltr")}if((!o||o.altAndVal)&&(nodeName==='IMG'||type==="image"))e.attr("alt",t);else if(nodeName==="TEXTAREA"||(!o||o.altAndVal)&&isInput[type])e.val(t);else{if(!o||o.rebind){this.doc=this.doc||getDoc(el);var origContents=e.find("*").not("script"),newElem=$(this.doc.createElement("div")).html(t);$.translate.copyEvents(origContents,newElem.find("*"));e.html(newElem.contents())}else e.html(t)}$.data(el,"lang",to)},setLangAttr:function(e,to,o){if(!o||o.setLangAttr)e.attr((!o||o.setLangAttr===True)?"lang":o.setLangAttr,to)},copyEvents:function(from,to){to.each(function(i,to_i){var from_i=from[i];if(!to_i||!from_i)return false;if(dontCopyEvents[from_i.nodeName.toUpperCase()])return True;var events=$.data(from_i,"events");if(!events)return True;for(var type in events)for(var handler in events[type])$.event.add(to_i,type,events[type][handler],events[type][handler].data)})}});$.fn.translate=function(a,b,c){var o=$.translate._getOpt(arguments,$.fn.translate.defaults),ncto=$.extend({},$.translate._defaults,$.fn.translate.defaults,o,{complete:function(e,t){$.translate(function(){var from=$.translate.toLanguageCode(o.from);if(o.fromOriginal)e.each(function(i,el){$fly[0]=el;var data=$.translate.getData($fly,from,o);if(!data)return true;t[i]=data});var each=o.each;function unshiftArgs(method){return function(){[].unshift.call(arguments,this.elements);method.apply(this,arguments)}}o.nodes=e;o.start=unshiftArgs(o.start);o.onTimeout=unshiftArgs(o.onTimeout);o.complete=unshiftArgs(o.complete);o.each=function(i){var args=arguments;if(arguments.length!==7)[].splice.call(args,1,0,this.elements[i]);this.each.apply(this,args);each.apply(this,args)};$.translate(t,o)})},each:function(){}});if(this.nodesContainingText)return this.nodesContainingText(ncto);o.nodes=this;$.translate($.map(this,function(e){return $(e).html()||$(e).val()}),o);return this};$.fn.translate.defaults=$.extend({},$.translate._defaults)})(jQuery);(function($){function getTextNodes(root,_filter){var nodes=[],skip={SCRIPT:1,NOSCRIPT:1,STYLE:1,IFRAME:1},notType=typeof _filter,filter=notType==="string"?function(node){return!$(node).is(_filter)}:notType==="function"?_filter:null;function recurse(_,root){var i=0,children=root.childNodes,l=children.length,node;for(;i').replace(/&/g,'&').replace(/"/g,'"').replace(/'|'/g,"'");var parent=textNode.parentNode;setData(parent,o,s,t);var newTextNode=replace(parent,textNode,t,to,o);setLangAttr(parent,o.to,o);return newTextNode}$.translateTextNodes=function(root){var args=[].slice.call(arguments,0);args.shift();$.translate(function(){var o=$.translate._getOpt(args,$.translateTextNodes.defaults),each=o.each,nodes=getTextNodes(root,o.not),contents=$.map(nodes,function(n){return n.nodeValue}),from=$.translate.toLanguageCode(o.from),obj={};o.nodes=nodes;o.textNodes=true;o.trim=false;if(o.fromOriginal)$.each(nodes,function(i,textNode){var data=getData(textNode.parentNode,from,obj);if(!data)return true;contents[i]=data});function unshiftArgs(method){return function(){[].unshift.call(arguments,this.elements);method.apply(this,arguments)}}o.start=unshiftArgs(o.start);o.onTimeout=unshiftArgs(o.onTimeout);o.complete=unshiftArgs(o.complete);o.each=function(i){var args=arguments;if(arguments.length!==7)[].splice.call(args,1,0,this.elements[i]);this.elements[i]=args[1]=_each.apply(this,args);each.apply(this,args)};$.translate(contents,o)})};$.translate.fn._toggleTextNodes=function(){var o=this.options,to=o.to,stop;$.each(this.elements,$.translate._bind(function(i,textNode){this.i=i;var parent=textNode.parentNode,tr=getData(parent,to,this);if(!tr)return!(stop=true);this.translation.push(tr);o.each.call(this,i,textNode,tr,this.source[i],this.from,to,o)},this));!stop?this._complete():this._process()};$.fn.translateTextNodes=function(a,b,c){[].unshift.call(arguments,this);$.translateTextNodes.apply(null,arguments);return this};$.translateTextNodes.defaults=$.fn.translateTextNodes.defaults=$.extend({},$.translate._defaults)})(jQuery);(function($){var defaults={tags:["select","option"],filter:$.translate.isTranslatable,label:$.translate.toNativeLanguage||function(langCode,lang){return $.translate.capitalize(lang)},includeUnknown:false};$.translate.ui=function(){var o={},str='',cs='',cl='';if(typeof arguments[0]==="string")o.tags=$.makeArray(arguments);else o=arguments[0];o=$.extend({},defaults,$.translate.ui.defaults,o);if(o.tags[2]){cs='<'+o.tags[2]+'>';cl=''}var languages=$.translate.getLanguages(o.filter);if(!o.includeUnknown)delete languages.UNKNOWN;$.each(languages,function(l,lc){str+=('<'+o.tags[1]+" value="+lc+'>'+cs+o.label(lc,l)+cl+'')});return $('<'+o.tags[0]+' class="jq-translate-ui">'+str+'')};$.translate.ui.defaults=$.extend({},defaults)})(jQuery);jQuery.translate.fn.progress=function(selector,options){if(!this.i)this._pr=0;this._pr+=this.source[this.i].length;var progress=100*this._pr/(this.rawSource.length-(11*(this.i+1)));if(selector){var e=jQuery(selector);if(!this.i&&!e.hasClass("ui-progressbar"))e.progressbar(options);e.progressbar("option","value",progress)}return progress};(function($){$.translate.extend({toNativeLanguage:function(lang){return $.translate.nativeLanguages[lang]||$.translate.nativeLanguages[$.translate.toLanguageCode(lang)]},nativeLanguages:{"af":"Afrikaans","be":"Беларуская","is":"Íslenska","ga":"Gaeilge","mk":"Македонски","ms":"Bahasa Melayu","sw":"Kiswahili","cy":"Cymraeg","yi":"ייִדיש","sq":"Shqipe","ar":"العربية","bg":"Български","ca":"Català","zh":"中文","zh-CN":"简体中文","zh-TW":"繁體中文","hr":"Hrvatski","cs":"Čeština","da":"Dansk","nl":"Nederlands","en":"English","et":"Eesti","tl":"Tagalog","fi":"Suomi","fr":"Français","gl":"Galego","de":"Deutsch","el":"Ελληνικά","iw":"עברית","hi":"हिन्दी","hu":"Magyar","id":"Bahasa Indonesia","it":"Italiano","ja":"日本語","ko":"한국어","lv":"Latviešu","lt":"Lietuvių","mt":"Malti","no":"Norsk","fa":"فارسی","pl":"Polski","pt-PT":"Português","ro":"Român","ru":"Русский","sr":"Српски","sk":"Slovenský","sl":"Slovenski","es":"Español","sv":"Svenska","th":"ไทย","tr":"Türkçe","uk":"Українська","vi":"Tiếng Việt"}})})(jQuery);(function($){$.translate.extend({defer:function(){return $.translate._bind($.translate,null,arguments)},run:function(array,finished){var count=array.length;$.each(array,function(){var inst=this(),complete=inst.options.complete;inst.options.complete=function(){complete.apply(this,arguments);if(!--count)finished()}})}})})(jQuery);(function($){ $.fn.dragx = function(options) { var defaults = { repos:false, draggable:true, containment:"document", scroll: false, handle:this, stack:this, animate:true, id:freichatusers, restore:false, restoreElem:"#frei_", speed:500 }; var option = $.extend(defaults, options); var obj = $(this); var dpos = Get_Cookie("frei_stat_"+option.id); if(dpos!=null) { dpos=dpos.split("&"); } else { dpos = new Array('en','closed','max','clear',null,null); } if(option.draggable == true) { obj.draggable('enable'); obj.draggable({ stop: function(event, ui) { var pos = $(this).position(); if(option.animate == true) { var e=($(window).height()-604)+284+"px"; if(pos.top>9) { obj.animate({ top: '0px' }, option.speed,function(){ Set_Cookie( "frei_stat_"+option.id, dpos[0]+"&"+dpos[1]+"&"+dpos[2]+"&"+dpos[3]+"&"+obj.position().top+"&"+obj.position().left , 0, '/', '', '' ); }); } else if(pos.top<-260) { obj.animate({ top: '-'+e }, option.speed,function(){ Set_Cookie( "frei_stat_"+option.id, dpos[0]+"&"+dpos[1]+"&"+dpos[2]+"&"+dpos[3]+"&"+obj.position().top+"&"+obj.position().left , 0, '/', '', '' ); }); } else { Set_Cookie( "frei_stat_"+option.id, dpos[0]+"&"+dpos[1]+"&"+dpos[2]+"&"+dpos[3]+"&"+obj.position().top+"&"+obj.position().left , 0, '/', '', '' ); } } } }, {containment:option.containment}, {scroll:option.scroll}, {handle:option.handle}, {cursor: 'move'} ); } else { obj.draggable('disable'); } if(option.repos == true) { obj.animate({ top: dpos[4], left:dpos[5] }, option.speed,function(){ repos=true; } ); } //#drag_freicontent_1296070279 if(option.restore == true) {var i=0; var optionLength=option.id.length; for(i=0;i<=optionLength;i++) { if(option.id[i]==undefined || option.id[i]==0) { break; } else { //alert(option.restoreElem+option.id[i]); Set_Cookie( "frei_stat_"+option.id[i], dpos[0]+"&"+dpos[1]+"&"+dpos[2]+"&"+dpos[3]+"&0&0" , 0, '/', '', '' ); $(option.restoreElem+option.id[i]).animate({ top: '0px', left:'0px' },option.speed); } } } return obj; }; })(jQuery);var FreiChat = { oldtitle:document.title,loop:0, ses_status:freidefines.ses_status, time:null, freistatus:null, ostatus:null, box_count:0, box_crt:[], box_crt_id:[], windowFocus:false, debug:freidefines.JSdebug, //Set to true to debug with firebug , set to false(default) when over cnt:0, inact_time:0, //initial Inactivity time busy_timeOut:freidefines.busy_timeOut, // In seconds offline_timeOut:freidefines.offline_timeOut, //In seconds inactive:false, //initially not inactive onloadActive:false, clrchtids:[], bulkmesg:[], isOlduser:null, Ttext:null, temporary_status:0, unique:0, timer:null, change_titletimer:null, first:false, showtranslate:freidefines.showtranslate, chatwincrt:false }; //------------------------------------------------------------------------------ FreiChat.init_HTML_freichatX = function() { if(!document.getElementById('freichathtml')) { alert('debug: div-freichathtml not found: did you copy paste the code correctly??'); } else { var main_str,str_contain,str_extras,str_options,str_head,str_frei,str_off,str_opt1,str_opt2; // Contains DIV for chatwindows str_contain="
"; // Contains div for invisible data str_extras="
"; // Contains DIV for FreiChatX options str_opt1="
"+freidefines.status_txt+"

on  by  in  of  
"; str_opt2="
in 
"; str_options=str_opt1+str_opt2; // Contains FreiChatX head DIV str_head="
 "+freidefines.cb_head+" []  max  option  optionstatus
"; // Contains DIV that shows online friends str_frei="
 
"+freidefines.pwdby+" EvNix
"; // Contains the DIV that appears when offline str_off="
offline"; // Contains the main DIV that combines the others! main_str=str_contain+str_extras+"
"+str_options+str_head+str_frei+str_off+"
"; $jn('#freichathtml').html(main_str); //Cache most used JQuery variables FreiChat.divfrei=$jn('#frei'); //Users div FreiChat.freiopt=$jn("#frei_options"); //First option FreiChat.freitool=$jn("#frei_tools"); //Second option FreiChat.mainchat=$jn("#freichat"); //Main chatbox FreiChat.ursimg=$jn("#frei_status"); //Your status image FreiChat.frei_minmax_img=$jn("#frei_img"); //Onload image min or max FreiChat.freiOnOffline=$jn("#onfreioffline"); //Div to show when status is offline if(freidefines.fonload=="hide") { FreiChat.divfrei.hide(); } FreiChat.freiopt.hide(); FreiChat.freiOnOffline.hide(); FreiChat.freitool.hide(); if(FreiChat.divfrei.is(":visible") == true) { FreiChat.frei_minmax_img.attr('src',FreiChat.make_url(freidefines.minimg)); } else { FreiChat.frei_minmax_img.attr('src',FreiChat.make_url(freidefines.maximg)); } } }; //----------------------------------------------------------------------------------------------- FreiChat.init_process_freichatX=function () { FreiChat.buglog("info","FreiChatX script initiated (17)"); //End Of FreiChatX HTML //Jquery Effects if(freidefines.fxval==="false") { $jn.fx.off = true; } else if(freidefines.fxval==="true") { $jn.fx.off = false; } else { FreiChat.buglog("info","Wrong parameter used! (57)"); } //Variable Declarations freichatusers=[]; soundManager.onload = function() { }; $jn([window, document]).blur(function(){ FreiChat.windowFocus = false; }).focus(function(){ FreiChat.windowFocus = true; }); FreiChat.box_crt=[false,false,false,false]; FreiChat.init_HTML_freichatX(); FreiChat.yourfunction(); FreiChat.analyse(); }; //------------------------------------------------------------------------------ FreiChat.min_max_freichat=function() { if(FreiChat.divfrei.is(":visible") == false) { FreiChat.frei_minmax_img.attr('src',FreiChat.make_url(freidefines.minimg)); } else { FreiChat.frei_minmax_img.attr('src',FreiChat.make_url(freidefines.maximg)); FreiChat.freiopt.slideUp("slow"); FreiChat.freitool.slideUp("slow"); } FreiChat.divfrei.slideToggle("fast"); }; //------------------------------------------------------------------------------ FreiChat.analyse=function() { if(FreiChat.ses_status==4) { FreiChat.freichatopt("goOnline"); } if(FreiChat.ses_status==0) { return; //Why to create chatboxes when user is offline. } $jn.getJSON(freidefines.url+"server/freichat.php?freimode=getdata",function(data){ if(data.exist!=true) { return; //Why to create chatboxes when there is no data } var message_length=data.messages.length; var i=0; for(i=0;i'+from_name+': '+message+'
'); if(FreiChat.showtranslate == 'disabled' || language == 'disable' || language == 'null') { $jn("#msg_"+uniqueid).addClass('notranslate'); $jn("#translateimage"+id).attr('src',FreiChat.make_url(freidefines.notransimg)); } else if(reidfrom == idfrom) { $jn("#msg_"+uniqueid).addClass('notranslate'); $jn("#frei_orig"+uniqueid).addClass('notranslate'); } else { $jn("#frei_orig_"+uniqueid).addClass('iamtobehovered'); } FreiChat.setCookie( "frei_stat_"+id, CookieStatus.language+"&opened&"+CookieStatus.chatwindow_2+"&nclear&"+CookieStatus.pos_top+"&"+CookieStatus.pos_left); $jn("#frei_"+id).dragx({id:id,repos:true}); } } if(CookieStatus.chatwindow_1=="opened") { var users_length=freichatusers.length; for(i=0;i<=users_length;i++) { if(freichatusers[i]==undefined || freichatusers[i]==0) { break; } else { FreiChat.toggleChatBoxOnLoad(freichatusers[i]); $jn("#frei_"+freichatusers[i]+" .chatboxcontent").scrollTop($jn("#frei_"+freichatusers[i]+" .chatboxcontent")[0].scrollHeight); } } } },'json'); }; //------------------------------------------------------------------------------ FreiChat.createChatBoxmesg = function(user,id) { var i=0,users_length=freichatusers.length; for(i=0;i<=users_length;i++) { if(freichatusers[i]==id) { //alert('already exists!'); return; } } var CookieStatus = FreiChat.getCookie(id); FreiChat.setCookie( "frei_stat_"+id, CookieStatus.language+"&opened&max&nclear&0&0"); if(FreiChat.chatwincrt != true) { FreiChat.chatwincrt = true; $jn.getJSON(freidefines.url+"server/freichat.php?freimode=isset_mesg",{id:id},function(data){ if(data.exist==false) { FreiChat.createChatBox(user,id); return; } freichatusers.push(id); FreiChat.chatWindowHTML(user,id); var message_length=data.messages.length; var j=0; for(j=0;j'+from_name+': '+message+''); if(FreiChat.showtranslate == 'disabled' || language == 'disable' || language == 'null') { $jn("#msg_"+uniqueid).addClass('notranslate'); $jn("#translateimage"+id).attr('src',FreiChat.make_url(freidefines.notransimg)); } else if(reidfrom == idfrom) { $jn("#msg_"+uniqueid).addClass('notranslate'); $jn("#frei_orig"+uniqueid).addClass('notranslate'); } else { $jn("#frei_orig_"+uniqueid).addClass('iamtobehovered'); } } } $jn("#frei_"+id+" .chatboxcontent").scrollTop($jn("#frei_"+id+" .chatboxcontent")[0].scrollHeight); },'json') .complete(function(){FreiChat.chatwincrt = false;}); } }; //------------------------------------------------------------------------------ FreiChat.setInactivetime = function() { if(FreiChat.windowFocus == false) { FreiChat.inact_time=FreiChat.inact_time+5; } else { FreiChat.inact_time = 0; } setTimeout("FreiChat.setInactivetime()",5000); }; //------------------------------------------------------------------------------ FreiChat.yourfunction = function() { if(FreiChat.inact_time>FreiChat.offline_timeOut) { FreiChat.inactive=true; FreiChat.freichatopt("goOffline"); } if(FreiChat.inact_time>FreiChat.busy_timeOut && FreiChat.freistatus != 3 && FreiChat.freistatus!=0) { FreiChat.inactive=true; FreiChat.freichatopt("goTempBusy"); } FreiChat.get_messages(); FreiChat.c=setTimeout("FreiChat.yourfunction()",freidefines.chatspeed); }; //------------------------------------------------------------------------------ FreiChat.get_messages = function() { if(FreiChat.freistatus == 'loggedout') { return; } if(FreiChat.freistatus == 4 || FreiChat.freistatus == 3) { FreiChat.temporary_status++; } //FreiChat.test("me too!"); if((FreiChat.inactive == false && FreiChat.freistatus != 3) || FreiChat.temporary_status>12) { FreiChat.temporary_status = 0; $jn.getJSON(freidefines.url+"server/freichat.php?freimode=getmembers",{first:FreiChat.first,id:freidefines.getid,time:FreiChat.time,'clrchtids[]': [FreiChat.clrchtids]},function(data){ if(data==null) { FreiChat.buglog("info","Data is NULL"); return; } FreiChat.first=true; $jn("#frei_user_count").html(data.count); freidefines.fromname = data.username; //Update freidefines.reidfrom = data.userid; // Details on login if(data.time!=null) { FreiChat.time=data.time; } else { FreiChat.time=0; } if(data.islog=="guesthasnopermissions") { FreiChat.divfrei .css("height",freidefines.fnopermsht) .html(freidefines.nopermsmesg); FreiChat.freistatus = 'loggedout'; FreiChat.ursimg.attr('src',FreiChat.make_url(freidefines.invisibleimg)); FreiChat.closeAllChatBoxes(); return; } $jn('#hidfreichat').html(data.userdata); $jn('#onlusers').html(data.count); FreiChat.ostatus=FreiChat.freistatus=data.status; if(FreiChat.freistatus == 0) { FreiChat.mainchat.hide(); FreiChat.freiOnOffline.show(); FreiChat.inactive = true; } else if(FreiChat.freistatus==1) { FreiChat.ursimg.attr('src',FreiChat.make_url(freidefines.onlineimg)); } else if(FreiChat.freistatus==2) { FreiChat.ursimg.attr('src',FreiChat.make_url(freidefines.invisibleimg)); } else if(FreiChat.freistatus==3) { FreiChat.ursimg.attr('src',FreiChat.make_url(freidefines.busyimg)); } else { FreiChat.buglog("info","freistatus undefined or wrong in freichat/freichat.js on line 261"); } if(data.userdata==null) { data.userdata=freidefines.nolinemesg; FreiChat.divfrei .css("height",freidefines.fnoonlineht) .html(data.userdata); } else { FreiChat.divfrei.html(data.userdata); FreiChat.divfrei.css("height",freidefines.fonlineht); } if(FreiChat.divfrei.text().length>16) { FreiChat.divfrei.css("height",freidefines.fmaxht); } if(freidefines.pbyevnix=="hidden") { $jn("#evnixpower").html(''); } var i;//=data.messages.length; var j=0; var exist=false; var message_length=data.messages.length; var reidfrom = freidefines.reidfrom; for(i=0;i 1) { timeOut=0; document.title = FreiChat.oldtitle; } else { document.title = newtitle; } if(FreiChat.change_titletimer == null) { $jn("#frei_"+id).data('interval','true'); FreiChat.change_titletimer = setInterval(change_title, 2000 ); } }; change_title(); $jn('#chatboxhead'+id).css('background-image','url('+FreiChat.make_url(freidefines.newtopimg)+')'); soundManager.onready(function() { if (soundManager.supported()) { soundManager.play('mySound',freidefines.url+"client/jquery/img/newmsg.mp3"); } if(!soundManager.supported()) { FreiChat.buglog("info","SoundManager does not support your system"); } }); } } var from_name = fromname; var language = CookieStatus.language; var divToappend = $jn("#frei_"+id+" .chatboxcontent"); var uniqueid = FreiChat.unique++; divToappend.append('
'+from_name+': '+message+'
'); if(FreiChat.showtranslate == 'disabled' || language == 'disable' || language == 'null') { $jn("#msg_"+uniqueid).addClass('notranslate'); $jn("#translateimage"+id).attr('src',FreiChat.make_url(freidefines.notransimg)); } else if(reidfrom == id) { $jn("#msg_"+uniqueid).addClass('notranslate'); $jn("#frei_orig"+uniqueid).addClass('notranslate'); } else { $jn("#frei_orig_"+uniqueid).addClass('iamtobehovered'); } FreiChat.appendtranslate(language,id,['callbyget',uniqueid]); FreiChat.setCookie( "frei_stat_"+id, CookieStatus.language+"&opened&max&nclear&0&0"); $jn("#frei_"+id+" .chatboxcontent").scrollTop($jn("#frei_"+id+" .chatboxcontent")[0].scrollHeight); } },'json'); } else if(FreiChat.freistatus == 0) { FreiChat.inactive = true; FreiChat.mainchat.hide(); FreiChat.freiOnOffline.show(); } else { FreiChat.buglog('log', 'Not possible to eneter this block'); } }; //------------------------------------------------------------------------------ FreiChat.createChatBox = function(user,id) { CookieStatus = FreiChat.getCookie(id); FreiChat.setCookie( "frei_stat_"+id, CookieStatus.language+"&opened&&clear&0&0"); var i=0,users_length=freichatusers.length; for(i=0;i<=users_length;i++) { if(freichatusers[i]==id) { //alert('already exists!'); return; } } freichatusers.push(id); FreiChat.chatWindowHTML(user,id); if(FreiChat.showtranslate == 'disabled' || CookieStatus.language == 'disable' || CookieStatus.language == 'null') { $jn("#translateimage"+id).attr('src',FreiChat.make_url(freidefines.notransimg)); } }; //------------------------------------------------------------------------------ FreiChat.checkChatBoxInputKey = function(event,chatboxtextarea,id,user) { var freiarea=$jn(chatboxtextarea); var message = freiarea.val(); freiarea.scrollTop(freiarea[0].scrollHeight); message = message.replace(/^\s+|\s+$/g,""); freiarea .val('') .css('height','44px'); if (message != '') { if(FreiChat.isOlduser!=id && FreiChat.bulkmesg.length>0) { FreiChat.sendMessage(id,FreiChat.bulkmesg,user); } message = FreiChat.formatMessage(message); FreiChat.isOlduser=id; message = message.replace(/\r/g,"
"); message = message.replace(/,/g,","); FreiChat.bulkmesg.push(message); // FreiChat.bulkmesg += message; use if want to send cont. mesg as string //alert($jn.translate("dd",'german')); message = message.replace(/\r?\n/g, "
"); $jn("#frei_"+id+" .chatboxcontent") .append('
'+freidefines.fromname+': '+message+'
') .scrollTop($jn("#frei_"+id+" .chatboxcontent")[0].scrollHeight); setTimeout(function(){FreiChat.sendMessage(id,FreiChat.bulkmesg,user)}, freidefines.mesgSendSpeed); } }; //------------------------------------------------------------------------------ FreiChat.chatWindowHTML = function(user,id) { FreiChat.frei_box_contain(id); var chatboxtitle=user; var str='
'+FreiChat.langlist(id)+'
'+chatboxtitle+'   
'+FreiChat.show_plugins(user,id)+'- - X

'; $jn('#freicontain'+FreiChat.box_count).html(str+$jn('#freicontain'+FreiChat.box_count).html()); FreiChat.set_drag(id); $jn('#frei_'+id).bind({ click:function() { if($jn("#frei_"+id).data('interval') == 'true') { $jn("#frei_"+id).data('interval','false'); clearInterval(FreiChat.change_titletimer); FreiChat.change_titletimer=null; document.title = FreiChat.oldtitle; $jn('#chatboxhead'+id).css('background-image','url('+FreiChat.make_url(freidefines.btopimg)+')'); } } }); $jn("#frei_trans"+id).hide(); }; //------------------------------------------------------------------------------ FreiChat.sendMessage = function(id,message,user) { if(FreiChat.bulkmesg.length>=1) { FreiChat.bulkmesg=[]; var CookieStatus=FreiChat.getCookie(id); FreiChat.setCookie( "frei_stat_"+id, CookieStatus.language+"&opened&max&nclear&"+CookieStatus.pos_top+"&"+CookieStatus.pos_left); $jn.post(freidefines.url+"server/freichat.php?freimode=post", {"to": id, 'message[]': [message],"to_name": user} , function(data){ freidefines.fromname = data.username; },'json'); } }; //------------------------------------------------------------------------------ FreiChat.formatMessage = function(message) { message = message.replace(/\r/g,"
"); message = message.replace(/(<([^>]+)>)/ig,""); message = message.replace(/</g,""); message = message.replace(/>/g,""); message = message.replace(/\\/g,""); message = message.replace(/((ht|f)t(p|ps):\/\/\S+)/g, "$1"); message = message.replace(/(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)/g, "$2@$3"); message = message.replace(/'/g,"\'"); message = FreiChat.SmileyGenerate(message); return message; }; //------------------------------------------------------------------------------ FreiChat.toggleChatBoxOnLoad = function(id) { var idx=id.replace(id,"freicontent_"+id); var status=FreiChat.getCookie(id); if(status.chatwindow_2=="min") { $jn("#"+idx).hide(); $jn("#minimgid"+id).attr('src',FreiChat.make_url(freidefines.maximg)); $jn("#addedoptions_"+id).hide(); } }; //------------------------------------------------------------------------------ FreiChat.toggleChatBox = function(id) { var idx=id.replace("freicontent_",""); var options = {}; var CookieStatus = FreiChat.getCookie(idx); if($jn("#"+id).is(":visible") == true) { FreiChat.setCookie( "frei_stat_"+idx, CookieStatus.language+"&opened&min&&"+CookieStatus.pos_top+"&"+CookieStatus.pos_left); $jn("#drag_"+id).draggable('disable'); $jn("#"+id).hide('clip',options,300); $jn("#minimgid"+idx).attr('src',FreiChat.make_url(freidefines.maximg)); $jn("#addedoptions_"+idx).hide(); } else { FreiChat.setCookie( "frei_stat_"+idx, CookieStatus.language+"&opened&max&&"+CookieStatus.pos_top+"&"+CookieStatus.pos_left); $jn("#"+id).show('clip',options,300,function(){ $jn("#drag_"+id).dragx({id:idx,handle:"#chatboxhead_"+idx}); $jn("#minimgid"+idx).attr('src',FreiChat.make_url(freidefines.minimg)); $jn("#frei_"+idx+" .chatboxcontent").scrollTop($jn("#frei_"+idx+" .chatboxcontent")[0].scrollHeight); $jn("#addedoptions_"+idx).show(); }); } }; //------------------------------------------------------------------------------ FreiChat.closeChatBox = function(id,box_pos) { FreiChat.box_crt[box_pos]=false; var idx = id.replace('frei_', ''); var CookieStatus = FreiChat.getCookie(idx); FreiChat.setCookie( "frei_stat_"+idx, CookieStatus.language+"&closed&max&0&0"); var options = {}; $jn("#"+id) .hide('explode',options,1000) .remove(); var i=0,users_length=freichatusers.length; idx=Number(idx); for(i=0;i<=users_length;i++) { if(freichatusers[i]==idx) { //alert('already exists!2'); freichatusers[i]=0; } } //alert(idx); }; //------------------------------------------------------------------------------ FreiChat.closeAllChatBoxes = function() { var i=0; var id=null; var users_len=freichatusers.length; for(i=0;i<=3;i++) { FreiChat.box_crt[i]=false; $jn('#freicontain'+i).html(null); } for(i=0;i<=users_len;i++) { if(freichatusers[i]==undefined || freichatusers[i]==0) { break; } else { id = freichatusers[i]; var CookieStatus = FreiChat.getCookie(id); FreiChat.setCookie( "frei_stat_"+id, CookieStatus.language+"&closed&max&0&0"); $jn("#frei_"+id).hide(); freichatusers[i]=0; id=null; } } }; //------------------------------------------------------------------------------ FreiChat.SmileyGenerate = function(messages) { var replaced_mesg=messages; replaced_mesg = replaced_mesg.replace(/:\)/g,''); replaced_mesg = replaced_mesg.replace(/:\'\)/g,''); replaced_mesg = replaced_mesg.replace(/B\)/g,''); replaced_mesg = replaced_mesg.replace(/:B/g,''); replaced_mesg = replaced_mesg.replace(/:\(/g,''); replaced_mesg = replaced_mesg.replace(/:laugh:/g,''); replaced_mesg = replaced_mesg.replace(/:cheer:/g,''); replaced_mesg = replaced_mesg.replace(/;\)/g,''); replaced_mesg = replaced_mesg.replace(/:P/g,''); replaced_mesg = replaced_mesg.replace(/:angry:/g,''); replaced_mesg = replaced_mesg.replace(/:unsure:/g,''); replaced_mesg = replaced_mesg.replace(/:ohmy:/g,''); replaced_mesg = replaced_mesg.replace(/:huh:/g,''); replaced_mesg = replaced_mesg.replace(/:o/g,''); replaced_mesg = replaced_mesg.replace(/:0/g,''); replaced_mesg = replaced_mesg.replace(/:dry:/g,''); replaced_mesg = replaced_mesg.replace(/:lol:/g,''); replaced_mesg = replaced_mesg.replace(/:D/g,''); replaced_mesg = replaced_mesg.replace(/:silly:/g,''); replaced_mesg = replaced_mesg.replace(/:woohoo:/g,''); return replaced_mesg; }; //------------------------------------------------------------------------------ FreiChat.set_drag = function(id) {//alert(id); var status = FreiChat.getCookie(id); if(status['chatwindow_2']=="min" || freidefines.draggable == 'disable') { $jn("#frei_"+id).draggable('disable'); } else { $jn("#frei_"+id).dragx({id:id,handle:"#chatboxhead_"+id}); } }; //------------------------------------------------------------------------------ FreiChat.clrcht = function(id) { var CookieStatus=FreiChat.getCookie(id); if(CookieStatus.message!="clear") { FreiChat.clrchtids.push(id); FreiChat.setCookie( "frei_stat_"+id, CookieStatus.language+"&opened&max&clear&"+CookieStatus.pos_top+"&"+CookieStatus.pos_left); $jn("#frei_"+id+" .chatboxcontent").html("chat history cleared!"); } else { $jn("#frei_"+id+" .chatboxcontent").html("chat history not found!"); } }; //------------------------------------------------------------------------------ FreiChat.frei_box_contain = function(id) { if(FreiChat.box_crt[0]==true && FreiChat.box_crt[1]==true && FreiChat.box_crt[2]==true && FreiChat.box_crt[3]==true) { if(FreiChat.cnt>=4) { FreiChat.cnt=0; } FreiChat.closeChatBox("frei_"+FreiChat.box_crt_id[FreiChat.cnt],FreiChat.cnt); FreiChat.box_count=FreiChat.cnt; FreiChat.box_crt_id[FreiChat.cnt]=id; FreiChat.box_crt[FreiChat.cnt]=true; FreiChat.cnt=FreiChat.cnt+1; } else { var boxCrt_length=FreiChat.box_crt.length; for(i=0;i<=boxCrt_length;i++) { if(FreiChat.box_crt[i]==false) { FreiChat.box_crt[i]=true; FreiChat.box_crt_id[i]=id; FreiChat.box_count=i; break; } } } return FreiChat.box_count; }; //------------------------------------------------------------------------------ FreiChat.freichatopt = function(opt) { var users_length=freichatusers.length; if(FreiChat.ses_status==null) { FreiChat.freistatus=1; } if(opt=="nooptions") { if(FreiChat.freitool.is(":visible") == true) { FreiChat.freitool.hide(); } FreiChat.freiopt.slideToggle(); return; } else if(opt=="goOffline") { FreiChat.freistatus=0; FreiChat.mainchat.hide(); FreiChat.freiOnOffline.show(); for(i=0;i<=users_length;i++) { $jn("#frei_"+freichatusers[i]).hide(); } } else if(opt=="goOnline") { FreiChat.freistatus=1; FreiChat.ursimg.attr('src',FreiChat.make_url(freidefines.onlineimg)); if(FreiChat.mainchat.is(":visible") == false) {var i = 0; FreiChat.mainchat.show(); FreiChat.divfrei.html(freidefines.onfoffline); FreiChat.freiOnOffline.hide(); for(i=0;i<=users_length;i++) { $jn("#frei_"+freichatusers[i]).show(); } } } else if(opt=="goInvisible") { FreiChat.ursimg.attr('src',FreiChat.make_url(freidefines.invisibleimg)); FreiChat.freistatus=2; } else if(opt=="goBusy") { FreiChat.ursimg.attr('src',FreiChat.make_url(freidefines.busyimg)); FreiChat.freistatus=3; } else if(opt=="goTempBusy") { FreiChat.ursimg.attr('src',FreiChat.make_url(freidefines.busyimg)); FreiChat.freistatus=4; } else { FreiChat.buglog("info","opt not defined on line 785 in freichat/client/freichat.js"); } if(FreiChat.freistatus!=FreiChat.ostatus) { $jn.post(freidefines.url+"server/freichat.php?freimode=update_status", {freistatus:FreiChat.freistatus} , function(data){FreiChat.ostatus=FreiChat.freistatus=data.status;},'json'); } }; //------------------------------------------------------------------------------ FreiChat.freichatTool = function(opt) { if(opt=="nooptions") { if(FreiChat.freiopt.is(":visible") == true) { FreiChat.freiopt.slideUp(); } FreiChat.freitool.slideToggle(); } }; //------------------------------------------------------------------------------ FreiChat.restore_drag_pos = function() { $jn("#frei_box").dragx({restore:true, id:freichatusers}); }; //------------------------------------------------------------------------------ FreiChat.make_url = function(name) { var backslash="/"; if(name.charAt(0) == '/'){ backslash=""; } return freidefines.url+"client/jquery/freichat_themes/"+freidefines.theme+backslash+name; }; //------------------------------------------------------------------------------ FreiChat.buglog = function(func,mesg) { if(FreiChat.debug==true) { if(func == "log") { console.log(mesg); } else if(func == "info") { console.info(mesg); } else if(func == "error") { console.error(mesg); } else { console.error("Worng parameter (684)"); } } }; //------------------------------------------------------------------------------ FreiChat.getCookie = function(id) { var boxstatus=null;var stat_str=null;var values=[]; stat_str=Get_Cookie("frei_stat_"+id); if(stat_str==null) { stat_str = null+"&closed&min&clear"; boxstatus = stat_str.split("&"); } else { boxstatus = stat_str.split("&"); } values.language = boxstatus[0]; values.chatwindow_1 = boxstatus[1]; values.chatwindow_2 = boxstatus[2]; values.message = boxstatus[3]; values.pos_top = boxstatus[4]; values.pos_left = boxstatus[5]; return values; }; //------------------------------------------------------------------------------ FreiChat.setCookie = function(name,value) { Set_Cookie(name, value, 0, '/', '', '' ); }; //------------------------------------------------------------------------------ FreiChat.upload = function(user,id) { FreiChat.toid=id; FreiChat.touser=user; window.open(freidefines.url+"client/plugins/upload/html.php",'uploadWindow','width=400,height=200'); }; //------------------------------------------------------------------------------ FreiChat.toggle_image = function(imgid , imgsrc) {imgid++;imgsrc++; //var img = document.getElementById(imgid); //img.title = freidefines.url+"client/jquery/freichat_themes/"+freidefines.theme+"online.png"; }; //------------------------------------------------------------------------------ FreiChat.show_plugins = function(user,id) { var pluginhtml; if(freidefines.show_file_send == 'true') { pluginhtml = 'upload '; } else { pluginhtml=''; } if(FreiChat.showtranslate == 'enabled') { pluginhtml += 'Tranlate '; } return pluginhtml; }; //------------------------------------------------------------------------------ FreiChat.changelang = function (lang,id) { var CookieStatus = FreiChat.getCookie(id); if(lang == 'disable') { FreiChat.setCookie( "frei_stat_"+id, "disable&opened&"+CookieStatus.chatwindow_2+"&"+CookieStatus.message+"&"+CookieStatus.pos_top+"&"+CookieStatus.pos_left); $jn("#translateimage"+id).attr('src',FreiChat.make_url(freidefines.notransimg)); $jn("#frei_trans"+id).slideToggle('slow'); } else { $jn("#translateimage"+id).attr('src',FreiChat.make_url(freidefines.translateimg)); FreiChat.setCookie( "frei_stat_"+id, lang+"&opened&"+CookieStatus.chatwindow_2+"&"+CookieStatus.message+"&"+CookieStatus.pos_top+"&"+CookieStatus.pos_left); $jn("#frei_trans"+id).slideToggle('slow'); } }; //------------------------------------------------------------------------------ FreiChat.translate = function(id) { $jn("#frei_trans"+id).slideToggle(); }; //------------------------------------------------------------------------------ FreiChat.langlist = function(id) { var str= ''+FreiChat.makelangurl(['en','de','zh','cy','tr','uk','ru','it','ja','el','iw','fr','gl','ar'], id)+'
'+freidefines.plugin_trans_disable+' 
' return str; }; //------------------------------------------------------------------------------ FreiChat.makelangurl = function(name,id) { var namelen = name.length;var i=0;var str = ''; for(i=0; i<=namelen; i++) { if(name[i] == null || name[i] == undefined) { break; } str += ''+name[i]+' '; } return str; }; //------------------------------------------------------------------------------ FreiChat.test = function(wHatTopRint,isLoop,isRepeat) { wHatTopRint = wHatTopRint+" "; var testDiv = document.getElementById('fTesting'); if(testDiv == null) { alert('Sorry div not found!'); return; } var i = 0; if(isLoop != undefined) //&& isLoop.constructor.toString().indexOf("Array") != -1) { if(isLoop != false && isLoop !=null) { var loopStart = isLoop[0]; var loopEnd = isLoop[1]; for(i=loopStart;i<=loopEnd;i++) { testDiv.innerHTML += wHatTopRint; } } } else { testDiv.innerHTML +=wHatTopRint; } if(isRepeat != undefined) { if(isRepeat[0] == true) { var byTime = isRepeat[1]; var repeat = function() { FreiChat.test(wHatTopRint,isLoop,isRepeat); } setTimeout(repeat,byTime); } } }; //------------------------------------------------------------------------------ /*START *-*-* TRANSLATE PLUGIN RELATED */ FreiChat.appendtranslate = function(language,id,arr) { var div = null; if(arr[0] == 'callbyget') { div = $jn('#msg_'+arr[1]); div.translate(language,{not:'.notranslate'}); } else { div = $jn("#frei_"+id+" .chatboxcontent"); if(arr == null || arr == '') { div.translate(language,{not:'.notranslate'}); } else { div.translate(language,{not:'.notranslate'}); } } }; //------------------------------------------------------------------------------ FreiChat.show_original_text = function(me,id) { var show_by_delaying = function(){ var pos = $jn(me).position(); if($jn("#frei_orig_"+id).hasClass('iamtobehovered')) { $jn("#frei_orig_"+id).css( {"left": (pos.left-30) + "px", "top":(pos.top-50)+"px" , "display" : "block"} ); } }; FreiChat.timer = setTimeout(show_by_delaying,500); }; //------------------------------------------------------------------------------ FreiChat.show_original_text_onhover = function(me) { if($jn(me).hasClass('iamtobehovered')) { $jn(me).addClass('iambeinghovered'); } }; //------------------------------------------------------------------------------ FreiChat.hide_original_text = function(id) { var a = function(){if(!$jn("#frei_orig_"+id).hasClass('iambeinghovered')) { $jn("#frei_orig_"+id).css("display","none"); }}; setTimeout(a,500); clearTimeout(FreiChat.timer); }; //------------------------------------------------------------------------------ FreiChat.hide_original_text_onout = function(id) { var hide_by_delaying= function(){ $jn("#frei_orig_"+id).removeClass('iambeinghovered'); $jn("#frei_orig_"+id).css("display","none"); }; setTimeout(hide_by_delaying,500); }; /*END *-*-* TRANSLATE PLUGIN RELATED */ //------------------------------------------------------------------------------ FreiChat.statusUpdate = function() { $jn(document).mousemove(function() { FreiChat.inact_time=0; if(FreiChat.inactive==true && FreiChat.freistatus!=0) { FreiChat.freichatopt("goOnline"); FreiChat.inactive=false; //FreiChat.yourfunction(); } }); }; //------------------------------------------------------------------------------ FreiChat.css = function(div,value) { document.getElementById(div).style.height = value+"px"; } //------------------------------------------------------------------------------ FreiChat.display = function(div,value) { document.getElementById(div).style.display = value; } //------------------------------------------------------------------------------ FreiChat.selfInvoke = function() { soundManager.url = freidefines.url+"client/jquery/img/"; $jn(window).load(function(){ $jn(document).ready(function(){ FreiChat.oldtitle=document.title; FreiChat.statusUpdate(); FreiChat.setInactivetime(); FreiChat.init_process_freichatX(); }); }); }(); //------------------------------------------------------------------------------ /*Updated Feb 2 FreiChatX 4.5 Beta*/