/* jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */ (function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement){ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"":"")+""),ci.close()}d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cq(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cp(){cn=b}function co(){setTimeout(cp,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(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){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bv(a,b,b);if(d<0||d==null){d=a.style[b]||0}d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bl(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bd,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bk(a){f.nodeName(a,"input")?bj(a):"getElementsByTagName" in a&&f.grep(a.getElementsByTagName("input"),bj)}function bj(a){if(a.type==="checkbox"||a.type==="radio"){a.defaultChecked=a.checked}}function bi(a){return"getElementsByTagName" in a?a.getElementsByTagName("*"):"querySelectorAll" in a?a.querySelectorAll("*"):[]}function bh(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object"){b.outerHTML=a.outerHTML}else{if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option"){b.selected=a.defaultSelected}else{if(c==="input"||c==="textarea"){b.defaultValue=a.defaultValue}}}else{a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value)}}b.removeAttribute(f.expando)}}function bg(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g){for(var i=0,j=g[h].length;i=0===c})}function U(a){return !a||!a.parentNode||a.parentNode.nodeType===11}function M(a,b){return(a&&a!=="*"?a+".":"")+b.replace(y,"`").replace(z,"&")}function L(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;ic){break}a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped()){break}}}return b}}function J(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function D(){return !0}function C(){return !1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a){if(b!=="toJSON"){return !1}}return !0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else{d=b}}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function K(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(K,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/ig,x=/^-ms-/,y=function(a,b){return(b+"").toUpperCase()},z=d.userAgent,A,B,C,D=Object.prototype.toString,E=Object.prototype.hasOwnProperty,F=Array.prototype.push,G=Array.prototype.slice,H=String.prototype.trim,I=Array.prototype.indexOf,J={};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=n.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.6.4",length:0,size:function(){return this.length},toArray:function(){return G.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)?F.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(),B.done(a);return this},eq:function(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(G.apply(this,arguments),"slice",G.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:F,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}B.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!B){B=e._Deferred();if(c.readyState==="complete"){return setTimeout(e.ready,1)}if(c.addEventListener){c.addEventListener("DOMContentLoaded",C,!1),a.addEventListener("load",e.ready,!1)}else{if(c.attachEvent){c.attachEvent("onreadystatechange",C),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&K()}}}},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},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):J[D.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a)){return !1}try{if(a.constructor&&!E.call(a,"constructor")&&!E.call(a.constructor.prototype,"isPrototypeOf")){return !1}}catch(c){return !1}var d;for(d in a){}return d===b||E.call(a,d)},isEmptyObject:function(a){for(var b in a){return !1}return !0},error:function(a){throw 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(o.test(b.replace(p,"@").replace(q,"]").replace(r,""))){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(x,"ms-").replace(w,y)},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?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c
a",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e){return{}}g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.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:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},m&&f.extend(p,{position:"absolute",left:"-1000px",top:"-1000px"});for(t in p){o.style[t]=p[t]}o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom" in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
t
",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent){for(t in {submit:1,change:1,focusin:1}){s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u}}o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([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&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i=f.expando,j=typeof c=="string",k=a.nodeType,l=k?f.cache:a,m=k?a[f.expando]:a[f.expando]&&f.expando;if((!m||e&&m&&l[m]&&!l[m][i])&&j&&d===b){return}m||(k?a[f.expando]=m=++f.uuid:m=f.expando),l[m]||(l[m]={},k||(l[m].toJSON=f.noop));if(typeof c=="object"||typeof c=="function"){e?l[m][i]=f.extend(l[m][i],c):l[m]=f.extend(l[m],c)}g=l[m],e&&(g[i]||(g[i]={}),g=g[i]),d!==b&&(g[f.camelCase(c)]=d);if(c==="events"&&!g[c]){return g[i]&&g[i].events}j?(h=g[c],h==null&&(h=g[f.camelCase(c)])):h=g;return h}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e=f.expando,g=a.nodeType,h=g?f.cache:a,i=g?a[f.expando]:f.expando;if(!h[i]){return}if(b){d=c?h[i][e]:h[i];if(d){d[b]||(b=f.camelCase(b)),delete d[b];if(!l(d)){return}}}if(c){delete h[i][e];if(!l(h[i])){return}}var j=h[i][e];f.support.deleteExpando||!h.setInterval?delete h[i]:h[i]=null,j?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=j):g&&(f.support.deleteExpando?delete a[f.expando]:a.removeAttribute?a.removeAttribute(f.expando):a[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b){return b!==!0&&a.getAttribute("classid")===b}}return !0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h-1){return !0}}return !1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get" in c&&(d=c.get(e,"value"))!==b){return d}d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.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}}})}}),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=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0){return null}for(var h=g?c:0,i=g?c+1:e.length;h=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},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2){return b}if(e&&c in f.attrFn){return f(a)[c](d)}if(!("getAttribute" in a)){return f.prop(a,c,d)}var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=v:u&&(i=u)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set" in i&&j&&(h=i.set(a,d,c))!==b){return h}a.setAttribute(c,""+d);return d}if(i&&"get" in i&&j&&(h=i.get(a,c))!==null){return h}h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.attr(a,b,""),a.removeAttribute(b),t.test(b)&&(c=f.propFix[b]||b) in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode){f.error("type property can't be changed")}else{if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}}},value:{get:function(a,b){if(u&&f.nodeName(a,"button")){return u.get(a,b)}return b in a?a.value:null},set:function(a,b,c){if(u&&f.nodeName(a,"button")){return u.set(a,b,c)}a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2){return b}var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set" in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get" in h&&(g=h.get(a,c))!==null?g:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabIndex=f.propHooks.tabIndex,v={get:function(a,c){var d;return f.prop(a,c)===!0||(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(u=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b)){return a.checked=f.inArray(f(a).val(),b)>=0}}})});var w=/\.(.*)$/,x=/^(?:textarea|input|select)$/i,y=/\./g,z=/ /g,A=/[^\w\s.|`]/g,B=function(a){return a.replace(A,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1){d=C}else{if(!d){return}}var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i){return}var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1){a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=C);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t){return}c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t){f.event.remove(a,h+c)}return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),B).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p){continue}if(!d){for(j=0;j=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e){c.preventDefault(),c.stopPropagation()}if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8){return}c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},I=function(c){var d=c.target,e,g;if(!!x.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=H(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e){return}if(e!=null||g){c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}}};f.event.special.change={filters:{focusout:I,beforedeactivate:I,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&I.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&I.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",H(b))}},setup:function(a,b){if(this.type==="file"){return !1}for(var c in G){f.event.add(this,c+".specialChange",G[c])}return x.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return x.test(this.nodeName)}},G=f.event.special.change.filters,G.focus=G.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a){this[c](h,d,a[h],e)}return this}if(arguments.length===2||d===!1){e=d,d=b}c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one"){this.one(a,d,e)}else{for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9){return[]}if(!b||typeof b!="string"){return f}var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b)){if(x.length===2&&l.relative[x[0]]){j=v(x[0]+x[1],d)}else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length){b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}}}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length){r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}}else{n=x=[]}}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]"){if(!u){f.push.apply(f,n)}else{if(d&&d.nodeType===1){for(t=0;n[t]!=null;t++){n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t])}}else{for(t=0;n[t]!=null;t++){n[t]&&n[t].nodeType===1&&f.push(j[t])}}}}else{p(n,f)}o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g){for(var b=1;b0},k.find=function(a,b,c){var d;if(!a){return[]}for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.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(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.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]&&k.error(a[0])}a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),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]=k(b[3],null,null,c)}else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return !1}}else{if(l.match.POS.test(b[0])||l.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 !!k(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=l.filters[e];if(f){return f(a,c,b,d)}if(e==="contains"){return(a.textContent||a.innerText||k.getText([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.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":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=l.setFilters[e];if(f){return f(a,c,b,d)}}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match){l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n))}var p=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(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]"){Array.prototype.push.apply(d,a)}else{if(typeof a.length=="number"){for(var f=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.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:[]}},l.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&&(l.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")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1]){return p(e.getElementsByTagName(b),f)}if(h[2]&&l.find.CLASS&&e.getElementsByClassName){return p(e.getElementsByClassName(h[2]),f)}}if(e.nodeType===9){if(b==="body"&&e.body){return p([e.body],f)}if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode){return p([],f)}if(i.id===h[3]){return p([i],f)}}try{return p(e.querySelectorAll(b),f)}catch(j){}}else{if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q){return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}}catch(s){}finally{n||m.removeAttribute("id")}}}}return a(b,e,f,g)};for(var e in a){k[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}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a)){try{if(e||!l.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 k(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}l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c){return b.getElementsByClassName(a[1])}},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return !!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return !1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a)){e+=c[0],a=a.replace(l.match.PSEUDO,"")}a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0){for(h=g;h0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k})}g=g.parentNode,k++}}return c}var l=S.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;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(U(c[0])||U(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),g=R.call(arguments);N.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!T[a]?f.unique(e):e,(this.length>1||P.test(d))&&O.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.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 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,"",""]};be.optgroup=be.option,be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,f.support.htmlSerialize||(be._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){return this.each(function(){f(this).wrapAll(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(arguments[0]);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(arguments[0]).toArray());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))&&!be[(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=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bh(a,d),e=bi(a),g=bi(d);for(h=0;e[h];++h){g[h]&&bh(e[h],g[h])}}if(b){bg(a,d);if(c){e=bi(a),g=bi(d);for(h=0;e[h];++h){bg(e[h],g[h])}}}e=g=null;return d},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=be[l]||be._default,n=m[0],o=b.createElement("div");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 bn.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.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bm,""))===""){c.removeAttribute("filter");if(d&&!d.filter){return}}c.filter=bm.test(g)?g.replace(bm,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=bv(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bw=function(a,c){var d,e,g;c=c.replace(bo,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView)){return b}if(g=e.getComputedStyle(a,null)){d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c))}return d}),c.documentElement.currentStyle&&(bx=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bp.test(d)&&bq.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bv=bw||bx,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.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return !f.expr.filters.hidden(a)});var bz=/%20/g,bA=/\[\]$/,bB=/\r?\n/g,bC=/#.*$/,bD=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bE=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bF=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bG=/^(?:GET|HEAD)$/,bH=/^\/\//,bI=/\?/,bJ=/)<[^<]*)*<\/script>/gi,bK=/^(?:select|textarea)/i,bL=/\s+/,bM=/([?&])_=[^&]*/,bN=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bO=f.fn.load,bP={},bQ={},bR,bS,bT=["*/"]+["*"];try{bR=e.href}catch(bU){bR=c.createElement("a"),bR.href="",bR=bR.href}bS=bN.exec(bR.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bO){return bO.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(bJ,"")).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||bK.test(this.nodeName)||bE.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(bB,"\r\n")}}):{name:b.name,value:c.replace(bB,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(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?bX(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),bX(a,b);return a},ajaxSettings:{url:bR,isLocal:bF.test(bS[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","*":bT},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:bV(bP),ajaxTransport:bV(bQ),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?bZ(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=b$(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.resolveWith(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._Deferred(),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=bD.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.done,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(bC,"").replace(bH,bS[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bL),d.crossDomain==null&&(r=bN.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bS[1]&&r[2]==bS[2]&&(r[3]||(r[1]==="http:"?80:443))==(bS[3]||(bS[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bW(bP,d,c,v);if(s===2){return !1}t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bG.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bI.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bM,"$1_="+x);d.url=y+(y===d.url?(bI.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]!=="*"?", "+bT+"; 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=bW(bQ,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){s<2?w(-1,z):f.error(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){bY(g,a[g],c,e)}}return d.join("&").replace(bz,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),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&&(ca.test(b.url)||e&&ca.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(ca,l),b.url===j&&(e&&(k=k.replace(ca,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 cb=a.ActiveXObject?function(){for(var a in cd){cd[a](0,1)}}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return !this.isLocal&&ce()||cf()}:ce,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,cb&&delete cd[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=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0){return this.animate(cq("show",3),a,b,c)}for(var g=0,h=this.length;g=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties){e.animatedProperties[g]!==!0&&(c=!1)}if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show){for(var i in e.animatedProperties){f.style(d,i,e.orig[i])}}e.complete.call(d)}return !1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return !0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b
";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-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=ct.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&&!ct.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=cu(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=cu(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")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):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.isNaN(j)?i:j}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window);; /* * jQuery UI 1.8.17 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI */ (function(D,B){function A(E){return !D(E).parents().andSelf().filter(function(){return D.curCSS(this,"visibility")==="hidden"||D.expr.filters.hidden(this)}).length}function C(H,I){var G=H.nodeName.toLowerCase();if("area"===G){var J=H.parentNode,E=J.name,F;if(!H.href||!E||J.nodeName.toLowerCase()!=="map"){return !1}F=D("img[usemap=#"+E+"]")[0];return !!F&&A(F)}return(/input|select|textarea|button|object/.test(G)?!H.disabled:"a"==G?H.href||I:I)&&A(H)}D.ui=D.ui||{};D.ui.version||(D.extend(D.ui,{version:"1.8.17",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),D.fn.extend({propAttr:D.fn.prop||D.fn.attr,_focus:D.fn.focus,focus:function(E,F){return typeof E=="number"?this.each(function(){var G=this;setTimeout(function(){D(G).focus(),F&&F.call(G)},E)}):this._focus.apply(this,arguments)},scrollParent:function(){var E;D.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?E=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(D.curCSS(this,"position",1))&&/(auto|scroll)/.test(D.curCSS(this,"overflow",1)+D.curCSS(this,"overflow-y",1)+D.curCSS(this,"overflow-x",1))}).eq(0):E=this.parents().filter(function(){return/(auto|scroll)/.test(D.curCSS(this,"overflow",1)+D.curCSS(this,"overflow-y",1)+D.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!E.length?D(document):E},zIndex:function(G){if(G!==B){return this.css("zIndex",G)}if(this.length){var E=D(this[0]),F,H;while(E.length&&E[0]!==document){F=E.css("position");if(F==="absolute"||F==="relative"||F==="fixed"){H=parseInt(E.css("zIndex"),10);if(!isNaN(H)&&H!==0){return H}}E=E.parent()}}return 0},disableSelection:function(){return this.bind((D.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(E){E.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),D.each(["Width","Height"],function(I,F){function E(L,M,K,N){D.each(G,function(){M-=parseFloat(D.curCSS(L,"padding"+this,!0))||0,K&&(M-=parseFloat(D.curCSS(L,"border"+this+"Width",!0))||0),N&&(M-=parseFloat(D.curCSS(L,"margin"+this,!0))||0)});return M}var G=F==="Width"?["Left","Right"]:["Top","Bottom"],J=F.toLowerCase(),H={innerWidth:D.fn.innerWidth,innerHeight:D.fn.innerHeight,outerWidth:D.fn.outerWidth,outerHeight:D.fn.outerHeight};D.fn["inner"+F]=function(K){if(K===B){return H["inner"+F].call(this)}return this.each(function(){D(this).css(J,E(this,K)+"px")})},D.fn["outer"+F]=function(K,L){if(typeof K!="number"){return H["outer"+F].call(this,K)}return this.each(function(){D(this).css(J,E(this,K,!0,L)+"px")})}}),D.extend(D.expr[":"],{data:function(F,G,E){return !!D.data(F,E[3])},focusable:function(E){return C(E,!isNaN(D.attr(E,"tabindex")))},tabbable:function(G){var E=D.attr(G,"tabindex"),F=isNaN(E);return(F||E>=0)&&C(G,!F)}}),D(function(){var E=document.body,F=E.appendChild(F=document.createElement("div"));D.extend(F.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),D.support.minHeight=F.offsetHeight===100,D.support.selectstart="onselectstart" in F,E.removeChild(F).style.display="none"}),D.extend(D.ui,{plugin:{add:function(G,H,E){var F=D.ui[G].prototype;for(var I in E){F.plugins[I]=F.plugins[I]||[],F.plugins[I].push([H,E[I]])}},call:function(I,G,H){var E=I.plugins[G];if(!!E&&!!I.element[0].parentNode){for(var F=0;F0){return !0}G[E]=1,F=G[E]>0,G[E]=0;return F},isOverAxis:function(G,E,F){return G>E&&G=9)&&!D.button){return this._mouseUp(D)}if(this._mouseStarted){this._mouseDrag(D);return D.preventDefault()}this._mouseDistanceMet(D)&&this._mouseDelayMet(D)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,D)!==!1,this._mouseStarted?this._mouseDrag(D):this._mouseUp(D));return !this._mouseStarted},_mouseUp:function(D){C(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,D.target==this._mouseDownEvent.target&&C.data(D.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(D));return !1},_mouseDistanceMet:function(D){return Math.max(Math.abs(this._mouseDownEvent.pageX-D.pageX),Math.abs(this._mouseDownEvent.pageY-D.pageY))>=this.options.distance},_mouseDelayMet:function(D){return this.mouseDelayMet},_mouseStart:function(D){},_mouseDrag:function(D){},_mouseStop:function(D){},_mouseCapture:function(D){return !0}})})(jQuery);(function(B,A){B.widget("ui.draggable",B.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,concernAngle: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")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this},_mouseCapture:function(D){var C=this.options;if(this.helper||C.disabled||B(D.target).is(".ui-resizable-handle,.ui-resizable-handle>.knob")){return false}this.handle=this._getHandle(D);if(!this.handle){return false}if(C.iframeFix){B(C.iframeFix===true?"iframe":C.iframeFix).each(function(){B('
').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(B(this).offset()).appendTo("body")})}return true},_mouseStart:function(E){var D=this.options;this.helper=this._createHelper(E);this._cacheHelperProportions();if(B.ui.ddmanager){B.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();if(D.concernAngle){var C=this.element.parent().offset();this.offset=this.positionAbs={left:C.left+B.parseInteger(this.element.parent().css("borderLeftWidth"))+B.parseInteger(this.element.css("left")),top:C.top+B.parseInteger(this.element.parent().css("borderTopWidth"))+B.parseInteger(this.element.css("top"))}}this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};B.extend(this.offset,{click:{left:E.pageX-this.offset.left,top:E.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(E);this.originalPageX=E.pageX;this.originalPageY=E.pageY;(D.cursorAt&&this._adjustOffsetFromHelper(D.cursorAt));if(D.containment){this._setContainment()}if(this._trigger("start",E)===false){this._clear();return false}this._cacheHelperProportions();if(B.ui.ddmanager&&!D.dropBehaviour){B.ui.ddmanager.prepareOffsets(this,E)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(E,true);if(B.ui.ddmanager){B.ui.ddmanager.dragStart(this,E)}return true},_mouseDrag:function(E,D){this.position=this._generatePosition(E);this.positionAbs=this._convertPositionTo("absolute");if(!D){var C=this._uiHash();if(this._trigger("drag",E,C)===false){this._mouseUp({});return false}this.position=C.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(B.ui.ddmanager){B.ui.ddmanager.drag(this,E)}return false},_mouseStop:function(E){var D=false;if(B.ui.ddmanager&&!this.options.dropBehaviour){D=B.ui.ddmanager.drop(this,E)}if(this.dropped){D=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original"){return false}if((this.options.revert=="invalid"&&!D)||(this.options.revert=="valid"&&D)||this.options.revert===true||(B.isFunction(this.options.revert)&&this.options.revert.call(this.element,D))){var C=this;B(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(C._trigger("stop",E)!==false){C._clear()}})}else{if(this._trigger("stop",E)!==false){this._clear()}}return false},_mouseUp:function(C){if(this.options.iframeFix===true){B("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}if(B.ui.ddmanager){B.ui.ddmanager.dragStop(this,C)}return B.ui.mouse.prototype._mouseUp.call(this,C)},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({})}else{this._clear()}return this},_getHandle:function(D){var C=!this.options.handle||!B(this.options.handle,this.element).length?true:false;B(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==D.target){C=true}});return C},_createHelper:function(D){var C=this.options;var E=B.isFunction(C.helper)?B(C.helper.apply(this.element[0],[D])):(C.helper=="clone"?this.element.clone().removeAttr("id"):this.element);if(!E.parents("body").length){E.appendTo((C.appendTo=="parent"?this.element[0].parentNode:C.appendTo))}if(E[0]!=this.element[0]&&!(/(fixed|absolute)/).test(E.css("position"))){E.css("position","absolute")}return E},_adjustOffsetFromHelper:function(C){if(typeof C=="string"){C=C.split(" ")}if(B.isArray(C)){C={left:+C[0],top:+C[1]||0}}if("left" in C){this.offset.click.left=C.left+this.margins.left}if("right" in C){this.offset.click.left=this.helperProportions.width-C.right+this.margins.left}if("top" in C){this.offset.click.top=C.top+this.margins.top}if("bottom" in C){this.offset.click.top=this.helperProportions.height-C.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var C=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&B.ui.contains(this.scrollParent[0],this.offsetParent[0])){C.left+=this.scrollParent.scrollLeft();C.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&B.browser.msie)){C={top:0,left:0}}return{top:C.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:C.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var C=this.element.position();return{top:C.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:C.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 D=this.options;if(D.containment=="parent"){D.containment=this.helper[0].parentNode}if(D.containment=="document"||D.containment=="window"){this.containment=[D.containment=="document"?0:B(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,D.containment=="document"?0:B(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(D.containment=="document"?0:B(window).scrollLeft())+B(D.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(D.containment=="document"?0:B(window).scrollTop())+(B(D.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(D.containment)&&D.containment.constructor!=Array){var F=B(D.containment);var G=F[0];if(!G){return}var C=F.offset();var E=(B(G).css("overflow")!="hidden");this.containment=[(parseInt(B(G).css("borderLeftWidth"),10)||0)+(parseInt(B(G).css("paddingLeft"),10)||0),(parseInt(B(G).css("borderTopWidth"),10)||0)+(parseInt(B(G).css("paddingTop"),10)||0),(E?Math.max(G.scrollWidth,G.offsetWidth):G.offsetWidth)-(parseInt(B(G).css("borderLeftWidth"),10)||0)-(parseInt(B(G).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(E?Math.max(G.scrollHeight,G.offsetHeight):G.offsetHeight)-(parseInt(B(G).css("borderTopWidth"),10)||0)-(parseInt(B(G).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=F}else{if(D.containment.constructor==Array){this.containment=D.containment}}},_convertPositionTo:function(C,E){if(!E){E=this.position}var H=C=="absolute"?1:-1;var D=this.options,G=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&B.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,F=(/(html|body)/i).test(G[0].tagName);return{top:(E.top+this.offset.relative.top*H+this.offset.parent.top*H-(B.browser.safari&&B.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(F?0:G.scrollTop()))*H)),left:(E.left+this.offset.relative.left*H+this.offset.parent.left*H-(B.browser.safari&&B.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():F?0:G.scrollLeft())*H))}},_generatePosition:function(G){var K=this.options,L=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&B.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,C=(/(html|body)/i).test(L[0].tagName);var I=G.pageX;var H=G.pageY;if(this.originalPosition){var J;if(this.containment){if(this.relative_container){var F=this.relative_container.offset();J=[this.containment[0]+F.left,this.containment[1]+F.top,this.containment[2]+F.left,this.containment[3]+F.top]}else{J=this.containment}if(G.pageX-this.offset.click.leftJ[2]){I=J[2]+this.offset.click.left}if(G.pageY-this.offset.click.top>J[3]){H=J[3]+this.offset.click.top}}if(K.grid){var D=K.grid[1]?this.originalPageY+Math.round((H-this.originalPageY)/K.grid[1])*K.grid[1]:this.originalPageY;H=J?(!(D-this.offset.click.topJ[3])?D:(!(D-this.offset.click.topJ[2])?E:(!(E-this.offset.click.left=0;H--){var K=L.snapElements[H].left,C=K+L.snapElements[H].width,F=L.snapElements[H].top,M=F+L.snapElements[H].height;if(!((K-N=E&&O<=J||F>=E&&F<=J||OJ)&&(C>=G&&C<=D||N>=G&&N<=D||CD);default:return !1}},B.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(G,H){var D=B.ui.ddmanager.droppables[G.options.scope]||[],E=H?H.type:null,I=(G.currentItem||G.element).find(":data(droppable)").andSelf();droppablesLoop:for(var C=0;C').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=H.handles||(!D(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var I=this.handles.split(",");this.handles={};for(var F=0;F');if(/sw|se|ne|nw/.test(E)){K.css({zIndex:++H.zIndex})}if("se"==E){K.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[E]=".ui-resizable-"+E;this.element.append(K)}}this._renderAxis=function(O){O=O||this.element;for(var L in this.handles){if(this.handles[L].constructor==String){this.handles[L]=D(this.handles[L],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var P=D(this.handles[L],this.element),N=0;N=/sw|ne|nw|se|n|s/.test(L)?P.outerHeight():P.outerWidth();var M=["padding",/ne|nw|n/.test(L)?"Top":/se|sw|s/.test(L)?"Bottom":/^e$/.test(L)?"Right":"Left"].join("");O.css(M,N);this._proportionallyResize()}if(!D(this.handles[L]).length){continue}}};this._renderAxis(this.element);this._handles=D(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!G.resizing){if(this.className){var L=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}G.axis=L&&L[1]?L[1]:"se"}});if(H.autoHide){this._handles.hide();D(this.element).addClass("ui-resizable-autohide").hover(function(){if(H.disabled){return}D(this).removeClass("ui-resizable-autohide");G._handles.show()},function(){if(H.disabled){return}if(!G.resizing){D(this).addClass("ui-resizable-autohide");G._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var F=function(G){D(G).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){F(this.element);var E=this.element;E.after(this.originalElement.css({position:E.css("position"),width:E.outerWidth(),height:E.outerHeight(),top:E.css("top"),left:E.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);F(this.originalElement);return this},_mouseCapture:function(G){var E=false;for(var F in this.handles){if(D(this.handles[F])[0]==G.target||D(this.handles[F])[0]==G.target.parentNode){E=true}}var H=true;if(this.options.concernLock&&this.element.data("cstlayerstatus")=="unlock"){H=false}return !this.options.disabled&&E&&H},_mouseStart:function(I){var G=this.options,H=this.element.position(),E=this.element;this.resizing=true;this.documentScroll={top:D(document).scrollTop(),left:D(document).scrollLeft()};if(!G.concernAngle&&!G.noinit){if(E.is(".ui-draggable")||(/absolute/).test(E.css("position"))){E.css({position:"absolute",top:H.top,left:H.left})}}if(D.browser.opera&&(/relative/).test(E.css("position"))){E.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var K=C(this.helper.css("left")),J=C(this.helper.css("top"));if(G.containment){K+=D(G.containment).scrollLeft()||0;J+=D(G.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:K,top:J};if(D.browser.msie&&D.browser.version<9&&E.data("deg")%360!=0){this.size={width:E.data("IEWidth"),height:E.data("IEHeight")}}else{this.size=this._helper?{width:E.outerWidth(),height:E.outerHeight()}:{width:E.width(),height:E.height()}}this.originalSize=this._helper?{width:E.outerWidth(),height:E.outerHeight()}:{width:E.width(),height:E.height()};this.originalPosition={left:K,top:J};this.sizeDiff={width:E.outerWidth()-E.width(),height:E.outerHeight()-E.height()};this.originalMousePosition={left:I.pageX,top:I.pageY};if(G.scroll&&(!G.concernAngle||G.concernAngle&&!this.element.data("deg"))){this.scrollParent=this.element.scrollParent();this.originalMousePosition.top+=this.scrollParent.scrollTop()}this.aspectRatio=(typeof G.aspectRatio=="number")?G.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);if(G.concernAngle){D.divrotate.getDegreeResizeCursor(this.element)}var F=this.element.find(".ui-resizable-"+this.axis).css("cursor");D("body").css("cursor",F=="auto"?this.axis+"-resize":F);E.addClass("ui-resizable-resizing");this._propagate("start",I);return true},_mouseDrag:function(H){var J=this.helper,L=this.options,I={},O=this,R=this.originalMousePosition,Q=this.axis;var K=H.pageY;if(L.scroll&&(!L.concernAngle||L.concernAngle&&!this.element.data("deg"))){K+=this.scrollParent.scrollTop()}var N=(H.pageX-R.left)||0,M=(K-R.top)||0;var E=this._change[Q];if(!E){return false}var G=E.apply(this,[H,N,M]),F=D.browser.msie&&D.browser.version<7,P=this.sizeDiff;this._updateVirtualBoundaries(H.shiftKey);if(!D.isFunction(L.aspectFunc)&&(this._aspectRatio||H.shiftKey)){G=this._updateRatio(G,H)}else{if(D.isFunction(L.aspectFunc)){G=this._updateAFunc(G,H)}}G=this._respectSize(G,H);this._propagate("resize",H);J.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(G);this._trigger("resize",H,this.ui());return false},_mouseStop:function(I){this.resizing=false;var M=this.options,K=this;if(this._helper){var F=this._proportionallyResizeElements,E=F.length&&(/textarea/i).test(F[0].nodeName),L=E&&D.ui.hasScroll(F[0],"left")?0:K.sizeDiff.height,N=E?0:K.sizeDiff.width;var G={width:(K.helper.width()-N),height:(K.helper.height()-L)},H=(parseInt(K.element.css("left"),10)+(K.position.left-K.originalPosition.left))||null,J=(parseInt(K.element.css("top"),10)+(K.position.top-K.originalPosition.top))||null;if(!M.animate){this.element.css(D.extend(G,{top:J,left:H}))}K.helper.height(K.size.height);K.helper.width(K.size.width);if(this._helper&&!M.animate){this._proportionallyResize()}}D("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",I);if(this._helper){this.helper.remove()}return false},_updateVirtualBoundaries:function(H){var E=this.options,I,J,G,F,K;K={minWidth:A(E.minWidth)?E.minWidth:0,maxWidth:A(E.maxWidth)?E.maxWidth:Infinity,minHeight:A(E.minHeight)?E.minHeight:0,maxHeight:A(E.maxHeight)?E.maxHeight:Infinity};if(this._aspectRatio||H){I=K.minHeight*this.aspectRatio;G=K.minWidth/this.aspectRatio;J=K.maxHeight*this.aspectRatio;F=K.maxWidth/this.aspectRatio;if(I>K.minWidth){K.minWidth=I}if(G>K.minHeight){K.minHeight=G}if(JI.width),G=A(I.height)&&O.minHeight&&(O.minHeight>I.height);if(H){I.width=O.minWidth}if(G){I.height=O.minHeight}if(L){I.width=O.maxWidth}if(F){I.height=O.maxHeight}var J=this.originalPosition.left+this.originalSize.width,P=this.position.top+this.size.height;var E=/sw|nw|w/.test(S),R=/nw|ne|n/.test(S);if(H&&E){I.left=J-O.minWidth}if(L&&E){I.left=J-O.maxWidth}if(G&&R){I.top=P-O.minHeight}if(F&&R){I.top=P-O.maxHeight}var Q=!I.width&&!I.height;if(Q&&!I.left&&I.top){I.top=null}else{if(Q&&!I.top&&I.left){I.left=null}}return I},_proportionallyResize:function(){var F=this.options;if(!this._proportionallyResizeElements.length){return}var I=this.helper||this.element;for(var E=0;E');var G=D.browser.msie&&D.browser.version<7,I=(G?1:0),H=(G?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+H,height:this.element.outerHeight()+H,position:"absolute",left:this.elementOffset.left-I+"px",top:this.elementOffset.top-I+"px",zIndex:++F.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(I,G,E){var F=this.options,J=this.originalSize,H=this.originalPosition;if(F.concernAngle&&this.element.data("deg")){return D.divrotate.getDegreeResizeChange(this.element,[G,E],H,J,"e")}return{width:this.originalSize.width+G}},w:function(I,G,E){var F=this.options,J=this.originalSize,H=this.originalPosition;if(F.concernAngle&&this.element.data("deg")){return D.divrotate.getDegreeResizeChange(this.element,[G,E],H,J,"w")}return{left:H.left+G,width:J.width-G}},n:function(I,G,E){var F=this.options,J=this.originalSize,H=this.originalPosition;if(F.concernAngle&&this.element.data("deg")){return D.divrotate.getDegreeResizeChange(this.element,[G,E],H,J,"n")}else{return{top:H.top+E,height:J.height-E}}},s:function(I,G,E){var F=this.options,J=this.originalSize,H=this.originalPosition;if(F.concernAngle&&this.element.data("deg")){return D.divrotate.getDegreeResizeChange(this.element,[G,E],H,J,"s")}return{height:this.originalSize.height+E}},se:function(G,F,E){return D.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[G,F,E]))},sw:function(G,F,E){return D.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[G,F,E]))},ne:function(G,F,E){return D.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[G,F,E]))},nw:function(G,M,L){var J=this.options,E=this.originalSize,F=this.originalPosition;if(J.concernAngle&&this.element.data("deg")){var K=F.left,H=F.top;var I=this._change.n.apply(this,arguments);var N=this._change.w.apply(this,arguments);var O=D.extend({},I,N);O.left=I.left+N.left-K;O.top=I.top+N.top-H;return O}return D.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[G,M,L]))}},_propagate:function(E,F){D.ui.plugin.call(this,E,[F,this.ui()]);(E!="resize"&&this._trigger(E,F,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});D.extend(D.ui.resizable,{version:"1.8.17"});D.ui.plugin.add("resizable","alsoResize",{start:function(H,E){var F=D(this).data("resizable"),G=F.options;var I=function(J){D(J).each(function(){var K=D(this);K.data("resizable-alsoresize",{width:parseInt(K.width(),10),height:parseInt(K.height(),10),left:parseInt(K.css("left"),10),top:parseInt(K.css("top"),10),position:K.css("position")})})};if(typeof(G.alsoResize)=="object"&&!G.alsoResize.parentNode){if(G.alsoResize.length){G.alsoResize=G.alsoResize[0];I(G.alsoResize)}else{D.each(G.alsoResize,function(J){I(J)})}}else{I(G.alsoResize)}},resize:function(G,E){var H=D(this).data("resizable"),I=H.options,L=H.originalSize,K=H.originalPosition;var J={height:(H.size.height-L.height)||0,width:(H.size.width-L.width)||0,top:(H.position.top-K.top)||0,left:(H.position.left-K.left)||0},F=function(M,N){D(M).each(function(){var O=D(this),R=D(this).data("resizable-alsoresize"),P={},Q=N&&N.length?N:O.parents(E.originalElement[0]).length?["width","height"]:["width","height","top","left"];D.each(Q,function(S,T){var U=(R[T]||0)+(J[T]||0);if(U&&U>=0){P[T]=U||null}});if(D.browser.opera&&/relative/.test(O.css("position"))){H._revertToRelativePosition=true;O.css({position:"absolute",top:"auto",left:"auto"})}O.css(P)})};if(typeof(I.alsoResize)=="object"&&!I.alsoResize.nodeType){D.each(I.alsoResize,function(M,N){F(M,N)})}else{F(I.alsoResize)}},stop:function(H,E){var F=D(this).data("resizable"),G=F.options;var I=function(J){D(J).each(function(){var K=D(this);K.css({position:K.data("resizable-alsoresize").position})})};if(F._revertToRelativePosition){F._revertToRelativePosition=false;if(typeof(G.alsoResize)=="object"&&!G.alsoResize.nodeType){D.each(G.alsoResize,function(J){I(J)})}else{I(G.alsoResize)}}D(this).removeData("resizable-alsoresize")}});D.ui.plugin.add("resizable","animate",{stop:function(H,G){var N=D(this).data("resizable"),M=N.options;var F=N._proportionallyResizeElements,E=F.length&&(/textarea/i).test(F[0].nodeName),L=E&&D.ui.hasScroll(F[0],"left")?0:N.sizeDiff.height,O=E?0:N.sizeDiff.width;var K={width:(N.size.width-O),height:(N.size.height-L)},J=(parseInt(N.element.css("left"),10)+(N.position.left-N.originalPosition.left))||null,I=(parseInt(N.element.css("top"),10)+(N.position.top-N.originalPosition.top))||null;N.element.animate(D.extend(K,I&&J?{top:I,left:J}:{}),{duration:M.animateDuration,easing:M.animateEasing,step:function(){var P={width:parseInt(N.element.css("width"),10),height:parseInt(N.element.css("height"),10),top:parseInt(N.element.css("top"),10),left:parseInt(N.element.css("left"),10)};if(F&&F.length){D(F[0]).css({width:P.width,height:P.height})}N._updateCache(P);N._propagate("resize",H)}})}});D.ui.plugin.add("resizable","containment",{start:function(J,G){var N=D(this).data("resizable"),L=N.options,K=N.element;var Q=L.containment,O=(Q instanceof D)?Q.get(0):(/parent/.test(Q))?K.parent().get(0):Q;if(!O){return}N.containerElement=D(O);if(/document/.test(Q)||Q==document){N.containerOffset={left:0,top:0};N.containerPosition={left:0,top:0};N.parentData={element:D(document),left:0,top:0,width:D(document).width(),height:D(document).height()||document.body.parentNode.scrollHeight}}else{var F=D(O),H=[];D(["Top","Right","Left","Bottom"]).each(function(S,T){H[S]=C(F.css("padding"+T))});N.containerOffset=F.offset();N.containerPosition=F.position();N.containerSize={height:(F.innerHeight()-H[3]),width:(F.innerWidth()-H[1])};var I=N.containerOffset,E=N.containerSize.height,P=N.containerSize.width,M=(D.ui.hasScroll(O,"left")?O.scrollWidth:P),R=(D.ui.hasScroll(O)?O.scrollHeight:E);N.parentData={element:O,left:I.left,top:I.top,width:M,height:R}}},resize:function(K,H){var P=D(this).data("resizable"),O=P.options,M=P.containerSize,J=P.containerOffset,G=P.size,S=P.position,N=P._aspectRatio||K.shiftKey,L={top:0,left:0},Q=P.containerElement;if(Q[0]!=document&&(/static/).test(Q.css("position"))){L=J}if(S.left<(P._helper?J.left:0)){P.size.width=P.size.width+(P._helper?(P.position.left-J.left):(P.position.left-L.left));if(N){P.size.height=P.size.width/O.aspectRatio}P.position.left=O.helper?J.left:0}if(S.top<(P._helper?J.top:0)){P.size.height=P.size.height+(P._helper?(P.position.top-J.top):P.position.top);if(N){P.size.width=P.size.height*O.aspectRatio}P.position.top=P._helper?J.top:0}P.offset.left=P.parentData.left+P.position.left;P.offset.top=P.parentData.top+P.position.top;var I=Math.abs((P._helper?P.offset.left-L.left:(P.offset.left-L.left))+P.sizeDiff.width),E=Math.abs((P._helper?P.offset.top-L.top:(P.offset.top-J.top))+P.sizeDiff.height);var F=P.containerElement.get(0)==P.element.parent().get(0),R=/relative|absolute/.test(P.containerElement.css("position"));if(F&&R){I-=P.parentData.left}if(I+P.size.width>=P.parentData.width){P.size.width=P.parentData.width-I;if(N){P.size.height=P.size.width/P.aspectRatio}}if(E+P.size.height>=P.parentData.height){P.size.height=P.parentData.height-E;if(N){P.size.width=P.size.height*P.aspectRatio}}},stop:function(I,F){var M=D(this).data("resizable"),K=M.options,P=M.position,H=M.containerOffset,J=M.containerPosition,N=M.containerElement;var O=D(M.helper),E=O.offset(),G=O.outerWidth()-M.sizeDiff.width,L=O.outerHeight()-M.sizeDiff.height;if(M._helper&&!K.animate&&(/relative/).test(N.css("position"))){D(this).css({left:E.left-J.left-H.left,width:G,height:L})}if(M._helper&&!K.animate&&(/static/).test(N.css("position"))){D(this).css({left:E.left-J.left-H.left,width:G,height:L})}}});D.ui.plugin.add("resizable","scroll",{start:function(G,E){var F=D(this).data("resizable");o=F.options;if(o.scroll&&(!o.concernAngle||o.concernAngle&&!F.element.data("deg"))){F.scrollout=1;if(F.scrollParent[0]!=document&&F.scrollParent[0].tagName!="HTML"){F.overflowOffset=F.scrollParent.offset()}}},resize:function(G,F){var J=D(this).data("resizable"),I=J.options,E=false;if(I.scroll&&(!I.concernAngle||I.concernAngle&&!J.element.data("deg"))){if(J.scrollParent[0]!=document&&J.scrollParent[0].tagName!="HTML"){var L=J.scrollParent[0].scrollTop;J.element.data("resize_oriscrolltop",L);var H=J.lastheightval||0;if((J.axis=="s"||J.axis=="n")&&H-J.size.height!=0){J.lastheightval=J.size.height;var K=0;var M=function(N){K=J.scrollParent[0].scrollTop-L;if(J.axis=="s"){if(J.scrollout==1){J.size.height+=K;J.scrollout=N}else{J.size.height+=K*2}}else{if(J.scrollout==1){J.size.height-=K;J.position.top+=K;J.scrollout=N}else{J.size.height-=K*2;J.position.top+=K*2}}};if((J.overflowOffset.top+J.scrollParent[0].offsetHeight)-G.pageY").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(E.range==="min"||E.range==="max"?" ui-slider-range-"+E.range:"")));for(var H=F.length;HP&&(L=P,M=C(this),H=O)}),K.range===!0&&this.values(1)===K.min&&(H+=1,M=C(this.handles[H])),E=this._start(J,H);if(E===!1){return !1}this._mouseSliding=!0,G._handleIndex=H,M.addClass("ui-state-active").focus(),F=M.offset(),I=!C(J.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=I?{left:0,top:0}:{left:J.pageX-F.left-M.width()/2,top:J.pageY-F.top-M.height()/2-(parseInt(M.css("borderTopWidth"),10)||0)-(parseInt(M.css("borderBottomWidth"),10)||0)+(parseInt(M.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(J,H,D),this._animateOff=!0;return !0},_mouseStart:function(D){return !0},_mouseDrag:function(F){var D={x:F.pageX,y:F.pageY},E=this._normValueFromMouse(D);this._slide(F,this._handleIndex,E);return !1},_mouseStop:function(D){this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(D,this._handleIndex),this._change(D,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1;return !1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(H){var F,G,D,E,I;this.orientation==="horizontal"?(F=this.elementSize.width,G=H.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(F=this.elementSize.height,G=H.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),D=G/F,D>1&&(D=1),D<0&&(D=0),this.orientation==="vertical"&&(D=1-D),E=this._valueMax()-this._valueMin(),I=this._valueMin()+D*E;return this._trimAlignValue(I)},_start:function(F,D){var E={handle:this.handles[D],value:this.value()};this.options.values&&this.options.values.length&&(E.value=this.values(D),E.values=this.values());return this._trigger("start",F,E)},_slide:function(H,F,G){var D,E,I;this.options.values&&this.options.values.length?(D=this.values(F?0:1),this.options.values.length===2&&this.options.range===!0&&(F===0&&G>D||F===1&&G1){this.options.values[F]=this._trimAlignValue(G),this._refreshValue(),this._change(null,F)}else{if(!arguments.length){return this._values()}if(!C.isArray(arguments[0])){return this.options.values&&this.options.values.length?this._values(F):this.value()}D=this.options.values,E=arguments[0];for(H=0;H=this._valueMax()){return this._valueMax()}var E=this.options.step>0?this.options.step:1,F=(G-this._valueMin())%E,D=G-F;Math.abs(F)*2>=E&&(D+=F>0?E:-E);return parseFloat(D.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var I=this.options.range,J=this.options,M=this,D=this._animateOff?!1:J.animate,K,L={},G,H,E,F;this.options.values&&this.options.values.length?this.handles.each(function(O,N){K=(M.values(O)-M._valueMin())/(M._valueMax()-M._valueMin())*100,L[M.orientation==="horizontal"?"left":"bottom"]=K+"%",C(this).stop(1,1)[D?"animate":"css"](L,J.animate),M.options.range===!0&&(M.orientation==="horizontal"?(O===0&&M.range.stop(1,1)[D?"animate":"css"]({left:K+"%"},J.animate),O===1&&M.range[D?"animate":"css"]({width:K-G+"%"},{queue:!1,duration:J.animate})):(O===0&&M.range.stop(1,1)[D?"animate":"css"]({bottom:K+"%"},J.animate),O===1&&M.range[D?"animate":"css"]({height:K-G+"%"},{queue:!1,duration:J.animate}))),G=K}):(H=this.value(),E=this._valueMin(),F=this._valueMax(),K=F!==E?(H-E)/(F-E)*100:0,L[M.orientation==="horizontal"?"left":"bottom"]=K+"%",this.handle.stop(1,1)[D?"animate":"css"](L,J.animate),I==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[D?"animate":"css"]({width:K+"%"},J.animate),I==="max"&&this.orientation==="horizontal"&&this.range[D?"animate":"css"]({width:100-K+"%"},{queue:!1,duration:J.animate}),I==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[D?"animate":"css"]({height:K+"%"},J.animate),I==="max"&&this.orientation==="vertical"&&this.range[D?"animate":"css"]({height:100-K+"%"},{queue:!1,duration:J.animate}))}}),C.extend(C.ui.slider,{version:"1.8.17"})})(jQuery);(function(E,C){E.ui=E.ui||{};var D=/left|center|right/,H=/top|center|bottom/,A="center",F={},G=E.fn.position,B=E.fn.offset;E.fn.position=function(P){if(!P||!P.of){return G.apply(this,arguments)}P=E.extend({},P);var K=E(P.of),L=K[0],I=(P.collision||"flip").split(" "),J=P.offset?P.offset.split(" "):[0,0],N,O,M;L.nodeType===9?(N=K.width(),O=K.height(),M={top:0,left:0}):L.setTimeout?(N=K.width(),O=K.height(),M={top:K.scrollTop(),left:K.scrollLeft()}):L.preventDefault?(P.at="left top",N=O=0,M={top:P.of.pageY,left:P.of.pageX}):(N=K.outerWidth(),O=K.outerHeight(),M=K.offset()),E.each(["my","at"],function(){var Q=(P[this]||"").split(" ");Q.length===1&&(Q=D.test(Q[0])?Q.concat([A]):H.test(Q[0])?[A].concat(Q):[A,A]),Q[0]=D.test(Q[0])?Q[0]:A,Q[1]=H.test(Q[1])?Q[1]:A,P[this]=Q}),I.length===1&&(I[1]=I[0]),J[0]=parseInt(J[0],10)||0,J.length===1&&(J[1]=J[0]),J[1]=parseInt(J[1],10)||0,P.at[0]==="right"?M.left+=N:P.at[0]===A&&(M.left+=N/2),P.at[1]==="bottom"?M.top+=O:P.at[1]===A&&(M.top+=O/2),M.left+=J[0],M.top+=J[1];return this.each(function(){var W=E(this),Y=W.outerWidth(),X=W.outerHeight(),T=parseInt(E.curCSS(this,"marginLeft",!0))||0,U=parseInt(E.curCSS(this,"marginTop",!0))||0,V=Y+T+(parseInt(E.curCSS(this,"marginRight",!0))||0),R=X+U+(parseInt(E.curCSS(this,"marginBottom",!0))||0),S=E.extend({},M),Q;P.my[0]==="right"?S.left-=Y:P.my[0]===A&&(S.left-=Y/2),P.my[1]==="bottom"?S.top-=X:P.my[1]===A&&(S.top-=X/2),F.fractions||(S.left=Math.round(S.left),S.top=Math.round(S.top)),Q={left:S.left-T,top:S.top-U},E.each(["left","top"],function(a,Z){E.ui.position[I[a]]&&E.ui.position[I[a]][Z](S,{targetWidth:N,targetHeight:O,elemWidth:Y,elemHeight:X,collisionPosition:Q,collisionWidth:V,collisionHeight:R,offset:J,my:P.my,at:P.at})}),E.fn.bgiframe&&W.bgiframe(),W.offset(E.extend(S,{using:P.using}))})},E.ui.position={fit:{left:function(K,L){var I=E(window),J=L.collisionPosition.left+L.collisionWidth-I.width()-I.scrollLeft();K.left=J>0?K.left-J:Math.max(K.left-L.collisionPosition.left,K.left)},top:function(K,L){var I=E(window),J=L.collisionPosition.top+L.collisionHeight-I.height()-I.scrollTop();K.top=J>0?K.top-J:Math.max(K.top-L.collisionPosition.top,K.top)}},flip:{left:function(M,N){if(N.at[0]!==A){var J=E(window),O=N.collisionPosition.left+N.collisionWidth-J.width()-J.scrollLeft(),I=N.my[0]==="left"?-N.elemWidth:N.my[0]==="right"?N.elemWidth:0,K=N.at[0]==="left"?N.targetWidth:-N.targetWidth,L=-2*N.offset[0];M.left+=N.collisionPosition.left<0?I+K+L:O>0?I+K+L:0}},top:function(M,N){if(N.at[1]!==A){var J=E(window),O=N.collisionPosition.top+N.collisionHeight-J.height()-J.scrollTop(),I=N.my[1]==="top"?-N.elemHeight:N.my[1]==="bottom"?N.elemHeight:0,K=N.at[1]==="top"?N.targetHeight:-N.targetHeight,L=-2*N.offset[1];M.top+=N.collisionPosition.top<0?I+K+L:O>0?I+K+L:0}}}},E.offset.setOffset||(E.offset.setOffset=function(M,N){/static/.test(E.curCSS(M,"position"))&&(M.style.position="relative");var J=E(M),K=J.offset(),O=parseInt(E.curCSS(M,"top",!0),10)||0,I=parseInt(E.curCSS(M,"left",!0),10)||0,L={top:N.top-K.top+O,left:N.left-K.left+I};"using" in N?N.using.call(M,L):J.css(L)},E.fn.offset=function(I){var J=this[0];if(!J||!J.ownerDocument){return null}if(I){return this.each(function(){E.offset.setOffset(this,I)})}return B.call(this)}),function(){var M=document.getElementsByTagName("body")[0],N=document.createElement("div"),P,I,O,K,L;P=document.createElement(M?"div":"body"),O={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},M&&jQuery.extend(O,{position:"absolute",left:"-1000px",top:"-1000px"});for(var J in O){P.style[J]=O[J]}P.appendChild(N),I=M||document.documentElement,I.insertBefore(P,I.firstChild),N.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",K=E(N).offset(function(R,Q){return Q}).offset(),P.innerHTML="",I.removeChild(P),L=K.top+K.left+(M?2000:0),F.fractions=L>21&&L<22}()})(jQuery);(function(D,E){var F=0;D.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,width:"auto",position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var A=this,B=this.element[0].ownerDocument,C;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(I){if(A.options.disabled||A.element.propAttr("readOnly")){return}C=false;var J=D.ui.keyCode;switch(I.keyCode){case J.PAGE_UP:A._move("previousPage",I);break;case J.PAGE_DOWN:A._move("nextPage",I);break;case J.UP:A._move("previous",I);I.preventDefault();break;case J.DOWN:A._move("next",I);I.preventDefault();break;case J.ENTER:case J.NUMPAD_ENTER:if(A.menu.active){C=true;I.preventDefault()}case J.TAB:if(!A.menu.active){return}A.menu.select(I);break;case J.ESCAPE:A.element.val(A.term);A.close(I);break;default:clearTimeout(A.searching);A.searching=setTimeout(function(){if(A.term!=A.element.val()){A.selectedItem=null;A.search(null,I)}},A.options.delay);break}}).bind("keypress.autocomplete",function(H){if(C){C=false;H.preventDefault()}}).bind("focus.autocomplete",function(){if(A.options.disabled){return}A.selectedItem=null;A.previous=A.element.val()}).bind("blur.autocomplete",function(H){if(A.options.disabled){return}clearTimeout(A.searching);A.closing=setTimeout(function(){A.close(H);A._change(H)},150)});this._initSource();this.response=function(){return A._response.apply(A,arguments)};this.menu=D("
    ").addClass("ui-autocomplete").appendTo(D(this.options.appendTo||"body",B)[0]).mousedown(function(J){var I=A.menu.element[0];if(!D(J.target).closest(".ui-menu-item").length){setTimeout(function(){D(document).one("mousedown",function(G){if(G.target!==A.element[0]&&G.target!==I&&!D.ui.contains(I,G.target)){A.close()}})},1)}setTimeout(function(){clearTimeout(A.closing)},13)}).menu({focus:function(K,L){var J=L.item.data("item.autocomplete");if(false!==A._trigger("focus",K,{item:J})){if(/^key/.test(K.originalEvent.type)){A.element.val(J.value)}}},selected:function(L,M){var N=M.item.data("item.autocomplete"),K=A.previous;if(A.element[0]!==B.activeElement){A.element.focus();A.previous=K;setTimeout(function(){A.previous=K;A.selectedItem=N},1)}if(false!==A._trigger("select",L,{item:N})){A.element.val(N.value)}A.term=A.element.val();A.close(L);A.selectedItem=N},blur:function(I,J){if(A.menu.element.is(":visible")&&(A.element.val()!==A.term)){A.element.val(A.term)}}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");if(D.fn.bgiframe){this.menu.element.bgiframe()}A.beforeunloadHandler=function(){A.element.removeAttr("autocomplete")};D(window).bind("beforeunload",A.beforeunloadHandler)},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();D(window).unbind("beforeunload",this.beforeunloadHandler);D.Widget.prototype.destroy.call(this)},_setOption:function(B,A){D.Widget.prototype._setOption.apply(this,arguments);if(B==="source"){this._initSource()}if(B==="appendTo"){this.menu.element.appendTo(D(A||"body",this.element[0].ownerDocument)[0])}if(B==="disabled"&&A&&this.xhr){this.xhr.abort()}},_initSource:function(){var C=this,A,B;if(D.isArray(this.options.source)){A=this.options.source;this.source=function(I,J){J(D.ui.autocomplete.filter(A,I.term))}}else{if(typeof this.options.source==="string"){B=this.options.source;this.source=function(I,J){if(C.xhr){C.xhr.abort()}C.xhr=D.ajax({url:B,data:I,dataType:"json",autocompleteRequest:++F,success:function(H,G){if(this.autocompleteRequest===F){J(H)}},error:function(){if(this.autocompleteRequest===F){J([])}}})}}else{this.source=this.options.source}}},search:function(A,B){A=A!=null?A:this.element.val();this.term=this.element.val();if(A.length").data("item.autocomplete",A).append(D("").text(A.label)).appendTo(B)},_move:function(A,B){if(!this.menu.element.is(":visible")){this.search(null,B);return}if(this.menu.first()&&/^previous/.test(A)||this.menu.last()&&/^next/.test(A)){this.element.val(this.term);this.menu.deactivate();return}this.menu[A](B)},widget:function(){return this.menu.element}});D.extend(D.ui.autocomplete,{escapeRegex:function(A){return A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(A,C){var B=new RegExp(D.ui.autocomplete.escapeRegex(C),"i");return D.grep(A,function(H){return B.test(H.label||H.value||H)})}})}(jQuery));(function(B){B.widget("ui.menu",{_create:function(){var A=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(D){if(!B(D.target).closest(".ui-menu-item a").length){return}D.preventDefault();A.select(D)});this.refresh()},refresh:function(){var D=this;var A=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");A.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(C){D.activate(C,B(this).parent())}).mouseleave(function(){D.deactivate()})},activate:function(J,A){this.deactivate();if(this.hasScroll()){var G=A.offset().top-this.element.offset().top,H=this.element.scrollTop(),I=this.element.height();if(G<0){this.element.scrollTop(H+G)}else{if(G>=I){this.element.scrollTop(H+G-I+A.height())}}}this.active=A.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",J,{item:A})},deactivate:function(){if(!this.active){return}this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null},next:function(A){this.move("next",".ui-menu-item:first",A)},previous:function(A){this.move("prev",".ui-menu-item:last",A)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(H,G,A){if(!this.active){this.activate(A,this.element.children(G));return}var F=this.active[H+"All"](".ui-menu-item").eq(0);if(F.length){this.activate(A,F)}else{this.activate(A,this.element.children(G))}},nextPage:function(F){if(this.hasScroll()){if(!this.active||this.last()){this.activate(F,this.element.children(".ui-menu-item:first"));return}var G=this.active.offset().top,A=this.element.height(),H=this.element.children(".ui-menu-item").filter(function(){var C=B(this).offset().top-G-A+B(this).height();return C<10&&C>-10});if(!H.length){H=this.element.children(".ui-menu-item:last")}this.activate(F,H)}else{this.activate(F,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))}},previousPage:function(A){if(this.hasScroll()){if(!this.active||this.first()){this.activate(A,this.element.children(".ui-menu-item:last"));return}var E=this.active.offset().top,F=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var C=B(this).offset().top-E+F-B(this).height();return C<10&&C>-10});if(!result.length){result=this.element.children(".ui-menu-item:first")}this.activate(A,result)}else{this.activate(A,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))}},hasScroll:function(){return this.element.height()")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(E){var C=this;this.opos=[E.pageX,E.pageY];if(this.options.disabled){return}var D=this.options;this.selectees=B(D.filter,this.element[0]);this._trigger("start",E);B(D.appendTo).append(this.helper);this.helper.css({"left":E.clientX,"top":E.clientY,"width":0,"height":0});if(D.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var F=B.data(this,"selectable-item");F.startselected=true;if(!E.metaKey&&!E.ctrlKey){F.$element.removeClass("ui-selected");F.selected=false;F.$element.addClass("ui-unselecting");F.unselecting=true;C._trigger("unselecting",E,{unselecting:F.element})}});B(E.target).parents().andSelf().each(function(){var F=B.data(this,"selectable-item");if(F){var G=(!E.metaKey&&!E.ctrlKey)||!F.$element.hasClass("ui-selected");F.$element.removeClass(G?"ui-unselecting":"ui-selected").addClass(G?"ui-selecting":"ui-unselecting");F.unselecting=!G;F.selecting=G;F.selected=G;if(G){C._trigger("selecting",E,{selecting:F.element})}else{C._trigger("unselecting",E,{unselecting:F.element})}return false}})},_mouseDrag:function(F){var J=this;this.dragged=true;if(this.options.disabled){return}var I=this.options;var C=this.opos[0],D=this.opos[1],E=F.pageX,H=F.pageY;if(C>E){var G=E;E=C;C=G}if(D>H){var G=H;H=D;D=G}this.helper.css({left:C,top:D,width:E-C,height:H-D});this.selectees.each(function(){var K=B.data(this,"selectable-item");if(!K||K.element==J.element[0]){return}var L=false;if(I.tolerance=="touch"){L=(!(K.left>E||K.rightH||K.bottomC&&K.rightD&&K.bottomI.failure_limit){return false}}}}})}if(H){if(D!==H.failurelimit){H.failure_limit=H.failurelimit;delete H.failurelimit}if(D!==H.effectspeed){H.effect_speed=H.effectspeed;delete H.effectspeed}E.extend(I,H)}J=(I.container===D||I.container===A)?C:E(I.container);if(0===I.event.indexOf("scroll")){J.bind(I.event,function(){return F()})}this.each(function(){var K=this;var L=E(K);K.loaded=false;if(L.attr("src")===D||L.attr("src")===false){if(L.is("img")){L.attr("src",I.placeholder)}}L.one("appear",function(){if(!this.loaded){if(I.appear){var M=G.length;I.appear.call(K,M,I)}E("").bind("load",function(){var O=L.attr("data-"+I.data_attribute);L.hide();if(L.is("img")){L.attr("src",O)}else{L.css("background-image","url('"+O+"')")}L[I.effect](I.effect_speed);K.loaded=true;var P=E.grep(G,function(Q){return !Q.loaded});G=E(P);if(I.load){var N=G.length;I.load.call(K,N,I)}}).attr("src",L.attr("data-"+I.data_attribute))}});if(0!==I.event.indexOf("scroll")){L.bind(I.event,function(){if(!K.loaded){L.trigger("appear")}})}});C.bind("resize",function(){F()});if((/(?:iphone|ipod|ipad).*os 5/gi).test(navigator.appVersion)){C.bind("pageshow",function(K){if(K.originalEvent&&K.originalEvent.persisted){G.each(function(){E(this).trigger("appear")})}})}E(B).ready(function(){F()});return this};E.belowthefold=function(G,F){var H;if(F.container===D||F.container===A){H=(A.innerHeight?A.innerHeight:C.height())+C.scrollTop()}else{H=E(F.container).offset().top+E(F.container).height()}return H<=E(G).offset().top-F.threshold};E.rightoffold=function(G,F){var H;if(F.container===D||F.container===A){H=C.width()+C.scrollLeft()}else{H=E(F.container).offset().left+E(F.container).width()}return H<=E(G).offset().left-F.threshold};E.abovethetop=function(H,G){var I;if(G.container===D||G.container===A){I=C.scrollTop()}else{I=E(G.container).offset().top}var F=E(H).height();if(F==0&&E(H).parents().parents().attr("class")=="img_over"){var F=E(H).parents().parents().height()}return I>=E(H).offset().top+G.threshold+F};E.leftofbegin=function(G,F){var H;if(F.container===D||F.container===A){H=C.scrollLeft()}else{H=E(F.container).offset().left}return H>=Math.max(E(G).offset().left+E(G).width(),2)+F.threshold};E.inviewport=function(G,F){return !E.rightoffold(G,F)&&!E.leftofbegin(G,F)&&!E.belowthefold(G,F)&&!E.abovethetop(G,F)};E.extend(E.expr[":"],{"below-the-fold":function(F){return E.belowthefold(F,{threshold:0})},"above-the-top":function(F){return !E.belowthefold(F,{threshold:0})},"right-of-screen":function(F){return E.rightoffold(F,{threshold:0})},"left-of-screen":function(F){return !E.rightoffold(F,{threshold:0})},"in-viewport":function(F){return E.inviewport(F,{threshold:0})},"above-the-fold":function(F){return !E.belowthefold(F,{threshold:0})},"right-of-fold":function(F){return E.rightoffold(F,{threshold:0})},"left-of-fold":function(F){return !E.rightoffold(F,{threshold:0})}})})(jQuery,window,document);; (function(E,C){var B={0:0};var A={0:1};var D={0:0};E.math={};E.math.sin=function(G){if(G<0){G=G+360}if(G>=360){G=G%360}if(B[G]==C){var F=Math.sin(G*Math.PI/180);B[G]=F}return B[G]};E.math.cos=function(G){if(G<0){G=G+360}if(G>=360){G=G%360}if(A[G]==C){var F=Math.cos(G*Math.PI/180);A[G]=F}return A[G]};E.math.tan=function(G){if(G<0){G=G+360}if(G>=360){G=G%360}if(D[G]==C){var F=Math.tan(G*Math.PI/180);D[G]=F}return D[G]};E.math.acos=function(F){var G=Math.acos(F);return Math.round(G*180/Math.PI)};E.parseInteger=function(G){var F=parseInt(G);if(isNaN(F)){return 0}return F};E.divrotate=function(L,G,M,F){L=E(L);var H=L.width();var K=L.height();if(F){H=F[0];K=F[1]}if(M){var J=M[0];var I=M[1];if(E.browser.msie&&E.browser.version<9){H=parseInt(L.data("IEWidth"));K=parseInt(L.data("IEHeight"));J=L.data("IELeft");if(J==C){J=M[0];L.data("IELeft",J)}I=L.data("IETop");if(I==C){I=M[1];L.data("IETop",I)}ieRotate({degree:G,left:J,top:I,width:H,height:K,dom:L})}else{L[0].style.left=Math.round(J)+"px";L[0].style.top=Math.round(I)+"px"}}if(E.browser.safari||E.browser.mozilla||E.browser.opera||(E.browser.msie&&E.browser.version=="9.0")){ieRotate({degree:G,dom:L})}};E.fn.modattr=function(F,G){if(F=="leftpos"){var H=this.data("prop_leftpos");if(!H){H=[parseInt(this.css("left")),parseInt(this.css("top"))]}if(G!=C){this.data("prop_leftpos",G)}return H}if(F=="degree"){var H=this.data("deg");if(!H){H=0}if(G!=C){this.data("deg",G)}return H}if(F=="size"){var H=this.data("prop_size");if(!H){H=[this.width(),this.height()]}if(G!=C){this.data("prop_size",G)}return H}};E.divrotate.reversePos=function(N,H,I,M){var K=N[0];var J=N[1];var O=E.math.cos(H);var L=E.math.sin(H);if(E.browser.msie&&E.browser.version<9){var F=K;if(H<90){F=K+M*L}else{if(H<180){F=K+M*L-I*O}else{if(H<270){F=K-I*O}else{F=K}}}var G=J;if(H<90){G=J}else{if(H<180){G=J-M*O}else{if(H<270){G=J-M*O-I*L}else{G=J-I*L}}}return[F,G]}else{return N}};E.divrotate.getMaxDistance=function(N){var G=N.data("deg");var K=parseInt(N.css("left"));var J=parseInt(N.css("top"));var H=N.width();var M=N.height();var L=canv.width();var P,I,F;if(!G){P=K;I=L-H-K;F=J}else{if(G>360){G=G%360}var O=E.math.cos(G);var Q=E.math.sin(G);if(G<=90){P=K-M*Q;I=L-K-H*O;F=J}else{if(G>90&&G<=180){P=K-M*Q+H*O;I=L-K;F=J+M*O}else{if(G>180&&G<=270){P=K+H*O;I=L-K+M*Q;F=J+M*O+H*Q}else{if(G>270&&G<=360){P=K;I=L-K+M*Q-H*O;F=J+H*Q}}}}}return{left:P,right:I,top:F}};E.divrotate.getDegreeModMaxPointOrigin=function(O,G,N,H,R){var L=E.getElementFatherid(O);var F=E("#"+L).ab_pos_cnter("top");var G=G;if(!G){var M=0;var J=H[0];var K=H[1];switch(R){case"left":M=N[0];break;case"right":M=N[0]+J;break;case"top":M=N[1]+F;break;case"buttom":M=N[1]+K+F;break}return M}else{if(E.browser.msie&&E.browser.version<9){var M=0;switch(R){case"left":M=O.position().left;break;case"right":M=O.position().left+O.width();break;case"top":M=O.position().top;break;case"buttom":M=O.position().top+O.height();break}return M}var M=0;var J=H[0];var K=H[1];var P=N[0];var I=N[1];if(G>360){G=G%360}var Q=E.math.cos(G);var S=E.math.sin(G);switch(R){case"left":if(G<=90){M=P-K*S}else{if(G>90&&G<=180){M=P-K*S+J*Q}else{if(G>180&&G<=270){M=P+J*Q}else{if(G>270&&G<=360){M=P}}}}break;case"right":if(G<=90){M=P+J*Q}else{if(G>90&&G<=180){M=P}else{if(G>180&&G<=270){M=P-K*S}else{if(G>270&&G<=360){M=P-K*S+J*Q}}}}break;case"top":if(G<=90){M=I}else{if(G>90&&G<=180){M=I+K*Q}else{if(G>180&&G<=270){M=I+K*Q+J*S}else{if(G>270&&G<=360){M=I+J*S}}}}M=M+F;break;case"buttom":if(G<=90){M=I+K*Q+J*S}else{if(G>90&&G<=180){M=I+J*S}else{if(G>180&&G<=270){M=I}else{if(G>270&&G<=360){M=I+K*Q}}}}M=M+F;break}return M}};E.divrotate.getDegreeModMaxPoint=function(F,H,J){var K=F.data("deg");if(H==null){H=[E.parseInteger(F.css("left")),E.parseInteger(F.css("top"))]}var I=F.width();var G=F.height();return E.divrotate.getDegreeModMaxPointOrigin(F,K,H,[I,G],J)};E.divrotate.getDegreeModMaxPointForRotate=function(F,K,H,J){var I=F.width();var G=F.height();return E.divrotate.getDegreeModMaxPointOrigin(F,K,H,[I,G],J)};E.divrotate.getDegreeResizeCursor=function(F){var G=F.data("deg");if(G==null){G=0}if(G>360){G=G%360}if(G<=22||G>=338){F.find(".ui-resizable-n").css("cursor","n-resize");F.find(".ui-resizable-e").css("cursor","e-resize");F.find(".ui-resizable-w").css("cursor","w-resize");F.find(".ui-resizable-s").css("cursor","s-resize");F.find(".ui-resizable-ne").css("cursor","ne-resize");F.find(".ui-resizable-se").css("cursor","se-resize");F.find(".ui-resizable-nw").css("cursor","nw-resize");F.find(".ui-resizable-sw").css("cursor","sw-resize")}else{if(G>22&&G<=67){F.find(".ui-resizable-n").css("cursor","ne-resize");F.find(".ui-resizable-e").css("cursor","se-resize");F.find(".ui-resizable-w").css("cursor","nw-resize");F.find(".ui-resizable-s").css("cursor","sw-resize");F.find(".ui-resizable-ne").css("cursor","e-resize");F.find(".ui-resizable-se").css("cursor","s-resize");F.find(".ui-resizable-nw").css("cursor","n-resize");F.find(".ui-resizable-sw").css("cursor","w-resize")}else{if(G>67&&G<=112){F.find(".ui-resizable-n").css("cursor","e-resize");F.find(".ui-resizable-e").css("cursor","s-resize");F.find(".ui-resizable-w").css("cursor","n-resize");F.find(".ui-resizable-s").css("cursor","w-resize");F.find(".ui-resizable-ne").css("cursor","se-resize");F.find(".ui-resizable-se").css("cursor","sw-resize");F.find(".ui-resizable-nw").css("cursor","ne-resize");F.find(".ui-resizable-sw").css("cursor","nw-resize")}else{if(G>112&&G<=157){F.find(".ui-resizable-n").css("cursor","se-resize");F.find(".ui-resizable-e").css("cursor","sw-resize");F.find(".ui-resizable-w").css("cursor","ne-resize");F.find(".ui-resizable-s").css("cursor","nw-resize");F.find(".ui-resizable-ne").css("cursor","s-resize");F.find(".ui-resizable-se").css("cursor","w-resize");F.find(".ui-resizable-nw").css("cursor","e-resize");F.find(".ui-resizable-sw").css("cursor","n-resize")}else{if(G>157&&G<=202){F.find(".ui-resizable-n").css("cursor","s-resize");F.find(".ui-resizable-e").css("cursor","w-resize");F.find(".ui-resizable-w").css("cursor","e-resize");F.find(".ui-resizable-s").css("cursor","n-resize");F.find(".ui-resizable-ne").css("cursor","sw-resize");F.find(".ui-resizable-se").css("cursor","nw-resize");F.find(".ui-resizable-nw").css("cursor","se-resize");F.find(".ui-resizable-sw").css("cursor","ne-resize")}else{if(G>202&&G<=247){F.find(".ui-resizable-n").css("cursor","sw-resize");F.find(".ui-resizable-e").css("cursor","nw-resize");F.find(".ui-resizable-w").css("cursor","se-resize");F.find(".ui-resizable-s").css("cursor","ne-resize");F.find(".ui-resizable-ne").css("cursor","w-resize");F.find(".ui-resizable-se").css("cursor","n-resize");F.find(".ui-resizable-nw").css("cursor","s-resize");F.find(".ui-resizable-sw").css("cursor","e-resize")}else{if(G>247&&G<=292){F.find(".ui-resizable-n").css("cursor","w-resize");F.find(".ui-resizable-e").css("cursor","n-resize");F.find(".ui-resizable-w").css("cursor","s-resize");F.find(".ui-resizable-s").css("cursor","e-resize");F.find(".ui-resizable-ne").css("cursor","nw-resize");F.find(".ui-resizable-se").css("cursor","ne-resize");F.find(".ui-resizable-nw").css("cursor","sw-resize");F.find(".ui-resizable-sw").css("cursor","se-resize")}else{if(G>292&&G<=337){F.find(".ui-resizable-n").css("cursor","nw-resize");F.find(".ui-resizable-e").css("cursor","ne-resize");F.find(".ui-resizable-w").css("cursor","sw-resize");F.find(".ui-resizable-s").css("cursor","se-resize");F.find(".ui-resizable-ne").css("cursor","n-resize");F.find(".ui-resizable-se").css("cursor","e-resize");F.find(".ui-resizable-nw").css("cursor","w-resize");F.find(".ui-resizable-sw").css("cursor","s-resize")}}}}}}}}};E.divrotate.getDegreeResizeChange=function(N,Y,S,K,M){var R=N.data("deg");if(R>360){R=R%360}var O=Math.sin(R*Math.PI/180);var V=Math.cos(R*Math.PI/180);if(E.browser.msie&&E.browser.version<9){var G=N.data("IEWidth");var J=N.data("IEHeight");if(R>=0&&R<90){var Z=S.left+J*O,H=S.top}else{if(R>=90&&R<180){var Z=J*O-G*V+S.left,H=S.top-J*V}else{if(R>180&&R<=270){var Z=S.left-G*V,H=S.top-G*O-J*V}else{if(R>270&&R<360){var Z=S.left,H=G*V+S.top}}}}}else{var G=K.width;var J=K.height;var Z=S.left,H=S.top}var L=Y[0];var U=Y[1];var Q=E.math.tan(R);var T,P,X;var I=function(a){T=E.math.acos((L+a*U)/(Math.sqrt(L*L+U*U)*Math.sqrt(1+a*a)));P=Math.sqrt(L*L+U*U)*E.math.sin(T);X=L*a-U};var W=function(a){T=E.math.acos((L-a*U)/(Math.sqrt(L*L+U*U)*Math.sqrt(1+a*a)));P=Math.sqrt(L*L+U*U)*E.math.sin(T);X=0-(L*a+U)};if(E.browser.msie&&E.browser.version<9){var F=null;switch(M){case"n":I(Q);if(X==0){return{}}if(R<=90){if(X>0){F={height:Math.round(J+P),left:Math.round(Z+P*E.math.sin(R)-(J+P)*E.math.sin(R)),top:Math.round(H-P*E.math.cos(R))}}else{if(X<0){F={height:Math.round(J-P),left:Math.round(Z-P*E.math.sin(R)-(J-P)*E.math.sin(R)),top:Math.round(H+P*E.math.cos(R))}}}}else{if(R>270&&R<360){if(X>0){F={height:Math.round(J+P),left:Math.round(Z+P*E.math.sin(R)),top:Math.round(H-P*E.math.cos(R)-G*E.math.cos(R))}}else{if(X<0){F={height:Math.round(J-P),left:Math.round(Z-P*E.math.sin(R)),top:Math.round(H+P*E.math.cos(R)-G*E.math.cos(R))}}}}else{if(R>90&&R<=180){if(X>0){F={height:Math.round(J-P),left:Math.round(Z-P*E.math.sin(R)-(J-P)*E.math.sin(R)+G*E.math.cos(R)),top:Math.round(H+P*E.math.cos(R)+(J-P)*E.math.cos(R))}}else{if(X<0){F={height:Math.round(J+P),left:Math.round(Z+P*E.math.sin(R)-(J+P)*E.math.sin(R)+G*E.math.cos(R)),top:Math.round(H-P*E.math.cos(R)+(J+P)*E.math.cos(R))}}}}else{if(R>180&&R<=270){if(X>0){F={height:Math.round(J-P),left:Math.round(Z-P*E.math.sin(R)+G*E.math.cos(R)),top:Math.round(H+P*E.math.cos(R)+(J-P)*E.math.cos(R)+G*E.math.sin(R))}}else{if(X<0){F={height:Math.round(J+P),left:Math.round(Z+P*E.math.sin(R)+G*E.math.cos(R)),top:Math.round(H-P*E.math.cos(R)+(J+P)*E.math.cos(R)+G*E.math.sin(R))}}}}}}}break;case"s":I(Q);if(X==0){return{}}if(R<=90){if(X>0){F={width:G,height:Math.round(J-P),left:Math.round(Z-(J-P)*E.math.sin(R)),top:H}}else{if(X<0){F={width:G,height:Math.round(J+P),left:Math.round(Z-(J+P)*E.math.sin(R)),top:H}}}}else{if(R>90&&R<=180){if(X>0){F={width:G,height:Math.round(J+P),left:Math.round(Z-(J+P)*E.math.sin(R)+G*E.math.cos(R)),top:Math.round(H+(J+P)*E.math.cos(R))}}else{if(X<0){F={width:G,height:Math.round(J-P),left:Math.round(Z-(J-P)*E.math.sin(R)+G*E.math.cos(R)),top:Math.round(H+(J-P)*E.math.cos(R))}}}}else{if(R>180&&R<=270){if(X>0){F={width:G,height:Math.round(J+P),left:Math.round(Z+G*E.math.cos(R)),top:Math.round(H+(J+P)*E.math.cos(R)+G*E.math.sin(R))}}else{if(X<0){F={width:G,height:Math.round(J-P),left:Math.round(Z+G*E.math.cos(R)),top:Math.round(H+(J-P)*E.math.cos(R)+G*E.math.sin(R))}}}}else{if(R>270&&R<360){if(X>0){F={width:G,height:Math.round(J-P),left:Z,top:Math.round(H-G*E.math.cos(R))}}else{if(X<0){F={width:G,height:Math.round(J+P),left:Z,top:Math.round(H-G*E.math.cos(R))}}}}}}}break;case"w":W(1/Q);if(X==0){return{}}if(R<=90){if(X>0){F={width:Math.round(G+P),height:J,left:Math.round(Z-P*E.math.cos(R)-J*E.math.sin(R)),top:Math.round(H-P*E.math.sin(R))}}else{if(X<0){F={width:Math.round(G-P),height:J,left:Math.round(Z+P*E.math.cos(R)-J*E.math.sin(R)),top:Math.round(H+P*E.math.sin(R))}}}}else{if(R>90&&R<=180){if(X>0){F={width:Math.round(G+P),height:J,left:Math.round(Z-P*E.math.cos(R)-J*E.math.sin(R)+(G+P)*E.math.cos(R)),top:Math.round(H-P*E.math.sin(R)+J*E.math.cos(R))}}else{if(X<0){F={width:Math.round(G-P),height:J,left:Math.round(Z+P*E.math.cos(R)-J*E.math.sin(R)+(G-P)*E.math.cos(R)),top:Math.round(H+P*E.math.sin(R)+J*E.math.cos(R))}}}}else{if(R>180&&R<=270){if(X>0){F={width:Math.round(G-P),height:J,left:Math.round(Z+P*E.math.cos(R)+(G-P)*E.math.cos(R)),top:Math.round(H+P*E.math.sin(R)+(G-P)*E.math.sin(R)+J*E.math.cos(R))}}else{if(X<0){F={width:Math.round(G+P),height:J,left:Math.round(Z-P*E.math.cos(R)+(G+P)*E.math.cos(R)),top:Math.round(H-P*E.math.sin(R)+(G+P)*E.math.sin(R)+J*E.math.cos(R))}}}}else{if(R>270&&R<360){if(X>0){F={width:Math.round(G-P),height:J,left:Math.round(Z+P*E.math.cos(R)),top:Math.round(H+P*E.math.sin(R)-(G-P)*E.math.cos(R))}}else{if(X<0){F={width:Math.round(G+P),height:J,left:Math.round(Z-P*E.math.cos(R)),top:Math.round(H-P*E.math.sin(R)-(G+P)*E.math.cos(R))}}}}}}}break;case"e":W(1/Q);if(X==0){return{}}if(R<=90){if(X>0){F={width:Math.round(G-P),height:J,left:Z-J*E.math.sin(R),top:H}}else{if(X<0){F={width:Math.round(G+P),height:J,left:Z-J*E.math.sin(R),top:H}}}}else{if(R>90&&R<=180){if(X>0){F={width:Math.round(G-P),height:J,left:Z-J*E.math.sin(R)+(G-P)*E.math.cos(R),top:H+J*E.math.cos(R)}}else{if(X<0){F={width:Math.round(G+P),height:J,left:Z-J*E.math.sin(R)+(G+P)*E.math.cos(R),top:H+J*E.math.cos(R)}}}}else{if(R>180&&R<=270){if(X>0){F={width:Math.round(G+P),height:J,left:Z+(G+P)*E.math.cos(R),top:H+(G+P)*E.math.sin(R)+J*E.math.cos(R)}}else{if(X<0){F={width:Math.round(G-P),height:J,left:Z+(G-P)*E.math.cos(R),top:H+(G-P)*E.math.sin(R)+J*E.math.cos(R)}}}}else{if(R>270&&R<360){if(X>0){F={width:Math.round(G+P),height:J,left:Z,top:H-(G+P)*E.math.cos(R)}}else{if(X<0){F={width:Math.round(G-P),height:J,left:Z,top:H-(G-P)*E.math.cos(R)}}}}}}}break}N.data("IEWidth_tmp",F.width||G).data("IEHeight_tmp",F.height||J);E(".propblk,.posblk").remove();return F}else{switch(M){case"n":I(Q);if(X==0){return{}}if(R<=90||(R>270&&R<=360)){if(X>0){return{height:Math.round(J+P),left:Math.round(Z+P*E.math.sin(R)),top:Math.round(H-P*E.math.cos(R))}}else{if(X<0){return{height:Math.round(J-P),left:Math.round(Z-P*E.math.sin(R)),top:Math.round(H+P*E.math.cos(R))}}}}else{if(R>90&&R<=270){if(X>0){return{height:Math.round(J-P),left:Math.round(Z-P*E.math.sin(R)),top:Math.round(H+P*E.math.cos(R))}}else{if(X<0){return{height:Math.round(J+P),left:Math.round(Z+P*E.math.sin(R)),top:Math.round(H-P*E.math.cos(R))}}}}}break;case"s":I(Q);if(X==0){return{}}if(R<=90||(R>270&&R<=360)){if(X>0){return{height:Math.round(J-P)}}else{if(X<0){return{height:Math.round(J+P)}}}}else{if(R>90&&R<=270){if(X>0){return{height:Math.round(J+P)}}else{if(X<0){return{height:Math.round(J-P)}}}}}break;case"w":W(1/Q);if(X==0){return{}}if(R<=180){if(X>0){return{width:Math.round(G+P),left:Math.round(Z-P*E.math.cos(R)),top:Math.round(H-P*E.math.sin(R))}}else{if(X<0){return{width:Math.round(G-P),left:Math.round(Z+P*E.math.cos(R)),top:Math.round(H+P*E.math.sin(R))}}}}else{if(R>180&&R<=360){if(X>0){return{width:Math.round(G-P),left:Math.round(Z+P*E.math.cos(R)),top:Math.round(H+P*E.math.sin(R))}}else{if(X<0){return{width:Math.round(G+P),left:Math.round(Z-P*E.math.cos(R)),top:Math.round(H-P*E.math.sin(R))}}}}}break;case"e":W(1/Q);if(X==0){return{}}if(R<=180){if(X>0){return{width:Math.round(G-P)}}else{if(X<0){return{width:Math.round(G+P)}}}}else{if(R>180&&R<=360){if(X>0){return{width:Math.round(G+P)}}else{if(X<0){return{width:Math.round(G-P)}}}}}break}}}})(jQuery);function rotateWithCenter(L,E){L=$(L);var B=L.modattr("leftpos");var O=B[0];var M=B[1];var D=L.modattr("degree");var F=L.width();var I=L.height();var K=$.math.sin(D);var N=$.math.cos(D);var G=[O+F/2*N-I/2*K,M+I/2*N+F/2*K];var A=$.math.sin(E);var J=$.math.cos(E);var C=G[0]+I/2*A-F/2*J;var H=G[1]-F/2*A-I/2*J;$.divrotate(L,E,[C,H]);toolbarRotate(L,E,{w:F,h:I})}function toolbarRotate(M,S,A,P){if(!P){P=$(".propblk")}if(P.length==0){return}M=$(M);if(P.is(".propblk")){var Q=M.data("toolbarsize")}else{Q=M.data("posizeblksize");if(S){P.data("rotatedegree",S)}}if(!Q){Q=[P.width(),P.height()];M.data("toolbarsize",Q)}if($.browser.msie&&$.browser.version<9){var K=Q[0];var D=Q[1];var C=$("#"+M.attr("id")).width();var G=$("#"+M.attr("id")).height();var F=$.resetModToolbarLeft($("#"+M.attr("id")).position().left);var T=$("#"+M.attr("id")).position().top;var J=S%360;var E=M.data("IEWidth");var N=M.data("IEHeight");if(M.data("sinx")==undefined){var L=Math.PI*J/180;var U=Math.cos(L);var O=Math.sin(L);M.data("sinx",O);M.data("cosx",U)}else{var U=M.data("cosx");var O=M.data("sinx")}if(J>0&&J<=90){var B=(C+F)-D*O;var W=T+(G-N*U)}else{if(J>90&&J<=180){var B=C+F-(D*O-K*U)-(-1*U*E);var W=G+T+D*U}else{if(J>180&&J<=270){var B=F+K*U;var W=T-N*U+D*U+K*O}else{if(J>270&&J<360){var B=F+E*U;var W=T+K*O}}}}P.css({filter:"progid:DXImageTransform.Microsoft.Matrix(M11="+U+",M12="+(-O)+",M21="+O+",M22="+U+",SizingMethod='auto expand')","left":B+"px","top":W+"px"})}else{var X=M.data("prop_size");var C=0;if(X){C=X[0]}else{C=M.width()}if(!S){S=0}var Y=M.data("prop_leftpos");var R=parseInt(M.css("left"));var V=parseInt(M.css("top"));if(Y){R=Y[0];V=Y[1]}var G=35;var I=$.math.sin(S)*G+$.resetModToolbarLeft(parseInt(R))+canv.offset().left-(window.MobileOffsetLeft||0);var H=parseInt(V)-$.math.cos(S)*G+$("#"+$.getElementFatherid(M)).ab_pos_cnter("top");$.divrotate(P,S,[I,H],Q)}}function modPosRotate(K,R,B){if($(".posblk").length==0){return}K=$(K);var S=K.data("modpossize");if(!S){S=[$(".posblk").width(),$(".posblk").height()];K.data("modpossize",S)}if(!R){R=0}var W=K.data("prop_leftpos");var U=parseInt(K.css("left"));var Q=parseInt(K.css("top"));if(W){U=W[0];Q=W[1]}K.data("deg",R);$(".posblk").find(".posblk-position").html(Math.round(U)+","+Math.round(Q)).andSelf().find(".posblk-deg").html(K.data("deg")%360);if($.browser.msie&&$.browser.version<9){var X=S[0];var L=S[1];var D=$("#"+K.attr("id")).width();var F=$("#"+K.attr("id")).height();var O=$("#"+K.attr("id")).position().left;var T=$("#"+K.attr("id")).position().top;var I=R%360;var E=K.data("IEWidth");var M=K.data("IEHeight");if(K.data("sinx")==undefined){var J=Math.PI*I/180;var A=Math.cos(J);var N=Math.sin(J);K.data("sinx",N);K.data("cosx",A)}else{var A=K.data("cosx");var N=K.data("sinx")}if(I>=0&&I<=90){var P=O+M*N;var C=T-L*A}else{if(I>90&&I<=180){var P=O+D+X*A;var C=T-M*A}else{if(I>180&&I<=270){var P=O-E*A+X*A+L*N;var C=T+F+X*N}else{if(I>270&&I<360){var P=O+L*N;var C=T-E*N-L*A+X*N}}}}$(".posblk").css({filter:"progid:DXImageTransform.Microsoft.Matrix(M11="+A+",M12="+(-N)+",M21="+N+",M22="+A+",SizingMethod='auto expand')","left":P+"px","top":C+"px"})}else{var V=K.data("prop_size");var D=0;if(V){D=V[0]+10}else{D=K.width()+10}var H=$.math.cos(R)*D+parseInt(U)+canv.offset().left-(window.MobileOffsetLeft||0);var G=$.math.sin(R)*D+parseInt(Q)+$("#"+$.getElementFatherid(K)).ab_pos_cnter("top");$.divrotate($(".posblk"),R,[H,G],S)}}function getOldProxyFromSize(J,C,D,F){var I=C%360;var A=$("#"+J.attr("id")).position().left;var L=$("#"+J.attr("id")).position().top;var K=$("#"+J.attr("id"));if(J.data("sinx")==undefined){var E=Math.PI*I/180;var H=Math.cos(E);var G=Math.sin(E);J.data("sinx",G);J.data("cosx",H)}else{var G=J.data("sinx");var H=J.data("cosx")}if(I==0){var B=A;var M=L}else{if(I>=0&&I<=90){var B=(F*G+D*H-D)/2+A;var M=(D*G+F*H-F)/2+L}else{if(I>90&&I<=180){var B=(F*G-D*H-D)/2+A;var M=(D*G-F*H-F)/2+L}else{if(I>180&&I<=270){var B=(-1*F*G-D*H-D)/2+A;var M=(-1*D*G-F*H-F)/2+L}else{if(I>270&&I<360){var B=(-1*F*G+D*H-D)/2+A;var M=(-1*D*G+F*H-F)/2+L}}}}}return[B,M]}function getLeftPointProxy(B,A){var I=A%360;var C=B.position().left,D=B.position().top;var J=Math.PI*I/180;var G=Math.sin(J),H=Math.cos(J);var F=B.data("IEWidth"),E=B.data("IEHeight");if(I>=0&&I<90){return[Math.round(C+E*G),Math.round(D)]}else{if(I>=90&&I<180){return[Math.round(C+E*G-F*H),Math.round(D-E*H)]}else{if(I>=180&&I<270){return[Math.round(C-F*H),Math.round(D-E*H-F*G)]}else{if(I>=270&&I<360){return[Math.round(C),Math.round(D-F*G)]}}}}};; (function(W){var Z=W.$LAB,v="UseLocalXHR",p="AlwaysPreserveOrder",U="AllowDuplicates",j="CacheBust",g="BasePath",h=/^[^?#]*\//.exec(location.href)[0],m=/^\w+\:\/\/\/?[^\/]+/.exec(h)[0],V=document.head||document.getElementsByTagName("head"),e=(W.opera&&Object.prototype.toString.call(W.opera)=="[object Opera]")||("MozAppearance" in document.documentElement.style),S=document.createElement("script"),n=typeof S.preload=="boolean",Q=n||(S.readyState&&S.readyState=="uninitialized"),k=!Q&&S.async===true,f=!Q&&!k&&!e;function l(A){return Object.prototype.toString.call(A)=="[object Function]"}function a(A){return Object.prototype.toString.call(A)=="[object Array]"}function c(C,B){var A=/^\w+\:\/\//;if(/^\/\/\/?/.test(C)){C=location.protocol+C}else{if(!A.test(C)&&C.charAt(0)!="index.html"){C=(B||"")+C}}return A.test(C)?C:((C.charAt(0)=="/"?m:h)+C)}function R(C,B){for(var A in C){if(C.hasOwnProperty(A)){B[A]=C[A]}}return B}function d(C){var B=false;for(var A=0;A0){for(var q=0;q=0;){I=C.shift();L=L[I.type].apply(null,I.args)}return L},noConflict:function(){W.$LAB=Z;return E},sandbox:function(){return Y()}};return E}W.$LAB=Y();(function(C,B,A){if(document.readyState==null&&document[C]){document.readyState="loading";document[C](B,A=function(){document.removeEventListener(B,A,false);document.readyState="complete"},false)}})("addEventListener","DOMContentLoaded")})(this);; var mclick = 'click',mtouchstart = 'mousedown',mtouchend = 'mouseup',mtouchmove = 'mousemove'; if (window.ontouchstart !== undefined) { mclick = 'click';mtouchstart = 'touchstart';mtouchend = 'touchend';mtouchmove = 'touchmove'; } /**Global Function**/ function getSessionExpiredUrl() { $(window).unbind('beforeunload'); alert(translate('page.sessionTimeout')); window.close(); return null; } function initCanvasHeight(){ var maxheight=0; var helperfunc=function(dom){ var degree=dom.data('deg')||dom.attr('deg'); var pos=[parseInt(dom.css('left')),parseInt(dom.css('top'))] var w=dom.width(); var h=dom.height(); if(dom.hasClass('cstlayer')){ var buttompos=$.divrotate.getDegreeModMaxPointOrigin(dom,degree,pos,[w,h],'buttom'); }else{ var buttompos=dom.ab_pos_cnter('top')+parseInt(dom.css('height')); } return buttompos; } var filterfunc=function(){ return $(this).is(":not(div[deleted='deleted'])") && $(this).attr('childdel') != 'del'; } $('#canvas .cstlayer,#canvas .full_column').filter(filterfunc).each(function(){ var canvheight=helperfunc($(this)); if(canvheight>maxheight) maxheight=canvheight; }) $("#canvas").data('layermaxheight',maxheight); } /**document ready js**/ $(document).bind('lastexec',function(){ // Mobile device 2014/01/06 if (window.MobileModel) { var $scontainer = $('#scroll_container'),canvaswidth = $('#canvas').width(); $scontainer.unbind(".mbprevredhat.tmpredhat"); if ($('#wp-mobile-device-header').length > 0) { // 手机模型定位 var screenWidth = window.innerWidth||self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth, deviceOtherHeight = $('#wp-mobile-device-header').closest('.wp-new-manage-toolbar-position').height() + $('#wp-mobile-device-footer').height(); var onlyOnce_resize_width = false; $(window).bind("resize.mbeditor", function(e, status){ var screenHeight = window.innerHeight||self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight; $('#wp-mobile-device-sides').height(screenHeight - deviceOtherHeight).children('.mwrapper').height(screenHeight - deviceOtherHeight - 2); // 自定义滚动条样式 var sidewidth = 14;/* 手机模型边缘宽度 */ var mbtimer = setTimeout(function(){ var newleft = ($._parseFloat($('#wp-mobile-device-header').css("left"))||0) + sidewidth; $scontainer.css({"left": (newleft - 10)+'px',"width": function(){/*-10是为了修复"缩放句柄被遮"问题*/ if( onlyOnce_resize_width == false ){ onlyOnce_resize_width = true; return ($(this).width() + (status?(sidewidth + 15 + 10):0))+'px'; }else{ return ; } },"margin": '0',"padding-left": '11px',"top": '-6px',"overflow-y": 'scroll'}); $('#site_footer').css("left", '11px');/*11px是为了修复"缩放句柄被遮"问题*/ if (status == undefined) $scontainer.mscroll("destroy"); $scontainer.mscroll({difleft: 10,maskbg: '#ccc'});clearTimeout(mbtimer); }, 100); }).triggerHandler("resize.mbeditor", ['init']); $('#wp-mobile-device-header,#wp-mobile-device-sides,#wp-mobile-device-footer').css({"left": function(){ return ((screenWidth - $(this).width()) / 2)+'px'; }, "visibility": 'visible'}); // 保存布局 $('#wp-mobile-device-footer > span').click(function(){ wp_floatpanel(parseToURL('wp_widgets','save_page'),{ title: translate('page.saveLayout'),width: 418,overlay: true,isCenter: true, contentClass: 'wp-site-set_panel_c',id: 'wp-page_save',zIndex: 9999 }); }); } else {/* 预览模式 */ $scontainer.css("visibility", 'visible'); $(window).load(function(){ var $win = $(this),frmwidth = $win.width(),frmheight = window.getdeviceheight||565; $scontainer.height(frmheight); var mprevtimer = setTimeout(function(){ $scontainer.mscroll({"maskcname": 'wp-mobile-device-premask',"difleft": -6, "height": frmheight,"barcname": 'wp-mobile-prescrollbar',"maskleft": frmwidth,"barleft": frmwidth}); $win.triggerHandler("pageloaded");clearTimeout(mprevtimer); // 模拟“触屏”模式 var maxtop = frmheight - $('.wp-mobile-prescrollbar > span.pane').height(); $scontainer.bind("mousedown.mbprevredhat", function(e){ e.preventDefault(); var $prebar = $('.wp-mobile-prescrollbar'),pagey = e.pageY; $scontainer.bind("mousemove.tmpredhat", function(e){ e.preventDefault(); var scrltop = $scontainer.scrollTop(),movey = e.pageY - pagey; if (scrltop < 0) scrltop = 0; $scontainer.scrollTop(scrltop - movey); }).bind("mouseup.tmpredhat", function(e){ e.preventDefault();$scontainer.unbind(".tmpredhat"); $(parent.document).unbind(".rmredhat"); }); $(parent.document).bind("mouseup.rmredhat",function(){$scontainer.unbind(".tmpredhat")}); }); }, 150); }); } $('#site_footer,#footer_content').width(canvaswidth); } function resizeCanvasHeight(){ window.canv = $("#canvas"); var container=$('#scroll_container'); // 画布高度 var cvhgt = window.getdeviceheight || window.innerHeight || self.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;//$(window).height(); var ua = /micromessenger/i.test(navigator.userAgent.toLowerCase()); if (window.isHandheld&&!ua) cvhgt = Math.min(cvhgt, MobileUtils.getScreenHeight()); cvhgt -= container.offset().top,mfooterheight = $('#wp-mobile-device-footer').height()||0; container.height(cvhgt - mfooterheight); if($('#site_footer').length>0){ var canvheight=Math.max($("#canvas").data('layermaxheight'),cvhgt-$('#site_footer').height()-mfooterheight); if($('#site_footer:not(.only_copyright)').length>0){ canvheight=Math.max(canvheight,$("#canvas").height()); } }else{ var canvheight=Math.max($("#canvas").data('layermaxheight'),cvhgt); canvheight=Math.max($("#canvas").data('layermaxheight'),cvhgt-mfooterheight);//没有页脚时去设备底部高度,防没有任何模块时有滚动条bug/4574 } // 重置bSlider模块高度 2013/03/25 $('.cstlayer[type="bslider"]:not(.isplate)').each(function(i, dom){ $(dom).triggerHandler('resetbsliderheight', [canvheight]); }); if(!canv) var canv = $("#canvas"); canv.css('height',canvheight+'px'); $('#scroll_container_bg').css('height',(canvheight+$('#site_footer').height())+'px'); if($(window).width()-canv.width()<0) $('#scroll_container_bg').width(canv.width()); else $('#scroll_container_bg').css('width','100%'); // 更新标尺位置Start 2012/3/2 var canvleft = canv.offset().left; if (typeof $.fn.ruler_locate != 'undefined') { $.fn.ruler_locate({ x : {left:canvleft+'px'}, y : {height:canvheight+'px', left:(canvleft>17?canvleft-17:0)+'px'} }); $('.line_y').height(canvheight);// 辅助线高度 } // 在手机设备上访问 2014/02/08 if (window.isHandheld) { var $container = $('#scroll_container'),$footer = $('#site_footer'), maxheight = $('#scroll_container_bg').height() + $('>.mblank_placeholder',$container).height(); $container.css({"height": maxheight+'px',"overflow-x": 'hidden',"overflow-y": 'hidden'}); if($footer.length) { if (/micromessenger/i.test(navigator.userAgent.toLowerCase())) { $footer.css({'position':'absolute','top':$('#canvas').height()}); } $footer.find('#footer_content').andSelf().width($('#canvas').width()); } /*adpHandheld();*/$('.mloading-mask').remove(); $container.css("visibility", 'visible');$(window).triggerHandler("pageloaded"); } // 修复ipad中iframe touchmove冲突问题(bug#97) 2014/09/16 if (/ipad/.test(navigator.userAgent.toLowerCase())) { $(document.body).parent().andSelf().css({"overflow-x": 'hidden',"overflow-y": 'auto'}); container.css({"height": 'auto',"overflow-y": 'auto'}); } } function correctFooterPos(){ var canv = $("#canvas"); var canvheight=canv.height(); var canvwidth=canv.width(); var containerOffsetLeft = $('#scroll_container').offset().left; $('#site_footer').css({left:canv.offset().left-containerOffsetLeft+$('#scroll_container').scrollLeft()+$.parseInteger($('#canvas').css("borderLeftWidth")),top:canvheight}); $('#site_footer >.full_width').css({left:0-canv.offset().left+containerOffsetLeft-$('#scroll_container').scrollLeft()-$.parseInteger($('#canvas').css("borderLeftWidth")),width:$(window.MobileModel?'#canvas':'#scroll_container_bg').width()}); if($('#wp-mobile-device-header').length) $('#site_footer >.full_width').css("left", '0px'); } window.correctFooterPos=correctFooterPos; window.scroll_container_adjust=function(){ initCanvasHeight(); //resizeCanvasHeight(); //微信下初始化加载cvans高度过大出现滚动条。bug/4574 if (/micromessenger/i.test(navigator.userAgent.toLowerCase())) { setTimeout(function(){ resizeCanvasHeight(); correctFooterPos(); },600) }else { resizeCanvasHeight(); correctFooterPos(); } } window.scroll_container_adjust(); if(!canv) var canv = $("#canvas"); $('.full_column>.full_width').css({left:0-canv.offset().left+$('#scroll_container').offset().left-$('#scroll_container').scrollLeft()-$.parseInteger($('#canvas').css("borderLeftWidth")),width:$('#scroll_container_bg').width()}); //浏览器缩放是自动调整高度 var me = "orientation" in window && "onorientationchange" in window ? "orientationchange" : "resize" $(window).bind(me, function(e){ if(e.target==window||e.target==document){ resizeCanvasHeight(); correctFooterPos(); $('.full_column>.full_width').css({left:0-canv.offset().left+$('#scroll_container').offset().left-$('#scroll_container').scrollLeft()-$.parseInteger($('#canvas').css("borderLeftWidth")),width:$('#scroll_container_bg').width()}); } }) if (!window.isHandheld) rotateDom($('.cstlayer')); //Preview need resize window if(window.opener){ var winH = screen.availHeight || 768,winW = screen.availWidth || 1024; window.resizeTo(winW, winH); } // 新窗口打开超链接 $.extend({ openNewWin: function(URI){ var win = window.open(URI,'_blank'); win.focus; } }); }); jQuery.cookie=function(B,F,E){if(arguments.length>1&&(F===null||typeof F!=="object")){E=jQuery.extend({},E);if(F===null){E.expires=-1}if(typeof E.expires==="number"){var D=E.expires,G=E.expires=new Date();G.setDate(G.getDate()+D)}return(document.cookie=[encodeURIComponent(B),"=",E.raw?String(F):encodeURIComponent(String(F)),E.expires?"; expires="+E.expires.toUTCString():"",E.path?"; path="+E.path:"",E.domain?"; domain="+E.domain:"",E.secure?"; secure":""].join(""))}E=F||{};var A,C=E.raw?function(H){return H}:decodeURIComponent;return(A=new RegExp("(?:^|; )"+encodeURIComponent(B)+"=([^;]*)").exec(document.cookie))?C(A[1]):null};; (function(A){var E=A.browser.msie&&parseInt(A.browser.version)===6&&typeof window.XMLHttpRequest!=="object",D=A.browser.msie&&parseInt(A.browser.version)===7,C=null,B=[];A.modal=function(G,F){return A.modal.impl.init(G,F)};A.modal.close=function(){A.modal.impl.close()};A.modal.focus=function(F){A.modal.impl.focus(F)};A.modal.setContainerDimensions=function(){A.modal.impl.setContainerDimensions()};A.modal.setPosition=function(){A.modal.impl.setPosition()};A.modal.update=function(G,F){A.modal.impl.update(G,F)};A.fn.modal=function(F){return A.modal.impl.init(this,F)};A.modal.defaults={appendTo:"body",focus:true,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:null,minWidth:null,maxHeight:null,maxWidth:null,autoResize:false,autoPosition:true,zIndex:1000,close:true,closeHTML:'',closeClass:"simplemodal-close",escClose:true,overlayClose:false,position:null,persist:false,modal:true,onOpen:null,onShow:null,onClose:null};A.modal.impl={d:{},init:function(H,F){var G=this;if(G.d.data){return false}C=A.browser.msie&&!A.boxModel;G.o=A.extend({},A.modal.defaults,F);G.zIndex=G.o.zIndex;G.occb=false;if(typeof H==="object"){H=H instanceof jQuery?H:A(H);G.d.placeholder=false;if(H.parent().parent().size()>0){H.before(A("").attr("id","simplemodal-placeholder").css({display:"none"}));G.d.placeholder=true;G.display=H.css("display");if(!G.o.persist){G.d.orig=H.clone(true)}}}else{if(typeof H==="string"||typeof H==="number"){H=A("
    ").html(H)}else{alert("SimpleModal Error: Unsupported data type: "+typeof H);return G}}G.create(H);G.open();A.isFunction(G.o.onShow)&&G.o.onShow.apply(G,[G.d]);return G},create:function(G){var F=this;B=F.getDimensions();if(F.o.modal&&E){F.d.iframe=A('').css(A.extend(F.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:B[0],width:B[1],zIndex:F.o.zIndex,top:0,left:0})).appendTo(F.o.appendTo)}F.d.overlay=A("
    ").attr("id",F.o.overlayId).addClass("simplemodal-overlay").css(A.extend(F.o.overlayCss,{display:"none",opacity:F.o.opacity/100,height:F.o.modal?B[0]:0,width:F.o.modal?B[1]:0,position:"fixed",left:0,top:0,zIndex:F.o.zIndex+1})).appendTo(F.o.appendTo);F.d.container=A("
    ").attr("id",F.o.containerId).addClass("simplemodal-container").css(A.extend(F.o.containerCss,{display:"none",position:"fixed",zIndex:F.o.zIndex+2})).append(F.o.close&&F.o.closeHTML?A(F.o.closeHTML).addClass(F.o.closeClass):"").appendTo(F.o.appendTo);F.d.wrap=A("
    ").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%"}).appendTo(F.d.container);F.d.data=G.attr("id",G.attr("id")||F.o.dataId).addClass("simplemodal-data").css(A.extend(F.o.dataCss,{display:"none"})).appendTo("body");F.setContainerDimensions();F.d.data.appendTo(F.d.wrap);if(E||C){F.fixIE()}},bindEvents:function(){var F=this;A("."+F.o.closeClass).bind("click.simplemodal",function(G){G.preventDefault();F.close()});F.o.modal&&F.o.close&&F.o.overlayClose&&F.d.overlay.bind("click.simplemodal",function(G){G.preventDefault();F.close()});A(document).bind("keydown.simplemodal",function(G){if(F.o.modal&&G.keyCode===9){F.watchTab(G)}else{if(F.o.close&&F.o.escClose&&G.keyCode===27){G.preventDefault();F.close()}}});A(window).bind("resize.simplemodal",function(){B=F.getDimensions();F.o.autoResize?F.setContainerDimensions():F.o.autoPosition&&F.setPosition();if(E||C){F.fixIE()}else{if(F.o.modal){F.d.iframe&&F.d.iframe.css({height:B[0],width:B[1]});F.d.overlay.css({height:B[0],width:B[1]})}}})},unbindEvents:function(){A("."+this.o.closeClass).unbind("click.simplemodal");A(document).unbind("keydown.simplemodal");A(window).unbind("resize.simplemodal");this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var G=this,F=G.o.position;A.each([G.d.iframe||null,!G.o.modal?null:G.d.overlay,G.d.container],function(K,H){if(H){var I=H[0].style;I.position="absolute";if(K<2){I.removeExpression("height");I.removeExpression("width");I.setExpression("height",'document.body.scrollHeight > document.body.clientHeight ? document.body.scrollHeight : document.body.clientHeight + "px"');I.setExpression("width",'document.body.scrollWidth > document.body.clientWidth ? document.body.scrollWidth : document.body.clientWidth + "px"')}else{var J;if(F&&F.constructor===Array){K=F[0]?typeof F[0]==="number"?F[0].toString():F[0].replace(/px/,""):H.css("top").replace(/px/,"");K=K.indexOf("%")===-1?K+' + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"':parseInt(K.replace(/%/,""))+' * ((document.documentElement.clientHeight || document.body.clientHeight) / 100) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"';if(F[1]){J=typeof F[1]==="number"?F[1].toString():F[1].replace(/px/,"");J=J.indexOf("%")===-1?J+' + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"':parseInt(J.replace(/%/,""))+' * ((document.documentElement.clientWidth || document.body.clientWidth) / 100) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"'}}else{K='(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"';J='(document.documentElement.clientWidth || document.body.clientWidth) / 2 - (this.offsetWidth / 2) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"'}I.removeExpression("top");I.removeExpression("left");I.setExpression("top",K);I.setExpression("left",J)}}})},focus:function(H){var F=this;H=H&&A.inArray(H,["first","last"])!==-1?H:"first";var G=A(":input:enabled:visible:"+H,F.d.wrap);setTimeout(function(){G.length>0?G.focus():F.d.wrap.focus()},10)},getDimensions:function(){var F=A(window);return[A.browser.opera&&A.browser.version>"9.5"&&A.fn.jquery<"1.3"||A.browser.opera&&A.browser.version<"9.5"&&A.fn.jquery>"1.2.6"?F[0].innerHeight:F.height(),F.width()]},getVal:function(G,F){return G?typeof G==="number"?G:G==="auto"?0:G.indexOf("%")>0?parseInt(G.replace(/%/,""))/100*(F==="h"?B[0]:B[1]):parseInt(G.replace(/px/,"")):null},update:function(H,F){var G=this;if(!G.d.data){return false}G.d.origHeight=G.getVal(H,"h");G.d.origWidth=G.getVal(F,"w");G.d.data.hide();H&&G.d.container.css("height",H);F&&G.d.container.css("width",F);G.setContainerDimensions();G.d.data.show();G.o.focus&&G.focus();G.unbindEvents();G.bindEvents()},setContainerDimensions:function(){var L=this,J=E||D,K=L.d.origHeight?L.d.origHeight:A.browser.opera?L.d.container.height():L.getVal(J?L.d.container[0].currentStyle.height:L.d.container.css("height"),"h");J=L.d.origWidth?L.d.origWidth:A.browser.opera?L.d.container.width():L.getVal(J?L.d.container[0].currentStyle.width:L.d.container.css("width"),"w");var H=L.d.data.outerHeight(true),M=L.d.data.outerWidth(true);L.d.origHeight=L.d.origHeight||K;L.d.origWidth=L.d.origWidth||J;var F=L.o.maxHeight?L.getVal(L.o.maxHeight,"h"):null,I=L.o.maxWidth?L.getVal(L.o.maxWidth,"w"):null;F=F&&FF?F:KF?F:L.o.minHeight&&G!=="auto"&&HI?I:JI?I:L.o.minWidth&&F!=="auto"&&MK||M>J?"auto":"visible"});L.o.autoPosition&&L.setPosition()},setPosition:function(){var H=this,F,G;F=B[0]/2-H.d.container.outerHeight(true)/2;G=B[1]/2-H.d.container.outerWidth(true)/2;if(H.o.position&&Object.prototype.toString.call(H.o.position)==="[object Array]"){F=H.o.position[0]||F;G=H.o.position[1]||G}else{F=F;G=G}H.d.container.css({left:G,top:F})},watchTab:function(G){var F=this;if(A(G.target).parents(".simplemodal-container").length>0){F.inputs=A(":input:enabled:visible:first, :input:enabled:visible:last",F.d.data[0]);if(!G.shiftKey&&G.target===F.inputs[F.inputs.length-1]||G.shiftKey&&G.target===F.inputs[0]||F.inputs.length===0){G.preventDefault();F.focus(G.shiftKey?"last":"first")}}else{G.preventDefault();F.focus()}},open:function(){var F=this;F.d.iframe&&F.d.iframe.show();if(A.isFunction(F.o.onOpen)){F.o.onOpen.apply(F,[F.d])}else{F.d.overlay.show();F.d.container.show();F.d.data.show()}F.o.focus&&F.focus();F.bindEvents()},close:function(){var G=this;if(!G.d.data){return false}G.unbindEvents();if(A.isFunction(G.o.onClose)&&!G.occb){G.occb=true;G.o.onClose.apply(G,[G.d])}else{if(G.d.placeholder){var F=A("#simplemodal-placeholder");if(G.o.persist){F.replaceWith(G.d.data.removeClass("simplemodal-data").css("display",G.display))}else{G.d.data.hide().remove();F.replaceWith(G.d.orig)}}else{G.d.data.hide().remove()}G.d.container.hide().remove();G.d.overlay.hide();G.d.iframe&&G.d.iframe.hide().remove();setTimeout(function(){G.d.overlay.remove();G.d={}},10)}}}})(jQuery);function wp_confirm(H,C,F){if($("#wp-confirmpnl_overlay,#wp-confirm_panel").size()){return}var E=286,G="",A='
    ';G='";$(A+G).appendTo("body");var B=$("#wp-confirm_panel");B.bind("rename",function(J,K){if(K.length){var L=this;$("a.wp-alert-sure",L).html(K);var I=setTimeout(function(){var M=$("a.wp-alert-sure",L).outerWidth(true)+$("a.wp-alert-cancel",L).outerWidth(true);$(".wp-alert_button",L).width(M);M=null;clearTimeout(I)},50)}});var D=setTimeout(function(){var I=B.find(".wp-alert_button");I.width(I.outerWidth())},30);panel_position(B,E,"auto",true,"wp-confirmpnl_overlay");$(window).resize(function(){panel_position(B,E,"auto",true,"wp-confirmpnl_overlay")});B.find("a.wp-alert-sure").click(function(I){if(C&&$.isFunction(C)){C()}B.add("#wp-confirmpnl_overlay").remove();if(D){clearTimeout(D)}I.preventDefault()}).end().find("a.wp-alert-cancel").click(function(I){if(F&&$.isFunction(F)){F()}B.add("#wp-confirmpnl_overlay").remove();if(D){clearTimeout(D)}I.preventDefault()});$(document).keydown(function(I){if(I.keyCode==13){B.find("a.wp-alert-sure").trigger("click")}});return false}function wp_editPicOnline(C){var A=parseInt(getImageProcessType())||0;var D=["feather","xiuxiu"];if(A>=D.length){A=0}var B=D[A];$LAB.script(relativeToAbsoluteURL("script/wopop2_"+B+".js")).wait(function(){wp_editPicOnlineActual(C)})}function wp_alert(F,A){if($("#wp-alertpnl_overlay,#wp-alert_panel").size()){return}var E=286,D="",B='
    ';D='";$(B+D).appendTo("body");var C=$("#wp-alert_panel");panel_position(C,E,"auto",true,"wp-alertpnl_overlay");$(window).resize(function(){panel_position(C,E,"auto",true,"wp-alertpnl_overlay")});C.find("a.wp-alert-sure").click(function(G){C.add("#wp-alertpnl_overlay").remove();if($.isFunction(A)){A()}G.preventDefault()});$(document).keydown(function(G){if(G.keyCode==13){C.find("a.wp-alert-sure").trigger("click")}});return false}function show_dialog(A,E,F,B,D,C){var G=$.extend({},{open:function(H){},close:function(H){}},D||{});$("#osx-modal-content").modal({overlayId:"osx-overlay",containerId:"osx-container",closeHTML:null,zIndex:1000,opacity:25,onOpen:function(I){G.open(I);var J=this,M=I.container,K=M[0];var H=$("#osx-modal-data",K);if(C=="iframe"){H.html('');I.overlay.show();H.show();$("#osx-modal-content,div.close",K).show();$("#osx-modal-title",K).html(E).show();M.fadeTo("fast",1).draggable({handle:"#osx-modal-title",cursor:"move"})}else{var L=$("#wp-ajaxsend_loading2"),N=$(window);if(L.size()==0){$('
    ').appendTo("body")}$.get(A,function(O){H.html(O);I.overlay.show();H.show();$("#osx-modal-content,div.close",K).show();$("#osx-modal-title",K).html(E).show();M.fadeTo("fast",1).draggable({handle:"#osx-modal-title",cursor:"move"});J.setPosition();$("#wp-ajaxsend_loading2").remove()}).error(function(){$("#wp-ajaxsend_loading2").remove();alert(translate("Request failed!"));J.close();return})}if(F>0){M.css("width",F)}M.css("height",B||"");$("#osx-modal-content").bind("add_loading",function(){var O=H.children(".loading");if(O.size()){O.remove()}$('
    ').appendTo(H)})},onClose:function(H){G.close(H);var I=this;H.container.hide();H.overlay.hide();$("#osx-modal-content").triggerHandler("dialogclose",H);$("#osx-modal-content").unbind("dialogclose");$("#osx-modal-content").unbind("add_loading");setTimeout(function(){I.close()},500)}})}function get_plugin_css(tagid,css){var setcss=$("#page_set_css").html();setcss=setcss.replace(/")}(function(F,D){var B={};var E={};F.modplugin={addCallBack:function(G,I,H){if(F.isFunction(H)){if(!B[G]){B[G]={}}B[G][I]=H}},fireCallBack:function(G,J,I,K){var H=B[G];if(!H){return false}H=H[J];if(F.isFunction(H)){return H(I,K)}else{return false}}};F.fn.execPluginCallBack=function(G,H){return F.modplugin.fireCallBack(this.attr("type"),G,this,H)};F.fn.mod_property=function(G,J){if(F.isPlainObject(G)){for(var H in G){this.mod_property(H,G[H])}return}var K=this.prop("id");if(!K){return null}var I=E[K];if(!I){E[K]=I={}}if(J!==D){I[G]=J;return J}else{return I[G]}};var A=null;function C(){if(A){return}A=Undo.Command.createModuleCommand(function(G,I){var H=F("#"+G);if(I.propval!=D){H.mod_property(I.propkey,I.propval)}else{H.del_mod_property(I.propkey)}H.execPluginCallBack("property_undo",I)},null,{returntype:"class"})}F.fn.autoundo_mod_property=function(G,K){if(K===D){return this.mod_property(G)}C();var J=this.mod_property(G);this.mod_property(G,K);var I={propkey:G,propval:J,act:"set",cmdtype:"undo"};var H={propkey:G,propval:K,act:"set",cmdtype:"redo"};if(!Undo.Command.DefaultEqAct(J,K)){new A(this.attr("id")).insertWithVals(I,H)}};F.fn.autoundo_del_mod_property=function(G){C();var I=this.mod_property(G);this.del_mod_property(G);var H={propkey:G,propval:I,act:"del",cmdtype:"undo"};var J={propkey:G,act:"del",cmdtype:"redo"};if(I!=D){new A(this.attr("id")).insertWithVals(H,J)}};F.fn.del_mod_property=function(G){var J=this.prop("id");if(!J){return null}var H=E[J];if(F.isPlainObject(H)){var I=H[G];delete H[G];return I}};F.fn.get_mod_property=function(){var H=this.prop("id");if(!H){return null}var G=E[H];return G||{}}})(jQuery);; function footerinit(){footerdrag();footerresize();$.showSiteFooterTips();$(".full_column").each(function(){fullcolumninit($(this))})}function fullcolumninit(A){A.children(".full_width").css({left:0-canv.offset().left-$.parseInteger($("#canvas").css("borderLeftWidth")),width:$("#scroll_container_bg").width()});A.wp_rightkey();if(A.is(":not(.isplate)")){fullcolumndrag(A);fullcolumnresize(A);fullcolumndrop(A)}}function footerdrag(){var C=0;var D=canv.height();var B=Undo.Command.createModuleCommand(function(E,G){var F=$("#"+E);F.css("top",G.top);canv.height(G.canvheight);$("#scroll_container_bg").css("height",(G.canvheight+F.height())+"px");$.updateselectbgopt();$.updatepospropblk();$.canvasHeightChange()},null,{returntype:"class"});var A=null;$("#site_footer").draggable({cursor:"move",axis:"y",start:function(F,E){initCanvasHeight();var G=canv.data("layermaxheight")||0;D=canv.height();C=D-G;A=new B("site_footer");A.setOldVal({top:$.parseInteger($(this).css("top")),canvheight:D})},drag:function(H,E){var G=E.position.top-E.originalPosition.top;if(G<0){var F=0-G;if(F>C){var I=canv.data("layermaxheight")||0;E.position.top=E.originalPosition.top-C;canv.height(I);$("#scroll_container_bg").css("height",(I+$(this).height()+100)+"px");$.showselectbgopt($(this));$(".bgblk").hide();$(".posizeblk").html("x:"+(parseFloat($(this).css("left"))||0)+", y:"+E.position.top).show();$(this).triggerHandler("drag_progress",[{left:0,top:E.position.top}]);return}}$(this).triggerHandler("drag_progress",[{left:0,top:E.position.top}]);canv.height(D+G);$.showselectbgopt($(this));$(".bgblk").hide();$(".posizeblk").html("x:"+(parseFloat($(this).css("left"))||0)+", y:"+E.position.top).show();$("#scroll_container_bg").css("height",(D+G+$(this).height()+100)+"px")},stop:function(G,E){var F=E.position.top-E.originalPosition.top;canv.height(D+F);$("#scroll_container_bg").css("height",(D+F+$(this).height()+100)+"px");$.canvasHeightChange();correctFooterPos();A.insertWithNewVal({top:$.parseInteger($(this).css("top")),canvheight:D+F});A=null;$(".bgblk").show();$(".posizeblk").hide();$(this).trigger("drag_stop",[{left:parseInt($(this).css("left")),top:parseInt($(this).css("top"))}])}})}function fullcolumndrag(A){A.wp_drag()}function fullcolumnresize(A){var B=function(E){A.each(function(){var F="ui-resizable-"+E;var G=$('

    ');G.css({zIndex:1000});$(this).children(".full_width").append(G)})};var C=function(E){A.each(function(){var F="placeholder-"+E;var G=$('
    ');G.css({zIndex:1000}).hide();$(this).children(".full_width").append(G)})};B("n");B("s");C("w");C("e");var D;A.resizable({handles:{n:">.full_width .ui-resizable-n",s:">.full_width .ui-resizable-s"},noinit:true,canvascontain:"#canvas",distance:0,concernLock:true,scroll:true,create:function(){$(this).children(".full_width").find(".ui-resizable-handle").hide()},start:function(I,E){D=$.getFullColChildMaxButtom(A);var G=$(this);var H=new ResizeCommand(G.attr("id"));var K=["top","height"];var J={};for(var F=0;F

    ');K.css({zIndex:1000});$("#site_footer >.full_width").append(K)};var E=function(I){var J="placeholder-"+I;var K=$('
    ');K.css({zIndex:1000});$("#site_footer> .full_width").append(K)};A("n");A("s");E("w");E("e");var D=0;var B=canv.height();var H=0;var C=Undo.Command.createModuleCommand(function(I,K){var J=$("#"+I);J.css("top",K.top);J.css("height",K.height);canv.height(K.canvheight);J.children(".full_content,.full_width").height(K.height);$("#scroll_container_bg").css("height",(K.canvheight+J.height())+"px");$.updateselectbgopt();$.updatepospropblk();$.canvasHeightChange()},null,{returntype:"class"});var G=null;var F=null;$("#site_footer").resizable({handles:{n:">.full_width .ui-resizable-n",s:">.full_width .ui-resizable-s"},noinit:true,distance:0,scroll:true,create:function(){$(this).children(".full_width").find(".ui-resizable-handle").hide()},start:function(J,I){initCanvasHeight();if(F){clearTimeout(F);F=null}H=canv.data("layermaxheight")||0;B=canv.height();D=B-H;G=new C("site_footer");G.setOldVal({top:$.parseInteger($(this).css("top")),canvheight:B,height:$(this).height()});$(this).triggerHandler("resize_progress",[{ui:I}])},resize:function(K,I){var O=$(this).data("resizable");var L=O.axis;if(L=="n"){var J=$(this).height()-I.originalSize.height;if(J>D){var N=H;$(this).css({top:N,height:I.originalSize.height+D});var M=$(this).data("resize_oriscrolltop");$(this).scrollParent().scrollTop(M);$(this).children(".full_content,.full_width").height($(this).height());canv.height(H);$("#scroll_container_bg").css("height",(H+$(this).height()+100)+"px");$.showselectbgopt($(this));$(".bgblk").hide();$(".posizeblk").html("W:"+$(this).width()+", H:"+$(this).height()).show();return}canv.height(B-J);$(this).children(".full_content,.full_width").height($(this).height());$("#scroll_container_bg").css("height",(canv.height()+$(this).height()+100)+"px")}else{$(this).children(".full_content,.full_width").height($(this).height());$("#scroll_container_bg").css("height",(canv.height()+$(this).height()+100)+"px")}$.showselectbgopt($(this));$(".bgblk").hide();$(".posizeblk").html("W:"+$(this).width()+", H:"+$(this).height()).show();$(this).triggerHandler("resize_stop",[{ui:I}])},stop:function(K,I){var J=$(this);G.insertWithNewVal({top:$.parseInteger(J.css("top")),canvheight:canv.height(),height:J.height()});G=null;$(".bgblk").show();$(".posizeblk").hide();$.canvasHeightChange()}})}function fullcolumndrop(A){var C=function(D){A.each(function(){var E="placeholder-"+D;var F=$('
    ');F.css({zIndex:1000});$(this).children(".full_content").append(F)})};C("n");C("s");C("w");C("e");var B=A.children(".full_content");B.children(".li-placeholder").hide();B.children(".placeholder-n").css({"border-top":"#FF9900 dashed 4px"});B.children(".placeholder-s").css({"border-bottom":"#FF9900 dashed 4px"});B.children(".placeholder-e").css({"border-right":"#FF9900 dashed 4px"});B.children(".placeholder-w").css({"border-left":"#FF9900 dashed 4px"});B.droppable({tolerance:"pointer",accept:".full_column,.cstlayer",drop:function(G,D){var E=$.ui.ddmanager.current;if($.getElementAreaInf($(E.element))==$.getElementAreaInf(A)){if(!A.hasClass("ui-modselected")){$(this).children(".li-placeholder").hide();var H=$(document).data("layer_final_drop_id");var F=$.chooseBiggerColumn(H,A.attr("id"));$(document).data("layer_final_drop_id",F)}}},over:function(J,N){var H=false;$(".ui-modselected").each(function(){if($(this).data("cstlayerstatus")=="unlock"){H=true}});if(H){return}var I=$.ui.ddmanager.current;if($.getElementAreaInf($(I.element))==$.getElementAreaInf(A)){if(!A.hasClass("ui-modselected")){var D=A.attr("id");var F=$(document).data("layer_drop_over_id");if(D!=F){var K=$.chooseBiggerColumn(F,D);if(K==D){var M=$(this);$(this).children(".li-placeholder").show();if(F){var G=$("#"+F);var E=G.children(".full_content").data("droppable");E["isover"]=0;E["isout"]=1;E._out.call(E,J)}$(document).data("layer_drop_over_id",D)}else{var L=$(this).data("droppable");L["isover"]=0;L["isout"]=1}}}}},out:function(G,D){var H=false;$(".ui-modselected").each(function(){if($(this).data("cstlayerstatus")=="unlock"){H=true}});if(H){return}var E=$.ui.ddmanager.current;if($.getElementAreaInf($(E.element))==$.getElementAreaInf(A)){if(!A.hasClass("ui-modselected")){$(this).children(".li-placeholder").hide();var F=$(document).data("layer_drop_over_id");if(F==A.attr("id")){$(document).removeData("layer_drop_over_id")}}}}})}function fullcolumn_propblk_init(){var B;for(var A in $.backgroundPropDefaults){(function(){var F=A;var D=null;if($.inArray(F,["bg_moveto_prevop","bg_moveto_nextop"])!=-1){var C="",E="";switch(F){case"bg_moveto_prevop":E="top";C='';break;case"bg_moveto_nextop":E="bottom";C='';break}D={mousedown:function(){var I=$(this);var G=I.offset();var J=$("#scroll_container");var H=J.scrollTop();$(C).appendTo(J).css({top:function(){return(G.top+H-25-39)+"px"},left:G.left+"px"}).click(function(K){$("#"+$.bgselectedid).wp_setorder(E,$.bgselectedid);$(this).remove();I.removeClass("local");K.preventDefault()})},mouseup:function(){}}}$("#"+F).mousedown(function(G){var H=$(this);H.addClass("local");if($(".wp-moveto_fstlevel,.wp-moveto_lstlevel").size()){$(".wp-moveto_fstlevel,.wp-moveto_lstlevel").remove()}if(D!=null){D.mousedown.apply(this)}G.preventDefault()}).mouseup(function(G){var I=this,H=$(I);H.removeClass("local");$.backgroundPropDefaults[F].apply(this);if(D!=null){D.mouseup.apply(this)}G.preventDefault()})})()}}(function(B){function A(C){var D={};D[C.prop("id")]="null";var F=C;while(true){var E=B.getElementFatherid(F);if(E=="none"){break}D[E]=F.prop("id");F=B("#"+E)}return D}B.chooseBiggerColumn=function(J,E){var L=E;if(J==E){return L}if(J){var K=B("#"+J);var F=B("#"+E);var N=A(K);var G=A(F);var M="canvas";if(!N[M]){M="site_footer"}var H=M;var I=M;while(H==I){H=N[H];I=G[I];if(H=="null"||I=="null"){break}}if(H=="null"){L=E}else{if(I=="null"){L=J}else{var D=B.parseInteger(B("#"+H).css("z-index"));var C=B.parseInteger(B("#"+I).css("z-index"));if(D>C){L=J}}}}return L};B.transferToColumn=function(C,F){var D=B.getElementFatherid(C);if(D!=F){var H=B("#"+F);var I=C.ab_pos("top");var E=H.ab_pos("top");var G=H;if(F!="canvas"){G=H.children(".full_content")}C.detach().attr("fatherid",F).css("top",(I-E)).appendTo(G);if(F=="site_footer"||F=="canvas"){C.removeAttr("fatherid")}}};B.getElementAreaInf=function(C){return C.attr("inbuttom")=="1"?"site_footer":"canvas"};B.transferToArea=function(C,F,J,E){var G=C.ab_pos("top");var I=B.parseInteger(B("#site_footer").css("top"));if(J=="site_footer"){var D=G-I;C.css("top",D);C.attr("inbuttom","1");C.detach().removeAttr("fatherid").appendTo(B("#site_footer").children(".full_content"));if(C.hasClass("full_column")){C.find(".cstlayer,.full_column").attr("inbuttom","1")}}else{var D=G+I;C.css("top",D);var H=B("#canvas").height();if(H0){wp_alert(translate("fullpage.already can not add fullcolumn"));return false}var C=function(I,E){var G=I;if(E){var H=B(G).filter(".full_column");var F=H.prop("id");var J="layer"+fGuid();G=G.replace(new RegExp(F,"g"),J)}var K=B(G).appendTo("#canvas").css("top",D);K=K.filter(".full_column");fullcolumninit(K);K.css("z-index",100);B(".ui-modselected").each(function(){B.hidWidgetBorder(B(this));if(B(this).hasClass("graphic_edited")){actived_graphic()}});B.selectbgdiv(K);new AddCommand(K.prop("id")).insert();var L=new Array();L[0]=new Array(parseInt(B("#"+K.prop("id")).css("z-index")),K.prop("id"));B.zindexsort_new(L)};if(B.addFullColumn.html_cache){C(B.addFullColumn.html_cache,true);return}B.ajax({type:"GET",url:parseToURL("wp_widgets","gtfullcolumn"),success:function(E){B.addFullColumn.html_cache=E;C(E,false)},error:function(F,E,G){wp_alert((G||E)+"(add a fullcolumn).
    "+translate("Request failed!"));return false}})};B.curSelectableFather=function(){var C=B(".ui-modselected");if(C.length==0){B(document).data("cur_selectable_father",null);return null}else{var D=B.getElementFatherid(C.filter(":first"));B(document).data("cur_selectable_father",D);return D}};B.getElementFatherid=function(C){if(C.prop("id")=="canvas"||C.prop("id")=="site_footer"){return"none"}var D=C.attr("fatherid");if(!D||D==""){if(C.closest("#canvas").length>0){D="canvas"}else{if(C.closest("#site_footer").length>0){D="site_footer"}}}if(!B("#"+D).length){if(C.closest("#canvas").length>0){D="canvas"}else{if(C.closest("#site_footer").length>0){D="site_footer"}}C.removeAttr("fatherid")}return D};B.fn.ab_pos=function(D){var C=B(this);if(C.prop("id")=="canvas"||C.prop("id")=="site_footer"){return 0}if(D=="left"||D=="top"){if(!C.attr("fatherid")||C.attr("fatherid")==""){return C.rel_pos(D)}return C.rel_pos(D)+B("#"+C.attr("fatherid")).ab_pos(D)}};B.fn.ab_pos_cnter=function(C){var D=B(this).ab_pos(C);if(B(this).closest("#site_footer").length>0&&C=="top"){return D+B.parseInteger(B("#site_footer").css(C))}return D};B.fn.rel_pos=function(C){if(C=="left"||C=="top"){return B.parseInteger(B(this).css(C))}};B.getFullColChildMaxButtom=function(C){var E=C.ab_pos_cnter("top");var D=E;C.find(".cstlayer,.full_column").each(function(){var F=B(this);var G=0;if(F.hasClass("cstlayer")){G=B.divrotate.getDegreeModMaxPoint(F,null,"buttom")}else{G=F.ab_pos_cnter("top")+B.parseInteger(F.css("height"))}if(DI.failure_limit){return false}}}}})}if(H){if(D!==H.failurelimit){H.failure_limit=H.failurelimit;delete H.failurelimit}if(D!==H.effectspeed){H.effect_speed=H.effectspeed;delete H.effectspeed}E.extend(I,H)}J=(I.container===D||I.container===A)?C:E(I.container);if(0===I.event.indexOf("scroll")){J.bind(I.event,function(){return F()})}this.each(function(){var K=this;var L=E(K);K.loaded=false;if(L.attr("src")===D||L.attr("src")===false){if(L.is("img")){L.attr("src",I.placeholder)}}L.one("appear",function(){if(!this.loaded){if(I.appear){var M=G.length;I.appear.call(K,M,I)}E("").bind("load",function(){var O=L.attr("data-"+I.data_attribute);L.hide();if(L.is("img")){L.attr("src",O)}else{L.css("background-image","url('"+O+"')")}L[I.effect](I.effect_speed);K.loaded=true;var P=E.grep(G,function(Q){return !Q.loaded});G=E(P);if(I.load){var N=G.length;I.load.call(K,N,I)}}).attr("src",L.attr("data-"+I.data_attribute))}});if(0!==I.event.indexOf("scroll")){L.bind(I.event,function(){if(!K.loaded){L.trigger("appear")}})}});C.bind("resize",function(){F()});if((/(?:iphone|ipod|ipad).*os 5/gi).test(navigator.appVersion)){C.bind("pageshow",function(K){if(K.originalEvent&&K.originalEvent.persisted){G.each(function(){E(this).trigger("appear")})}})}E(B).ready(function(){F()});return this};E.belowthefold=function(G,F){var H;if(F.container===D||F.container===A){H=(A.innerHeight?A.innerHeight:C.height())+C.scrollTop()}else{H=E(F.container).offset().top+E(F.container).height()}return H<=E(G).offset().top-F.threshold};E.rightoffold=function(G,F){var H;if(F.container===D||F.container===A){H=C.width()+C.scrollLeft()}else{H=E(F.container).offset().left+E(F.container).width()}return H<=E(G).offset().left-F.threshold};E.abovethetop=function(H,G){var I;if(G.container===D||G.container===A){I=C.scrollTop()}else{I=E(G.container).offset().top}var F=E(H).height();if(F==0&&E(H).parents().parents().attr("class")=="img_over"){var F=E(H).parents().parents().height()}return I>=E(H).offset().top+G.threshold+F};E.leftofbegin=function(G,F){var H;if(F.container===D||F.container===A){H=C.scrollLeft()}else{H=E(F.container).offset().left}return H>=Math.max(E(G).offset().left+E(G).width(),2)+F.threshold};E.inviewport=function(G,F){return !E.rightoffold(G,F)&&!E.leftofbegin(G,F)&&!E.belowthefold(G,F)&&!E.abovethetop(G,F)};E.extend(E.expr[":"],{"below-the-fold":function(F){return E.belowthefold(F,{threshold:0})},"above-the-top":function(F){return !E.belowthefold(F,{threshold:0})},"right-of-screen":function(F){return E.rightoffold(F,{threshold:0})},"left-of-screen":function(F){return !E.rightoffold(F,{threshold:0})},"in-viewport":function(F){return E.inviewport(F,{threshold:0})},"above-the-fold":function(F){return !E.belowthefold(F,{threshold:0})},"right-of-fold":function(F){return E.rightoffold(F,{threshold:0})},"left-of-fold":function(F){return !E.rightoffold(F,{threshold:0})}})})(jQuery,window,document);; eval(function(C,E,D,F,B,A){B=function(G){return(G35?String.fromCharCode(G+29):G.toString(36))};if(!"".replace(/^/,String)){while(D--){A[B(D)]=F[D]||B(D)}F=[function(G){return A[G]}];B=function(){return"\\w+"};D=1}while(D--){if(F[D]){C=C.replace(new RegExp("\\b"+B(D)+"\\b","g"),F[D])}}return C}("F S(s){4 g=s.g;4 e=s.e;4 d=s.d;4 w=s.D;4 h=s.C;4 a=s.a;4 n=g+'n';4 k=\"M(\"+n+\")\";6($.j.Q){6($.j.T>=9){a.5('-z-c',k);a.5(\"-z-c-p\",\"b b\")}f{4 H=v.Z*g/I; 4 7=v.13(H);4 8=v.10(H);4 m=g%J;a.x('8',8);a.x('7',7);6(m>=0&&m<=K){4 t=e-((h*8+w*7)/2-w/2);4 r=d-((w*8+h*7)/2-h/2)}6(m>K&&m<=I){6(h*8+w*7*-1>w)4 t=e-((h*8+w*7*-1)/2-w/2);f 4 t=e+(w/2-(h*8+w*7*-1)/2);6((h*7*-1+w*8)>h)4 r=d-((h*7*-1+w*8)/2-h/2);f 4 r=d+(h/2-(h*7*-1+w*8)/2)}6(m>I&&m<=N){4 t=e-((-1*h*8+-1*w*7)/2-w/2);4 r=d-((-1*w*8+-1*h*7)/2-h/2)}6(m>N&&mh)4 r=d-(-1*w*8+h*7-h)/2;f 4 r=d+(h-(-1*w*8+h*7))/2}a.5({V:\"W:X.Y.14(1b=\"+7+\",1d=\"+(-8)+\",1e=\"+8+\",1f=\"+7+\",16='15 17')\"});a.5({'e':t+'L','d':r+'L'})}}f 6($.j.P){a.5('-B-c',k);a.5(\"-B-c-p\",\"b b\")}f 6($.j.U){a.5('-A-c',k);a.5(\"-A-c-p\",\"b b\")}f 6($.j.R){a.5('-o-c',k);a.5(\"-o-c-p\",\"b b\")}}F 1a(a){a.19(F(){4 g=11($(3).i('n'))||0;$(3).x('n',g);6(g!=0){4 n=g+'n';4 k=\"M(\"+n+\")\";6($.j.U){$(3).5('-A-c',k);$(3).5(\"-A-c-p\",\"b b\")}f 6($.j.P){$(3).5('-B-c',k);$(3).5(\"-B-c-p\",\"b b\")}f 6($.j.R){$(3).5('-o-c',k);$(3).5(\"-o-c-p\",\"b b\")}f 6($.j.Q){6($.j.T>=9){$(3).5('-z-c',k);$(3).5(\"-z-c-p\",\"b b\")}f{$(3).x('1c',$(3).D()).x('12',$(3).C());4 y=[$(3).q().e,$(3).q().d],u=[];S({g:g,e:$(3).q().e,d:$(3).q().d,D:$(3).D(),C:$(3).C(),a:$(3)});u=18($(\"#\"+$(3).i('l')),g);4 G=v.O(y[0]-u[0]),E=v.O(y[1]-u[1]);6(y[0]>u[0])$(\"#\"+$(3).i('l')).5('e',$(\"#\"+$(3).i('l')).q().e+G);f $(\"#\"+$(3).i('l')).5('e',$(\"#\"+$(3).i('l')).q().e-G);6(y[1]>u[1])$(\"#\"+$(3).i('l')).5('d',$(\"#\"+$(3).i('l')).q().d+E);f $(\"#\"+$(3).i('l')).5('d',$(\"#\"+$(3).i('l')).q().d-E)}}}})}",62,78,"|||this|var|css|if|cosx|sinx||dom|0px|transform|top|left|else|degree||attr|browser|degp|id|angle|deg||origin|position|topNew|json|leftNew|arr1|Math||data|arr|ms|moz|webkit|height|width|relativeTop|function|relativeLeft|rotation|180|360|90|px|rotate|270|abs|safari|msie|opera|ieRotate|version|mozilla|filter|progid|DXImageTransform|Microsoft|PI|sin|parseInt|IEHeight|cos|Matrix|auto|SizingMethod|expand|getLeftPointProxy|each|rotateDom|M11|IEWidth|M12|M21|M22".split("|"),0,{}));; /* VelocityJS.org (1.1.0). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */ /* VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */ (function(E){if(E.jQuery){return}var H=function(K,J){return new H.fn.init(K,J)};H.isWindow=function(J){return J!=null&&J==J.window};H.type=function(J){if(J==null){return J+""}return typeof J==="object"||typeof J==="function"?A[F.call(J)]||"object":typeof J};H.isArray=Array.isArray||function(J){return H.type(J)==="array"};function D(L){var K=L.length,J=H.type(L);if(J==="function"||H.isWindow(L)){return false}if(L.nodeType===1&&K){return true}return J==="array"||K===0||typeof K==="number"&&K>0&&(K-1) in L}H.isPlainObject=function(K){var J;if(!K||H.type(K)!=="object"||K.nodeType||H.isWindow(K)){return false}try{if(K.constructor&&!B.call(K,"constructor")&&!B.call(K.constructor.prototype,"isPrototypeOf")){return false}}catch(L){return false}for(J in K){}return J===undefined||B.call(K,J)};H.each=function(L,J,P){var O,K=0,M=L.length,N=D(L);if(P){if(N){for(;K4;Y--){var Z=H.createElement("div");Z.innerHTML="";if(Z.getElementsByTagName("span").length){Z=null;return Y}}}return R})();var E=(function(){var Y=0;return I.webkitRequestAnimationFrame||I.mozRequestAnimationFrame||function(Z){var a=(new Date()).getTime(),b;b=Math.max(0,16-(a-Y));Y=a+b;return setTimeout(function(){Z(a+b)},b)}})();function O(Z){var c=-1,a=Z?Z.length:0,b=[];while(++c0))},isWrapped:function(Y){return Y&&(Y.jquery||(I.Zepto&&I.Zepto.zepto.isZ(Y)))},isSVG:function(Y){return I.SVGElement&&(Y instanceof I.SVGElement)},isEmptyObject:function(Y){for(var Z in Y){return false}return true}};var S,U=false;if(K.fn&&K.fn.jquery){S=K;U=true}else{S=I.Velocity.Utilities}if(L<=8&&!U){throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.")}else{if(L<=7){jQuery.fn.velocity=jQuery.fn.animate;return}}var M=400,J="swing";var Q={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:I.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:H.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:false,calls:[]},CSS:{},Utilities:S,Redirects:{},Easings:{},Promise:I.Promise,defaults:{queue:"",duration:M,easing:J,begin:R,complete:R,progress:R,display:R,visibility:R,loop:false,delay:false,mobileHA:true,_cacheValues:true},init:function(Y){S.data(Y,"velocity",{isSVG:G.isSVG(Y),isAnimating:false,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:false,version:{major:1,minor:1,patch:0},debug:false};if(I.pageYOffset!==R){Q.State.scrollAnchor=I;Q.State.scrollPropertyLeft="pageXOffset";Q.State.scrollPropertyTop="pageYOffset"}else{Q.State.scrollAnchor=H.documentElement||H.body.parentNode||H.body;Q.State.scrollPropertyLeft="scrollLeft";Q.State.scrollPropertyTop="scrollTop"}function F(Y){var Z=S.data(Y,"velocity");return Z===null?R:Z}function B(Y){return function(Z){return Math.round(Z*Y)*(1/Y)}}function P(q,m,p,l){var n=4,s=0.001,Z=1e-07,t=10,h=11,y=1/(h-1),o="Float32Array" in I;if(arguments.length!==4){return false}for(var d=0;d<4;++d){if(typeof arguments[d]!=="number"||isNaN(arguments[d])||!isFinite(arguments[d])){return false}}q=Math.min(q,1);p=Math.min(p,1);q=Math.max(q,0);p=Math.max(p,0);var c=o?new Float32Array(h):new Array(h);function x(i,f){return 1-3*f+3*i}function u(i,f){return 3*f-6*i}function v(f){return 3*f}function g(f,Aa,i){return((x(Aa,i)*f+u(Aa,i))*f+v(Aa))*f}function z(f,Aa,i){return 3*x(Aa,i)*f*f+2*u(Aa,i)*f+v(Aa)}function w(Ac,Aa){for(var f=0;f0){Ae=Aa}else{Ab=Aa}}while(Math.abs(Ac)>Z&&++f=s){return w(Ad,f)}else{if(Aa==0){return f}else{return k(Ad,i,i+y)}}}var j=false;function r(){j=true;if(q!=m||p!=l){a()}}var b=function(f){if(!j){r()}if(q===m&&p===l){return f}if(f===0){return 0}if(f===1){return 1}return g(e(f),m,l)};b.getControlPoints=function(){return[{x:q,y:m},{x:p,y:l}]};var Y="generateBezier("+[q,m,p,l]+")";b.toString=function(){return Y};return b}var D=(function(){function Y(c){return(-c.tension*c.x)-(c.friction*c.v)}function b(e,c,d){var f={x:e.x+d.dx*c,v:e.v+d.dv*c,tension:e.tension,friction:e.friction};return{dx:f.v,dv:Y(f)}}function Z(f,k){var j={dx:f.v,dv:Y(f)},h=b(f,k*0.5,j),i=b(f,k*0.5,h),l=b(f,k,i),e=1/6*(j.dx+2*(h.dx+i.dx)+l.dx),g=1/6*(j.dv+2*(h.dv+i.dv)+l.dv);f.x=f.x+e*k;f.v=f.v+g*k;return f}return function a(c,f,h){var d={x:-1,v:0,tension:null,friction:null},k=[0],i=0,e=1/10000,j=16/1000,g,m,l;c=parseFloat(c)||500;f=parseFloat(f)||20;h=h||null;d.tension=c;d.friction=f;g=h!==null;if(g){i=a(c,f);m=i/h*j}else{m=j}while(true){l=Z(l||d,m);k.push(1+l.x);i+=16;if(!(Math.abs(l.x)>e&&Math.abs(l.v)>e)){break}}return !g?i:function(n){return k[(n*(k.length-1))|0]}}}());Q.Easings={linear:function(Y){return Y},swing:function(Y){return 0.5-Math.cos(Y*Math.PI)/2},spring:function(Y){return 1-(Math.cos(Y*4.5*Math.PI)*Math.exp(-Y*6))}};S.each([["ease",[0.25,0.1,0.25,1]],["ease-in",[0.42,0,1,1]],["ease-out",[0,0,0.58,1]],["ease-in-out",[0.42,0,0.58,1]],["easeInSine",[0.47,0,0.745,0.715]],["easeOutSine",[0.39,0.575,0.565,1]],["easeInOutSine",[0.445,0.05,0.55,0.95]],["easeInQuad",[0.55,0.085,0.68,0.53]],["easeOutQuad",[0.25,0.46,0.45,0.94]],["easeInOutQuad",[0.455,0.03,0.515,0.955]],["easeInCubic",[0.55,0.055,0.675,0.19]],["easeOutCubic",[0.215,0.61,0.355,1]],["easeInOutCubic",[0.645,0.045,0.355,1]],["easeInQuart",[0.895,0.03,0.685,0.22]],["easeOutQuart",[0.165,0.84,0.44,1]],["easeInOutQuart",[0.77,0,0.175,1]],["easeInQuint",[0.755,0.05,0.855,0.06]],["easeOutQuint",[0.23,1,0.32,1]],["easeInOutQuint",[0.86,0,0.07,1]],["easeInExpo",[0.95,0.05,0.795,0.035]],["easeOutExpo",[0.19,1,0.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[0.6,0.04,0.98,0.335]],["easeOutCirc",[0.075,0.82,0.165,1]],["easeInOutCirc",[0.785,0.135,0.15,0.86]]],function(Y,Z){Q.Easings[Z[0]]=P.apply(null,Z[1])});function A(a,Z){var Y=a;if(G.isString(a)){if(!Q.Easings[a]){Y=false}}else{if(G.isArray(a)&&a.length===1){Y=B.apply(null,a)}else{if(G.isArray(a)&&a.length===2){Y=D.apply(null,a.concat([Z]))}else{if(G.isArray(a)&&a.length===4){Y=P.apply(null,a)}else{Y=false}}}}if(Y===false){if(Q.Easings[Q.defaults.easing]){Y=Q.defaults.easing}else{Y=J}}return Y}var X=Q.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/ig},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{"textShadow":["Color X Y Blur","black 0px 0px 0px"],"boxShadow":["Color X Y Blur Spread","black 0px 0px 0px 0px"],"clip":["Top Right Bottom Left","0px 0px 0px 0px"],"backgroundPosition":["X Y","0% 0%"],"transformOrigin":["X Y Z","50% 50% 0px"],"perspectiveOrigin":["X Y","50% 50%"]},registered:{},register:function(){for(var c=0;c=1){return""}else{return"alpha(opacity="+parseInt(parseFloat(b)*100,10)+")"}}}else{switch(Y){case"name":return"opacity";case"extract":return b;case"inject":return b}}}},register:function(){if(!(L<=9)&&!Q.State.isGingerbread){X.Lists.transformsBase=X.Lists.transformsBase.concat(X.Lists.transforms3D)}for(var Y=0;Y=2){console.log("Get "+c+": "+g)}return g},setPropertyValue:function(Y,Z,f,b,g){var e=Z;if(Z==="scroll"){if(g.container){g.container["scroll"+g.direction]=f}else{if(g.direction==="Left"){I.scrollTo(f,g.alternateValue)}else{I.scrollTo(g.alternateValue,f)}}}else{if(X.Normalizations.registered[Z]&&X.Normalizations.registered[Z]("name",Y)==="transform"){X.Normalizations.registered[Z]("inject",Y,f);e="transform";f=F(Y).transformCache[Z]}else{if(X.Hooks.registered[Z]){var c=Z,d=X.Hooks.getRoot(Z);b=b||X.getPropertyValue(Y,d);f=X.Hooks.injectValue(c,f,b);Z=d}if(X.Normalizations.registered[Z]){f=X.Normalizations.registered[Z]("inject",Y,f);Z=X.Normalizations.registered[Z]("name",Y)}e=X.Names.prefixCheck(Z)[0];if(L<=8){try{Y.style[e]=f}catch(a){if(Q.debug){console.log("Browser does not support ["+f+"] for ["+e+"]")}}}else{if(F(Y)&&F(Y).isSVG&&X.Names.SVGAttribute(Z)){Y.setAttribute(Z,f)}else{Y.style[e]=f}}if(Q.debug>=2){console.log("Set "+Z+" ("+e+"): "+f)}}}return[e,f]},flushTransformCache:function(b){var d="";if((L||(Q.State.isAndroid&&!Q.State.isChrome))&&F(b).isSVG){function Z(e){return parseFloat(X.getPropertyValue(b,e))}var Y={translate:[Z("translateX"),Z("translateY")],skewX:[Z("skewX")],skewY:[Z("skewY")],scale:Z("scale")!==1?[Z("scale"),Z("scale")]:[Z("scaleX"),Z("scaleY")],rotate:[Z("rotateZ"),0,0]};S.each(F(b).transformCache,function(e){if(/^translate/i.test(e)){e="translate"}else{if(/^scale/i.test(e)){e="scale"}else{if(/^rotate/i.test(e)){e="rotate"}}}if(Y[e]){d+=e+"("+Y[e].join(" ")+") ";delete Y[e]}})}else{var c,a;S.each(F(b).transformCache,function(e){c=F(b).transformCache[e];if(e==="transformPerspective"){a=c;return true}if(L===9&&e==="rotateZ"){e="rotate"}d+=e+c+" "});if(a){d="perspective"+a+" "+d}}X.setPropertyValue(b,"transform",d)}};X.Hooks.register();X.Normalizations.register();Q.hook=function(Z,a,b){var Y=R;Z=C(Z);S.each(Z,function(c,e){if(F(e)===R){Q.init(e)}if(b===R){if(Y===R){Y=Q.CSS.getPropertyValue(e,a)}}else{var d=Q.CSS.setPropertyValue(e,a,b);if(d[0]==="transform"){Q.CSS.flushTransformCache(e)}Y=d}});return Y};var N=function(){function o(){if(p){return h.promise||null}else{return Z}}var f=(arguments[0]&&((S.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names)||G.isString(arguments[0].properties))),p,Z,c;var g,y,u;if(G.isWrapped(this)){p=false;c=0;g=this;Z=this}else{p=true;c=1;g=f?arguments[0].elements:arguments[0]}g=C(g);if(!g){return}if(f){y=arguments[0].properties;u=arguments[0].options}else{y=arguments[c];u=arguments[c+1]}var s=g.length,n=0;if(y!=="stop"&&!S.isPlainObject(u)){var m=c+1;u={};for(var a=m;a=1){console.log("Unit ratios: "+JSON.stringify(AB),Ab)}return AB}if(/[\/*]/.test(Af)){An=Ap}else{if((Ap!==An)&&Al!==0){if(Aw===0){An=Ap}else{Aa=Aa||Am();var Ax=(/margin|padding|left|right|width|text|word|letter/i.test(AA)||/X$/.test(AA)||AA==="x")?"x":"y";switch(Ap){case"%":Al*=(Ax==="x"?Aa.percentToPxWidth:Aa.percentToPxHeight);break;case"px":break;default:Al*=Aa[Ap+"ToPx"]}switch(An){case"%":Al*=1/(Ax==="x"?Aa.percentToPxWidth:Aa.percentToPxHeight);break;case"px":break;default:Al*=1/Aa[An+"ToPx"]}}}}switch(Af){case"+":Aw=Al+Aw;break;case"-":Aw=Al-Aw;break;case"*":Aw=Al*Aw;break;case"/":Aw=Al/Aw;break}x[AA]={rootPropertyValue:Aq,startValue:Al,currentValue:Al,endValue:Aw,unitType:An,easing:Ag};if(Q.debug){console.log("tweensContainer ("+AA+"): "+JSON.stringify(x[AA]),Ab)}}x.element=Ab}}}if(x.element){X.Values.addClass(Ab,"velocity-animating");d.push(x);if(i.queue===""){F(Ab).tweensContainer=x;F(Ab).opts=i}F(Ab).isAnimating=true;if(n===s-1){if(Q.State.calls.length>10000){Q.State.calls=O(Q.State.calls)}Q.State.calls.push([d,g,i,null,h.resolver]);if(Q.State.isTicking===false){Q.State.isTicking=true;W()}}else{n++}}}if(i.queue===false){if(i.delay){setTimeout(z,i.delay)}else{z()}}else{S.queue(Ab,i.queue,function(Ac,Ad){if(Ad===true){if(h.promise){h.resolver(g)}return true}Q.velocityQueueEntryFlag=true;z(Ac)})}if((i.queue===""||i.queue==="fx")&&S.queue(Ab)[0]!=="inprogress"){S.dequeue(Ab)}}S.each(g,function(x,z){if(G.isNode(z)){j.call(z)}});var t=S.extend({},Q.defaults,u),k;t.loop=parseInt(t.loop);k=(t.loop*2)-1;if(t.loop){for(var v=0;vparseInt(H.css("top"))}$.WOPOP_EFFECTS._hasEffectFilter=function(){var H=$(this);if(H.attr("deleted")=="deleted"){return false}var I=H.data("wopop_effects");if(I&&I.effect){return true}return false};$.WOPOP_EFFECTS._isEditMode=function(){if($.saveLayout&&$.isFunction($.saveLayout.save)){return true}return false};var G;$.WOPOP_EFFECTS._setindex=function(H){G=H};$.WOPOP_EFFECTS._getindex=function(){return G};var B={fromleft:{delay:0,duration:1.2},frombottom:{delay:0,duration:1.2},fromright:{delay:0,duration:1.2},fromtop:{delay:0,duration:1.2},fade:{delay:0,duration:0.9},rotation:{delay:0,duration:1.2},rotation2d:{delay:0,duration:1.2},bounceIn:{delay:0,duration:2.2},big2small:{delay:0,duration:1.2},small2big:{delay:0,duration:1.2},fadeFromLeft:{delay:0,duration:1.2},fadeFromBottom:{delay:0,duration:1.2},fadeFromRight:{delay:0,duration:1.2},fadeFromTop:{delay:0,duration:1.2},light:{delay:0,duration:1.2}};$.WOPOP_EFFECTS._getDefaultParam=function(I){var H=B[I];if(!H){H={delay:0,duration:1.2}}return H}})(window);; function fullpagefooterinit(){$(".fullpage_alllist").each(function(){if($('.full_column:not([deleted="deleted"])').length>0){wp_alert(translate("full_column.already in backplane"))}});$(".full_pagescroll").each(function(){fullpagescrollinit($(this))});$(document).bind("fullpage_scroll_pro",function(A,B){setTimeout(function(){if($("#wp-property_settings2").length){var C="";$("#canvas #fullPage-nav li").each(function(D){});$(".fullpage_alllist .section").each(function(D){if($(this).hasClass("active")){C=D+1}});if(C>0){$("#all_extra_img_div .wp-manage-panel-album-img").each(function(D){var E=D+1;if(E==C){$(this).addClass("action")}else{$(this).removeClass("action")}})}}},100)})}function fullpagescrollinit(A){A.children(".full_width").css({left:0-canv.offset().left-$.parseInteger($("#canvas").css("borderLeftWidth")),width:$("#scroll_container_bg").width()});A.wp_rightkey();if(A.is(":not(.isplate)")){fullpagescrollresize(A);setTimeout(function(){fullpagescrolldrop(A)},1300)}}function fullpagescrolldrag(A){A.wp_drag()}function fullpagescrollresize(A){var B=function(E){A.each(function(){var F="ui-resizable-"+E;var G=$('

    ');G.css({zIndex:1000});$(this).children(".full_width").append(G)})};var C=function(E){A.each(function(){var F="placeholder-"+E;var G=$('
    ');G.css({zIndex:1000}).hide();$(this).children(".full_width").append(G)})};B("n");B("s");C("w");C("e");var D;A.resizable({handles:{n:">.full_width .ui-resizable-n",s:">.full_width .ui-resizable-s"},noinit:true,canvascontain:"#canvas",distance:0,concernLock:true,scroll:true,create:function(){$(this).children(".full_width").find(".ui-resizable-handle").hide()},start:function(I,E){D=$.getFullColChildMaxButtomfullpage(A);var G=$(this);var H=new ResizeCommand(G.attr("id"));var K=["top","height"];var J={};for(var F=0;F');F.css({zIndex:1000});$(this).children(".full_content").append(F)})};C("n");C("s");C("w");C("e");var B=A.children(".full_content");B.children(".li-placeholder").hide();B.children(".placeholder-n").css({"border-top":"#FF9900 dashed 4px"});B.children(".placeholder-s").css({"border-bottom":"#FF9900 dashed 4px"});B.children(".placeholder-e").css({"border-right":"#FF9900 dashed 4px"});B.children(".placeholder-w").css({"border-left":"#FF9900 dashed 4px"});B.droppable({tolerance:"pointer",accept:".full_pagescroll,.cstlayer,.wp-new-tool-second-link,.wp-manage-plugin-block",drop:function(G,D){var E=$.ui.ddmanager.current;if($.getElementAreaInf($(E.element))==$.getElementAreaInf(A)){if(!A.hasClass("ui-modselected")||$(E.element).is(".wp-new-tool-second-link")||$(E.element).is(".wp-manage-plugin-block")){$(this).children(".li-placeholder").hide();var H=$(document).data("layer_final_drop_id");var F=$.chooseBiggerColumn(H,A.attr("id"));$(document).data("layer_final_drop_id",F)}}},over:function(J,N){var H=false;$(".ui-modselected").each(function(){if($(this).data("cstlayerstatus")=="unlock"){H=true}});if(H){return}var I=$.ui.ddmanager.current;if($.getElementAreaInf($(I.element))==$.getElementAreaInf(A)||$(I.element).is(".wp-new-tool-second-link")||$(I.element).is(".wp-manage-plugin-block")){if(!A.hasClass("ui-modselected")||$(I.element).is(".wp-new-tool-second-link")||$(I.element).is(".wp-manage-plugin-block")){var D=A.attr("id");var F=$(document).data("layer_drop_over_id");if(D!=F){var K=$.chooseBiggerColumn(F,D);if(K==D){var M=$(this);$(this).children(".li-placeholder").show();if(F){var G=$("#"+F);var E=G.children(".full_content").data("droppable");E["isover"]=0;E["isout"]=1;E._out.call(E,J)}$(document).data("layer_drop_over_id",D)}else{var L=$(this).data("droppable");L["isover"]=0;L["isout"]=1}}}}},out:function(G,D){var H=false;$(".ui-modselected").each(function(){if($(this).data("cstlayerstatus")=="unlock"){H=true}});if(H){return}var E=$.ui.ddmanager.current;if($.getElementAreaInf($(E.element))==$.getElementAreaInf(A)){if(!A.hasClass("ui-modselected")||$(E.element).is(".wp-new-tool-second-link")||$(E.element).is(".wp-manage-plugin-block")){$(this).children(".li-placeholder").hide();var F=$(document).data("layer_drop_over_id");if(F==A.attr("id")){$(document).removeData("layer_drop_over_id")}}}}})}function full_page_block_drop(B){var A=B.closest(".full_pagescroll");B.droppable({tolerance:"pointer",accept:".full_pagescroll,.cstlayer,.wp-new-tool-second-link,.wp-manage-plugin-block",drop:function(F,C){var D=$.ui.ddmanager.current;if($.getElementAreaInf($(D.element))==$.getElementAreaInf(A)){if(!A.hasClass("ui-modselected")||$(D.element).is(".wp-new-tool-second-link")||$(D.element).is(".wp-manage-plugin-block")){$(this).children(".li-placeholder").hide();var G=$(document).data("layer_final_drop_id");var E=$.chooseBiggerColumn(G,A.attr("id"));$(document).data("layer_final_drop_id",E)}}},over:function(I,M){var G=false;$(".ui-modselected").each(function(){if($(this).data("cstlayerstatus")=="unlock"){G=true}});if(G){return}var H=$.ui.ddmanager.current;if($.getElementAreaInf($(H.element))==$.getElementAreaInf(A)||$(H.element).is(".wp-new-tool-second-link")||$(H.element).is(".wp-manage-plugin-block")){if(!A.hasClass("ui-modselected")||$(H.element).is(".wp-new-tool-second-link")||$(H.element).is(".wp-manage-plugin-block")){var C=A.attr("id");var E=$(document).data("layer_drop_over_id");if(C!=E){var J=$.chooseBiggerColumn(E,C);if(J==C){var L=$(this);$(this).children(".li-placeholder").show();if(E){var F=$("#"+E);var D=F.children(".full_content").data("droppable");D["isover"]=0;D["isout"]=1;D._out.call(D,I)}$(document).data("layer_drop_over_id",C)}else{var K=$(this).data("droppable");K["isover"]=0;K["isout"]=1}}}}},out:function(F,C){var G=false;$(".ui-modselected").each(function(){if($(this).data("cstlayerstatus")=="unlock"){G=true}});if(G){return}var D=$.ui.ddmanager.current;if($.getElementAreaInf($(D.element))==$.getElementAreaInf(A)){if(!A.hasClass("ui-modselected")||$(D.element).is(".wp-new-tool-second-link")||$(D.element).is(".wp-manage-plugin-block")){$(this).children(".li-placeholder").hide();var E=$(document).data("layer_drop_over_id");if(E==A.attr("id")){$(document).removeData("layer_drop_over_id")}}}}})}function fullpagescroll_propblk_init(){var B;for(var A in $.fullpagebackgroundPropDefaults){(function(){var F=A;var D=null;if($.inArray(F,["fullpage_moveto_prevop","fullpage_moveto_nextop"])!=-1){var C="",E="";switch(F){case"fullpage_moveto_prevop":E="top";C='';break;case"fullpage_moveto_nextop":E="bottom";C='';break}D={mousedown:function(){var I=$(this);var G=I.offset();var J=$("#scroll_container");var H=J.scrollTop();$(C).appendTo(J).css({top:function(){return(G.top+H-25-39)+"px"},left:G.left+"px"}).click(function(K){$("#"+$.bgselectedid).wp_setorder(E,$.bgselectedid);$(this).remove();I.removeClass("local");K.preventDefault()})},mouseup:function(){}}}$("#"+F).mousedown(function(G){var H=$(this);H.addClass("local");if($(".wp-moveto_fstlevel,.wp-moveto_lstlevel").size()){$(".wp-moveto_fstlevel,.wp-moveto_lstlevel").remove()}if(D!=null){D.mousedown.apply(this)}G.preventDefault()}).mouseup(function(G){var I=this,H=$(I);H.removeClass("local");$.fullpagebackgroundPropDefaults[F].apply(this);if(D!=null){D.mouseup.apply(this)}G.preventDefault()})})()}}(function(B){function A(C){var D={};D[C.prop("id")]="null";var F=C;while(true){var E=B.getElementFatherid(F);if(E=="none"){break}D[E]=F.prop("id");F=B("#"+E)}return D}B.chooseBiggerColumn=function(J,E){var L=E;if(J==E){return L}if(J){var K=B("#"+J);var F=B("#"+E);var N=A(K);var G=A(F);var M="canvas";if(!N[M]){M="site_footer"}var H=M;var I=M;while(H==I){H=N[H];I=G[I];if(H=="null"||I=="null"){break}}if(H=="null"){L=E}else{if(I=="null"){L=J}else{var D=B.parseInteger(B("#"+H).css("z-index"));var C=B.parseInteger(B("#"+I).css("z-index"));if(D>C){L=J}}}}return L};B.transferToColumn=function(C,F){var D=B.getElementFatherid(C);if(D!=F){var H=B("#"+F);var I=C.ab_pos("top");var E=H.ab_pos("top");var G=H;if(F!="canvas"){G=H.children(".full_content")}C.detach().attr("fatherid",F).css("top",(I-E)).appendTo(G);if(F=="site_footer"||F=="canvas"){C.removeAttr("fatherid")}}};B.getElementAreaInf=function(C){return C.attr("inbuttom")=="1"?"site_footer":"canvas"};B.transferToArea=function(C,F,J,E){var G=C.ab_pos("top");var I=B.parseInteger(B("#site_footer").css("top"));if(J=="site_footer"){var D=G-I;C.css("top",D);C.attr("inbuttom","1");C.detach().removeAttr("fatherid").appendTo(B("#site_footer").children(".full_content"));if(C.hasClass("full_pagescroll")){C.find(".cstlayer,.full_pagescroll").attr("inbuttom","1")}}else{var D=G+I;C.css("top",D);var H=B("#canvas").height();if(H0){wp_alert(translate("fullpage.already plugin"));return false}if(B('.full_column:not([deleted="deleted"])').length>0){wp_alert(translate("full_column.already Please remove"));return false}setTimeout(function(){if(B("#site_footer").length>0){var E="fullpage";if(B.wismobile){E="mfullpage"}if(confirm(translate("fullpage.Please hide site_footer"))){B.post(parseToURL(E,"prosf"),{pid:B.page_id},function(G){var F=B.parseJSON(G);if(F.result=="OK"){B("#site_footer").remove()}else{location.reload();return false}}).error(function(){location.reload();return false})}else{return false}}},500);var C=function(J,E){var F=J;if(E){var K=B(F).filter(".full_pagescroll");var M=K.prop("id");var L="layer"+fGuid();F=F.replace(new RegExp(M,"g"),L)}var G=B(F).appendTo("#canvas");G.find(".full_pagescroll").each(function(){fullpagescrollinit(B(this))});G.css("z-index",100);var H=relativeToAbsoluteURL("plugin/title/css/title.css");if(B("body").data("title")!=H){B("body").data("title",H);var O=document.getElementsByTagName("head").item(0);var I=document.createElement("link");I.href=H;I.rel="stylesheet";I.type="text/css";O.appendChild(I)}B(".ui-modselected").each(function(){B.hidWidgetBorder(B(this));if(B(this).hasClass("graphic_edited")){actived_graphic()}});B.fullpageunselectbgdiv(G);B.fullpageselectbgdiv(G.find(".full_pagescroll:eq(0)"));new AddCommand(G.prop("id")).insert();var N=new Array();N[0]=new Array(parseInt(B("#"+G.prop("id")).css("z-index")),G.prop("id"));B.zindexsort_new(N)};if(B.addFullPagescroll.html_cache){C(B.addFullPagescroll.html_cache,true);return}B.ajax({type:"GET",url:parseToURL("wp_widgets","gtfullpagescroll"),success:function(E){C(E,false)},error:function(F,E,G){wp_alert((G||E)+"(add a fullpagescroll).
    "+translate("Request failed!"));return false}})};B.curSelectableFather=function(){var C=B(".ui-modselected");if(C.length==0){B(document).data("cur_selectable_father",null);return null}else{var D=B.getElementFatherid(C.filter(":first"));B(document).data("cur_selectable_father",D);return D}};B.getElementFatherid=function(C){if(C.prop("id")=="canvas"||C.prop("id")=="site_footer"){return"none"}var D=C.attr("fatherid");if(!D||D==""){if(C.closest("#canvas").length>0){D="canvas"}else{if(C.closest("#site_footer").length>0){D="site_footer"}}}if(!B("#"+D).length){if(C.closest("#canvas").length>0){D="canvas"}else{if(C.closest("#site_footer").length>0){D="site_footer"}}C.removeAttr("fatherid")}return D};B.getFullColChildMaxButtomfullpage=function(C){var E=C.ab_pos_cnter("top");var D=E;C.find(".cstlayer,.full_pagescroll").each(function(){var F=B(this);var G=0;if(F.hasClass("cstlayer")){G=B.divrotate.getDegreeModMaxPoint(F,null,"buttom")}else{G=F.ab_pos_cnter("top")+B.parseInteger(F.css("height"))}if(DD)){C.width(R).height("auto");I=M-C.height();if(I<0){C.css({top:Math.ceil(I/2)+"px",left:"0px"})}else{if(I>0){C.height(M).width("auto");Q=R-C.width();C.css({top:"0px",left:Math.ceil(Q/2)+"px"})}else{C.css({top:"",left:"",position:""})}}}else{if(D||(H0){C.width(R).height("auto");I=M-C.height();C.css({top:Math.ceil(I/2)+"px",left:"0px"})}else{C.css({top:"",left:"",position:""})}}}}};B.wp_fullpag_mobile=function(){return(/iphone|ipod|ipad|Macintosh|android|Windows phone/i.test(navigator.userAgent.toLowerCase()))};setTimeout(function(){if(B.wismobile&&B.wisviewmode){}else{var C={width:320,height:B(window).height()};if(!B.wiseditmode){C={width:B(window).width(),height:B(window).height()};var F=B(".fullpage_alllist");var D=F.find(".section.active .bg > img");var E={width:0,height:0};B.wp_fullpagezoom(F,C,E,"noresize")}}},800)})(jQuery);; function openImageChooserDialog(B){window._imageChooserDefered=new $.Deferred();B=$.extend({},B);var E=B.title||translate("fileManager.selectImage");var D=B.width||850;var A=B.filetype||"pic";var C=B.id||"wp-picmanage_panel";var G=B.zIndex||1003;var F=B.multi||0;var H=B.overlay;if(typeof H==="undefined"){H=true}wp_floatpanel(parseToURL("wp_widgets","common_pic_chooser",{filetype:A,multi:F}),{title:E,id:C,width:D,overlay:H,isCenter:true,swfFix:true,zIndex:G});if(!B.cancelNotCloseDialog){window._imageChooserDefered.fail(function(){$.modal.close()})}return window._imageChooserDefered.promise()}function openMyDocChooserDialog(D){window._myDocChooserDefered=new $.Deferred();D=$.extend({},D);var E=D.title||translate("fileManager.myFile"),F=D.width||850,B=D.isCenter||true,G=D.id||"wp-file_explore",C=D.zIndex||1003,A=D.overlay;if(typeof A==="undefined"){A=true}wp_floatpanel(parseToURL("wp_fileexplore","file_explore",{"geturl":"1"}),{swfFix:true,title:E,width:F,isCenter:B,id:G,zIndex:C,overlay:A});return window._myDocChooserDefered.promise()}function transferToPageSetDialog(I,H,C){window._pagesetDefered=new $.Deferred();C=$.extend({},C);var G=window;if(C.iframe){G=parent}var E=C.title||translate("page.add");var D=C.mode||"create";var F="";if(D=="edit"){var A=C.pageid;F=parseToURL("wp_page","editpage",{id:A})}else{var B=C.createparam||{};F=parseToURL("wp_page","addpage",B)}$.get(F,function(J){$(I).html(J).show();$(H).hide();wp_update_floatpanel($("#wp-manage_menu"),E,376,function(K){K.find(".wp-panel_button").hide();K.find("#page_set_prop_div .wp-panel_button").show()})}).error(function(K,J,L){wp_alert((L||J)+"(edit/add a page).
    "+translate("Request failed!"))});return window._pagesetDefered.promise()}function transferToPageSetDialogcur(L,K,F){window._pagesetDefered=new $.Deferred();F=$.extend({},F);var J=window;if(F.iframe){J=parent}var H=F.title||translate("page.add");var G=F.mode||"create";var I="";var A=F.pageid;var D=F.modact||"navigation";var B=F.page_id;var C=F.blockid;if(G=="edit"){I=parseToURL(D,"editpage",{id:A,page_id:B,blockid:C})}else{var E=F.createparam||{};I=parseToURL(D,"addpage",{page_id:B,blockid:C,parentid:A})}$.post(I,{menudata:$("#"+C).data("menudata")},function(M){$(L).html(M).show();$(K).hide()}).error(function(N,M,O){wp_alert((O||M)+"(edit/add a navigation page).
    "+translate("Request failed!"))});return window._pagesetDefered.promise()}function openPageSetDialog(C){window._pagesetDefered=new $.Deferred();C=$.extend({},C);var D=C.title||translate("page.add");var E=C.width||400;var A=C.mode||"create";var F="";if(A=="edit"){var G=C.pageid;F=parseToURL("wp_page","editpage",{id:G})}else{E=400;var B={};if(C.mtype){B._mtype=C.mtype}if(C.parentid){B.parentid=C.parentid}F=parseToURL("wp_page","addpage",B)}wp_floatpanel(F,{title:D,contentClass:"wp-site-set_panel_c",id:"wp-add_page",overlay:true,isCenter:true,width:E,zIndex:1002,cache:false,open:function(H){if(C.callback&&$.isFunction(C.callback)){$(H).bind("addPageLink",function(I,J){C.callback(J)})}}});if(!C.cancelDefaultOp){window._pagesetDefered.done(function(H){if(H.refresh){$.saveLayout.save(true);window.location.reload();$("#wp-add_page").triggerHandler("wpdialogclose")}else{setTimeout(function(){$.saveLayout.save(true);window.location.href=H.forward},100)}});window._pagesetDefered.fail(function(){$("#wp-add_page").triggerHandler("wpdialogclose")})}return window._pagesetDefered.promise()}function setModuleLink(B,A){openPageSetDialog({"mtype":B,"callback":A})}function initFrame(E,F,C){var K=E,G=K.contentWindow.document.body.scrollHeight,I=K.contentWindow.document.documentElement.scrollHeight,D=Math.max;var A=$(K).closest(".wp-floatpanel_dialog"),J=0,M=D(G,I);M+=1;if($.browser.msie){M=M+25}A.find("."+F).siblings().each(function(P,O){J+=$(O).outerHeight(true)});var B=function(P){var O=parseFloat(P);if(isNaN(O)){return 0}return O};var L=B(C),H=L?L:$(document).height(),N=H-J-10;if(N h2"),F=E.html();B.width(G);if(H){E.data("origin_title",F)}else{H=F}E.html(H);if(A&&$.isFunction(A)){A(B)}var I=window,C=$(I).width(),K=$(I).height(),D=Math.floor,J=B.outerHeight(true);B.css({"left":D((C-G)/2),"top":D((K-J)/2)})}(function(C,B){var A=".wpcstselect";C.widget("wp.cstselect",{options:{selectclass:"wp-diy-selected"},_create:function(){var E=this;var D=E.options.selectclass;if(D.length==0){D="wp-diy-selected"}if(E.element.prop("multiple")){return}E._doinit(E).done(function(F,J){var G=F,I=G.next("."+D+"-outside").find("."+D+"");setTimeout(function(){var N=I.children("."+D+"-left"),M=N.siblings("."+D+"-button").outerWidth()+2,L=E._int(N.css("paddingLeft"))+E._int(N.css("paddingRight")),K=I.width()-M-L+1;if(K<=0){K=Math.max(65,G.width())-L-16}N.width(K).attr("val",G.val()).html(G.find("option:selected").html());N=M=K=null},50);I.bind("click"+A,function(K){if(E.options.disabled||!J.length){return}var M=C(J).appendTo("body"),N=M.outerHeight(true);E._selected(M,G.val());if(M.is(":hidden")){var L=C(this);M.find("li").bind("mouseenter"+A,function(O){C(this).addClass("local").siblings().removeClass("local")}).bind("mouseleave"+A,function(O){C(this).removeClass("local")}).bind("click"+A,function(O){var Q=C(this),P=Q.attr("val");L.children("."+D+"-left").html(Q.html()).attr("val",P);G.val(P).trigger("change")}).end().slideDown("slow",function(){var S=C(this);var T=S[0],Q=T.clientHeight,R=S.find("li.local");if(R.size()>0){var P=C._parseFloat(S.css("top")),O=P+R[0].offsetTop-T.offsetTop+R.height();if(Q
    ';E.children("option").each(function(M,O){var N=O;I+='
  • '+K(N.innerHTML)+"
  • "});H+='
     
    ';E.after(H);L.resolve(E,'
      '+I+"
    ");return L.promise()},_int:function(D){var E=parseInt(D);if(isNaN(E)){return 0}return E},_selected:function(D,E){D.find("li").each(function(F,I){var H=C(I),G="";G=(H.attr("val")==E)?"addClass":"removeClass";H[G]("local")});return true},enable:function(){var E=this;var D=E.options.selectclass;if(D.length==0){D="wp-diy-selected"}var F=E.element.next("."+D+"-outside");F.find("."+D+"-left").css("color","#5A5A5A");F.find("."+D+"-button > a").removeClass("disabled");C.Widget.prototype.enable.call(E)},disable:function(){var E=this;var D=E.options.selectclass;if(D.length==0){D="wp-diy-selected"}var G=E.element,H=G.next("."+D+"-outside");var F=G.find("option")[0];G[0].selectedIndex=0;H.find("."+D+"-left").css("color","#7C7C7C").attr("val",F.value).html(F.innerHTML);H.find("."+D+"-button > a").addClass("disabled");C.Widget.prototype.disable.call(E)},destroy:function(){var E=this;var D=E.options.selectclass;if(D.length==0){D="wp-diy-selected"}C(document).unbind(A);E.element.next("."+D+"-outside").unbind(A).remove();C.Widget.prototype.destroy.call(E)}})})(jQuery);(function(D,B){var A=true,C=".wpcstinput";D.widget("wp.cstinput",{options:{value:"",regexp:/^\d+(\.\d+)?$/,range:[0],maxlength:4,unit:"px",step:1,style:"",nmnode_style:"",btnnode_style:"",upbtn_style:"",downbtn_style:"",complete:function(){}},_create:function(){var P=this,Q=P.element,L=P.options;var I=(L.hasOwnProperty("style")&&L.style.length)?' style="'+L.style+'"':"",O=(L.hasOwnProperty("nmnode_style")&&L.nmnode_style.length)?' style="'+L.nmnode_style+'"':"",G=(L.hasOwnProperty("btnnode_style")&&L.btnnode_style.length)?' style="'+L.btnnode_style+'"':"",E=(L.hasOwnProperty("upbtn_style")&&L.upbtn_style.length)?' style="'+L.upbtn_style+'"':"",F=(L.hasOwnProperty("downbtn_style")&&L.downbtn_style.length)?' style="'+L.downbtn_style+'"':"";Q.wrap('
    ');if(L.hasOwnProperty("value")&&L.regexp.test(L.value)){Q.focus().val(L.value)}if(L.hasOwnProperty("maxlength")&&/^[1-9]{1}\d*$/.test(L.maxlength)){Q.attr("maxlength",L.maxlength)}if(L.hasOwnProperty("unit")&&L.unit.length){Q.closest(".wp_cstinput_helper").after('
    '+L.unit+"
    ")}D.each(["keydown","keyup","change","focus","blur"],function(R,S){Q.bind(S+C,function(T){if(!A&&(S=="blur")){return false}P._trigger("on"+S,T,null)})});var H,K,J;H=P.buttons=Q.closest(".wp_cstinput_helper").find(".minplus_helper > span");K=H[0];J=H[1];H.mousedown(N).mouseup(M).mouseout(M);function N(){if(L.disabled){return}var R=(this===K)?L.step:-L.step;Q.focus();Q.select();A=false;P._doCount(R);return false}function M(){if(!A){A=true}return false}},_doCount:function(E){var F,I=this.options.range,G=this.element[0].value;if(!G.length){G=this.element[0].value=0}F=this._parseValue(G)+E;if(D.isArray(I)&&(I.length>0)){var H,J;if(typeof I[0]!="undefined"){H=I[0]}if(typeof I[1]!="undefined"){J=I[1]}if((E<0)&&(typeof H==="number")&&(F0)&&(typeof J==="number")&&(F>J)){F=J}}this.element[0].value=F;if(D.isFunction(this.options.complete)){this.options.complete(this.element,F)}},_parseValue:function(F){var E=parseFloat(F);if(isNaN(E)){return 0}return E},enable:function(){this.buttons.removeClass("cstinput_disabled");D.Widget.prototype.enable.call(this)},disable:function(){this.buttons.addClass("cstinput_disabled");D.Widget.prototype.disable.call(this)},destroy:function(){var E=this.element,F=E.closest(".wp_cstinput_helper");E.removeAttr("maxlength").unbind(C);F.before(E[0]);F.siblings(".wp_cstunit_helper").remove().end().remove();D.Widget.prototype.destroy.call(this)}})})(jQuery);(function(D,C){var A="simroll",B=function(){var G,F,E=document.createElement("DIV");E.style.cssText="position:absolute;top:-1000px;width:100px;height:100px;overflow:hidden;";G=document.body.appendChild(E).clientWidth;E.style.overflowY="scroll";F=E.clientWidth;document.body.removeChild(E);return G-F};D.widget("wp.mscroll",{options:{difleft:0,maskleft:0,barleft:0,height:0,maskbg:"#fff",maskcname:"wp-mobile-device-mask",barcname:"wp-mobile-scrollbar"},_create:function(){var E=this,F="-"+E._getRandomStr(),G=(E.options.maskbg||"").length?"background:"+E.options.maskbg:"",H='
    ';H+='
    ';E.options.creatid=F;E.element.before(H);E._setScrollPos(F);E._bindScroll(F)},_setScrollPos:function(K){var G=A+K,E=0,F=this,I=F.element,J=I.prevAll("#"+G+"-mask"),H=I.prevAll("#"+G+"-bar");J.add(H).css({"left":function(){var M=D(this).attr("id").replace(G+"-","");if(F.options[M+"left"]){E=F.options[M+"left"]}else{var L=B()||16;E=F._parseFloat(I.css("left"))+I.width()-L}return E+"px"},"height":(I.height()+1)+"px","visibility":"visible"});H.css("left",function(){return(E+F._parseFloat(F.options.difleft||0))+"px"})},_bindScroll:function(H){var I=this,E=I.element,K=E.prevAll("#"+A+H+"-bar"),G=0,L=K.children("span.pane"),F=E.height(),J=0;E.bind("scroll."+A,function(N){var P=this.scrollHeight;K.height(I.options.height||F);if(F=P){U=V-S.clientHeight}E.scrollTop(U);return false}).bind("mouseup."+A,function(P){P.preventDefault();D(document).unbind("."+A);D(parent.document).unbind(".rmscroll");if(!L.hasClass("scrolling")){return}L.removeClass("scrolling")});D(parent.document).bind("mouseup.rmscroll",function(){D(document).unbind("."+A)})}).bind("mouseup."+A,function(O){D(document).unbind("."+A);D(parent.document).unbind(".rmscroll");return false})})()},_getRandomStr:function(G){G=G||16;var I="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",H=I.length,F="";for(var E=0;E0){P.remove()}O='
    ';d+=1}var U="";if(R){U+='
    '+translate("property.showInBottom")+'
    x:y:w:h:
    '}var F=$(A),b=$("#wp-floatpanel_loading"),K='
    ';if(b.size()>0){b.remove()}var H=$.options?$.options.superid:0;var E=$('"+O+K).appendTo(J);D=E[0];N=$(D);var f=F.width(),W=N.width();$("#wp-floatpanel_loading").width(f).height(F.height());N.draggable({handle:".wp-title",cancel:".wp-icon",cursor:"move",scroll:false,iframeFix:true,start:function(j,h){var k=$(this),i=k.find(".wp-title").outerHeight();$(".wp-diy-selected-content").slideUp().remove();if(I.swfFix){var m=k.find("object");if(m.length>0){m.parent().data("wpswfsize",{"width":m.width(),"height":m.height()});m.css({"height":"0","width":"0","visibility":"hidden"})}m=null}if(k.find("iframe").length>0){var l=k.find(".ui-resizable-innerIframeFix");(l.length>0)&&l.remove();$('
    ').css({left:0,top:i+"px",position:"absolute",opacity:"0.001",zIndex:1000,width:k.width()+"px",height:(k.height()-i)+"px"}).appendTo(k)}},drag:function(i,h){var j=h.position;if(j.top<0){j.top=0}if(j.left<0){j.left=0}if(f0)&&h.remove();if(I.swfFix){var k=$(this).find("object");if(k.length>0){var i=k.parent(),j=i.data("wpswfsize");k.css({"height":(j.height||24)+"px","width":(j.width||82)+"px","visibility":"visible"});i.removeData("wpswfsize");i=j=null}k=null}}}).bind("wpdialogclose",function(i){N={};clearTimeout(M);var h=$(i.target);if(Y){h=h.add("#wp-floatpanel_overlay")}if($.isFunction(I.close)){I.close(h[0])}$(document).trigger("click");return h.add("#wp-floatpanel_loading").remove()})}else{N=Z;D=Z[0]}$.Deferred(function(h){if(Q==false){if(I.cache&&B[V]){var l=B[V];h.resolve(l)}else{var k={};if(I.postbody){k={data:I.postbody}}$.ajax($.extend({type:"POST",url:V,data:I.data,beforeSend:function(){},success:function(m){if(m.length>0){if(m=="Session expired"){A.location.href=getSessionExpiredUrl()}h.resolve(m);if(I.cache){B[V]=m}}else{h.reject()}},error:function(n,m,o){wp_alert((o||m)+"("+I.title+").
    "+translate("Request failed!"));N.triggerHandler("wpdialogclose");return false}},k))}}else{var i=S-26,j='
    ";h.resolve(j)}return h.promise()}).done(function(i){$("#wp-floatpanel_loading").remove();var h={};$("."+X,D).html(i);if(L.test(S)){h["width"]=S+"px"}if(L.test(e)){h["height"]=e+"px"}if(G||Y){N.show().css(h);M=setTimeout(function(){N.triggerHandler("wpdialogsetpos")},30);$(A).resize(function(){panel_position(N,S,e,Y,"wp-floatpanel_overlay")});N.bind("wpdialogsetpos",function(j){panel_position(N,S,e,Y,"wp-floatpanel_overlay")})}else{if(L.test(c)){h["left"]=c+"px"}if(L.test(T)){h["top"]=T+"px"}N.css(h).show()}I.open(D)}).fail(function(){wp_alert(I.title+"(deferred fail).
    "+translate("Request failed!"));N.triggerHandler("wpdialogclose");return false});$(".wp-title a.close",D).bind("click",function(h){N.triggerHandler("wpdialogclose");h.preventDefault()});return null}A.wp_floatpanel=C})(window);function panel_position(C,J,N,D,H){if(C instanceof jQuery==false){return}var B=C,L=B.outerWidth(true),A=B.outerHeight(true),M=Math.floor,F=/^\d+$/i,G={};var K=$(document).scrollTop();if(F.test(N)){A=N}L=Math.max(L,J);var I=window.innerWidth||self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,E=window.innerHeight||self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;pltp=M((E-A)/2);pllt=M((I-L)/2);if(D){$("#"+H).width(I).height(E)}G["left"]=pllt+"px";G["top"]=((pltp>0?pltp:0)+K)+"px";B.css(G)}$._parseFloat=function(B){var A=parseFloat(B);if(isNaN(A)){return 0}return A};function fix_img_url_path(C){var D=(function(){var K=["-","[","]","index.html","{","}","(",")","*","+","?",".","\\","^","$","|"];var I=new RegExp("["+K.join("\\")+"]","g");return function J(L){return L.replace(I,"\\$&")}})();var H=/\/([^\/]+)$/;var F=C.match(H);var G="";if(F){var E=F[1];var B=encodeURIComponent(E);var A=new RegExp(D(E)+"$");G=C.replace(A,B)}else{G=encodeURIComponent(C)}return G}function set_pic(I){var C=new Image();C.src=$(I).attr("src");var E=C.width;var J=C.height;if(E==0){E=107}if(J==0){J=107}var G=107;var A=107;var F=107;var B=107;var D=0;if(E>J){B=(J*A)/E;D=(G-B)/2;$(I).attr("style","width: "+F+"px;height:"+B+"px;");$(I).parent().css("top",D)}else{F=(E*A)/J;D=(G-F)/2;$(I).attr("style","width: "+F+"px;height:"+B+"px;left:"+D+"px;");$(I).parent().css({"top":0,"left":D})}}function msite_popup(A){var F=$("#scroll_container"),C=$(window).height(),D=relativeToAbsoluteURL("template/default/images/loading.gif"),B="position:absolute;top:0;left:0;width:320px;overflow:hidden;z-index:10000",E='
    ';var G=F.children(".mspopup_mask");if(!G.length){F.append(E).attr("data-height",F.height()).height(C)}}function mspopup_onload(B){B.height="auto";var A=B.contentWindow.document.body.scrollHeight,C=B.contentWindow.document.documentElement.scrollHeight,D=Math.max(A,C);B.height=D;$(B).parent(".mspopup_mask").height(D).parent("#scroll_container").height(D)};