/* QuoJS v3.0.1 - 2014/1/24
   http://quojs.tapquo.com
   Copyright (c) 2014 Javi Jimenez Villar (@soyjavi) - Licensed MIT */
(function(){"use strict";!function(a){var b,c,d,e;return b="parentNode",a.fn.find=function(b){var c;return c=1===this.length?Quo.query(this[0],b):this.map(function(){return Quo.query(this,b)}),a(c)},a.fn.parent=function(a){var e;return e=a?d(this):this.instance(b),c(e,a)},a.fn.children=function(a){var b;return b=this.map(function(){return Array.prototype.slice.call(this.children)}),c(b,a)},a.fn.siblings=function(a){var b;return b=this.map(function(a,b){return Array.prototype.slice.call(b.parentNode.children).filter(function(a){return a!==b})}),c(b,a)},a.fn.get=function(a){return this[a]||null},a.fn.first=function(){return a(this[0])},a.fn.last=function(){return a(this[this.length-1])},a.fn.closest=function(b,c){var d,e;for(e=this[0],d=a(b),d.length||(e=null);e&&d.indexOf(e)<0;)e=e!==c&&e!==document&&e.parentNode;return a(e)},a.fn.next=function(){return e.call(this,"nextSibling")},a.fn.prev=function(){return e.call(this,"previousSibling")},a.fn.instance=function(a){return this.map(function(){return this[a]})},a.fn.map=function(b){return a.map(this,function(a,c){return b.call(a,c,a)})},d=function(b){var c;for(c=[];b.length>0;)b=a.map(b,function(a){return a=a.parentNode,a!==document&&c.indexOf(a)<0?(c.push(a),a):void 0});return c},c=function(b,c){return null!=c?a(b).filter(c):a(b)},e=function(b){var c;for(c=this[0][b];c&&1!==c.nodeType;)c=c[b];return a(c)}}(Quo)}).call(this);