function removeFilter(a){a.style.removeAttribute&&a.style.removeAttribute("filter")}(function(a){a.ui=a.ui||{};var b=/left|center|right/,c=/top|center|bottom/,d=a.fn.position,e=a.fn.offset;a.fn.position=function(e){if(!e||!e.of)return d.apply(this,arguments);e=a.extend({},e);var f=a(e.of),g=(e.collision||"flip").split(" "),h=e.offset?e.offset.split(" "):[0,0],i,j,k;e.of.nodeType===9?(i=f.width(),j=f.height(),k={top:0,left:0}):e.of.scrollTo&&e.of.document?(i=f.width(),j=f.height(),k={top:f.scrollTop(),left:f.scrollLeft()}):e.of.preventDefault?(e.at="left top",i=j=0,k={top:e.of.pageY,left:e.of.pageX}):(i=f.outerWidth(),j=f.outerHeight(),k=f.offset()),a.each(["my","at"],function(){var a=(e[this]||"").split(" ");a.length===1&&(a=b.test(a[0])?a.concat(["center"]):c.test(a[0])?["center"].concat(a):["center","center"]),a[0]=b.test(a[0])?a[0]:"center",a[1]=c.test(a[1])?a[1]:"center",e[this]=a}),g.length===1&&(g[1]=g[0]),h[0]=parseInt(h[0],10)||0,h.length===1&&(h[1]=h[0]),h[1]=parseInt(h[1],10)||0,e.at[0]==="right"?k.left+=i:e.at[0]==="center"&&(k.left+=i/2),e.at[1]==="bottom"?k.top+=j:e.at[1]==="center"&&(k.top+=j/2),k.left+=h[0],k.top+=h[1];return this.each(function(){var b=a(this),c=b.outerWidth(),d=b.outerHeight(),f=a.extend({},k);e.my[0]==="right"?f.left-=c:e.my[0]==="center"&&(f.left-=c/2),e.my[1]==="bottom"?f.top-=d:e.my[1]==="center"&&(f.top-=d/2),f.left=parseInt(f.left),f.top=parseInt(f.top),a.each(["left","top"],function(b,k){a.ui.position[g[b]]&&a.ui.position[g[b]][k](f,{targetWidth:i,targetHeight:j,elemWidth:c,elemHeight:d,offset:h,my:e.my,at:e.at})}),a.fn.bgiframe&&b.bgiframe(),b.offset(a.extend(f,{using:e.using}))})},a.ui.position={fit:{left:function(b,c){var d=a(window);c=b.left+c.elemWidth-d.width()-d.scrollLeft(),b.left=c>0?b.left-c:Math.max(0,b.left)},top:function(b,c){var d=a(window);c=b.top+c.elemHeight-d.height()-d.scrollTop(),b.top=c>0?b.top-c:Math.max(0,b.top)}},flip:{left:function(b,c){if(c.at[0]!=="center"){var d=a(window);d=b.left+c.elemWidth-d.width()-d.scrollLeft();var e=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,f=-2*c.offset[0];b.left+=b.left<0?e+c.targetWidth+f:d>0?e-c.targetWidth+f:0}},top:function(b,c){if(c.at[1]!=="center"){var d=a(window);d=b.top+c.elemHeight-d.height()-d.scrollTop();var e=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,f=c.at[1]==="top"?c.targetHeight:-c.targetHeight,g=-2*c.offset[1];b.top+=b.top<0?e+c.targetHeight+g:d>0?e+f+g:0}}}},a.offset.setOffset||(a.offset.setOffset=function(b,c){/static/.test(a.curCSS(b,"position"))&&(b.style.position="relative");var d=a(b),e=d.offset(),f=parseInt(a.curCSS(b,"top",!0),10)||0,g=parseInt(a.curCSS(b,"left",!0),10)||0;e={top:c.top-e.top+f,left:c.left-e.left+g},"using"in c?c.using.call(b,e):d.css(e)},a.fn.offset=function(b){var c=this[0];if(!c||!c.ownerDocument)return null;if(b)return this.each(function(){a.offset.setOffset(this,b)});return e.call(this)})})(jQuery),function(a){a.fn.innerfade=function(b){return this.each(function(){a.innerfade(this,b)})},a.innerfade=function(b,c){var d={animationtype:"fade",speed:"normal",type:"sequence",timeout:2e3,containerheight:"auto",runningclass:"innerfade",children:null};c&&a.extend(d,c);if(d.children===null)var e=a(b).children();else var e=a(b).children(d.children);if(e.length>1){a(b).css("position","relative").css("height",d.containerheight).addClass(d.runningclass);for(var f=0;f<e.length;f++)a(e[f]).css("z-index",String(e.length-f)).css("position","absolute").hide();if(d.type=="sequence")setTimeout(function(){a.innerfade.next(e,d,1,0)},d.timeout),a(e[0]).show();else if(d.type=="random"){var g=Math.floor(Math.random()*e.length);setTimeout(function(){do h=Math.floor(Math.random()*e.length);while(g==h);a.innerfade.next(e,d,h,g)},d.timeout),a(e[g]).show()}else if(d.type=="random_start"){d.type="sequence";var h=Math.floor(Math.random()*e.length);setTimeout(function(){a.innerfade.next(e,d,(h+1)%e.length,h)},d.timeout),a(e[h]).show()}else alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'")}},a.innerfade.next=function(b,c,d,e){c.animationtype=="slide"?(a(b[e]).slideUp(c.speed),a(b[d]).slideDown(c.speed)):c.animationtype=="fade"?(a(b[e]).fadeOut(c.speed),a(b[d]).fadeIn(c.speed,function(){removeFilter(a(this)[0])})):alert("Innerfade-animationtype must either be 'slide' or 'fade'");if(c.type=="sequence")d+1<b.length?(d=d+1,e=d-1):(d=0,e=b.length-1);else if(c.type=="random"){e=d;while(d==e)d=Math.floor(Math.random()*b.length)}else alert("Innerfade-Type must either be 'sequence', 'random' or 'random_start'");setTimeout(function(){a.innerfade.next(b,c,d,e)},c.timeout)}}(jQuery);var k=!0,p=!1;(function(A){function ga(){var a,b;a=n.getElementsByTagName("BASE");for(var c=a.length>0?a[0].href:n.location.href,d=0;d<n.styleSheets.length;d++){b=n.styleSheets[d];if(b.href!=o)if(a=D(b.href,c))b.cssText=N(K(a))}z.length>0&&setInterval(function(){for(var a=0,b=z.length;a<b;a++){var c=z[a];c.disabled!==c.a&&(c.disabled?(c.disabled=p,c.disabled=c.a=k):c.a=c.disabled)}},250)}function K(a){if(a){v.open("GET",a,p),v.send();return(v.status==200?v.responseText:o).replace(da,o).replace(ea,function(b,c,d,e,f){return K(D(d||f,a))}).replace(fa,function(b,c,d){c=c||"";return" url("+c+D(d,a)+c+") "})}return o}function D(a,b){if(/^https?:\/\//i.test(a))return b.substring(0,b.indexOf("/",8))==a.substring(0,a.indexOf("/",8))?a:null;if(a.charAt(0)=="/")return b.substring(0,b.indexOf("/",8))+a;var c=b.split("?")[0];a.charAt(0)!="?"&&c.charAt(c.length-1)!="/"&&(c=c.substring(0,c.lastIndexOf("/")+1));return c+a}function t(a,b,c){a.attachEvent("on"+b,c)}function E(a,b,c){var d=RegExp("(^|\\s)"+b+"(\\s|$)"),e=d.test(a);return c?e?a:a+w+b:e?a.replace(d,q).replace(J,q):a}function u(a,b,c){var d=a.className;b=E(d,b,c),b!=d&&(a.className=b,a.parentNode.className+=o)}function Q(a){return a.replace(J,q).replace(ca,w)}function G(a){return I+"-"+(s==6&&$?aa++:a.replace(ba,function(a){return a.charCodeAt(0)}))}function W(a){var b=k,c=G(a.slice(1)),d=a.substring(0,5)==":not(",e,f;d&&(a=a.slice(5,-1));var g=a.indexOf("(");g>-1&&(a=a.substring(0,g));if(a.charAt(0)==":")switch(a.slice(1)){case"root":b=function(a){return d?a!=H:a==H};break;case"target":if(s==8){b=function(a){function b(){var b=location.hash,c=b.slice(1);return d?b==""||a.id!=c:b!=""&&a.id==c}t(A,"hashchange",function(){u(a,c,b())});return b()};break}return p;case"checked":b=function(a){X.test(a.type)&&t(a,"propertychange",function(){event.propertyName=="checked"&&u(a,c,a.checked!==d)});return a.checked!==d};break;case"disabled":d=!d;case"enabled":b=function(b){if(Y.test(b.tagName)){t(b,"propertychange",function(){event.propertyName=="$disabled"&&u(b,c,b.a===d)}),z.push(b),b.a=b.disabled;return b.disabled===d}return a==":enabled"?d:!d};break;case"focus":e="focus",f="blur";case"hover":e||(e="mouseenter",f="mouseleave"),b=function(a){t(a,d?f:e,function(){u(a,c,k)}),t(a,d?e:f,function(){u(a,c,p)});return d};break;default:if(!Z.test(a))return p}return{className:c,b:b}}function N(a){return a.replace(O,q).replace(P,function(a,b,c){a=c.split(","),c=0;for(var d=a.length;c<d;c++){var e=Q(a[c].replace(R,q).replace(S,q))+w,f=[];a[c]=e.replace(T,function(a,b,c,d,g){if(b){if(f.length>0){a=f;var i;g=e.substring(0,g).replace(U,o);if(g==o||g.charAt(g.length-1)==w)g+="*";try{i=y(g)}catch(j){}if(i)for(g=0,c=i.length;g<c;g++){d=i[g];for(var l=d.className,m=0,n=a.length;m<n;m++){var p=a[m];RegExp("(^|\\s)"+p.className+"(\\s|$)").test(d.className)||p.b&&(p.b===k||p.b(d)===k)&&(l=E(l,p.className,k))}d.className=l}f=[]}return b}if(b=c?W(c):!F||F.test(d)?{className:G(d),b:k}:null){f.push(b);return"."+b.className}return a})}return b+a.join(",")})}if(!!0){var n=document,H=n.documentElement,v=function(){if(A.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){return null}}(),s=/MSIE ([\d])/.exec(navigator.userAgent)[1];if(n.compatMode=="CSS1Compat"&&s>=6&&s<=8&&v){var L={NW:"*.Dom.select",DOMAssistant:"*.$",Prototype:"$$",YAHOO:"*.util.Selector.query",MooTools:"$$",Sizzle:"*",jQuery:"*",dojo:"*.query"},y,z=[],aa=0,$=k,I="slvzr",M=I+"DOMReady",da=/(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*/g,ea=/@import\s*(?:(?:(?:url\(\s*(['"]?)(.*)\1)\s*\))|(?:(['"])(.*)\3))[^;]*;/g,fa=/\burl\(\s*(["']?)([^"')]+)\1\s*\)/g,Z=/^:(empty|(first|last|only|nth(-last)?)-(child|of-type))$/,O=/:(:first-(?:line|letter))/g,P=/(^|})\s*([^\{]*?[\[:][^{]+)/g,T=/([ +~>])|(:[a-z-]+(?:\(.*?\)+)?)|(\[.*?\])/g,U=/(:not\()?:(hover|enabled|disabled|focus|checked|target|active|visited|first-line|first-letter)\)?/g,ba=/[^\w-]/g,Y=/^(INPUT|SELECT|TEXTAREA|BUTTON)$/,X=/^(checkbox|radio)$/,F=s>6?/[\$\^*]=(['"])\1/:null,R=/([(\[+~])\s+/g,S=/\s+([)\]+~])/g,ca=/\s+/g,J=/^\s*((?:[\S\s]*\S)?)\s*$/,o="",w=" ",q="$1";n.write("<script id="+M+" defer src='//:'></script>"),n.getElementById(M).onreadystatechange=function(){if(this.readyState=="complete"){a:{var a,b;for(b in L)if(A[b]&&(a=eval(L[b].replace("*",b)))){y=a;break a}y=p}y&&(ga(),this.parentNode.removeChild(this))}}}}})(this);var mediaquery=function(a,b){var c={},d=a.documentElement,e=a.createElement("body"),f=a.createElement("div");f.setAttribute("id","ejs-qtest"),e.appendChild(f);return function(g){if(c[g]===b){var h=a.createElement("style");h.type="text/css";var i="@media "+g+" { #ejs-qtest { position: absolute; width: 10px; } }";h.styleSheet?h.styleSheet.cssText=i:h.appendChild(a.createTextNode(i)),d.insertBefore(e,d.firstChild),d.insertBefore(h,d.firstChild),c[g]=f.offsetWidth==10,d.removeChild(e),d.removeChild(h)}return c[g]}}(document)

