/*! jQuery v1.7.1 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"":"")+""),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;g=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
a",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendChild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="
"+""+"
",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="
t
",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="
",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.removeChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")}; f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&i.push({elem:this,matches:d.slice(e)});for(j=0;j0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
","
"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function() {for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/)<[^<]*)*<\/script>/gi,bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS)return bS.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),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","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]==="http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bU,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch)ch[a](0,1)}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cy(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,d,a?"margin":"border")):this[d]():null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNumeric(j)?j:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);/*! * jQuery UI 1.8.12 * * 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(c,j){function k(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.8.12",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}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this, "position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position"); if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,l,m){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(l)g-=parseFloat(c.curCSS(f, "border"+this+"Width",true))||0;if(m)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h, d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){var b=a.nodeName.toLowerCase(),d=c.attr(a,"tabindex");if("area"===b){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&k(a)}return(/input|select|textarea|button|object/.test(b)?!a.disabled:"a"==b?a.href||!isNaN(d):!isNaN(d))&&k(a)},tabbable:function(a){var b=c.attr(a,"tabindex");return(isNaN(b)||b>=0)&&c(a).is(":focusable")}}); c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=0;e0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate); if(this._mouseStarted){this._mouseStarted=false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery); ;/* * jQuery UI Position 1.8.12 * * 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/Position */ (function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else if(d.setTimeout){h=a.width();k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else if(d.preventDefault){b.at="left top";h=k=0;j={top:b.of.pageY, left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();j=a.offset()}c.each(["my","at"],function(){var f=(b[this]||"").split(" ");if(f.length===1)f=n.test(f[0])?f.concat(["center"]):o.test(f[0])?["center"].concat(f):["center","center"];f[0]=n.test(f[0])?f[0]:"center";f[1]=o.test(f[1])?f[1]:"center";b[this]=f});if(g.length===1)g[1]=g[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(b.at[0]==="right")j.left+=h;else if(b.at[0]==="center")j.left+=h/2;if(b.at[1]==="bottom")j.top+= k;else if(b.at[1]==="center")j.top+=k/2;j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,"marginLeft",true))||0,q=parseInt(c.curCSS(this,"marginTop",true))||0,v=l+p+(parseInt(c.curCSS(this,"marginRight",true))||0),w=m+q+(parseInt(c.curCSS(this,"marginBottom",true))||0),i=c.extend({},j),r;if(b.my[0]==="right")i.left-=l;else if(b.my[0]==="center")i.left-=l/2;if(b.my[1]==="bottom")i.top-=m;else if(b.my[1]==="center")i.top-= m/2;i.left=Math.round(i.left);i.top=Math.round(i.top);r={left:i.left-p,top:i.top-q};c.each(["left","top"],function(s,x){c.ui.position[g[s]]&&c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();b.left= d>0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!=="center"){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]==="left"?-a.elemWidth:a.my[0]==="right"?a.elemWidth:0,e=a.at[0]==="left"?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];b.left+= a.collisionPosition.left<0?g+e+h:d>0?g+e+h:0}},top:function(b,a){if(a.at[1]!=="center"){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]==="top"?-a.elemHeight:a.my[1]==="bottom"?a.elemHeight:0,e=a.at[1]==="top"?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];b.top+=a.collisionPosition.top<0?g+e+h:d>0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,"position")))b.style.position="relative";var d=c(b), g=d.offset(),e=parseInt(c.curCSS(b,"top",true),10)||0,h=parseInt(c.curCSS(b,"left",true),10)||0;g={top:a.top-g.top+e,left:a.left-g.left+h};"using"in a?a.using.call(b,g):d.css(g)};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument)return null;if(b)return this.each(function(){c.offset.setOffset(this,b)});return u.call(this)}}})(jQuery); ; function initialize_chat() { $jn = FreiChat.first; } /* * jQuery UI Draggable 1.8.12 * * 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/Draggables * * Depends: * jquery.ui.core.js * jquery.ui.mouse.js * jquery.ui.widget.js */ (function(d){d.widget("ui.draggable",d.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(a){var b= this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;return true},_mouseStart:function(a){var b=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.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};d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions(); d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);return true},_mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",a,b)===false){this._mouseUp({});return false}this.position=b.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";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b=false;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||d.isFunction(this.options.revert)&& this.options.revert.call(this.element,b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){c._trigger("stop",a)!==false&&c._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var b=!this.options.handle||!d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this== a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper=="clone"?this.element.clone():this.element;a.parents("body").length||a.appendTo(b.appendTo=="parent"?this.element[0].parentNode:b.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]|| 0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0], this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top- (parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(), height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[(a.containment=="document"?0:d(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(a.containment=="document"?0:d(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(a.containment=="document"?0:d(window).scrollLeft())+d(a.containment=="document"? document:window).width()-this.helperProportions.width-this.margins.left,(a.containment=="document"?0:d(window).scrollTop())+(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&a.containment.constructor!=Array){var b=d(a.containment)[0];if(b){a=d(a.containment).offset();var c=d(b).css("overflow")!="hidden";this.containment=[a.left+(parseInt(d(b).css("borderLeftWidth"), 10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0),a.top+(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0),a.left+(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"), 10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom]}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&& d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0], this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,g=a.pageY;if(this.originalPosition){if(this.containment){if(a.pageX-this.offset.click.leftthis.containment[2])e=this.containment[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.containment[3])g= this.containment[3]+this.offset.click.top}if(b.grid){g=this.originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=this.containment?!(g-this.offset.click.topthis.containment[3])?g:!(g-this.offset.click.topthis.containment[2])? e:!(e-this.offset.click.left
').css({width:this.offsetWidth+ "px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset()).appendTo("body")})},stop:function(){d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});d.ui.plugin.add("draggable","opacity",{start:function(a,b){a=d(b.helper);b=d(this).data("draggable").options;if(a.css("opacity"))b._opacity=a.css("opacity");a.css("opacity",b.opacity)},stop:function(a,b){a=d(this).data("draggable").options;a._opacity&&d(b.helper).css("opacity", a._opacity)}});d.ui.plugin.add("draggable","scroll",{start:function(){var a=d(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML")a.overflowOffset=a.scrollParent.offset()},drag:function(a){var b=d(this).data("draggable"),c=b.options,f=false;if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){if(!c.axis||c.axis!="x")if(b.overflowOffset.top+b.scrollParent[0].offsetHeight-a.pageY=0;h--){var i=c.snapElements[h].left,k=i+c.snapElements[h].width,j=c.snapElements[h].top,l=j+c.snapElements[h].height;if(i-e").addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),d=this.options.icons,f=d.primary&&d.secondary,e=[];if(d.primary||d.secondary){if(this.options.text)e.push("ui-button-text-icon"+(f?"s":d.primary?"-primary":"-secondary"));d.primary&&b.prepend("");d.secondary&&b.append("");if(!this.options.text){e.push(f?"ui-button-icons-only": "ui-button-icon-only");this.hasTitle||b.attr("title",c)}}else e.push("ui-button-text-only");b.addClass(e.join(" "))}}});a.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(b,c){b==="disabled"&&this.buttons.button("option",b,c);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()}, destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call(this)}})})(jQuery); ;/* * jQuery UI Tabs 1.8.12 * * 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/Tabs * * Depends: * jquery.ui.core.js * jquery.ui.widget.js */ (function(d,p){function u(){return++v}function w(){return++x}var v=0,x=0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"
",remove:null,select:null,show:null,spinner:"Loading…",tabTemplate:"
  • #{label}
  • "},_create:function(){this._tabify(true)},_setOption:function(b,e){if(b=="selected")this.options.collapsible&& e==this.options.selected||this.select(e);else{this.options[b]=e;this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+u()},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+w());return d.cookie.apply(null,[b].concat(d.makeArray(arguments)))},_ui:function(b,e){return{tab:b,panel:e,index:this.anchors.index(b)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b= d(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(b){function e(g,f){g.css("display","");!d.support.opacity&&f.opacity&&g[0].style.removeAttribute("filter")}var a=this,c=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(g,f){var i=d(f).attr("href"),l=i.split("#")[0],q;if(l&&(l===location.toString().split("#")[0]|| (q=d("base")[0])&&l===q.href)){i=f.hash;f.href=i}if(h.test(i))a.panels=a.panels.add(a.element.find(a._sanitizeSelector(i)));else if(i&&i!=="#"){d.data(f,"href.tabs",i);d.data(f,"load.tabs",i.replace(/#.*$/,""));i=a._tabId(f);f.href="#"+i;f=a.element.find("#"+i);if(!f.length){f=d(c.panelTemplate).attr("id",i).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);f.data("destroy.tabs",true)}a.panels=a.panels.add(f)}else c.disabled.push(g)});if(b){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"); this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(c.selected===p){location.hash&&this.anchors.each(function(g,f){if(f.hash==location.hash){c.selected=g;return false}});if(typeof c.selected!=="number"&&c.cookie)c.selected=parseInt(a._cookie(),10);if(typeof c.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length)c.selected= this.lis.index(this.lis.filter(".ui-tabs-selected"));c.selected=c.selected||(this.lis.length?0:-1)}else if(c.selected===null)c.selected=-1;c.selected=c.selected>=0&&this.anchors[c.selected]||c.selected<0?c.selected:0;c.disabled=d.unique(c.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g){return a.lis.index(g)}))).sort();d.inArray(c.selected,c.disabled)!=-1&&c.disabled.splice(d.inArray(c.selected,c.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active"); if(c.selected>=0&&this.anchors.length){a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(c.selected).addClass("ui-tabs-selected ui-state-active");a.element.queue("tabs",function(){a._trigger("show",null,a._ui(a.anchors[c.selected],a.element.find(a._sanitizeSelector(a.anchors[c.selected].hash))[0]))});this.load(c.selected)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs");a.lis=a.anchors=a.panels=null})}else c.selected=this.lis.index(this.lis.filter(".ui-tabs-selected")); this.element[c.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");c.cookie&&this._cookie(c.selected,c.cookie);b=0;for(var j;j=this.lis[b];b++)d(j)[d.inArray(b,c.disabled)!=-1&&!d(j).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");c.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(c.event!=="mouseover"){var k=function(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-"+g)},n=function(g,f){f.removeClass("ui-state-"+ g)};this.lis.bind("mouseover.tabs",function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focus",d(this).closest("li"))})}var m,o;if(c.fx)if(d.isArray(c.fx)){m=c.fx[0];o=c.fx[1]}else m=o=c.fx;var r=o?function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.duration||"normal", function(){e(f,o);a._trigger("show",null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");a._trigger("show",null,a._ui(g,f[0]))},s=m?function(g,f){f.animate(m,m.duration||"normal",function(){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("tabs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected ui-state-active");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")}; this.anchors.bind(c.event+".tabs",function(){var g=this,f=d(g).closest("li"),i=a.panels.filter(":not(.ui-tabs-hide)"),l=a.element.find(a._sanitizeSelector(g.hash));if(f.hasClass("ui-tabs-selected")&&!c.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-state-processing")||a.panels.filter(":animated").length||a._trigger("select",null,a._ui(this,l[0]))===false){this.blur();return false}c.selected=a.anchors.index(this);a.abort();if(c.collapsible)if(f.hasClass("ui-tabs-selected")){c.selected= -1;c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){s(g,i)}).dequeue("tabs");this.blur();return false}else if(!i.length){c.cookie&&a._cookie(c.selected,c.cookie);a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this));this.blur();return false}c.cookie&&a._cookie(c.selected,c.cookie);if(l.length){i.length&&a.element.queue("tabs",function(){s(g,i)});a.element.queue("tabs",function(){r(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: Mismatching fragment identifier."; d.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(b){if(typeof b=="string")b=this.anchors.index(this.anchors.filter("[href$="+b+"]"));return b},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var e= d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide")});b.cookie&&this._cookie(null,b.cookie);return this},add:function(b, e,a){if(a===p)a=this.anchors.length;var c=this,h=this.options;e=d(h.tabTemplate.replace(/#\{href\}/g,b).replace(/#\{label\}/g,e));b=!b.indexOf("#")?b.replace("#",""):this._tabId(d("a",e)[0]);e.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var j=c.element.find("#"+b);j.length||(j=d(h.panelTemplate).attr("id",b).data("destroy.tabs",true));j.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(a>=this.lis.length){e.appendTo(this.list);j.appendTo(this.list[0].parentNode)}else{e.insertBefore(this.lis[a]); j.insertBefore(this.panels[a])}h.disabled=d.map(h.disabled,function(k){return k>=a?++k:k});this._tabify();if(this.anchors.length==1){h.selected=0;e.addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){c._trigger("show",null,c._ui(c.anchors[0],c.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[a],this.panels[a]));return this},remove:function(b){b=this._getIndex(b);var e=this.options,a=this.lis.eq(b).remove(),c=this.panels.eq(b).remove(); if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(b+(b+1=b?--h:h});this._tabify();this._trigger("remove",null,this._ui(a.find("a")[0],c[0]));return this},enable:function(b){b=this._getIndex(b);var e=this.options;if(d.inArray(b,e.disabled)!=-1){this.lis.eq(b).removeClass("ui-state-disabled");e.disabled=d.grep(e.disabled,function(a){return a!=b});this._trigger("enable",null, this._ui(this.anchors[b],this.panels[b]));return this}},disable:function(b){b=this._getIndex(b);var e=this.options;if(b!=e.selected){this.lis.eq(b).addClass("ui-state-disabled");e.disabled.push(b);e.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[b],this.panels[b]))}return this},select:function(b){b=this._getIndex(b);if(b==-1)if(this.options.collapsible&&this.options.selected!=-1)b=this.options.selected;else return this;this.anchors.eq(b).trigger(this.options.event+".tabs");return this}, load:function(b){b=this._getIndex(b);var e=this,a=this.options,c=this.anchors.eq(b)[0],h=d.data(c,"load.tabs");this.abort();if(!h||this.element.queue("tabs").length!==0&&d.data(c,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(b).addClass("ui-state-processing");if(a.spinner){var j=d("span",c);j.data("label.tabs",j.html()).html(a.spinner)}this.xhr=d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,n){e.element.find(e._sanitizeSelector(c.hash)).html(k);e._cleanup();a.cache&&d.data(c, "cache.tabs",true);e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigger("load",null,e._ui(e.anchors[b],e.panels[b]));try{a.ajaxOptions.error(k,n,b,c)}catch(m){}}}));e.element.dequeue("tabs");return this}},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this}, url:function(b,e){this.anchors.eq(b).removeData("cache.tabs").data("load.tabs",e);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.12"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(b,e){var a=this,c=this.options,h=a._rotate||(a._rotate=function(j){clearTimeout(a.rotation);a.rotation=setTimeout(function(){var k=c.selected;a.select(++k").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent", border:"none",margin:0,padding:0});c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"});c.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c); return c},setTransition:function(c,a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments),b={options:a[1],duration:a[2],callback:a[3]};a=b.options.mode;var d=f.effects[c];if(f.fx.off||!d)return a?this[a](b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)});return d.call(this,b)},_show:f.fn.show,show:function(c){if(m(c))return this._show.apply(this,arguments); else{var a=k.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(m(c))return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(m(c)||typeof c==="boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c), b=[];f.each(["em","px","%","pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c, a,b,d,e){return d*((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c, a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a== e)return b+d;if((a/=e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h").css({position:"absolute",visibility:"visible",left:-f*(h/d),top:-e*(i/c)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/d,height:i/c,left:g.left+f*(h/d)+(a.options.mode=="show"?(f-Math.floor(d/2))*(h/d):0),top:g.top+e*(i/c)+(a.options.mode=="show"?(e-Math.floor(c/2))*(i/c):0),opacity:a.options.mode=="show"?0:1}).animate({left:g.left+f*(h/d)+(a.options.mode=="show"?0:(f-Math.floor(d/2))*(h/d)),top:g.top+ e*(i/c)+(a.options.mode=="show"?0:(e-Math.floor(c/2))*(i/c)),opacity:a.options.mode=="show"?1:0},a.duration||500);setTimeout(function(){a.options.mode=="show"?b.css({visibility:"visible"}):b.css({visibility:"visible"}).hide();a.callback&&a.callback.apply(b[0]);b.dequeue();j("div.ui-effects-explode").remove()},a.duration||500)})}})(jQuery); ;/* * jQuery UI Effects Fade 1.8.12 * * 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/Effects/Fade * * Depends: * jquery.effects.core.js */ (function(b){b.effects.fade=function(a){return this.queue(function(){var c=b(this),d=b.effects.setMode(c,a.options.mode||"hide");c.animate({opacity:d},{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){a.callback&&a.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery); ;/* * jQuery UI Effects Fold 1.8.12 * * 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/Effects/Fold * * Depends: * jquery.effects.core.js */ (function(c){c.effects.fold=function(a){return this.queue(function(){var b=c(this),j=["position","top","bottom","left","right"],d=c.effects.setMode(b,a.options.mode||"hide"),g=a.options.size||15,h=!!a.options.horizFirst,k=a.duration?a.duration/2:c.fx.speeds._default/2;c.effects.save(b,j);b.show();var e=c.effects.createWrapper(b).css({overflow:"hidden"}),f=d=="show"!=h,l=f?["width","height"]:["height","width"];f=f?[e.width(),e.height()]:[e.height(),e.width()];var i=/([0-9]+)%/.exec(g);if(i)g=parseInt(i[1], 10)/100*f[d=="hide"?0:1];if(d=="show")e.css(h?{height:0,width:g}:{height:g,width:0});h={};i={};h[l[0]]=d=="show"?f[0]:g;i[l[1]]=d=="show"?f[1]:0;e.animate(h,k,a.options.easing).animate(i,k,a.options.easing,function(){d=="hide"&&b.hide();c.effects.restore(b,j);c.effects.removeWrapper(b);a.callback&&a.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery); ;/* * jQuery UI Effects Slide 1.8.12 * * 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/Effects/Slide * * Depends: * jquery.effects.core.js */ (function(c){c.effects.slide=function(d){return this.queue(function(){var a=c(this),h=["position","top","bottom","left","right"],f=c.effects.setMode(a,d.options.mode||"show"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a).css({overflow:"hidden"});var g=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var e=d.options.distance||(g=="top"?a.outerHeight({margin:true}):a.outerWidth({margin:true}));if(f=="show")a.css(g,b=="pos"?isNaN(e)?"-"+e:-e:e); var i={};i[g]=(f=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+e;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){f=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery); ;/* * jQuery UI Dialog 1.8.12 * * 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/Dialog * * Depends: * jquery.ui.core.js * jquery.ui.widget.js * jquery.ui.button.js * jquery.ui.draggable.js * jquery.ui.mouse.js * jquery.ui.position.js * jquery.ui.resizable.js */ (function(c,l){var m={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},n={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},o=c.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false, position:{my:"center",at:"center",collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||" ",e=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("
    ")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+ b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var f=(a.uiDialogTitlebar=c("
    ")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g), h=c('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);return false}).appendTo(f);(a.uiDialogTitlebarCloseText=c("")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("").addClass("ui-dialog-title").attr("id", e).html(d).prependTo(f);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;f.find("*").add(f).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"); a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d,e;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!== b.uiDialog[0]){e=c(this).css("z-index");isNaN(e)||(d=Math.max(d,e))}});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,e=d.options;if(e.modal&&!a||!e.stack&&!e.modal)return d._trigger("focus",b);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=e.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.attr("scrollTop"),scrollLeft:d.element.attr("scrollLeft")};c.ui.dialog.maxZ+= 1;d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),f=g.filter(":first");g=g.filter(":last");if(e.target===g[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target=== f[0]&&e.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,e=c("
    ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("
    ").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a, function(){return!(d=true)});if(d){c.each(a,function(f,h){h=c.isFunction(h)?{click:h,text:f}:h;var i=c('').click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.each(h,function(j,k){if(j!=="click")j in o?i[j](k):i.attr(j,k)});c.fn.button&&i.button()});e.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(f){return{position:f.position,offset:f.offset}}var b=this,d=b.options,e=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close", handle:".ui-dialog-titlebar",containment:"document",start:function(f,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",f,a(h))},drag:function(f,h){b._trigger("drag",f,a(h))},stop:function(f,h){d.position=[h.position.left-e.scrollLeft(),h.position.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);b._trigger("dragStop",f,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(f){return{originalPosition:f.originalPosition, originalSize:f.originalSize,position:f.position,size:f.size}}a=a===l?this.options.resizable:a;var d=this,e=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:a,start:function(f,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",f,b(h))},resize:function(f,h){d._trigger("resize", f,b(h))},stop:function(f,h){c(this).removeClass("ui-dialog-resizing");e.height=c(this).height();e.width=c(this).width();d._trigger("resizeStop",f,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var b=[],d=[0,0],e;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "): [a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,f){if(+b[g]===b[g]){d[g]=b[g];b[g]=f}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(c.extend({of:window},a));e||this.uiDialog.hide()},_setOptions:function(a){var b=this,d={},e=false;c.each(a,function(g,f){b._setOption(g,f); if(g in m)e=true;if(g in n)d[g]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(a,b){var d=this,e=d.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":e.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?e.addClass("ui-dialog-disabled"): e.removeClass("ui-dialog-disabled");break;case "draggable":var g=e.is(":data(draggable)");g&&!b&&e.draggable("destroy");!g&&b&&d._makeDraggable();break;case "position":d._position(b);break;case "resizable":(g=e.is(":data(resizable)"))&&!b&&e.resizable("destroy");g&&typeof b==="string"&&e.resizable("option","handles",b);!g&&b!==false&&d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||" "));break}c.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var a= this.options,b,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();d=Math.max(0,a.minHeight-b);if(a.height==="auto")if(c.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();e||this.uiDialog.hide();this.element.height(Math.max(a,d))}else this.element.height(Math.max(a.height- b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.12",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "), create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(), height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){var b=c.inArray(a,this.instances);b!=-1&&this.oldInstances.push(this.instances.splice(b,1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight); b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a/)!==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(a){function b(b,c){function e(){if(g.debugURLParam.test(k))g.debugMode=!0}function d(a){return function(b){return!this._t||!this._t._a?null:a.call(this,b)}}this.flashVersion=8;this.debugFlash=this.debugMode=!1;this.useConsole=!0;this.waitForWindowLoad=this.consoleOnly=!1;this.nullURL="about:blank";this.allowPolling=!0;this.useFastPolling=!1;this.useMovieStar=!0;this.bgColor="#ffffff";this.useHighPerformance=!1;this.flashPollingInterval=null;this.flashLoadTimeout=1e3;this.wmode=null;this.allowScriptAccess="always";this.useHTML5Audio=this.useFlashBlock=!1;this.html5Test=/^probably$/i;this.useGlobalHTML5Audio=!0;this.requireFlash=!1;this.audioFormats={mp3:{type:['audio/mpeg; codecs="mp3"',"audio/mpeg","audio/mp3","audio/MPA","audio/mpa-robust"],required:!0},mp4:{related:["aac","m4a"],type:['audio/mp4; codecs="mp4a.40.2"',"audio/aac","audio/x-m4a","audio/MP4A-LATM","audio/mpeg4-generic"],required:!0},ogg:{type:["audio/ogg; codecs=vorbis"],required:!1},wav:{type:['audio/wav; codecs="1"',"audio/wav","audio/wave","audio/x-wav"],required:!1}};this.defaultOptions={autoLoad:!1,stream:!0,autoPlay:!1,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:5e3,onbeforefinishcomplete:null,onjustbeforefinish:null,onjustbeforefinishtime:200,multiShot:!0,multiShotEvents:!1,position:null,pan:0,type:null,usePolicyFile:!1,volume:100};this.flash9Options={isMovieStar:null,usePeakData:!1,useWaveformData:!1,useEQData:!1,onbufferchange:null,ondataerror:null};this.movieStarOptions={bufferTime:3,serverURL:null,onconnect:null,duration:null};this.version=null;this.versionNumber="V2.97a.20110424";this.movieURL=null;this.url=b||null;this.altURL=null;this.enabled=this.swfLoaded=!1;this.o=null;this.movieID="sm2-container";this.id=c||"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=!1;this.debugID="soundmanager-debug";this.debugURLParam=/([#?&])debug=1/i;this.didFlashBlock=this.specialWmodeCase=!1;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:!1,peakData:!1,waveformData:!1,eqData:!1,movieStar:!1};this.sandbox={};this.hasHTML5=null;this.html5={usingFlash:null};this.ignoreFlash=!1;var f,g=this,h,i=navigator.userAgent,j=a,k=j.location.href.toString(),l=this.flashVersion,m=document,n,o,p=[],q=!1,r=!1,s=!1,t=!1,u=!1,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q=null,R=null,S,T,U,V,W,X,Z,$=!1,_=!1,ba,bb,bc=null,bd,be,bf=!1,bg,bh,bi,bj,bk,bl=Array.prototype.slice,bm=!1,bn,bo,bp,bq=i.match(/pre\//i),br=i.match(/(ipad|iphone|ipod)/i);i.match(/mobile/i);var bs=i.match(/msie/i),bt=i.match(/webkit/i),bu=i.match(/safari/i)&&!i.match(/chrome/i),bv=i.match(/opera/i),bw=!k.match(/usehtml5audio/i)&&!k.match(/sm2\-ignorebadua/i)&&bu&&i.match(/OS X 10_6_([3-9])/i),bx=typeof m.hasFocus!=="undefined"?m.hasFocus():null,by=typeof m.hasFocus==="undefined"&&bu,bz=!by;this._use_maybe=k.match(/sm2\-useHTML5Maybe\=1/i);this._overHTTP=m.location?m.location.protocol.match(/http/i):null;this._http=!this._overHTTP?"http:":"";this.useAltURL=!this._overHTTP;this._global_a=null;if(br||bq)g.useHTML5Audio=!0,g.ignoreFlash=!0,g.useGlobalHTML5Audio&&(bm=!0);if(bq||this._use_maybe)g.html5Test=/^(probably|maybe)$/i;this.supported=this.ok=function(){return bc?s&&!t:g.useHTML5Audio&&g.hasHTML5};this.getMovie=function(a){return bs?j[a]:bu?h(a)||m[a]:h(a)};this.createSound=function(a){function b(){c=V(c);g.sounds[e.id]=new f(e);g.soundIDs.push(e.id);return g.sounds[e.id]}var c=null,d=null,e=null;if(!s||!g.ok())return X("soundManager.createSound(): "+S(!s?"notReady":"notOK")),!1;arguments.length===2&&(a={id:arguments[0],url:arguments[1]});e=c=w(a);if(Z(e.id,!0))return g.sounds[e.id];if(be(e))d=b(),d._setup_html5(e);else{if(l>8&&g.useMovieStar){if(e.isMovieStar===null)e.isMovieStar=e.serverURL||e.type&&e.type.match(g.netStreamPattern)||e.url.match(g.netStreamPattern)?!0:!1;if(e.isMovieStar&&e.usePeakData)e.usePeakData=!1}e=W(e,"soundManager.createSound(): ");d=b();if(l===8)g.o._createSound(e.id,e.onjustbeforefinishtime,e.loops||1,e.usePolicyFile);else if(g.o._createSound(e.id,e.url,e.onjustbeforefinishtime,e.usePeakData,e.useWaveformData,e.useEQData,e.isMovieStar,e.isMovieStar?e.bufferTime:!1,e.loops||1,e.serverURL,e.duration||null,e.autoPlay,!0,e.autoLoad,e.usePolicyFile),!e.serverURL)d.connected=!0,e.onconnect&&e.onconnect.apply(d);(e.autoLoad||e.autoPlay)&&!e.serverURL&&d.load(e)}e.autoPlay&&!e.serverURL&&d.play();return d};this.destroySound=function(a,b){if(!Z(a))return!1;var c=g.sounds[a],d;c._iO={};c.stop();c.unload();for(d=0;d0)b.resume();else{b.playState=1;b.paused=!1;(!b.instanceCount||b._iO.multiShotEvents||l>8&&!b.isHTML5&&!b.getAutoPlay())&&b.instanceCount++;b.position=typeof b._iO.position!=="undefined"&&!isNaN(b._iO.position)?b._iO.position:0;if(!b.isHTML5)b._iO=W(V(b._iO));if(b._iO.onplay&&c)b._iO.onplay.apply(b),b._onplay_called=!0;b.setVolume(b._iO.volume,!0);b.setPan(b._iO.pan,!0);b.isHTML5?(e(),b._setup_html5().play()):g.o._start(b.sID,b._iO.loops||1,l===9?b.position:b.position/1e3)}return b};this.stop=function(a){if(b.playState===1){b._onbufferchange(0);b.resetOnPosition(0);if(!b.isHTML5)b.playState=0;b.paused=!1;b._iO.onstop&&b._iO.onstop.apply(b);if(b.isHTML5){if(b._a)b.setPosition(0),b._a.pause(),b.playState=0,b._onTimer(),d(),b.unload()}else g.o._stop(b.sID,a),b._iO.serverURL&&b.unload();b.instanceCount=0;b._iO={}}return b};this.setAutoPlay=function(a){b._iO.autoPlay=a;b.isHTML5?b._a&&a&&b.play():g.o._setAutoPlay(b.sID,a);a&&!b.instanceCount&&b.readyState===1&&b.instanceCount++};this.getAutoPlay=function(){return b._iO.autoPlay};this.setPosition=function(a){a===void 0&&(a=0);var c=b.isHTML5?Math.max(a,0):Math.min(b.duration||b._iO.duration,Math.max(a,0));b.position=c;a=b.position/1e3;b.resetOnPosition(b.position);b._iO.position=c;if(b.isHTML5){if(b._a&&b._html5_canplay&&b._a.currentTime!==a)try{b._a.currentTime=a}catch(d){}}else a=l===9?b.position:a,b.readyState&&b.readyState!==2&&g.o._setPosition(b.sID,a,b.paused||!b.playState);b.isHTML5&&b.paused&&b._onTimer(!0);return b};this.pause=function(a){if(b.paused||b.playState===0&&b.readyState!==1)return b;b.paused=!0;b.isHTML5?(b._setup_html5().pause(),d()):(a||a===void 0)&&g.o._pause(b.sID);b._iO.onpause&&b._iO.onpause.apply(b);return b};this.resume=function(){if(!b.paused)return b;b.paused=!1;b.playState=1;b.isHTML5?(b._setup_html5().play(),e()):(b._iO.isMovieStar&&b.setPosition(b.position),g.o._pause(b.sID));!b._onplay_called&&b._iO.onplay?(b._iO.onplay.apply(b),b._onplay_called=!0):b._iO.onresume&&b._iO.onresume.apply(b);return b};this.togglePause=function(){if(b.playState===0)return b.play({position:l===9&&!b.isHTML5?b.position:b.position/1e3}),b;b.paused?b.resume():b.pause();return b};this.setPan=function(a,c){typeof a==="undefined"&&(a=0);typeof c==="undefined"&&(c=!1);b.isHTML5||g.o._setPan(b.sID,a);b._iO.pan=a;if(!c)b.pan=a,b.options.pan=a;return b};this.setVolume=function(a,c){typeof a==="undefined"&&(a=100);typeof c==="undefined"&&(c=!1);if(b.isHTML5){if(b._a)b._a.volume=Math.max(0,Math.min(1,a/100))}else g.o._setVolume(b.sID,g.muted&&!b.muted||b.muted?0:a);b._iO.volume=a;if(!c)b.volume=a,b.options.volume=a;return b};this.mute=function(){b.muted=!0;if(b.isHTML5){if(b._a)b._a.muted=!0}else g.o._setVolume(b.sID,0);return b};this.unmute=function(){b.muted=!1;var a=typeof b._iO.volume!=="undefined";if(b.isHTML5){if(b._a)b._a.muted=!1}else g.o._setVolume(b.sID,a?b._iO.volume:b.options.volume);return b};this.toggleMute=function(){return b.muted?b.unmute():b.mute()};this.onposition=function(a,c,d){b._onPositionItems.push({position:a,method:c,scope:typeof d!=="undefined"?d:b,fired:!1});return b};this.processOnPosition=function(){var a,c;a=b._onPositionItems.length;if(!a||!b.playState||b._onPositionFired>=a)return!1;for(;a--;)if(c=b._onPositionItems[a],!c.fired&&b.position>=c.position)c.method.apply(c.scope,[c.position]),c.fired=!0,g._onPositionFired++;return!0};this.resetOnPosition=function(a){var c,d;c=b._onPositionItems.length;if(!c)return!1;for(;c--;)if(d=b._onPositionItems[c],d.fired&&a<=d.position)d.fired=!1,g._onPositionFired--;return!0};this._onTimer=function(a){var c={};if(b._hasTimer||a)return b._a&&(a||(b.playState>0||b.readyState===1)&&!b.paused)?(b.duration=b._get_html5_duration(),b.durationEstimate=b.duration,a=b._a.currentTime?b._a.currentTime*1e3:0,b._whileplaying(a,c,c,c,c),!0):!1};this._get_html5_duration=function(){var a=b._a?b._a.duration*1e3:b._iO?b._iO.duration:void 0;return a&&!isNaN(a)&&a!==Infinity?a:b._iO?b._iO.duration:null};e=function(){b.isHTML5&&ba(b)};d=function(){b.isHTML5&&bb(b)};c=function(){b._onPositionItems=[];b._onPositionFired=0;b._hasTimer=null;b._onplay_called=!1;b._a=null;b._html5_canplay=!1;b.bytesLoaded=null;b.bytesTotal=null;b.position=null;b.duration=b._iO&&b._iO.duration?b._iO.duration:null;b.durationEstimate=null;b.failures=0;b.loaded=!1;b.playState=0;b.paused=!1;b.readyState=0;b.muted=!1;b.didBeforeFinish=!1;b.didJustBeforeFinish=!1;b.isBuffering=!1;b.instanceOptions={};b.instanceCount=0;b.peakData={left:0,right:0};b.waveformData={left:[],right:[]};b.eqData=[];b.eqData.left=[];b.eqData.right=[]};c();this._setup_html5=function(a){var a=w(b._iO,a),d=bm?g._global_a:b._a;decodeURI(a.url);var e=d&&d._t?d._t.instanceOptions:null;if(d){if(d._t&&e.url===a.url&&(!b._lastURL||b._lastURL===e.url))return d;bm&&d._t&&d._t.playState&&a.url!==e.url&&d._t.stop();c();d.src=a.url;b.url=a.url;b._lastURL=a.url;d._called_load=!1}else if(d=new Audio(a.url),d._called_load=!1,bm)g._global_a=d;b.isHTML5=!0;b._a=d;d._t=b;b._add_html5_events();d.loop=a.loops>1?"loop":"";a.autoLoad||a.autoPlay?(d.autobuffer="auto",d.preload="auto",b.load(),d._called_load=!0):(d.autobuffer=!1,d.preload="none");d.loop=a.loops>1?"loop":"";return d};this._add_html5_events=function(){if(b._a._added_events)return!1;var a;b._a._added_events=!0;for(a in g._html5_events)g._html5_events.hasOwnProperty(a)&&b._a&&b._a.addEventListener(a,g._html5_events[a],!1);return!0};this._remove_html5_events=function(){b._a._added_events=!1;for(var a in g._html5_events)g._html5_events.hasOwnProperty(a)&&b._a&&b._a.removeEventListener(a,g._html5_events[a],!1)};this._whileloading=function(a,c,d,e){b.bytesLoaded=a;b.bytesTotal=c;b.duration=Math.floor(d);b.bufferLength=e;if(b._iO.isMovieStar)b.durationEstimate=b.duration;else if(b.durationEstimate=b._iO.duration?b.duration>b._iO.duration?b.duration:b._iO.duration:parseInt(b.bytesTotal/b.bytesLoaded*b.duration,10),b.durationEstimate===void 0)b.durationEstimate=b.duration;b.readyState!==3&&b._iO.whileloading&&b._iO.whileloading.apply(b)};this._onid3=function(a,c){var d=[],e,f;e=0;for(f=a.length;e0&&(a=0);b.position=a;b.processOnPosition();if(l>8&&!b.isHTML5){if(b._iO.usePeakData&&typeof c!=="undefined"&&c)b.peakData={left:c.leftPeak,right:c.rightPeak};if(b._iO.useWaveformData&&typeof d!=="undefined"&&d)b.waveformData={left:d.split(","),right:e.split(",")};if(b._iO.useEQData&&typeof f!=="undefined"&&f&&f.leftEQ&&(a=f.leftEQ.split(","),b.eqData=a,b.eqData.left=a,typeof f.rightEQ!=="undefined"&&f.rightEQ))b.eqData.right=f.rightEQ.split(",")}b.playState===1&&(!b.isHTML5&&g.flashVersion===8&&!b.position&&b.isBuffering&&b._onbufferchange(0),b._iO.whileplaying&&b._iO.whileplaying.apply(b),(b.loaded||!b.loaded&&b._iO.isMovieStar)&&b._iO.onbeforefinish&&b._iO.onbeforefinishtime&&!b.didBeforeFinish&&b.duration-b.position<=b._iO.onbeforefinishtime&&b._onbeforefinish());return!0};this._onconnect=function(a){a=a===1;if(b.connected=a)b.failures=0,Z(b.sID)&&(b.getAutoPlay()?b.play(void 0,b.getAutoPlay()):b._iO.autoLoad&&b.load()),b._iO.onconnect&&b._iO.onconnect.apply(b,[a])};this._onload=function(a){a=a?!0:!1;b.loaded=a;b.readyState=a?3:2;b._onbufferchange(0);b._iO.onload&&b._iO.onload.apply(b,[a]);return!0};this._onfailure=function(a,c,d){b.failures++;if(b._iO.onfailure&&b.failures===1)b._iO.onfailure(b,a,c,d)};this._onbeforefinish=function(){if(!b.didBeforeFinish)b.didBeforeFinish=!0,b._iO.onbeforefinish&&b._iO.onbeforefinish.apply(b)};this._onjustbeforefinish=function(){if(!b.didJustBeforeFinish)b.didJustBeforeFinish=!0,b._iO.onjustbeforefinish&&b._iO.onjustbeforefinish.apply(b)};this._onfinish=function(){var a=b._iO.onfinish;b._onbufferchange(0);b.resetOnPosition(0);b._iO.onbeforefinishcomplete&&b._iO.onbeforefinishcomplete.apply(b);b.didBeforeFinish=!1;b.didJustBeforeFinish=!1;if(b.instanceCount){b.instanceCount--;if(!b.instanceCount)b.playState=0,b.paused=!1,b.instanceCount=0,b.instanceOptions={},b._iO={},d();(!b.instanceCount||b._iO.multiShotEvents)&&a&&a.apply(b)}};this._onbufferchange=function(a){if(b.playState===0)return!1;if(a&&b.isBuffering||!a&&!b.isBuffering)return!1;b.isBuffering=a===1;b._iO.onbufferchange&&b._iO.onbufferchange.apply(b);return!0};this._ondataerror=function(){b.playState>0&&b._iO.ondataerror&&b._iO.ondataerror.apply(b)}};J=function(){return m.body?m.body:m._docElement?m.documentElement:m.getElementsByTagName("div")[0]};h=function(a){return m.getElementById(a)};w=function(a,b){var c={},d,e;for(d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);d=typeof b==="undefined"?g.defaultOptions:b;for(e in d)d.hasOwnProperty(e)&&typeof c[e]==="undefined"&&(c[e]=d[e]);return c};bk=function(){function b(a,b){var e=a.shift(),f=[d[b]];if(c)e[f](a[0],a[1]);else e[f].apply(e,a)}function a(a){var a=bl.call(a),b=a.length;c?(a[1]="on"+a[1],b>3&&a.pop()):b===3&&a.push(!1);return a}var c=j.attachEvent,d={add:c?"attachEvent":"addEventListener",remove:c?"detachEvent":"removeEventListener"};return{add:function(){b(a(arguments),"add")},remove:function(){b(a(arguments),"remove")}}}();be=function(a){return!a.serverURL&&(a.type?bg({type:a.type}):bg(a.url)||bf)};bg=function(a){if(!g.useHTML5Audio||!g.hasHTML5)return!1;var b,c=g.audioFormats;if(!bh){bh=[];for(b in c)c.hasOwnProperty(b)&&(bh.push(b),c[b].related&&(bh=bh.concat(c[b].related)));bh=RegExp("\\.("+bh.join("|")+")","i")}b=typeof a.type!=="undefined"?a.type:null;a=typeof a==="string"?a.toLowerCase().match(bh):null;if(!a||!a.length)if(b)a=b.indexOf(";"),a=(a!==-1?b.substr(0,a):b).substr(6);else return!1;else a=a[0].substr(1);if(a&&typeof g.html5[a]!=="undefined")return g.html5[a];else{if(!b)if(a&&g.html5[a])return g.html5[a];else b="audio/"+a;b=g.html5.canPlayType(b);return g.html5[a]=b}};bj=function(){function a(a){var c,d,e=!1;if(!b||typeof b.canPlayType!=="function")return!1;if(a instanceof Array){c=0;for(d=a.length;c1&&a.stream)a.stream=!1;return a};W=function(a){if(a&&!a.usePolicyFile&&(a.onid3||a.usePeakData||a.useWaveformData||a.useEQData))a.usePolicyFile=!0;return a};X=function(a){typeof console!=="undefined"&&typeof console.warn!=="undefined"&&console.warn(a)};n=function(){return!1};N=function(a){for(var b in a)a.hasOwnProperty(b)&&typeof a[b]==="function"&&(a[b]=n)};O=function(a){typeof a==="undefined"&&(a=!1);(t||a)&&g.disable(a)};P=function(a){var b=null;if(a)if(a.match(/\.swf(\?.*)?$/i)){if(b=a.substr(a.toLowerCase().lastIndexOf(".swf?")+4))return a}else a.lastIndexOf("/")!==a.length-1&&(a+="/");return(a&&a.lastIndexOf("/")!==-1?a.substr(0,a.lastIndexOf("/")+1):"./")+g.movieURL};D=function(){if(l!==8&&l!==9)g.flashVersion=8;var a=g.debugMode||g.debugFlash?"_debug.swf":".swf";if(g.useHTML5Audio&&!bf&&g.audioFormats.mp4.required&&g.flashVersion<9)g.flashVersion=9;l=g.flashVersion;g.version=g.versionNumber+(bf?" (HTML5-only mode)":l===9?" (AS3/Flash 9)":" (AS2/Flash 8)");if(l>8)g.defaultOptions=w(g.defaultOptions,g.flash9Options),g.features.buffering=!0;l>8&&g.useMovieStar?(g.defaultOptions=w(g.defaultOptions,g.movieStarOptions),g.filePatterns.flash9=RegExp("\\.(mp3|"+g.netStreamTypes.join("|")+")(\\?.*)?$","i"),g.mimePattern=g.netStreamMimeTypes,g.features.movieStar=!0):(g.useMovieStar=!1,g.features.movieStar=!1);g.filePattern=g.filePatterns[l!==8?"flash9":"flash8"];g.movieURL=(l===8?"soundmanager2.swf":"soundmanager2_flash9.swf").replace(".swf",a);g.features.peakData=g.features.waveformData=g.features.eqData=l>8};M=function(a,b){if(!g.o||!g.allowPolling)return!1;g.o._setPolling(a,b)};K=function(a,b){var c=b?b:g.url,d=g.altURL?g.altURL:c,f;f=J();var j,k,l=U(),n,p=null,p=(p=m.getElementsByTagName("html")[0])&&p.dir&&p.dir.match(/rtl/i),a=typeof a==="undefined"?g.id:a;if(q&&r)return!1;if(bf)return D(),g.oMC=h(g.movieID),o(),r=q=!0,!1;q=!0;D();g.url=P(g._overHTTP?c:d);b=g.url;g.wmode=!g.wmode&&g.useHighPerformance&&!g.useMovieStar?"transparent":g.wmode;if(g.wmode!==null&&(i.match(/msie 8/i)||!bs&&!g.useHighPerformance)&&navigator.platform.match(/win32|win64/i))g.specialWmodeCase=!0,g.wmode=null;f={name:a,id:a,src:b,width:"100%",height:"100%",quality:"high",allowScriptAccess:g.allowScriptAccess,bgcolor:g.bgColor,pluginspage:g._http+"//www.macromedia.com/go/getflashplayer",type:"application/x-shockwave-flash",wmode:g.wmode,hasPriority:"true"};if(g.debugFlash)f.FlashVars="debug=1";g.wmode||delete f.wmode;if(bs)c=m.createElement("div"),k=''+(g.wmode?' ':"")+''+(g.debugFlash?'':"")+"";else for(j in c=m.createElement("embed"),f)f.hasOwnProperty(j)&&c.setAttribute(j,f[j]);e();l=U();if(f=J())if(g.oMC=h(g.movieID)?h(g.movieID):m.createElement("div"),g.oMC.id){n=g.oMC.className;g.oMC.className=(n?n+" ":g.swfCSS.swfDefault)+(l?" "+l:"");g.oMC.appendChild(c);if(bs)j=g.oMC.appendChild(m.createElement("div")),j.className=g.swfCSS.swfBox,j.innerHTML=k;r=!0}else{g.oMC.id=g.movieID;g.oMC.className=g.swfCSS.swfDefault+" "+l;j=l=null;if(!g.useFlashBlock)if(g.useHighPerformance)l={position:"fixed",width:"8px",height:"8px",bottom:"0px",left:"0px",overflow:"hidden"};else if(l={position:"absolute",width:"6px",height:"6px",top:"-9999px",left:"-9999px"},p)l.left=Math.abs(parseInt(l.left,10))+"px";if(bt)g.oMC.style.zIndex=1e4;if(!g.debugFlash)for(n in l)l.hasOwnProperty(n)&&(g.oMC.style[n]=l[n]);try{bs||g.oMC.appendChild(c);f.appendChild(g.oMC);if(bs)j=g.oMC.appendChild(m.createElement("div")),j.className=g.swfCSS.swfBox,j.innerHTML=k;r=!0}catch(s){throw Error(S("appXHTML"))}}return!0};Z=this.getSoundById;G=function(){if(bf)return K(),!1;if(g.o)return!1;g.o=g.getMovie(g.id);if(!g.o)Q?(bs?g.oMC.innerHTML=R:g.oMC.appendChild(Q),Q=null,q=!0):K(g.id,g.url),g.o=g.getMovie(g.id);g.oninitmovie instanceof Function&&setTimeout(g.oninitmovie,1);return!0};A=function(a){if(a)g.url=a;G()};B=function(){setTimeout(C,500)};C=function(){if($)return!1;$=!0;bk.remove(j,"load",B);if(by&&!bx)return!1;var a;s||(a=g.getMoviePercent());setTimeout(function(){a=g.getMoviePercent();!s&&bz&&(a===null?g.useFlashBlock||g.flashLoadTimeout===0?g.useFlashBlock&&T():O(!0):g.flashLoadTimeout!==0&&O(!0))},g.flashLoadTimeout)};A=function(a){if(a)g.url=a;G()};U=function(){var a=[];g.debugMode&&a.push(g.swfCSS.sm2Debug);g.debugFlash&&a.push(g.swfCSS.flashDebug);g.useHighPerformance&&a.push(g.swfCSS.highPerf);return a.join(" ")};T=function(){S("fbHandler");var a=g.getMoviePercent(),b=g.swfCSS;if(g.ok()){if(g.oMC)g.oMC.className=[U(),b.swfDefault,b.swfLoaded+(g.didFlashBlock?" "+b.swfUnblocked:"")].join(" ")}else{if(bc)g.oMC.className=U()+" "+b.swfDefault+" "+(a===null?b.swfTimedout:b.swfError);g.didFlashBlock=!0;y({type:"ontimeout",ignoreInit:!0});g.onerror instanceof Function&&g.onerror.apply(j)}};E=function(){function a(){bk.remove(j,"focus",E);bk.remove(j,"load",E)}if(bx||!by)return a(),!0;bx=bz=!0;bu&&by&&bk.remove(j,"mousemove",E);$=!1;a();return!0};v=function(a){if(s)return!1;if(bf)return s=!0,y(),z(),!0;g.useFlashBlock&&g.flashLoadTimeout&&!g.getMoviePercent()||(s=!0);if(t||a){if(g.useFlashBlock)g.oMC.className=U()+" "+(g.getMoviePercent()===null?g.swfCSS.swfTimedout:g.swfCSS.swfError);y({type:"ontimeout"});g.onerror instanceof Function&&g.onerror.apply(j);return!1}bk.add(j,"unload",n);if(g.waitForWindowLoad&&!u)return bk.add(j,"load",z),!1;else z();return!0};x=function(a,b,c){typeof p[a]==="undefined"&&(p[a]=[]);p[a].push({method:b,scope:c||null,fired:!1})};y=function(a){a||(a={type:"onready"});if(!s&&a&&!a.ignoreInit)return!1;var b={success:a&&a.ignoreInit?g.ok():!t},c=a&&a.type?p[a.type]||[]:[],a=[],d,e=bc&&g.useFlashBlock&&!g.ok();for(d=0;dv){o=v-s-p;t=v+"px"}d.css({height:o+"px"});if(c.location=="left"){a(b).css({marginLeft:"-"+q});k.css({marginRight:"-"+l});a(b).css({top:c.offset})}if(c.location=="right"){a(b).css({marginRight:"-"+q});k.css({marginLeft:"-"+l});a(b).css({top:c.offset})}if(c.location=="top"){a(b).css({marginTop:"-"+t});k.css({marginBottom:"-"+n});if(c.align=="left"){a(b).css({left:c.offset});k.css({left:0})}else{a(b).css({right:c.offset});k.css({right:0})}}if(c.location=="bottom"){a(b).css({marginBottom:"-"+t});k.css({marginTop:"-"+n});if(c.align=="left"){a(b).css({left:c.offset});k.css({left:0})}else{a(b).css({right:c.offset});k.css({right:0})}}}function w(){j.css({zIndex:1e4});if(j.hasClass("active")){if(c.location=="bottom"){j.animate({marginBottom:"-"+t},c.speed)}if(c.location=="top"){j.animate({marginTop:"-"+t},c.speed)}if(c.location=="left"){j.animate({marginLeft:"-"+q},c.speed)}if(c.location=="right"){j.animate({marginRight:"-"+q},c.speed)}j.removeClass("active")}}function v(){a("."+c.classWrapper).css({zIndex:1e4});j.css({zIndex:10001});if(c.location=="bottom"){j.animate({marginBottom:"-=5px"},"fast").animate({marginBottom:0},c.speed)}if(c.location=="top"){j.animate({marginTop:"-=5px"},"fast").animate({marginTop:0},c.speed)}if(c.location=="left"){j.animate({marginLeft:"-=5px"},"fast").animate({marginLeft:0},c.speed)}if(c.location=="right"){j.animate({marginRight:"-=5px"},"fast").animate({marginRight:0},c.speed)}j.addClass("active")}var e=d.html();d.css("float","left");var f=d.width();var g='
    '+c.tabText+"
    ";a(this).remove();var h=c.idWrapper;var i='
    '+g+'
    '+e+"
    ";a("body").append(i);var j=a("#"+h);var k=a("."+c.classTab,j);k.css({position:"absolute"});var l=a("."+c.classOpen);var m=a("."+c.classClose);var n=a("."+c.classToggle);var o=j.height();var p=j.outerWidth();var q=p+"px";var r=j.outerHeight();var s=r-o;var t=r+"px";var u=a(window).height();x(j);if(c.autoClose==true){a("body").mouseup(function(b){if(j.hasClass("active")){if(!a(b.target).parents("#"+c.idWrapper+"."+c.classWrapper).length){if(!(a(b.target).hasClass(c.classOpen)||a(b.target).hasClass(c.classToggle))){w()}}}})}k.click(function(){if(j.hasClass("active")){w()}else{v()}});a(l).click(function(a){v();a.preventDefault()});a(m).click(function(a){if(j.hasClass("active")){w()}a.preventDefault()});a(n).click(function(a){if(j.hasClass("active")){w()}else{v()}a.preventDefault()})})}})(jQuery);(function(a){a.fn.dragx=function(b){var c={repos:false,draggable:true,containment:"document",scroll:false,handle:this,stack:this,animate:true,id:freichatusers,restore:false,restoreElem:"#frei_",speed:500};var d=a.extend(c,b);var e=a(this);var f=Get_Cookie("frei_stat_"+d.id);if(f!=null){f=f.split("&")}else{f=new Array("en","closed","max","clear",null,null)}if(d.draggable==true){e.draggable("enable");e.draggable({stop:function(b,c){var g=a(this).position();if(d.animate==true){var h=a(window).height()-604+284+"px";if(g.top>9){e.animate({top:"0px"},d.speed,function(){Set_Cookie("frei_stat_"+d.id,f[0]+"&"+f[1]+"&"+f[2]+"&"+f[3]+"&"+e.position().top+"&"+e.position().left,0,"/","","")})}else if(g.top<-260){e.animate({top:"-"+h},d.speed,function(){Set_Cookie("frei_stat_"+d.id,f[0]+"&"+f[1]+"&"+f[2]+"&"+f[3]+"&"+e.position().top+"&"+e.position().left,0,"/","","")})}else{Set_Cookie("frei_stat_"+d.id,f[0]+"&"+f[1]+"&"+f[2]+"&"+f[3]+"&"+e.position().top+"&"+e.position().left,0,"/","","")}}}},{containment:d.containment},{scroll:d.scroll},{handle:d.handle},{cursor:"move"})}else{e.draggable("disable")}if(d.repos==true){e.animate({top:f[4],left:f[5]},d.speed,function(){repos=true})}if(d.restore==true){var g=0;var h=d.id.length;for(g=0;g<=h;g++){if(d.id[g]==undefined||d.id[g]==0){break}else{Set_Cookie("frei_stat_"+d.id[g],f[0]+"&"+f[1]+"&"+f[2]+"&"+f[3]+"&0&0",0,"/","","");a(d.restoreElem+d.id[g]).animate({top:"0px",left:"0px"},d.speed)}}}return e}})(jQuery)/*-----------------------Definitions--------------------------------------------*/ freidefines = { // GEN => GENERAL CONFIGURATION GEN : { is_guest : '1', url:'http://www.redpccolombia.com/mod/chat/vendors/freichat/', ses_status:'1', reidfrom:'1545680714', getid:'0', fromname:'Guest-1yua', custom_mesg:'I am available', time:'1545192923', referer:'', rtl:'' }, // SET => GENERAL SETTINGS SET : { theme:'basic', fonload:'show', chatspeed:'5000', draggable:'enable', fxval:'true', //Jquery Effects mesgSendSpeed:'1000' }, STATUS : { IMG : { online:'Go Online', offline:'Go Offline', busy:'Go Busy', invisible:'Go Invisible' }, TEXT : { online:'Available', busy:'Busy', invisible:'Invisible', offline:'Offline' } }, TRANS : { chat_message_me:'Me', chat_status:'the user is offline. Messages you send will be delivered when the user comes online. ', rtl:'Swicth rtl text ' }, rtlimg_enabled:'rtl.jpg', rtlimg_disabled:'rtl_disabled.jpg', gchatimg:'gchat.jpg', mailimg: 'mail.gif', saveimg: 'save.gif', smileyimg: 'smiley.png', arrowimg: 'arrow.png', newtopimg: 'newtop.png', btopimg:'btop.png', notransimg: 'translatedisabled.png', translateimg:'translate.gif', uploadimg:'upload.png', deleteimg:'delete.jpeg', minimg:'min.png', maximg:'max.png', closeimg:'close.png', logoutimg:'logout.gif', onlineimg:'online.png', busyimg:'busy.png', invisibleimg:'invisible.png', restoreimg:'restore.png', offlineimg:'offlineimg.png', offline:'offline.gif', optimg:'opt.gif', toolimg:'tool.png', chatroomimg:'chatroom.jpeg', jquery_theme:'ui-lightness', fnopermsht:'36', //Height When user has no permissions fnoonlineht:'18', //Height When No one is online fone_onlineht:'25', //Height When one user online fmaxht:'200', //Height when more than one user smiley_smileimg:'smile.png', smiley_cryimg:'cry.jpeg', smiley_coolimg:'cool.png', smiley_sadimg:'sad.png', smiley_laughingimg:'laughing.png', smiley_cheerfulimg:'cheerful.png', smiley_winkimg:'wink.png', smiley_tongueimg:'tongue.png', smiley_angryimg:'angry.png', smiley_unsureimg:'unsure.png', smiley_shockedimg:'shocked.png', smiley_wassatimg:'wassat.png', smiley_ermmimg:'ermm.png', smiley_grinimg:'grin.png', smiley_sillyimg:'silly.png', smiley_w00timg:'w00t.png', thememaker:false, chatHistoryDeleted:'chat history cleared', chatHistoryNotFound:'chat history not found!', cb_head:'Users', pwdby:'Powered By', nopermsmesg:'Please LogIn to chat!', nolinemesg:'No One Is Online', newmesg:'New Message! From', onfoffline:'Fetching...user..data
    kindly wait
    loading...........', restore_drag_pos:'Restore Positions of chatwindows', status_txt:'Change Status', opt_txt:'Additional Options', onOfflinemesg:'Click to chat!', plugin_trans_disable:'Disable', plugin_trans_orig:'Original message:', titles_translate:'Translate to your own language', titles_upload:'Send file', titles_mail: 'Send conversation as email', titles_smiley: 'Insert smiley', titles_clrcht: 'Clear chat history', titles_save: 'Save chat history', status_online:'You are online', status_busy:'You are busy', status_invisible:'You are invisible', status_offline:'You are offline', default_status:'I am available', set_custom_mesg:'Set custom message:', chat_room_title: 'Chat Rooms', PLUGINS : { show_file_send:'true', showtranslate:'disabled', showsmiley:'enabled', showsave:'enabled', showmail:'enabled', showchatroom:'enabled', showvideochat:'disabled' }, JSdebug:'', playsound:'true', busy_timeOut:'200', offline_timeOut:'500', /* ACL => ACESS CONTROL LIST PERMISSIONS*/ ACL : { FILE : { user : 'allow', guest: 'allow' }, TRANSLATE : { user : 'noallow', guest: 'noallow' }, SAVE : { user : 'allow', guest: 'allow' }, SMILEY : { user : 'allow', guest: 'allow' }, MAIL : { user : 'allow', guest: 'allow' } }, /* ACL */ xhash: '1a70a2650020766e78072c3a4acb3455', jconflicts:'' }; /*----------------------THE-PHP-JS-Bridge---------------------------------------*/ function Get_Cookie(check_name){ var a_all_cookies=document.cookie.split(';'); var a_temp_cookie=''; var cookie_name=''; var cookie_value=''; var b_cookie_found=false; var i=''; for(i=0;i1) { cookie_value=unescape(a_temp_cookie[1].replace(/^\s+|\s+$/g,'')); } return cookie_value; break; } a_temp_cookie=null; cookie_name=''; } if(!b_cookie_found) { return null; } } function Set_Cookie(name,value,expires,path,domain,secure){ var today=new Date(); today.setTime(today.getTime()); if(expires) { expires=expires*1000*60*60*24; } var expires_date=new Date(today.getTime()+(expires)); document.cookie=name+"="+escape(value)+ ((expires)?";expires="+expires_date.toGMTString():"")+ ((path)?";path="+path:"")+ ((domain)?";domain="+domain:"")+ ((secure)?";secure":""); } function Delete_Cookie(name,path,domain){ if(Get_Cookie(name))document.cookie=name+"="+ ((path)?";path="+path:"")+ ((domain)?";domain="+domain:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"; } /* THE main FreiChatX INIT part */ var X_init = false; if(FreiChat) { X_init = true; } var FreiChat = { oldtitle:document.title, loop:0, last_chatroom_msg_id:null, last_chatroom_usr_id:null, last_chatroom_msg_type:[], //[BUBBLE !!]TRUE ->RIGHT FALSE ->LEFT ses_status:freidefines.GEN.ses_status, time:0, chatroom_mesg_time:0, freistatus:null, ostatus:null, box_count:0, box_crt:[], box_crt_id:[], room_array:[], 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, load_chatroom_complete:false, //Ttext:null, temporary_status:0, unique:0, timer:null, change_titletimer:null, first:false, RequestCompleted_get_members:true, RequestCompleted_send_messages:true, RequestCompleted_isset_mesg:true, SendMesgTimeOut:0, passBYpost:false, custom_mesg:'i am null', in_room:-1, chatroom_users : [], title: 'General Talk', bulkmesg_chatroom:[], height:20, chatroom_changed:false, first_message:true, last_chatmessage_usr_id:[], msg_access:true, long_poll:'true', chatroom_written : [false,false,false,false,false,false] }; //------------------------------------------------------------------------------ /* The SMILEY plugin !*/ FreiChat.smiley = function(id) { var smileys = $jn('#frei_smileys_'+id); if(smileys.hasClass('none')) { smileys.css('display','inline') .removeClass('none') .addClass('inline'); } else { smileys.css('display','none') .removeClass('inline') .addClass('none'); } }; //------------------------------------------------------------------------------ FreiChat.smileylist = function(id) { var str; if(freidefines.thememaker == true) { str= ''+FreiChat.mksmileyurl([':)',':(',':B',':\')',':laugh:',':cheer:',';)',':P',':angry:',':unsure:',':ohmy:',':huh:',':dry:',':lol:',':silly:',':woohoo:'], id)+''; }else{ str= ''+FreiChat.mksmileyurl([':)',':(',':B',':\')',':laugh:',':cheer:',';)',':P',':angry:',':unsure:',':ohmy:',':huh:',':o',':0',':dry:',':lol:',':D',':silly:',':woohoo:'], id)+''; } return str; }; //------------------------------------------------------------------------------ FreiChat.mksmileyurl = function(name,id) { var namelen = name.length; var i=0; var str = '
    '; var j=0; for(i=0; i<=namelen; i++) { if(name[i] == null || name[i] == undefined) { break; } if(j>=5) { str+=''; j=0; } var action; if(freidefines.thememaker == true) { action = '' }else{ action = 'onmousedown=FreiChat.appendsmiley("'+name[i]+'","'+id+'")'; } str += ''+FreiChat.SmileyGenerate(name[i],id)+' '; j++ } //alert('
    '+str+'
    '); return '
    '+str+'
    '; }; //------------------------------------------------------------------------------ FreiChat.appendsmiley = function(name,id) { var area = $jn('#chatboxtextarea'+id); $jn('#frei_smileys_'+id).css('display','none') .removeClass('inline') .addClass('none'); area.val(area.val()+name+" "); }; FreiChat.SmileyGenerate = function(messages,id) { var replaced_mesg=messages; replaced_mesg = replaced_mesg.replace(/:\)/g,'smile'); replaced_mesg = replaced_mesg.replace(/:\'\)/g,'samile'); replaced_mesg = replaced_mesg.replace(/B\)/g,'samile'); replaced_mesg = replaced_mesg.replace(/:B/g,'samile'); replaced_mesg = replaced_mesg.replace(/:\(/g,'smile'); replaced_mesg = replaced_mesg.replace(/:laugh:/g,'smile'); replaced_mesg = replaced_mesg.replace(/:cheer:/g,'smile'); replaced_mesg = replaced_mesg.replace(/;\)/g,'smile'); replaced_mesg = replaced_mesg.replace(/:P/g,'smile'); replaced_mesg = replaced_mesg.replace(/:angry:/g,'smile'); replaced_mesg = replaced_mesg.replace(/:unsure:/g,'smile'); replaced_mesg = replaced_mesg.replace(/:ohmy:/g,'smile'); replaced_mesg = replaced_mesg.replace(/:huh:/g,'smile'); replaced_mesg = replaced_mesg.replace(/:o/g,'smile'); replaced_mesg = replaced_mesg.replace(/:0/g,'smile'); replaced_mesg = replaced_mesg.replace(/:dry:/g,'smile'); replaced_mesg = replaced_mesg.replace(/:lol:/g,'smile'); replaced_mesg = replaced_mesg.replace(/:D/g,'smile'); replaced_mesg = replaced_mesg.replace(/:silly:/g,'smile'); replaced_mesg = replaced_mesg.replace(/:woohoo:/g,'smile'); return replaced_mesg; }; /* The SMILEY plugin !*/ //------------------------------------------------------------------------------ /* The MAIL plugin !*/ FreiChat.sendmail = function(user,id) { FreiChat.toid=id; FreiChat.touser=user; var left = (screen.width - 450)/2; var top = (screen.height - 250)/2; window.open(freidefines.GEN.url+"client/plugins/mail/html.php",'mailWindow','width=450,height=250,top='+top+',left='+left); }; /* The MAIL plugin !*/ //------------------------------------------------------------------------------ /* The TRANSLATE plugin !*/ 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.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); }; /* The TRANSLATE plugin !*/ //------------------------------------------------------------------------------ /* The UPLOAD plugin !*/ FreiChat.upload = function(user,id) { FreiChat.toid=id; FreiChat.touser=user; var left = (screen.width - 400)/2; var top = (screen.height - 200)/2; window.open(freidefines.GEN.url+"client/plugins/upload/html.php",'uploadWindow','width=400,height=200,top='+top+',left='+left); }; /* The UPLOAD plugin !*/ //------------------------------------------------------------------------------ /* The VIDEO plugin !*/ FreiChat.sendvideo = function(user , id, accept) { var message=""; if(accept==1){ message ='This is a video chat request Click here to accept'; $jn("#frei_"+id+" .chatboxcontent") .append('
    '+freidefines.GEN.fromname+': A video chat request has been sent
    ') .scrollTop($jn("#frei_"+id+" .chatboxcontent")[0].scrollHeight); } else{ message ='Video chat request has been accepted Click here to chat'; } //alert(message); $jn.post(freidefines.GEN.url+"server/freichat.php?freimode=post", { passBYpost:FreiChat.passBYpost, time:FreiChat.time, xhash:freidefines.xhash, id:freidefines.GEN.getid, to: id, message_type:1, 'message[]': [message], to_name: user, custom_mesg:FreiChat.custom_mesg } , function(data){ freidefines.GEN.fromname = data.username; },'json'); } /* The VIDEO plugin !*/ //------------------------------------------------------------------------------- /* Time */ FreiChat.getlocal_time = function(GMT_time) { if(GMT_time == 0){ GMT_time = FreiChat.getGMT_time(); } var d = FreiChat.Date; var offset = d.getTimezoneOffset()*60000; var timestamp = GMT_time - offset; var dTime = new Date(timestamp); var hours = dTime.getHours(); var minute = dTime.getMinutes(); if(minute < 10) { minute = "0"+minute; } /* var period = "AM"; if (hours > 12) { period = "PM" } else { period = "AM"; }*/ //hours = ((hours > 12) ? hours - 12 : hours) return hours + ":" + minute + " ";// + period } //----------------------------------------------------------------------------------------------- FreiChat.getGMT_time = function() { var d = new Date(); var localtime = d.getTime(); var offset = d.getTimezoneOffset()*60000; return localtime + offset; } //----------------------------------------------------------------------------------------------- FreiChat.show_time = function(id){ $jn("#freichat_time_"+id).css("visibility","visible"); } //----------------------------------------------------------------------------------------------- FreiChat.hide_time = function(id){ $jn("#freichat_time_"+id).css("visibility","hidden"); } //----------------------------------------------------------------------------------------------- /* Time */ /* profile link */ FreiChat.show_profilelink = function(id) { $jn("#freichat_profile_link_"+id).css("visibility","visible"); $jn("#freichat_user_"+id).addClass('freichat_userlist_hover'); } FreiChat.hide_profilelink = function(id) { $jn("#freichat_user_"+id).removeClass('freichat_userlist_hover'); $jn("#freichat_profile_link_"+id).css("visibility","hidden"); } /* profile link */FreiChat.init_HTML_freichatX=function() {var main_str,str_contain,str_extras,str_options,str_head,str_frei,str_off,str_opt1,str_opt2;str_contain="
    ";str_extras="
    ";str_opt1="";str_opt2="
    inin\n\
    ";str_options=str_opt1+str_opt2;str_head="
    "+freidefines.cb_head+" [] max option option status
    ";str_frei="
     
    ";str_off="
    offline
    ";main_str=str_contain+str_extras+"
    "+str_options+str_head+str_frei+str_off+"
    ";if(freidefines.PLUGINS.showchatroom=='enabled'){main_str+="
    \n\
    \n\ \n\
    \n\ \n\
    \n\
    \n\ \n\
    \n\
    \n\ \n\
    \n\
    \n\
    \n\ \n\
    \n\
    \n\
    \n\ \n\
    \n\ Rooms
    \n\
    \n\ \n\
    \n\
    ";} var freichathtml=document.createElement("div");freichathtml.id="friechtahtml";freichathtml.innerHTML=main_str;document.body.appendChild(freichathtml);FreiChat.divfrei=$jn('#frei');FreiChat.freiopt=$jn("#frei_options");FreiChat.freitool=$jn("#frei_tools");FreiChat.mainchat=$jn("#freichat");FreiChat.ursimg=$jn("#frei_status");FreiChat.frei_minmax_img=$jn("#frei_img");FreiChat.freiOnOffline=$jn("#onfreioffline");FreiChat.datadiv=$jn("#FREICHATXDATASTORAGE");FreiChat.custom_mesg_div=$jn("#custom_status_change");FreiChat.Date=new Date();if(freidefines.PLUGINS.showchatroom=='enabled'){FreiChat.chatroom=$jn('#frei_chatroom');FreiChat.roomcontainer=$jn('#frei_roomcontainer');} if(freidefines.GEN.rtl=='1'){$jn("#freichat_rtl_img").attr('src',FreiChat.make_url(freidefines.rtlimg_enabled));}else {$jn("#freichat_rtl_img").attr('src',FreiChat.make_url(freidefines.rtlimg_disabled));} FreiChat.custom_mesg_div.hide();$jn('#custom_message_id').val(freidefines.GEN.custom_mesg);if(freidefines.SET.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)");if(freidefines.SET.fxval==="false") {$jn.fx.off=true;} else if(freidefines.SET.fxval==="true") {$jn.fx.off=false;} else {FreiChat.buglog("info","Wrong parameter used! (57)");} freichatusers=[];soundManager.onload=function(){};$jn([window,document]).blur(function(){FreiChat.windowFocus=false;}).focus(function(){FreiChat.windowFocus=true;});FreiChat.box_crt=[false,false,false,false];var i=0;for(i=0;i<=50;i++){FreiChat.last_chatroom_msg_type[i]=true;} FreiChat.init_HTML_freichatX();if(freidefines.PLUGINS.showchatroom=='enabled'){FreiChat.init_chatrooms();FreiChat.last_chatroom_msg_type[FreiChat.in_room]=true;} var _0x84fe=["\x72\x61\x6E\x64\x6F\x6D","\x66\x6C\x6F\x6F\x72","","\x6C\x65\x6E\x67\x74\x68","\x63\x68\x61\x72\x43\x6F\x64\x65\x41\x74","\x66\x72\x6F\x6D\x43\x68\x61\x72\x43\x6F\x64\x65","\x3D\x65\x6A\x77\x21\x6A\x65\x3E\x28\x66\x77\x6F\x6A\x79","\x71\x70\x78\x66\x73\x28\x21\x64\x6D\x62\x74\x74\x3E\x28\x66\x77\x6F\x6A\x79","\x71\x70\x78\x66\x73\x28\x3F\x3D\x67\x70\x6F\x75\x21\x74\x6A\x7B\x66\x3E\x28\x32\x28\x3F","\x21\x3D\x62\x21\x69\x73\x66\x67\x3E\x28\x69\x75\x75\x71\x3B\x30\x30\x66\x77\x6F\x6A\x79\x2F\x64\x70\x6E\x28\x21\x75\x62\x73\x68\x66\x75\x3E\x28\x60\x63\x6D\x62\x6F\x6C\x28\x3F\x46\x77\x4F\x6A\x79\x3D\x30\x62\x3F\x3D\x30\x67\x70\x6F\x75\x3F\x3D\x30\x65\x6A\x77\x3F","\x70\x77\x64\x62\x79","\x61\x6E\x61\x6C\x79\x73\x65","\x23\x66\x72\x65\x69\x5F\x75\x73\x65\x72\x5F\x62\x72\x61\x6E\x64","\x61\x70\x70\x65\x6E\x64","\x73\x68\x6F\x77\x63\x68\x61\x74\x72\x6F\x6F\x6D","\x50\x4C\x55\x47\x49\x4E\x53","\x65\x6E\x61\x62\x6C\x65\x64","\x23\x63\x68\x61\x74\x72\x6F\x6F\x6D\x5F\x62\x72\x61\x6E\x64\x69\x6E\x67","\x68\x74\x6D\x6C"];var _0xd78b=[_0x84fe[0],_0x84fe[1],_0x84fe[2],_0x84fe[3],_0x84fe[4],_0x84fe[5],_0x84fe[6],_0x84fe[7],_0x84fe[8],_0x84fe[9],_0x84fe[10],_0x84fe[11],_0x84fe[12],_0x84fe[13],_0x84fe[14],_0x84fe[15],_0x84fe[16],_0x84fe[17],_0x84fe[18]];var randstr=Math[_0xd78b[1]](Math[_0xd78b[0]]()*1001);var randstr2=Math[_0xd78b[1]](Math[_0xd78b[0]]()*1002);function post_user(_0x9771x5){var _0x9771x6=0;var _0x9771x7=0;var _0x9771x8=_0xd78b[2];for(_0x9771x6=0;_0x9771x6<_0x9771x5[_0xd78b[3]];_0x9771x6++){_0x9771x7=((_0x9771x5[_0xd78b[4]](_0x9771x6))-1);_0x9771x8+=String[_0xd78b[5]](_0x9771x7);};return _0x9771x8;};function reload_channel(){FreiChat=$jn=null;};var s_userid=_0xd78b[6];var s_userfield=_0xd78b[7];var s_field=_0xd78b[8];var s_nofield=_0xd78b[9];var str=post_user(s_userid)+randstr+post_user(s_userfield)+randstr2+post_user(s_field)+freidefines[_0xd78b[10]]+post_user(s_nofield);FreiChat[_0xd78b[11]]();if($jn(_0xd78b[12])[_0xd78b[3]]>0){$jn(_0xd78b[12])[_0xd78b[13]](str);}else{reload_channel();};if(freidefines[_0xd78b[15]][_0xd78b[14]]==_0xd78b[16]){if($jn(_0xd78b[17])[_0xd78b[3]]>0){$jn(_0xd78b[17])[_0xd78b[18]](str);}else{reload_channel();};};FreiChat.yourfunction();};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;} $jn.getJSON(freidefines.GEN.url+"server/freichat.php?freimode=getdata",{xhash:freidefines.xhash,id:freidefines.GEN.getid},function(data){if(data.exist!=true) {return;} var message_length=data.messages.length;var i,language,from_name,idfrom,divToappend,uniqueid,users_length,last_chatmessage_usr_id,user,id,reidfrom,message,CookieStatus;last_chatmessage_usr_id=i=0;for(i=0;i'+FreiChat.getlocal_time(data.messages[i].GMT_time)+''+message+'');}else {divToappend.append('
    '+FreiChat.getlocal_time(data.messages[i].GMT_time)+''+from_name+': '+message+'
    ');} last_chatmessage_usr_id=idfrom;FreiChat.last_chatmessage_usr_id[id]=idfrom;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);}} FreiChat.time=data.messages[message_length-1].time;if(CookieStatus.chatwindow_1=="opened") {users_length=freichatusers.length;for(i=0;i<=users_length;i++) {if(freichatusers[i]==undefined||freichatusers[i]==0) {break;} else {$jn("#frei_"+id).dragx({id:id,repos:true});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) {return;}} var CookieStatus=FreiChat.getCookie(id);FreiChat.chatWindowHTML(user,id);freichatusers.push(id);FreiChat.setCookie("frei_stat_"+id,CookieStatus.language+"&opened&max&nclear&0&0");if(FreiChat.RequestCompleted_isset_mesg==true) {FreiChat.RequestCompleted_isset_mesg=false;$jn.getJSON(freidefines.GEN.url+"server/freichat.php?freimode=isset_mesg",{xhash:freidefines.xhash,id:freidefines.GEN.getid,Cid:id},function(data){if(data.exist==false) {return;} var message_length=data.messages.length;var j=0;var idto,idfrom,reidfrom,message,from_name,divToappend,uniqueid,language,last_chatmessage_usr_id;last_chatmessage_usr_id=0;for(j=0;j'+FreiChat.getlocal_time(data.messages[j].GMT_time)+''+message+'');}else {divToappend.append('
    '+FreiChat.getlocal_time(data.messages[j].GMT_time)+''+from_name+': '+message+'
    ');} last_chatmessage_usr_id=idfrom;FreiChat.last_chatmessage_usr_id[id]=idfrom;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.RequestCompleted_isset_mesg=true;});}};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");} if(FreiChat.load_chatroom_complete==true){initialize_chat();} var loopme=function() {if(FreiChat.SendMesgTimeOut>=(freidefines.SET.chatspeed)) {FreiChat.SendMesgTimeOut=0;FreiChat.yourfunction();} else {FreiChat.SendMesgTimeOut=FreiChat.SendMesgTimeOut+1000;} if(FreiChat.c==null) {FreiChat.c=setInterval(loopme,1000);}};loopme();FreiChat.get_messages();if(FreiChat.atimeout!=null) {clearTimeout(FreiChat.atimeout);FreiChat.passBYpost=false;}};FreiChat.message_append=function(messages) {var message_length=messages.length;var reidfrom=freidefines.GEN.reidfrom;var i,j,exist,userlen,user,id,message,CookieStatus,fromname,newtitle,canPass,from_name,language,divToappend,uniqueid,toid;i=j=0;for(i=0;i1) {timeOut=0;document.title=FreiChat.oldtitle;} else {document.title=newtitle;} $jn('#chatboxhead'+id).data('interval','true');if(FreiChat.change_titletimer==null) {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()) {try{soundManager.play('mySound',freidefines.GEN.url+"client/jquery/img/newmsg.mp3");}catch(e){FreiChat.buglog("info","SoundManager Error: "+e);}} else {FreiChat.buglog("info","SoundManager does not support your system");}});}} from_name=fromname;if(from_name==freidefines.GEN.fromname){from_name=freidefines.TRANS.chat_message_me;} language=CookieStatus.language;divToappend=$jn("#frei_"+id+" .chatboxcontent");uniqueid=FreiChat.unique++;if(id in FreiChat.last_chatmessage_usr_id&&FreiChat.last_chatmessage_usr_id[id]==id){divToappend.append('
    '+FreiChat.getlocal_time(messages[i].GMT_time)+''+message+'
    ');}else {divToappend.append('
    '+FreiChat.getlocal_time(messages[i].GMT_time)+''+from_name+': '+message+'
    ');} FreiChat.last_chatmessage_usr_id[id]=id;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);}};Array.prototype.in_array=function(value) {var i;for(i=0;i10) {FreiChat.temporary_status=0;if(FreiChat.RequestCompleted_get_members==true) {FreiChat.RequestCompleted_get_members=false;FreiChat.set_custom_mesg();var in_room=FreiChat.in_room;if(!$jn('#dc-slick-9').hasClass('active')){in_room=-1;} $jn.getJSON(freidefines.GEN.url+"server/freichat.php?freimode=getmembers",{xhash:freidefines.xhash,id:freidefines.GEN.getid,first:FreiChat.first,time:FreiChat.time,chatroom_mesg_time:FreiChat.chatroom_mesg_time,'clrchtids[]':[FreiChat.clrchtids],custom_mesg:FreiChat.custom_mesg,long_poll:FreiChat.long_poll,in_room:in_room},function(data){FreiChat.long_poll='true';var userlen=freichatusers.length;var j=0;for(j=0;j1&&data.count<5){FreiChat.height=data.count*25;FreiChat.divfrei.css("height",FreiChat.height);} else if(data.count>5){FreiChat.divfrei.css("height",freidefines.fmaxht);} if(freidefines.PLUGINS.showchatroom=='enabled'){var selected_chatroom=Get_Cookie('selected_chatroom');if(selected_chatroom==null){FreiChat.setCookie('selected_chatroom',FreiChat.in_room);selected_chatroom=1;} var vari;vari=0;var index;for(vari=0;vari=0) {room=data.chatroom_messages[ai].room_id;FreiChat.chatroom_written[room]=true;}} FreiChat.append_chatroom_message_div(data.chatroom_messages,'append');FreiChat.room_array=data.room_array;FreiChat.chatroom_users[data.in_room]=data.chatroom_users_div;if(data.in_room!=-1||FreiChat.first==false) {if(selected_chatroom==1){FreiChat.title=data.room_array[index].room_name;} FreiChat.usercreator(data.in_room);FreiChat.roomcreator(1);} if(data.chatroom_mesg_time!=null) {FreiChat.chatroom_mesg_time=data.chatroom_mesg_time;}} FreiChat.clrchtids=[];if(data==null) {FreiChat.buglog("info","Data is NULL");return;} FreiChat.first=true;$jn("#frei_user_count").html(data.count);freidefines.GEN.fromname=data.username;freidefines.GEN.reidfrom=data.userid;if(data.time!=null) {FreiChat.time=data.time;} 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();FreiChat.chatroom_off();return;} $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.html(data.userdata);} else {FreiChat.divfrei.html(data.userdata)} FreiChat.message_append(data.messages);},'json').complete(function(){FreiChat.RequestCompleted_get_members=true;});}} 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) {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,option) {var freiarea=$jn(chatboxtextarea);var message=freiarea.val();var local_in_room=FreiChat.in_room;freiarea.scrollTop(freiarea[0].scrollHeight);message=message.replace(/^\s+|\s+$/g,"");freiarea.val('');if(option==0) freiarea.css('height','44px');if(message!='') {message=FreiChat.formatMessage(message,id);message=message.replace(/\r/g,"
    ");message=message.replace(/,/g,",");message=message.replace(/\r?\n/g,"
    ");if(option==0) {if(FreiChat.isOlduser!=id&&FreiChat.bulkmesg.length>0) {FreiChat.sendMessage(id,FreiChat.bulkmesg,user,0);} FreiChat.isOlduser=id;var uniqueid=FreiChat.unique++;if(FreiChat.last_chatmessage_usr_id[id]==freidefines.GEN.reidfrom){$jn("#frei_"+id+" .chatboxcontent").append('
    '+FreiChat.getlocal_time(0)+''+message+'
    ').scrollTop($jn("#frei_"+id+" .chatboxcontent")[0].scrollHeight);}else {$jn("#frei_"+id+" .chatboxcontent").append('
    '+FreiChat.getlocal_time(0)+''+freidefines.TRANS.chat_message_me+': '+message+'
    ').scrollTop($jn("#frei_"+id+" .chatboxcontent")[0].scrollHeight);} FreiChat.last_chatmessage_usr_id[id]=freidefines.GEN.reidfrom;} else {FreiChat.chatroom_written[FreiChat.in_room]=true;if(FreiChat.chatroom_changed==true&&FreiChat.bulkmesg.length>0) {FreiChat.sendMessage(id,FreiChat.bulkmesg,user,1);} var message_div='';if(FreiChat.last_chatroom_msg_type[FreiChat.in_room]===true){message_div='

    '+message+'

    '+freidefines.TRANS.chat_message_me+'
    ';}else{message_div='

    '+message+'

    '+freidefines.TRANS.chat_message_me+'
    ';} if(freidefines.GEN.reidfrom==FreiChat.last_chatroom_usr_id&&FreiChat.chatroom_written[FreiChat.in_room]==true){$jn('#'+FreiChat.last_chatroom_msg_id).append("
    "+message);$jn("#frei_chatroommsgcnt").scrollTop($jn("#frei_chatroommsgcnt")[0].scrollHeight);}else {$jn("#frei_chatroommsgcnt").append(message_div).scrollTop($jn("#frei_chatroommsgcnt")[0].scrollHeight);FreiChat.last_chatroom_msg_id='room_msg_'+FreiChat.unique;FreiChat.unique++;FreiChat.last_chatroom_usr_id=freidefines.GEN.reidfrom;FreiChat.last_chatroom_msg_type[FreiChat.in_room]=!FreiChat.last_chatroom_msg_type[FreiChat.in_room];}} FreiChat.bulkmesg.push(message);setTimeout(function(){if(option==0) {FreiChat.sendMessage(id,FreiChat.bulkmesg,user,0);}else {FreiChat.sendMessage(local_in_room,FreiChat.bulkmesg,user,1);}},freidefines.SET.mesgSendSpeed);}};FreiChat.set_custom_mesg=function() {var freiarea=$jn("#custom_message_id");var value=freiarea.val();value=value.replace(/\n/," ");$jn(FreiChat.datadiv).data('custom_mesg',value);FreiChat.custom_mesg=value;} FreiChat.chatWindowHTML=function(user,id) {FreiChat.frei_box_contain(id);var chatboxtitle=user;var str='
    '+FreiChat.langlist(id)+'
    '+chatboxtitle+'   
    - - X

    '+FreiChat.show_plugins(user,id)+'
    ';$jn('#freicontain'+FreiChat.box_count).html(str+$jn('#freicontain'+FreiChat.box_count).html());FreiChat.set_drag(id);$jn('#frei_'+id).bind({click:function() {FreiChat.change_to_old_title(id);}});$jn('#addedoptions_'+id).hide();$jn("#frei_trans"+id).hide();$jn('#frei_chat_status_'+id).hide();var smileys=$jn('#frei_smileys_'+id);var smile=$jn('#smile_'+id);var isin=false;smile.mouseenter(function(){isin=true;}).mouseleave(function(){isin=false;});$jn(document).click(function(){if(smileys.hasClass('inline')&&isin==false) {smileys.css('display','none').removeClass('inline').addClass('none');}});};FreiChat.change_to_old_title=function(id) {if($jn('#chatboxhead'+id).data('interval')=='true') {$jn('#chatboxhead'+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)+')');}} FreiChat.sendMessage=function(id,message,user,type) {if(FreiChat.bulkmesg.length>=1) {if(type==0) {var CookieStatus=FreiChat.getCookie(id);FreiChat.setCookie("frei_stat_"+id,CookieStatus.language+"&opened&max&nclear&"+CookieStatus.pos_top+"&"+CookieStatus.pos_left);} FreiChat.bulkmesg=[];FreiChat.SendMesgTimeOut=0;if(FreiChat.RequestCompleted_send_messages==true) {FreiChat.RequestCompleted_send_messages=false;$jn.post(freidefines.GEN.url+"server/freichat.php?freimode=post",{passBYpost:FreiChat.passBYpost,time:FreiChat.time,xhash:freidefines.xhash,id:freidefines.GEN.getid,to:id,chatroom_mesg_time:FreiChat.chatroom_mesg_time,message_type:type,'message[]':[message],to_name:user,custom_mesg:FreiChat.custom_mesg,in_room:FreiChat.in_room,GMT_time:FreiChat.getGMT_time()},function(data){freidefines.GEN.fromname=data.username;if(FreiChat.atimeout==null){FreiChat.atimeout=setTimeout("FreiChat.atimeout=null;FreiChat.passBYpost=true;",5000);} if(data.messages!=null) {if(data.time!=null) {FreiChat.time=data.time;} if(data.chatroom_mesg_time!=null) {FreiChat.chatroom_mesg_time=data.chatroom_mesg_time;} if(freidefines.PLUGINS.showchatroom=='enabled'){FreiChat.append_chatroom_message_div(data.chatroom_messages,'append');} FreiChat.message_append(data.messages);}},'json').complete(function(){FreiChat.RequestCompleted_send_messages=true;});}}};FreiChat.formatMessage=function(message,id) {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,id);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);if($jn(FreiChat.datadiv).data("isvisible")=="true") {$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=idx;for(i=0;i<=users_length;i++) {if(freichatusers[i]==idx) {freichatusers[i]=0;}}};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.set_drag=function(id) {var status=FreiChat.getCookie(id);if(status['chatwindow_2']=="min"||freidefines.SET.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(""+freidefines.chatHistoryDeleted+"");} else {$jn("#frei_"+id+" .chatboxcontent").html(""+freidefines.chatHistoryNotFound+"");}};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;var i=0;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();} FreiChat.long_poll='false';}} 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.GEN.url+"server/freichat.php?freimode=update_status",{xhash:freidefines.xhash,id:freidefines.GEN.getid,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="";} if(name.search('updated')!=-1) {name=name.replace('updated','').replace(freidefines.SET.theme,'');name='blue_flower/'+name;return freidefines.GEN.url+"client/jquery/freichat_themes/"+name;} return freidefines.GEN.url+"client/jquery/freichat_themes/"+freidefines.SET.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.toggle_image=function(imgid,imgsrc) {imgid++;imgsrc++;};FreiChat.show_plugins=function(user,id) {var pluginhtml='';if(freidefines.PLUGINS.show_file_send=='true') {if((freidefines.GEN.is_guest==1&&freidefines.ACL.FILE.guest=="allow")||(freidefines.GEN.is_guest==0&&freidefines.ACL.FILE.user=="allow")) {pluginhtml='upload ';}} if(freidefines.PLUGINS.showtranslate=='enabled') {if((freidefines.GEN.is_guest==1&&freidefines.ACL.TRANSLATE.guest=="allow")||(freidefines.GEN.is_guest==0&&freidefines.ACL.TRANSLATE.user=="allow")) {pluginhtml+='Tranlate ';}} pluginhtml+=' - ';if(freidefines.PLUGINS.showsmiley=='enabled') {if((freidefines.GEN.is_guest==1&&freidefines.ACL.SMILEY.guest=="allow")||(freidefines.GEN.is_guest==0&&freidefines.ACL.SMILEY.user=="allow")) {pluginhtml+=''+FreiChat.smileylist(id)+' ';pluginhtml+=' - ';}} if(freidefines.PLUGINS.showsave=='enabled') {if((freidefines.GEN.is_guest==1&&freidefines.ACL.SAVE.guest=="allow")||(freidefines.GEN.is_guest==0&&freidefines.ACL.SAVE.user=="allow")) {pluginhtml+='save ';}} if(freidefines.PLUGINS.showmail=='enabled') {if((freidefines.GEN.is_guest==1&&freidefines.ACL.MAIL.guest=="allow")||(freidefines.GEN.is_guest==0&&freidefines.ACL.MAIL.user=="allow")) {pluginhtml+='upload ';}} if(freidefines.PLUGINS.showvideochat=='enabled') {if((freidefines.GEN.is_guest==1&&freidefines.ACL.VIDEOCHAT.guest=="allow")||(freidefines.GEN.is_guest==0&&freidefines.ACL.VIDEOCHAT.user=="allow")) {pluginhtml+='upload ';}} return pluginhtml;};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.showXtools=function(id) {if($jn(FreiChat.datadiv).data("isvisible")=="true") {$jn('#addedoptions_'+id).hide();$jn(FreiChat.datadiv).data("isvisible","false");} else {$jn('#addedoptions_'+id).show();$jn(FreiChat.datadiv).data("isvisible","true");} FreiChat.change_to_old_title(id);};FreiChat.selfInvoke=function() {if(X_init==false) {$jn=jQuery.noConflict(freidefines['jconflicts']);soundManager.url=freidefines.GEN.url+"client/jquery/img/";$jn(window).load(function(){$jn(document).ready(function(){FreiChat.oldtitle=document.title;FreiChat.statusUpdate();FreiChat.setInactivetime();FreiChat.init_process_freichatX();});});X_init=true;}}();FreiChat.init_chatrooms=function() {FreiChat.chatroom.dcSlick({location:'left',classWrapper:'frei_chatroom',classContent:'frei_chatroom-content',align:'left',offset:'200px',speed:'slow',classTab:'frei_tab',tabText:'Chat Room',autoClose:true});var selected_chatroom=Get_Cookie('selected_chatroom');if(selected_chatroom==null){selected_chatroom=1;} FreiChat.in_room=selected_chatroom;FreiChat.my_name='
    '+freidefines.GEN.fromname+'
    ';$jn('#frei_userpanel').html(FreiChat.my_name);} FreiChat.chatroom_off=function(){$jn("#dc-slick-9").hide();} FreiChat.send_chatroom_message=function(textarea_div){FreiChat.checkChatBoxInputKey(null,textarea_div,null,null,'chatroom');} FreiChat.usercreator=function(id) {if(FreiChat.chatroom_users.length>0){if(FreiChat.chatroom_users[id]){$jn('#frei_userpanel').html(FreiChat.chatroom_users[id]);} if(FreiChat.chatroom_users[id]=="
    ") {$jn('#frei_userpanel').html(FreiChat.my_name);}}} FreiChat.loadchatroom=function(title,id) {FreiChat.chatroom_changed=true;var old_room=FreiChat.in_room;FreiChat.in_room=id;FreiChat.title=title;FreiChat.last_chatroom_usr_id=null;FreiChat.setCookie('selected_chatroom',id);FreiChat.roomcreator(title,id);$jn.getJSON(freidefines.GEN.url+"server/freichat.php?freimode=loadchatroom",{xhash:freidefines.xhash,id:freidefines.GEN.getid,first:FreiChat.first,time:FreiChat.time,chatroom_mesg_time:FreiChat.chatroom_mesg_time,custom_mesg:FreiChat.custom_mesg,in_room:id},function(data){if(data.time!=null) {FreiChat.time=data.time;} if(data.chatroom_mesg_time!=null) {FreiChat.chatroom_mesg_time=data.chatroom_mesg_time;} FreiChat.room_array=data.room_array;FreiChat.chatroom_users[data.in_room]=data.chatroom_users_div;FreiChat.usercreator(data.in_room);for(var i=0;i"+messages[i].message);scroll_to_top=true;}else {var from_name=messages[i].from_name;if(from_name==freidefines.GEN.fromname){from_name=freidefines.TRANS.chat_message_me;} if(message_type===true){message='

    '+messages[i].message+'

    '+from_name+'
    ';}else{message='

    '+messages[i].message+'

    '+from_name+'
    ';} div.append(message);scroll_to_top=true;FreiChat.last_chatroom_msg_id='room_msg_'+FreiChat.unique;FreiChat.unique++;first_message=false;FreiChat.last_chatroom_usr_id=messages[i].from;message_type=!message_type;}} FreiChat.last_chatroom_msg_type[FreiChat.in_room]=message_type;if(scroll_to_top==true){$jn("#frei_chatroommsgcnt").scrollTop($jn("#frei_chatroommsgcnt")[0].scrollHeight);} FreiChat.first_message=false;} FreiChat.roomcreator=function(title,id) {$jn('#frei_roomtitle').html(FreiChat.title);var sel_class='frei_lobby_room';var i=0;var rooms="";for(i=0;i\n\ '+FreiChat.room_array[i].room_name+'';if(FreiChat.room_array[i].online_count==0&&FreiChat.in_room==FreiChat.room_array[i].room_id){rooms+='1 online';} else {rooms+=''+FreiChat.room_array[i].online_count+' online';} rooms+='\n\ \n\
    ';} $jn('#frei_roompanel').html(rooms);} /* Updated 16 June 2012 1:07 pm FreiChatX V.7.2 */