관리-도구
편집 파일: jMobile.min.js
window.$=window.jMobile={watch_id:"",geolocationFailFast:true,geoTimeout:7500,detect:function(q,f,y,t,C){if(navigator.geolocation){if(navigator.userAgent.indexOf("Chrome")!=-1)jMobile.geoTimeout=6E4;jMobile.geolocationFailFast=true;navigator.geolocation.getCurrentPosition(f,y,{maximumAge:6E5,timeout:jMobile.geoTimeout});setInterval("jMobile.geolocationFailFast = false;",100);if(typeof q==="object"&&typeof q!=="undefined"&&typeof q.watch!=="undefined"&&q.watch==true)jMobile.watch_id=navigator.geolocation.watchPosition(t, C,{maximumAge:6E5,timeout:jMobile.geoTimeout,enableHighAccuracy:true})}else y({code:1,message:"Browser does not support geolocation."})},clear_watch:function(){navigator.geolocation.clearWatch(jMobile.watch_id)},select:function(){function q(a,b){for(var c,d=0,e=L.length;d<e;d++)if(L[d].apply(this,arguments))return this;if(!a)return this;if(m(a)){aa?a():M.push(a);return this}else if(r(a))return this.make(a);if(a.nodeType||D(a))return this.make([a]);if(a=="body"&&!b&&k.body){this.context=a.context; this[0]=k.body;this.length=1;this.selector=a;return this}if(a.selector!==undefined){this.context=a.context;this.selector=a.selector;return this.make(a)}a=n(a)&&a.charAt(0)==="<"?(c=Ca.exec(a))?(a=[k.createElement(c[1])])&&N(b)?f.fn.attr.call(a,b)&&a:a:O(a).childNodes:E(a,b);return this.make(a)}function f(a,b){return new q(a,b)}function y(a,b,c){b=b||0;if(m(b))return z(a,function(e,g){return!!b.call(e,g,e)===c});else if(b.nodeType)return z(a,function(e){return e===b===c});else if(n(b)){var d=b.charAt(0)== ":"&&f.Expr[b.substring(1)];return z(a,function(e){return d?d(e):e.parentNode&&F(E(b,e.parentNode),e)>=0})}return z(a,function(e){return F(b,e)>=0===c})}function t(a,b,c){var d=f.data(a,"_J");if(typeof c==="undefined")return d&&A[d]&&A[d][b];d||f.data(a,"_J",d=++A.id);return(A[d]||(A[d]={}))[b]=c}function C(a){if(!P[a]){var b=f("<"+a+">").appendTo(k.body),c=f.css&&f.css(b[0],"display")||b[0].style.display;b.remove();P[a]=c}return P[a]}function ba(a,b){b=" "+b+" ";for(var c=0,d=a.length;c<d;c++)if(ca(a[c], b))return true;return false}function ca(a,b){return a.nodeType===1&&(" "+a.className+" ").replace(da," ").indexOf(b)>-1}function ea(a,b,c){b=b||k;c=c||[];b.nodeType==1&&a(b)&&c.push(b);b=b.childNodes;for(var d=0,e=b.length;d<e;d++){var g=b[d];g.nodeType==1&&ea(a,g,c)}return c}function E(a,b,c){if(a&&n(a)){if(b instanceof f)b=b[0];b=b||k;c=c||f.query;var d=a.charAt(0),e=a.substring(1),g=Da.test(e),h;try{if(g)return o.call(c(a,b));return g?o.call(c(a,b)):d=="#"?(h=k.getElementById(e))?[h]:fa:u(d=="."? b.getElementsByClassName?b.getElementsByClassName(e):c(a,b):b.getElementsByTagName(a))}catch(j){Q(j)}}return a.nodeType==1||a.nodeType==9?[a]:fa}function ga(a,b,c){var d=k.head||k.getElementsByTagName("head")[0]||R,e=k.createElement("script"),g;if(c)e.async="async";e.onreadystatechange=function(){if(!(g=e.readyState)||g=="loaded"||g=="complete"){e.onload=e.onreadystatechange=null;d&&e.parentNode&&d.removeChild(e);e=undefined;b&&b()}};e.onload=b;e.src=a;d.insertBefore(e,d.firstChild)}function Q(){v.console&& v.console.warn(arguments)}function p(a,b,c){if(a!=null)if(ha&&a.forEach===ha)a.forEach(b,c);else if(a.length===+a.length)for(var d=0,e=a.length;d<e;d++){if(d in a&&b.call(c,a[d],d,a)===ia)break}else for(d in a)if(G.call(a,d))if(b.call(c,a[d],d,a)===ia)break}function ja(a,b){return a&&a.nodeName==="INPUT"&&a.type==="text"&&b==="value"?a.value:a?a.getAttribute(b)||(b in a?a[b]:undefined):null}function S(a,b){var c=[],d,e,g,h;d=0;for(e=T.length;d<e;d++)if(h=T[d].exec(a))break;if(d<T.length)for(e=0;g= b[e];e++){if(d==0&&h[1]==g.id||d==1&&ka(h[1],g.tagName)||d==2&&ca(g,h[1])||d==3&&h[2]==ja(g,h[1]))c.push(g)}else Q(a+" not supported");return c}function F(a,b){if(a==null)return-1;var c,d;if(la&&a.indexOf===la)return a.indexOf(b);c=0;for(d=a.length;c<d;c++)if(a[c]===b)return c;return-1}function s(a,b,c){var d=[];for(a=a[b];a&&a.nodeType!==9&&(c===undefined||a.nodeType!==1||!f(a).is(c));){a.nodeType===1&&d.push(a);a=a[b]}return d}function U(a,b,c){b=b||1;for(var d=0;a;a=a[c])if(a.nodeType===1&&++d=== b)break;return a}function V(a,b){for(var c=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}function z(a,b,c){var d=[],e;c=!!c;for(var g=0,h=a.length;g<h;g++){e=!!b(a[g],g);c!==e&&d.push(a[g])}return d}function H(a,b,c){var d,e,g=[],h=0,j=a.length;if(a instanceof f||typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||r(a)))for(;h<j;h++){d=b(a[h],h,c);if(d!=null)g[g.length]=d}else for(e in a){d=b(a[e],e,c);if(d!=null)g[g.length]=d}return g.concat.apply([],g)}function W(a,b,c){if(!a)return{}; if(b&&c){a.setAttribute("data-"+b,c);return null}var d={};p(ma(a),function(e,g){g.indexOf("data-")!==0||!e||(d[g.substr(5)]=e)});if(n(b))return d[b];return d}function ma(a){var b={},c=0;a=a.attributes;for(var d=a.length;c<d;c++)b[a.item(c).nodeName]=a.item(c).nodeValue;return b}function ka(a,b){return!a||!b?a==b:a.toLowerCase()===b.toLowerCase()}function B(a){return a==null?String(a):na[Ea.call(a)]||"object"}function n(a){return typeof a=="string"}function m(a){return typeof a=="function"||B(a)=== "function"}function r(a){return B(a)==="array"}function D(a){return a&&typeof a=="object"&&"setInterval"in a}function N(a){if(!a||B(a)!=="object"||a.nodeType||D(a))return false;try{if(a.constructor&&!G.call(a,"constructor")&&!G.call(a.constructor.prototype,"isPrototypeOf"))return false}catch(b){return false}for(var c in a);return c===undefined||G.call(a,c)}function w(a,b){var c=a.length,d=0;if(typeof b.length=="number")for(var e=b.length;d<e;d++)a[c++]=b[d];else for(;b[d]!==undefined;)a[c++]=b[d++]; a.length=c;return a}function oa(){var a,b,c,d,e,g=arguments,h=g[0]||{},j=1,x=g.length,X=false;if(typeof h=="boolean"){X=h;h=g[1]||{};j=2}if(typeof h!="object"&&!m(h))h={};if(x===j){h=this;--j}for(;j<x;j++)if((a=g[j])!=null)for(b in a){c=h[b];d=a[b];if(h!==d)if(X&&d&&(N(d)||(e=r(d)))){if(e){e=false;c=c&&r(c)?c:[]}else c=c&&N(c)?c:{};h[b]=oa(X,c,d)}else if(d!==undefined)h[b]=d}return h}function u(a,b){var c=b||[];if(a!=null){var d=B(a);a.length==null||d=="string"||d=="function"||d==="regexp"||D(a)? pa.call(c,a):w(c,a)}return c}function O(a,b,c){b=b||k||b.ownerDocument||b[0]&&b[0].ownerDocument||k;c=c||b.createDocumentFragment();if(!n(a)&&typeof a.length=="number"){var d=c,e=[],g,h;for(g=0;(h=a[g])!=null;g++){if(n(h))h=qa(h,b);if(h.nodeType)e.push(h);else e=w(e,h)}if(d)for(g=0;g<e.length;g++)e[g].nodeType&&d.appendChild(e[g]);return e&&c}for(a=qa(a);a.firstChild;)c.appendChild(a.firstChild);return c}function qa(a,b){var c=(b||k).createElement("div"),d=(Fa.exec(a)||["",""])[1].toLowerCase();d= ra[d]||ra._default;var e=d[0];for(c.innerHTML=d[1]+a+d[2];e--;)c=c.lastChild;return c}function I(a){if(Y){J=Ga;a.sort(Y);if(J)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a}function Ha(){if(!k.body)return null;var a=k.createElement("div");k.body.appendChild(a);a.style.width="20px";a.style.padding="10px";var b=a.offsetWidth;k.body.removeChild(a);return b==40}function sa(a,b){ta.push({url:a,cb:b})}function ua(){p(M,function(a){a()});aa=true}var v=window,k=document,R=k.documentElement, M=[],ta=[],aa,Ia=/Until$/,Ja=/,/,Ka=/^(?:parents|prevUntil|prevAll)/,Fa=/<([\w:]+)/,da=/[\n\t\r]/g,va=/\s+/,La=/\d/,Ma=/\r\n/g,Ca=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,wa=/\r?\n/g,Na=/^(?:select|textarea)/i,Oa=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,xa=String.prototype.trim,Z,ya=/^\s+/,za=/\s+$/,$,Y,Pa={children:true,contents:true,next:true,prev:true},Ea=Object.prototype.toString,na={},J=false,Ga=true,ra={option:[1,"<select multiple='multiple'>", "</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Da=/[,\s.#\[>+]/,fa=[],ia={},i=Array.prototype,G=Object.prototype.hasOwnProperty,o=i.slice,pa=i.push,Aa=i.indexOf,ha=i.forEach,Ba=i.filter,la=i.indexOf;if(/\S/.test("\u00a0")){ya=/^[\s\xA0]+/;za=/[\s\xA0]+$/}var L= [],Qa=0,A={_id:0},P={};i=q.prototype=f.prototype=f.fn={constructor:f,selector:"",length:0,dm:function(a,b,c){b=a[0];var d;if(b)if(this[0]){if(!(a=b.nodeType===3&&b)){a=(a=b&&b.parentNode)&&a.nodeType===11&&a.childNodes.length===this.length?a:O(b);b=a.firstChild;if(a.childNodes.length===1)a=b;if(!b)return this}d=0;for(b=this.length;d<b;d++)c.call(this[d],a)}return this},ps:function(a,b,c){var d=this.constructor();r(a)?pa.apply(d,a):w(d,a);d.prevObject=this;d.context=this.context;if(b==="find")d.selector= this.selector+(this.selector?" ":"")+c;else if(b)d.selector=this.selector+"."+b+"("+c+")";return d}};i.make=function(a){this.length=a&&a.length||0;if(this.length!=0)for(var b=0,c=a.length;b<c;b++)this[b]=a[b];return this};i.toArray=function(){return o.call(this,0)};i.get=function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]};i.add=function(a,b){var c=typeof a=="string"?f(a,b):u(a&&a.nodeType?[a]:a),d=w(this.get(),c);return this.ps(!c[0]||!c[0].parentNode||c[0].parentNode.nodeType== 11||!d[0]||!d[0].parentNode||d[0].parentNode.nodeType==11?d:I(d))};i.each=function(a){if(!m(a))return this;for(var b=0,c=this.length;b<c;b++)a.call(this[b],b,this[b]);return this};i.attr=function(a,b){var c=this[0];return n(a)&&b===undefined?ja(c,a):this.each(function(d){var e=this.nodeType;if(e!==3&&e!==8&&e!==2)if(typeof a=="object")for(var g in a)b===null?this.removeAttribute(a):this.setAttribute(g,a[g]);else this.setAttribute(a,m(b)?b.call(this,d,this.getAttribute(a)):b)})};i.removeAttr=function(a){return this.each(function(){this.removeAttribute(a)})}; i.data=function(a,b){return b===undefined?W(this[0],a):this.each(function(){W(this,a,b)})};i.append=function(){return this.dm(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})};i.prepend=function(){return this.dm(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})};i.before=function(){return this.dm(arguments,false,function(a){this.parentNode.insertBefore(a,this)})};i.after=function(){if(this[0]&&this[0].parentNode)return this.dm(arguments,false, function(a){this.parentNode.insertBefore(a,this.nextSibling)});return this};i.hide=function(){return this.each(function(){t(this,"display",this.style.display);this.style.display="none"})};i.show=function(){return this.each(function(){this.style.display=t(this,"display")||C(this.tagName)})};i.toggle=function(){return this.each(function(){this.style.display=f.Expr.hidden(this)?t(this,"display")||C(this.tagName):(t(this,"display",this.style.display),"none")})};i.eq=function(a){return a===-1?this.slice(a): this.slice(a,+a+1)};i.first=function(){return this.eq(0)};i.last=function(){return this.eq(-1)};i.slice=function(){return this.ps(o.apply(this,arguments),"slice",o.call(arguments).join(","))};i.map=function(a){return this.ps(H(this,function(b,c){return a.call(b,c,b)}))};i.find=function(a){var b=this,c,d;if(!n(a))return f(a).filter(function(){c=0;for(d=b.length;c<d;c++)if($(b[c],this))return true});var e=this.ps("","find",a),g,h,j;c=0;for(d=this.length;c<d;c++){g=e.length;w(e,f(a,this[c]));if(c==0)for(h= g;h<e.length;h++)for(j=0;j<g;j++)if(e[j]===e[h]){e.splice(h--,1);break}}return e};i.not=function(a){return this.ps(y(this,a,false),"not",a)};i.filter=function(a){return this.ps(y(this,a,true),"filter",a)};i.indexOf=function(a){return F(this,a)};i.is=function(a){return this.length>0&&f(this[0]).filter(a).length>0};i.remove=function(){for(var a=0,b;(b=this[a])!=null;a++)b.parentNode&&b.parentNode.removeChild(b);return this};i.closest=function(a,b){var c=[],d;d=0;for(l=this.length;d<l;d++)for(cur=this[d];cur;)if(S(a, [cur]).length>0){c.push(cur);break}else{cur=cur.parentNode;if(!cur||!cur.ownerDocument||cur===b||cur.nodeType===11)break}c=c.length>1?I(c):c;return this.ps(c,"closest",a)};i.val=function(a){if(a==null)return this[0]&&this[0].value||"";return this.each(function(){this.value=a})};i.html=function(a){if(a==null)return this[0]&&this[0].innerHTML||"";return this.each(function(){this.innerHTML=a})};i.text=function(a){var b=this[0],c;return typeof a=="undefined"?b&&(c=b.nodeType)?c===1||c===9?typeof b.textContent== "string"?b.textContent:b.innerText.replace(Ma,""):c===3||c===4?b.nodeValue:null:null:this.empty().append((b&&b.ownerDocument||k).createTextNode(a))};i.empty=function(){for(var a=0,b;(b=this[a])!=null;a++)for(;b.firstChild;)b.removeChild(b.firstChild);return this};i.addClass=function(a){var b,c,d,e,g,h,j;if(m(a))return this.each(function(x){f(this).addClass(a.call(this,x,this.className))});if(a&&n(a)){b=a.split(va);c=0;for(d=this.length;c<d;c++)if((e=this[c])&&e.nodeType===1)if(!e.className&&b.length=== 1)e.className=a;else{g=" "+e.className+" ";h=0;for(j=b.length;h<j;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=Z(g)}}return this};i.removeClass=function(a){var b,c,d,e,g,h,j;if(m(a))return this.each(function(x){f(this).removeClass(a.call(this,x,this.className))});if(a&&n(a)||a===undefined){b=(a||"").split(va);c=0;for(d=this.length;c<d;c++){e=this[c];if(e.nodeType===1&&e.className)if(a){g=(" "+e.className+" ").replace(da," ");h=0;for(j=b.length;h<j;h++)g=g.replace(" "+b[h]+" "," ");e.className= Z(g)}else e.className=""}}return this};i.hasClass=function(a){return ba(this,a)};i.fadeIn=function(){this.each(function(){f(this).show()})};i.fadeOut=function(){this.each(function(){f(this).hide()})};i.serializeArray=function(){return this.map(function(){return this.elements?u(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Na.test(this.nodeName)||Oa.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null||r(c)?H(c,function(d){return{name:b.name, value:d.replace(wa,"\r\n")}}):{name:b.name,value:c.replace(wa,"\r\n")}}).get()};f.Expr={hidden:function(a){return a.offsetWidth===0||a.offsetHeight==0||(f.css&&f.css(a,"display")||a.style.display)==="none"},visible:function(a){return!f.Expr.hidden(a)}};f.hasClass=ba;f.walk=ea;f.$$=E;f.setQuery=function(a){f.query=function(b,c){return E(b,c,a||function(d,e){return e.querySelectorAll(d)})}};i=v.Sizzle||v.qwery;f.setQuery(i||function(a,b){return k.querySelectorAll?u((b||k).querySelectorAll(a)):[]}); f.loadScript=ga;f.each=function(a,b,c){var d,e=0,g=a.length,h=g===undefined||m(a);if(c)if(h)for(d in a){if(b.apply(a[d],c)===false)break}else for(;e<g;){if(b.apply(a[e++],c)===false)break}else if(h)for(d in a){if(b.call(a[d],d,a[d])===false)break}else for(;e<g;)if(b.call(a[e],e,a[e++])===false)break;return a};f._each=p;var T=[/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/]; f.filter=S;f._indexOf=F;f._defaults=function(a){p(o.call(arguments,1),function(b){for(var c in b)if(a[c]==null)a[c]=b[c]});return a};f._filter=function(a,b,c){var d=[];if(a==null)return d;if(Ba&&a.filter===Ba)return a.filter(b,c);p(a,function(e,g,h){if(b.call(c,e,g,h))d[d.length]=e});return d};f.proxy=function(a,b){if(typeof b=="string"){var c=a[b];b=a;a=c}if(m(a)){var d=o.call(arguments,2);c=function(){return a.apply(b,d.concat(o.call(arguments)))};c.guid=a.guid=a.guid||c.guid||Qa++;return c}};f.dir= s;f.nth=U;f.sibling=V;f.grep=z;f.map=H;f.data=W;f.attrs=ma;f.eqSI=ka;f.trim=Z=xa?function(a){return a==null?"":xa.call(a)}:function(a){return a==null?"":a.toString().replace(ya,"").replace(za,"")};f.indexOf=f.inArray=function(a,b){if(!b)return-1;if(Aa)return Aa.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1};p("Boolean Number String Function Array Date RegExp Object".split(" "),function(a){na["[object "+a+"]"]=a.toLowerCase();return this});f.type=B;f.isFunction=m;f.isArray= Array.isArray||r;f.isWindow=D;f.isNaN=function(a){return a==null||!La.test(a)||isNaN(a)};f.merge=w;f.extend=f.fn.extend=oa;f.makeArray=u;f.htmlFrag=O;var K=function(a,b,c){if(a===b)return c;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1};$=f.contains=R.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):true)}:function(){return false};Y=R.compareDocumentPosition?($=function(a,b){return!!(a.compareDocumentPosition(b)&16)})&&function(a,b){if(a===b){J=true;return 0}if(!a.compareDocumentPosition|| !b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:function(a,b){if(a===b){J=true;return 0}else if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],g=[];c=a.parentNode;d=b.parentNode;var h=c;if(c===d)return K(a,b);else if(c){if(!d)return 1}else return-1;for(;h;){e.unshift(h);h=h.parentNode}for(h=d;h;){g.unshift(h);h=h.parentNode}c=e.length;d=g.length;for(h=0;h<c&&h<d;h++)if(e[h]!==g[h])return K(e[h],g[h]);return h=== c?K(a,g[h],-1):K(e[h],b,1)};f.unique=I;p({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return s(a,"parentNode")},parentsUntil:function(a,b,c){return s(a,"parentNode",c)},next:function(a){return U(a,2,"nextSibling")},prev:function(a){return U(a,2,"previousSibling")},nextAll:function(a){return s(a,"nextSibling")},prevAll:function(a){return s(a,"previousSibling")},nextUntil:function(a,b,c){return s(a,"nextSibling",c)},prevUntil:function(a,b,c){return s(a,"previousSibling", c)},siblings:function(a){return V(a.parentNode.firstChild,a)},children:function(a){return V(a.firstChild)},contents:function(a){return a.nodeName==="iframe"?a.contentDocument||a.contentWindow["document "]:u(a.childNodes)}},function(a,b){f.fn[b]=function(c,d){var e=H(this,a,c),g=o.call(arguments);Ia.test(b)||(d=c);if(typeof d=="string")e=S(d,e);e=this.length>1&&!Pa[b]?I(e):e;if((this.length>1||Ja.test(d))&&Ka.test(b))e=e.reverse();return this.ps(e,b,g.join(","))}});p({appendTo:"append",prependTo:"prepend", insertBefore:"before",insertAfter:"after"},function(a,b){f.fn[b]=function(c){var d=[];c=f(c);var e,g,h;if((e=this.length===1&&this[0].parentNode)&&e.nodeType===11&&e.childNodes.length===1&&c.length===1){c[a](this[0]);return this}else{e=0;for(h=c.length;e<h;e++){g=(e>0?this.clone(true):this).get();f(c[e])[a](g);d=d.concat(g)}return this.ps(d,b,c.selector)}}});(function(){var a=document.createElement("div");a.style.display="none";a.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>"; a=a.getElementsByTagName("a")[0];f.support={boxModel:null,opacity:/^0.55$/.test(a.style.opacity),cssFloat:!!a.style.cssFloat};a=/(opera)(?:.*version)?[ \/]([\w.]+)/;var b=/(msie) ([\w.]+)/,c=/(mozilla)(?:.*? rv:([\w.]+))?/,d=navigator.userAgent.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(d)||a.exec(d)||b.exec(d)||d.indexOf("compatible")<0&&c.exec(d)||[];(f.browser={version:a[2]||"0"})[a[1]||""]=true})();f.scriptsLoaded=function(a){m(a)&&M.push(a)};f.loadAsync=sa;!i&&!k.querySelectorAll&&sa("http://cdnjs.cloudflare.com/ajax/libs/sizzle/1.4.4/sizzle.min.js", function(){f.setQuery(v.Sizzle||v.qwery)});f.init=false;f.onload=function(){if(!f.init)try{f.support.boxModel=Ha();var a=0;p(ta,function(c){a++;ga(c.url,function(){try{c.cb&&c.cb()}catch(d){}--a||ua()})});f.init=true;a||ua()}catch(b){Q(b)}};k.body&&!f.init&&setTimeout(f.onload,1);f.hook=function(a){L.push(a)};f.plug=function(a,b){n(a);b=m(a)?a:b;if(!m(b))throw"Plugin fn required";b(f)};return f}()};