var Gimme={};(function(){var b=new function(){var e={},n=new function(){this.val=-2;this.t=0;this.f=0;this.inc=function(){this.val+=2;this.t=this.val+1;this.f=this.val}};this.query=p;this.processSelector=f;this.nthCacheContains=i;function p(a,b){if(!a)return [];if(a instanceof Array)return a;if(typeof a!=="string")return [a];if(typeof document.querySelectorAll!=="undefined")try{return g((b||document).querySelectorAll(a))}catch(c){}e={};n.inc();return o(d.parseSelector(a),b)}function o(q,c){var b=q.selectors,i=q.hints,h=i.anchor;c=c||document.documentElement;if(h.elem===null)return [];if(i.isPartialQuery){b.unshift(d.createReferenceSelector(c));c=c.parentNode}else if(h.elem!==-1&&b.length>1)c=h.elem;if(i.initialCollection!==null)elems=j(i.initialCollection,b[b.length-1]);else elems=m(b[b.length-1],c);if(b.length===1)return elems;if(b.length===3)if(h.isIdeal)return elems;var s=0,k,g,t=elems.length,r=a.combinator,l,p,f,e,n=null,o=[];a:for(k=0;k<t;k++){g=b.length-2;e=b[g];f=p=elems[k];while(e){l=b[g-1];if(!r[e](l,f))if(f.parentNode&&n===" "&&e!==" "){f=f.parentNode;continue}else continue a;f=l.cursor;g-=2;n=e;e=g<1?null:b[g]}o[s++]=p}return o}function f(d,b){if(!b)return false;if(d.refersTo)return d.refersTo===b;var c=d.inProps,n=c.id,m=c.tag,j=c.classes,i=c.attributes,l=c.pseudos,g=a.inRules,f=a.exRules;if(n&&b.id!==n||m&&b.tagName!==m||j.length>0&&!g["."].processFn(b,j)||i.length>0&&!g["["].processFn(b,i)||l.length>0&&!g[":"].processFn(b,l))return false;var h,e,k=d.exProps;for(h in f){e=f[h].name;if(k[e]&&!f[h].processFn(b,k[e]))return false}return true}function m(h,f){f=f||document.documentElement;var l=0,d,j,c,a=h.inProps,m=h.exProps;if(a.id){c=[document.getElementById(a.id)];delete a.id}else{var e=a.pseudos[a.pseudos.length-1];if(e&&e.name==="nth-child"){c=k(e.param.a,e.param.b,a.tag);a.pseudos=a.pseudos.splice(a.pseudos.length,1)}else c=f.getElementsByTagName(a.tag||"*");if(m.isEmpty&&a.classes.length<1&&a.attributes.length<1&&a.pseudos.length<1)return g(c);delete a.tag}var i=[];j=c.length;for(d=0;d<j;d++)if(b.processSelector(h,c[d]))i[l++]=c[d];return i}function j(d,g){var c=[],e=0,h=d.length,a,b;for(b=0;b<h;b++){a=d[b];if(a.nodeType!==1)continue;if(f(g,a))c[e++]=a}return c}function g(b){var c=[],d=0,e=b.length,a;for(a=0;a<e;a++)c[d++]=b[a];return c}function k(a,b,c){return e[a+"n+"+b]=h(a,b,c,true)}function l(a,b){return e[a+"n+"+b]=h(a,b,null,false)}function h(j,n,b,h){if(b==="*")b=null;var k=document.getElementsByTagName("*"),m=k.length,i={},l=0,e,a,f,g,d=h?[]:{};for(f=0;f<m;f++){a=k[f];e=c(a.parentNode);i[e]=i[e]||0;g=(l=++i[e])-n;if(j===0&&(b&&a.tagName!==b?false:true)){if(g===0){if(h)d.push(a);d[c(a)]=true}}else if(j*g>=0&&g%j===0&&(b&&a.tagName!==b?false:true)){if(h)d.push(a);d[c(a)]=true}}return d}function i(c,d,f){var b=c+"n+"+d,a=e[b];if(!a)a=e[b]=l(c,d);return a[f]===true}},d=new function(){var d=null,f=null,c="";this.setRules=function(b){d=b;var a;for(a in d.combinator)if(d.combinator.hasOwnProperty(a))c+=a;f=new RegExp("\\s*(["+c+"])\\s*","g")};this.parseSelector=function(l){l=e(l).replace(f,"$1");var i=null,k=[],n=new b,m={anchor:new g,isPartialQuery:false,initialCollection:null},h=m.anchor,p=h,s,t,v,q,r,u,d,j=0,o="",w=l.length;while(j<w){d=l.charAt(j);i=i||a.inRules[d]||a.exRules[d];if(i){u=i.endsWith+(i.stopForCombinators===false?"":c);t=i.startSkip||0;v=i.endSkip||0;q=i.startModifier||null;r=i.endModifier||null;d=l.charAt(j+=t);while(u.indexOf(d)===-1){if(d===q)while(d&&d!==r){o+=d;d=l.charAt(++j)}o+=d;d=l.charAt(++j)}if((s=n.addPart(o,i))!==-1){p=h;h=new g(k.length,s)}j+=v;o="";i=null;continue}else if(c.indexOf(d)!==-1){d==="+"||d==="~"?(h=p):(p=h);if(!(m.isPartialQuery=j===0)){k.push(n);n=new b}k.push(d);m.initialCollection=d===">"&&h.elem&&h.elem!==-1&&h.index===k.length-2?h.elem.childNodes:null}else{i=a.inRules["tag"];continue}j++}k.push(n);h.isIdeal=h.elem!==-1&&k.length-3===h.index;m.anchor=h;return {selectors:k,hints:m}};this.parseAttribute=function(c){var d=/\=|\^=|\$=|\*=|\|=|~=|!=/,a=c.match(d);a=a&&a[0];var b=c.split(a),f=b[0]&&e(b[0].replace(/[\[\]"]/g,"")),g=b[1]&&e(b[1].replace(/[\[\]"]/g,""));return {name:f,delim:a,val:g}};this.parsePseudo=function(f){var d=/(.*)\((.*)\)/,b=f.match(d),g=b&&b[1]||f,a=b&&b[2],c,h,e;if(g==="nth-child")if(a==="even")a={wholeValue:a,a:2,b:0};else if(a==="odd")a={wholeValue:a,a:2,b:1};else{d=/([+-]?\d+)?(n)?([+-]?\d+)?/;b=a.match(d);c=parseInt(b[1])||1;e=b[2]?1:0;h=c&&!e?c:parseInt(b[3])||0;a={wholeValue:a,a:c*e,b:h}}return {name:g,param:a}};this.createReferenceSelector=function(a){return new b(a)};function b(e){this.cursor=null;this.refersTo=e;this.inProps={id:null,tag:null,classes:[],attributes:[],pseudos:[]};this.exProps={isEmpty:true};var d,b,c=a.exRules;for(d in c)if(c.hasOwnProperty(d)){delete this.exProps.isEmpty;b=c[d];switch(b.objType){case "array":this.exProps[b.name]=[];break;case "null":default:this.exProps[b.name]=null}}}b.prototype.addPart=function(a,c){var b=c.name,f=c.preFn,e=c.hintFn,g=-1;if(typeof f==="function")a=f(a);var d=typeof this.inProps[b]!=="undefined"?this.inProps:this.exProps;d[b]instanceof Array?d[b].push(a):(d[b]=a);if(typeof e==="function")g=e(a);return g};function g(b,a,c){this.index=b===0?0:b||NaN;this.elem=a===null?null:a||-1;this.isIdeal=c||false}},a={inRules:{"tag":{name:"tag",endsWith:"#.[:",preFn:function(a){return a.toUpperCase()},hintFn:function(a){return a==="BODY"||a==="HTML"?document.getElementsByTagName(a)[0]:-1},processFn:function(a,b){return a.tagName===b}},"#":{name:"id",endsWith:"#.[:",startSkip:1,preFn:null,hintFn:function(a){return document.getElementById(a)},processFn:function(a,b){return a.id===b}},".":{name:"classes",endsWith:".[:",startSkip:1,objType:"array",processFn:function(d,c){var a=d.className;if(typeof a!=="string")a=d.getAttribute("class");if(!a||a.length<1)return false;var e=" "+a+" ",b,f=c.length;for(b=0;b<f;b++)if(e.indexOf(" "+c[b]+" ")===-1)return false;return true}},"[":{name:"attributes",endsWith:"]",stopForCombinators:false,startSkip:1,endSkip:1,startModifier:'"',endModifier:'"',objType:"array",preFn:d.parseAttribute,processFn:function(j,g){var c,k=g.length,b,h,i,e,d;for(c=0;c<k;c++){b=g[c];h=b.name;i=b.val;e=b.delim;d=f(j,h);if(d===null)return false;else if(!e)continue;else if(!a.attr[e||"unknown"](d,i))return false}return true}},":":{name:"pseudos",endsWith:"#.[:)",startSkip:1,startModifier:"(",endModifier:")",objType:"array",preFn:d.parsePseudo,processFn:function(f,d){var c,e,g=d.length,b;for(b=0;b<g;b++){c=d[b];e=a.pseudo[c.name]||a.pseudo.unknown;if(!e(f,c))return false}return true}}},exRules:{},attr:{"=":function(a,b){return a===b},"^=":function(a,b){return a.indexOf(b)===0},"$=":function(a,b){var c=a.lastIndexOf(b);return c!==-1&&c+b.length===a.length},"*=":function(a,b){return a.indexOf(b)!==-1},"|=":function(a,b){return a===b||a.indexOf(b+"-")===0},"~=":function(a,b){return a===b||h(a.split(" "),b)},"!=":function(a,b){return a!==b},"unknown":function(){return false}},pseudo:{"first-child":j("previous"),"last-child":j("next"),"only-child":function(b){return a.pseudo["first-child"](b)&&a.pseudo["last-child"](b)},"nth-child":function(d,a){var e=a.param.a,f=a.param.b;return b.nthCacheContains(e,f,c(d))},"contains":function(b,a){return b.innerHTML.indexOf(a.param)!==-1},"unknown":function(){return false}},combinator:{" ":function(c,d){var a=d.parentNode;while(a&&a!==document){if(b.processSelector(c,a)){c.cursor=a;return true}a=a.parentNode}return false},">":function(a,d){var c=d.parentNode;a.cursor=c;return b.processSelector(a,c)},"<":function(d,e){var c=e.childNodes,a,f=c.length;for(a=0;a<f;a++)if(b.processSelector(d,c[a]))return true;return false},"~":function(c,d){var a=d.previousSibling;while(a)if(a.nodeType===1&&b.processSelector(c,a)){c.cursor=a;return true}else a=a.previousSibling;return false},"+":function(c,d){var a=d.previousSibling;while(a&&a.nodeType!==1)a=a.previousSibling;c.cursor=a;return b.processSelector(c,a)},",":function(){return false}}};Gimme.Selectors={addRule:function(b,c){a.exRules[b]=c},addPseudo:function(b,c){a.pseudo[b]=c},addAttribute:function(b,c){a.attr[b]=c},addCombinator:function(b,c){a.combinator[b]=c}};d.setRules(a);Gimme.query=b.query;Gimme.id=function(a){return document.getElementById(a)};var g=navigator.userAgent.toLowerCase();Gimme.Browser={isIE:typeof ActiveXObject!=="undefined",isOpera:typeof window.opera!=="undefined",isKHTML:g.indexOf("khtml")!==-1,isGecko:g.indexOf("khtml")===-1&&g.indexOf("gecko")!==-1,isInIFrame:function(){try{return window.frameElement&&window.frameElement.tagName==="IFRAME"}catch(a){return true}}(),isInFrameset:window!=top,isInQuirksMode:document.compatMode==="BackCompat",offsetIncludesBorders:function(){if(typeof this.value==="undefined"){var a=document.createElement("div");a.setAttribute("style","position:absolute;visibility:hidden;top:0;left:0;border:1px solid #000;");var b=document.createElement("div");a.appendChild(b);document.body.appendChild(a);this.value=offsetIncludesBorders=b.offsetTop===1;document.body.removeChild(a);a=b=null}return this.value}};var o={guid:"_$gimme$_guid",descendant:"_$gimme$_descendant"},l=0;function c(a){if(a===window)return "theWindow";else if(a===document)return "theDocument";else if(typeof a.uniqueID!=="undefined")return a.uniqueID;var b=o.guid;if(typeof a[b]==="undefined")a[b]=b+l++;return a[b]}var i=function(){return typeof Array.prototype.indexOf!=="undefined"?b:a;function b(b,a){return b.indexOf(a)}function a(b,c){var a,d=b.length;for(a=0;a<d;a++)if(b[a]===c)return a;return -1}}();function h(b,a){return i(b,a)!==-1}function e(a){return a.replace(/^\s+|\s+$/g,"")}function n(a){return e(a).replace(/\s{2,}/g," ")}var f=function(){return Gimme.Browser.isIE?b:a;function a(b,a){return b.getAttribute(a)}function b(a,b){switch(b.toLowerCase()){case "class":return a.className||null;case "id":return a.id||null;case "href":case "src":if(typeof a.getAttribute!=="undefined")return a.getAttribute(b,2)}return a.attributes&&a.attributes[b]?a.attributes[b].nodeValue:a.getAttribute(b)}}(),m=function(){return typeof document.createElement("div").hasAttribute!=="undefined"?a:b;function a(b,a){return b.hasAttribute(a)}function b(b,a){return !!f(b,a)}}();function j(b){var a=b+"Sibling";return function(c){var b=c[a];while(b&&b.nodeType!==1)b=b[a];return !b}}function k(c,b){if(!c)return 0;if(/px$/.test(c))return parseInt(c,10);if(!b)b=document.body;var a=document.createElement("div");a.style.visbility="hidden";a.style.position="absolute";a.style.lineHeight="0";if(/%$/.test(c)||b.tagName==="IMG"){b=b.parentNode||b;a.style.height=c}else{a.style.borderStyle="solid";a.style.borderBottomWidth="0";a.style.borderTopWidth=c}b.appendChild(a);var d=a.offsetHeight;b.removeChild(a);return d||0}Gimme.Helper={getObjectGUID:c,indexOf:i,contains:h,trim:e,normalize:n,hasClass:a.inRules["."].processFn,readAttribute:f,attrExists:m,convertToPixels:k}})();function g(a){return new Gimme.object(Gimme.query(a))}Gimme.object=function(a){this.entities=a;this.length=this.entities.length};Gimme.ext=Gimme.object.prototype;(function(){var a=Gimme.Helper,i=a.contains,k=a.indexOf,n=a.trim,h=a.normalize,d=a.hasClass,m=a.attrExists,j=a.readAttribute,b=a.getObjectGUID,l=a.convertToPixels;Gimme.ext.element=function(a){return this.entities[a||0]};Gimme.ext.parent=function(a){return this.entities[a||0].parentNode};Gimme.ext.addClass=function(b){var a=b.split(/\s+/);this.forEach(function(b){g(a).forEach(function(a){if(!d(b,[a]))if(b.className==="")b.className=a;else b.className+=" "+a})});return this};Gimme.ext.removeClass=function(a){return this.swapClass(a,"$1")};Gimme.ext.swapClass=function(b,a){if(a!=="$1")a=" "+a+" ";var c=b.split(/\s+/);this.forEach(function(d){var b=d.className;g(c).forEach(function(c){var d=new RegExp("(^| )"+c+"( |$)");b=b.replace(d,a)});d.className=h(b)});return this};Gimme.ext.hasClass=function(a,b){return d(this.entities[b||0],[a])};Gimme.ext.getAncestor=function(b,d){var a=this.entities[d||0],c=b;while(c-->0)if(a)a=a.parentNode;else break;return a};Gimme.ext.getSibling=function(b,g){var c=this.entities[g||0];if(b===0)return c;var e=b>0?"nextSibling":"previousSibling",a=c,f=Math.abs(b),d=0;while(d<f){a=a[e];if(!a)break;if(a.nodeType===1)d++}return a};Gimme.ext.select=function(a){return new Gimme.object(Gimme.query(a,this.entities[0]))};Gimme.ext.setHTML=function(a){this.forEach(function(b){b.innerHTML=a});return this};Gimme.ext.getHTML=function(a){return this.entities[a||0].innerHTML};Gimme.ext.setValue=function(a){this.forEach(function(b){if(typeof b.value!=="undefined")b.value=a});return this};Gimme.ext.getValue=function(a){return this.entities[a||0].value||""};Gimme.ext.readAttribute=function(a,b){return j(this.entities[b||0],a)};Gimme.ext.writeAttribute=function(a,b){this.forEach(function(c){c.setAttribute(a,b)});return this};Gimme.ext.filter=function(d){var b=this.entities,a=0,c=b.length;while(a<c)if(!d(b[a])){b.splice(a,1);c--}else a++;return this};Gimme.ext.iterate=function(b){var c=this.entities,a,e=c.length;for(a=0;a<e;a++){var d=g(c[a]);b.call(d,a)}b=null;return this};Gimme.ext.getStyle=function(c,p,i){var b=this.entities[p||0];if(c==="opacity"){var h=e(b);if(isNaN(h))c=h;else return h}if(i!==false)i=true;var d="";if(typeof document.defaultView!=="undefined"&&typeof document.defaultView.getComputedStyle!=="undefined")d=document.defaultView.getComputedStyle(b,null);else if(typeof b.currentStyle!=="undefined"){d=b.currentStyle;var k=d[c];if(k==="auto"){if(c==="height"){var f=parseInt(g(b).getStyle("paddingTop"))+parseInt(g(b).getStyle("paddingBottom"));if(b.clientHeight)return b.clientHeight-f+"px";else return b.offsetHeight-f-parseInt(g(b).getStyle("borderTopWidth"))-parseInt(g(b).getStyle("borderBottomWidth"))+"px"}if(c==="width"){var f=parseInt(g(b).getStyle("paddingLeft"))+parseInt(g(b).getStyle("paddingRight"));if(b.clientWidth)return b.clientWidth-f+"px";else return b.offsetWidth-f-parseInt(g(b).getStyle("borderLeftWIdth"))-parseInt(g(b).getStyle("borderRightWidth"))+"px"}if(c==="top")return b.offsetTop+"px";else if(c==="left")return b.offsetLeft+"px";else if(i&&(c==="right"||c==="bottom")){var j={bottom:["top","Height"],right:["left","Width"]},n=parseInt(this.getComputedStyle(b,j[c][0],false),10);return b.parentNode["client"+j[c][1]]-b["offset"+j[c][1]]-n+"px"}else return "0px"}var o=/(em|ex|%|in|cm|mm|pt|pc|small|medium|large|thin|thick)$/,m=/border(.*)Width/i,l=m.test(c)?c.replace(m,"border$1Style"):null;if(o.test(k))if(l!==null&&d[l]==="none")return "0px";else return a.convertToPixels(k,b)}return d&&d[c]};Gimme.ext.setStyle=function(a,b){return g(this.entities).setStyles(a,b)};Gimme.ext.setStyles=function(){var b,c,d=arguments,e=d.length,a;if(e%2!==0)return;this.forEach(function(g){for(a=0;a<e;a+=2){b=d[a];c=d[a+1];if(b==="opacity")f(g,c);else g.style[b]=c}});return this};Gimme.ext.addEvent=function(){if(typeof document.addEventListener!=="undefined")return a;else if(typeof document.attachEvent!=="undefined")return d;else return function(){};function a(b,d,a,e){var c=this["on"+b];if(typeof c==="function"&&e!==false)c.call(this,d,a,true);else this.forEach(function(c){c.addEventListener(b,d,a)});return this}function d(a,d,g,f){var e=this["on"+a];if(typeof e==="function"&&f!==false)e.call(this,d,g,true);else this.forEach(function(f){var g="{"+b(f)+"/"+a+"/"+b(d)+"}",e=c[g];if(typeof e!=="undefined")return;e=function(b){b.target=b.srcElement;if(a=="mouseover")b.relatedTarget=b.fromElement;else if(a=="mouseout")b.relatedTarget=b.toElement;b.preventDefault=function(){b.returnValue=false};b.stopPropagation=function(){b.cancelBubble=true};d.call(f,b);b.target=null;b.relatedTarget=null;b.preventDefault=null;b.stopPropagation=null;b=null};c[g]=e;f.attachEvent("on"+a,e);g=null;e=null});return this}}();Gimme.ext.removeEvent=function(){if(typeof document.removeEventListener!=="undefined")return a;else if(typeof document.detachEvent!=="undefined")return d;else return function(){};function a(b,d,a,e){var c=this["on"+b];if(typeof c==="function"&&e!==false)c.call(this,d,a,false);else this.forEach(function(c){c.removeEventListener(b,d,a)});return this}function d(a,e,g,f){var d=this["on"+a];if(typeof d==="function"&&f!==false)d.call(this,e,g,false);else this.forEach(function(g){var d="{"+b(g)+"/"+a+"/"+b(e)+"}",f=c[d];if(typeof f!=="undefined"){g.detachEvent("on"+a,f);delete c[d]}d=null;f=null});return this}}();Gimme.ext.forEach=function(){return typeof Array.prototype.forEach!=="undefined"?b:a;function b(b,a){this.entities.forEach(b,a);return this}function a(e,d){var b=this.entities,a,c,f=b.length;for(a=0;a<f;a++){c=b[a];e.call(d,c,a,b)}return this}}();Gimme.ext.map=function(){return typeof Array.prototype.map!=="undefined"?b:a;function b(b,a){return this.entities.map(b,a)}function a(c,b){var a=[];this.forEach(function(d){a.push(c.call(b,d))});return a}}();Gimme.ext.contains=function(a){return i(this.entities,a)};Gimme.ext.indexOf=function(a){return k(this.entities,a)};var c={},f=function(){function c(a,b){a.style.opacity=b}function d(a,b){a.style.filter="alpha(opacity="+b*100+")"}var a,b=document.createElement("div");if(typeof b.style.opacity!=="undefined")a=c;else if(typeof b.style.filter!=="undefined")a=d;else a=function(){};b=null;return a}(),e=function(){function c(a){return parseFloat(a.style.opacity)||"opacity"}function d(c){var b=c.currentStyle.filter,a=b.match(/pacity\s*=\s*(\d{1,3}.?\d*)\)/);if(!a)return 1;else return parseFloat(a[1])/100}var a,b=document.createElement("div");if(typeof b.style.opacity!=="undefined")a=c;else if(typeof b.style.filter!=="undefined")a=d;else a=function(){};b=null;return a}()})();Gimme.Events=new function(){var c={},b=null,a=null;this.captureMouse=function(c){Gimme.Events.releaseMouse();b=c;if(typeof c.setCapture!=="undefined")c.setCapture();else{a=function(b){var d,e;if(Gimme.Browser.isGecko){d=document.createEvent("MouseEvents");d.initMouseEvent(b.type,b.bubbles,b.cancelable,window,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);e=Gimme.Screen.getScrollPosition();d.__defineGetter__("pageX",function(){return this.clientX+e.x});d.__defineGetter__("pageY",function(){return this.clientY+e.y})}else d=b;document.removeEventListener(b.type,a,true);d.captureTarget=b.target;c.dispatchEvent(d);if(a!==null)document.addEventListener(b.type,a,true);delete d.captureTarget;b.stopPropagation()};document.addEventListener("mouseover",a,true);document.addEventListener("mouseout",a,true);document.addEventListener("mousemove",a,true);document.addEventListener("mouseup",a,true);document.addEventListener("mousedown",a,true);document.addEventListener("click",a,true);document.addEventListener("dblclick",a,true)}return this};this.releaseMouse=function(){if(b!==null){if(typeof b.releaseCapture!=="undefined")b.releaseCapture();else{document.removeEventListener("mouseover",a,true);document.removeEventListener("mouseout",a,true);document.removeEventListener("mousemove",a,true);document.removeEventListener("mouseup",a,true);document.removeEventListener("mousedown",a,true);document.removeEventListener("click",a,true);document.removeEventListener("dblclick",a,true)}b=a=null}return this};this.getCaptureTarget=function(a){return a.captureTarget||a.srcElement||a.target};Gimme.ext.onmouseenter=function(e,b,c){var a=d(e);c?this.addEvent("mouseover",a,b,false):this.removeEvent("mouseover",a,b,false);a=null};Gimme.ext.onmouseleave=function(e,b,c){var a=d(e);c?this.addEvent("mouseout",a,b,false):this.removeEvent("mouseout",a,b,false);a=null};Gimme.ext.onmousewheel=function(d,c,e){var a="mousewheel",b=d;if(Gimme.Browser.isGecko){a="DOMMouseScroll";b=f(d)}e?this.addEvent(a,b,c,false):this.removeEvent(a,b,c,false)};function e(c,a,b){if(c===a)return false;var d=0;while(a&&a!=c){d++;a=a.parentNode}b=b||d;return a===c&&b===d}function d(b){var d=Gimme.Helper.getObjectGUID(b),a=c[d];if(typeof a==="undefined")a=c[d]=function(c){var a=c.relatedTarget;if(this===a||e(this,a))return;b.call(this,c)};return a}function f(b){var d=Gimme.Helper.getObjectGUID(b),a=c[d];if(typeof a==="undefined")a=c[d]=function(a){a.wheelDelta=-a.detail;b.call(this,a);a.wheelDelta=null};return a}};Gimme.AJAX=new function(){this.requestJSON=function(b,a){doAsyncRequest(b,a,true)};this.requestAHAH=function(b,a){doAsyncRequest(b,a,false)};function createXHR(){if(typeof XMLHttpRequest!=="undefined")return new XMLHttpRequest;else if(typeof ActiveXObject!=="undefined")try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){throw new Error("Error invoking XMLHTTP")}else throw new Error("XMLHttp is not supported")}function doAsyncRequest(_uri,_callback,_isJSON){var xhr=createXHR();xhr.onreadystatechange=function(){if(xhr.readyState===4){if(xhr.status===200){var data=xhr.responseText;if(_isJSON)data=eval("("+xhr.responseText+")");_callback.call(xhr,data)}xhr=null;callback=null}};xhr.open("GET",_uri,true);xhr.send("")}};Gimme.Util=new function(){this.setTimeout=function(){return a(arguments,false)};this.setInterval=function(){return a(arguments,true)};function a(a,c){var e=a[0],b=a[1];function d(){e.apply(this,Array.prototype.slice.call(a,2));if(!c)e=null}if(c===true)return window.setInterval(d,b);else return window.setTimeout(d,b)}};Gimme.Screen=new function(){this.getViewportSize=function(){var a={width:0,height:0};if(typeof window.innerWidth!=="undefined")a={width:window.innerWidth,height:window.innerHeight};else if(typeof document.documentElement!=="undefined"&&typeof document.documentElement.clientWidth!=="undefined"&&document.documentElement.clientWidth!==0)a={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight};else a={width:document.getElementsByTagName("body")[0].clientWidth,height:document.getElementsByTagName("body")[0].clientHeight};return a};this.getMousePosition=function(a){if(!a)a=window.event;var b={x:0,y:0};if(typeof a.pageX!=="undefined"&&typeof a.x!=="undefined"){b.x=a.pageX;b.y=a.pageY}else{var c=this.getScrollPosition();b.x=a.clientX+c.x;b.y=a.clientY+c.y}return b};this.getScrollPosition=function(){var a={x:0,y:0};if(typeof window.pageYOffset!=="undefined"){a.x=window.pageXOffset;a.y=window.pageYOffset}else if(!Gimme.Browser.isInQuirksMode&&typeof document.documentElement.scrollTop!=="undefined"){a.x=document.documentElement.scrollLeft;a.y=document.documentElement.scrollTop}else if(typeof document.body.scrollTop!=="undefined"){a.x=document.body.scrollLeft;a.y=document.body.scrollTop}return a}};Gimme.ext.getPosition=function(e,j){var a=this.entities[j||0],f,b,i,h,c=0,d=0;if(!Gimme.Browser.isOpera&&typeof a.getBoundingClientRect!=="undefined"){h=!Gimme.Browser.isInIFrame&&Gimme.Browser.isInFrameset?0:2;i=a.getBoundingClientRect();c=i.left-h;d=i.top-h;if(!e){b=Gimme.Screen.getScrollPosition();c+=b.x;d+=b.y}else e=false}else while(a!==null){f=typeof a.scrollTop!=="undefined"&&a!==document.body&&a!==document.documentElement&&a.tagName!=="TEXTAREA"&&a.tagName!=="INPUT"?1:0;c+=a.offsetLeft-f*a.scrollLeft;d+=a.offsetTop-f*a.scrollTop;a=a.offsetParent;if(a&&!Gimme.Browser.offsetIncludesBorders()){c+=parseInt(g(a).getStyle("borderLeftWidth"))||0;d+=parseInt(g(a).getStyle("borderTopWidth"))||0}}if(e){b=Gimme.Screen.getScrollPosition();c-=b.x;d-=b.y}return {x:c,y:d}};Gimme.ext.getScreenPosition=function(a){return this.getPosition(true,a)};Gimme.ext.getPagePosition=function(a){return this.getPosition(false,a)};Gimme.ext.getComputedPosition=function(b){var a=this.entities[b||0];return {x:parseInt(g(a).getStyle("left"),10),y:parseInt(g(a).getStyle("top"),10)}};Gimme.Animation=new function(){var a={},b=false;this.Speeds={snail:2000,turtle:1250,slowly:1250,rabbit:1000,greyhound:750,quickly:750,cheetah:500,lightning:250};this.Directions={vertically:1,horizontally:2,both:3};this.start=function(b,f,e){var c=setInterval(f,e),d=a[b];if(typeof d==="undefined")a[b]={iids:[c],callback:null};else d.iids.push(c)};this.end=function(){var c,e=arguments.length;for(c=0;c<e;c++){var d=arguments[c],b=a[d];if(typeof b!=="undefined"){g(b.iids).forEach(function(a){clearTimeout(a)});if(typeof b.callback==="function"){b.callback.call();b.callback=null}delete a[d]}}};this.isRunning=function(b){return typeof a[b]!=="undefined"};this.whenDone=function(c,b){var d=a[c];if(typeof d==="undefined")a[c]={iids:[],callback:b};else d.callback=b};this.startGroup=function(){b=true};this.endGroup=function(){b=false};this.isGrouping=function(){return b===true}};Gimme.Animation.BezierCurve=function(){this.points=[];this.args=arguments};Gimme.Animation.BezierCurve.prototype.initialize=function(){var d=this.args,h=d.length,g=d[h-1]||100,k=h-1,e,f,b,c,a;for(e=0;e<k;e++){a=d[e];c=i(a.length);b=a.length-1;for(f=0;f<=g;f++)this.points.push(j(f/g))}this.args=d=null;return g;function j(j){var d,h=0,i=0;for(d=0;d<=b;d++){var f=c[b]/(c[d]*c[b-d]),e=Math.pow(1-j,b-d),g=Math.pow(j,d);h+=f*a[d].x*e*g;i+=f*a[d].y*e*g}return {x:h,y:i}}function i(d){var a,c=1,b=[1];for(a=1;a<=d;a++){c*=a;b.push(c)}return b}};Gimme.Animation.BezierCurve.prototype.getPoint=function(c){var a=this.points.length;if(a===0)a=this.initialize();var b=Math.floor(c*a);if(b>a-1)b=a-1;return this.points[b]};Gimme.Animation.AccelerationLine=function(a,c){var d=a[a.length-1],b=g(a).map(function(a){return {x:a/d,y:0}});this.bezier=new Gimme.Animation.BezierCurve(b,c);this.points=this.bezier.points};Gimme.Animation.AccelerationLine.prototype.getValue=function(a){return this.bezier.getPoint(a).x};Gimme.Animation.AccelerationLines={zoom:new Gimme.Animation.AccelerationLine([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514,515,516,517,518,519,520],75),slowStartAccelerate:new Gimme.Animation.AccelerationLine([0,1,2,3,8,50],100),quickStartDecelerate:new Gimme.Animation.AccelerationLine([0,50,55,56,57,58],100),linear:new Gimme.Animation.AccelerationLine([0,10],100)};Gimme.Animation.AccelerationLines.defaultLine=Gimme.Animation.AccelerationLines.zoom;Gimme.ext.fadeIn=function(b,c,a){g(this.entities).fadeTo(null,.99999,b,c,a);a=null;return this};Gimme.ext.fadeOut=function(b,c,a){g(this.entities).fadeTo(null,0,b,c,a);a=null;return this};Gimme.ext.fadeTo=function(b,c,e,h,d,a){a=a||Gimme.Animation.AccelerationLines.linear;g(this.entities).animate(a,e,h,d,f,i);function i(d){d.style.zoom="1";var a=b===0?0:b||Number(g(d).getStyle("opacity")),e=c-a;return {startOpacity:a,deltaO:e}}function f(e,b,c,a){var f=c.getValue(b),d=a.startOpacity+f*a.deltaO;g(e).setStyle("opacity",d)}return this};Gimme.ext.veil=function(b,d,h,c,e){var a=Gimme.Animation.Directions;b=Math.floor(b)||a[b]||a.vertically;g(this.entities).animate(e,d,h,c,f,i);function i(d){var e=d.style.display||g(d).getStyle("display");if(e==="none")return false;var c=function(b){var a={};g(b).forEach(function(b){a[b]=parseInt(g(d).getStyle(b),10)});return a}(["height","width","paddingTop","paddingRight","paddingBottom","paddingLeft"]);d["_$gimme$_veil"]=c.height+";"+c.width+";"+c.paddingTop+";"+c.paddingRight+";"+c.paddingBottom+";"+c.paddingLeft;d.style.overflow="hidden";if((b&a.horizontally)===a.horizontally)d.style.height=c.height+"px";return c}function f(d,g,m,c){if(g>=1)d.style.display="none";var e=m.getValue(g),k,l,j,h,f,i;if((b&a.vertically)===a.vertically){k=c.height-e*c.height;j=c.paddingTop-e*c.paddingTop;f=c.paddingBottom-e*c.paddingBottom;d.style.height=k+"px";d.style.paddingTop=j+"px";d.style.paddingBottom=f+"px"}if((b&a.horizontally)===a.horizontally){l=c.width-e*c.width;h=c.paddingRight-e*c.paddingRight;i=c.paddingLeft-e*c.paddingLeft;d.style.width=l+"px";d.style.paddingRight=h+"px";d.style.paddingLeft=i+"px"}}return this};Gimme.ext.unveil=function(b,e,i,d,f){var a=Gimme.Animation.Directions;b=Math.floor(b)||a[b]||a.vertically;var c=true;g(this.entities).animate(f,e,i,d,h,j);function j(b){var l=b.style.display||g(b).getStyle("display");if(l!=="none"&&l!==null)return false;var m=Gimme.Helper.convertToPixels,d=b.cloneNode(true);d.setAttribute("style","position:absolute;top:0;left:0;visibility:hidden;margin:0;padding:0;border:0;height:;width:;");d.style.display="block";b.parentNode.appendChild(d);var j,k,i,f,e,h,a=b["_$gimme$_veil"];if(a){a=a.split(";");j=a[0];k=a[1];i=a[2];f=a[3];e=a[4];h=a[5]}else{var c=g(d);j=parseInt(m(b.style.height),10)||parseInt(c.getStyle("height"),10);k=parseInt(m(b.style.width),10)||parseInt(c.getStyle("width"),10);d.style.padding="";i=parseInt(c.getStyle("paddingTop"),10);e=parseInt(c.getStyle("paddingBottom"),10);f=parseInt(c.getStyle("paddingRight"),10);h=parseInt(c.getStyle("paddingLeft"),10)}b.parentNode.removeChild(d);b.style.overflow="hidden";return {deltaH:j,deltaW:k,paddingTop:i,paddingBottom:e,paddingLeft:h,paddingRight:f}}function h(h,j,p,d){var n,o,m,i,k,l,f=g(h),e=1-p.getValue(j);if(c){h.style.display="block";c=false}if(j>=1)h.style.overflow="";if(b===a.vertically)f.setStyles("width",d.deltaW+"px","paddingRight",d.paddingRight+"px","paddingLeft",d.paddingLeft+"px");else if(b===a.horizontally)f.setStyles("height",d.deltaH+"px","paddingTop",d.paddingTop+"px","paddingBottom",d.paddingBottom+"px");if((b&a.vertically)===a.vertically){n=d.deltaH-e*d.deltaH;m=d.paddingTop-e*d.paddingTop;i=d.paddingBottom-e*d.paddingBottom;f.setStyles("height",n+"px","paddingTop",m+"px","paddingBottom",i+"px")}if((b&a.horizontally)===a.horizontally){o=d.deltaW-e*d.deltaW;k=d.paddingRight-e*d.paddingRight;l=d.paddingLeft-e*d.paddingLeft;f.setStyles("width",o+"px","paddingRight",k+"px","paddingLeft",l+"px")}}return this};Gimme.ext.scrollTo=function(b,e,a,c){g(this.entities[0]).animate(c,b,e,a,d,f);function f(c){var a=Gimme.Screen.getScrollPosition(),b=g(c).getPagePosition().y-a.y;return {scrollPos:a,deltaY:b}}function d(f,b,c,a){var d=c.getValue(b),e=a.scrollPos.y+d*a.deltaY;window.scrollTo(0,Math.floor(e))}return this};Gimme.ext.slideToPoint=function(a,c,f,b,d){g(this.entities).animate(d,c,f,b,e,h);function h(e){var b=g(e).getComputedPosition();if(a.x===null)a.x=b.x;if(a.y===null)a.y=b.y;var d=a.y-b.y,c=a.x-b.x;return {startPt:b,deltaX:c,deltaY:d}}function e(c,e,f,a){var b=a.startPt,g=a.deltaX,h=a.deltaY,d=f.getValue(e),i=b.x+d*g,j=b.y+d*h;c.style.top=Math.floor(Math.round(j))+"px";c.style.left=Math.floor(Math.round(i))+"px"}return this};Gimme.ext.followPath=function(f,a,d,e,c){a=a||1;g(this.entities).animate(f,d,e,c,b,h);function h(b){var a=g(b).getComputedPosition();return {startPt:a}}function b(c,e,g,f){var b=f.startPt,d=g.getPoint(e),h=b.x+d.x*a,i=b.y+d.y*a;c.style.top=Math.floor(Math.round(i))+"px";c.style.left=Math.floor(Math.round(h))+"px"}return this};Gimme.ext.animate=function(d,b,a,h,c,e){var f=this.entities.length;if(f<1)return;d=d||Gimme.Animation.AccelerationLines.defaultLine;b=Math.floor(b)||Gimme.Animation.Speeds[b]||Gimme.Animation.Speeds.quickly;a=a||"AUTOGUID_"+Math.random((new Date).getTime());if(!Gimme.Animation.isGrouping()&&Gimme.Animation.isRunning(a))return;Gimme.Animation.whenDone(a,h);var g=0,j=(new Date).getTime();this.forEach(function(c,b){Gimme.Animation.start(a,i(c,b),1)});function i(i){var h=e(i),l=function(){var l=(new Date).getTime(),k=(l-j)/b;if(k>=1){if(typeof c==="function")c(i,1,d,h);if(++g===f){Gimme.Animation.end(a);e=null;c=null}}else c(i,k,d,h)},k=function(){Gimme.Animation.end(a)};return h?l:k}};Gimme.ver="Gimme v2.0.0.5 (Caspian) :: 2/24/2009, 10:56:25"
