if(!document.myGetElementsByClassName)document.myGetElementsByClassName=function(o){for(var t=document.getElementsByTagName("*")||document.all,p=[],x=0;x<t.length;x++)for(var F=t[x],s=F.className.split(" "),e=0;e<s.length;e++)if(s[e]==o){p.push(F);break}return p}; var Reflection={defaultHeight:0.5,defaultOpacity:0.5,add:function(o,t){Reflection.remove(o);doptions={height:Reflection.defaultHeight,opacity:Reflection.defaultOpacity};if(t)for(var p in doptions)t[p]||(t[p]=doptions[p]);else t=doptions;try{var x=document.createElement("div");p=o;var F=p.className.split(" "),s="";for(j=0;j<F.length;j++)if(F[j]!="reflect"){if(s)s+=" ";s+=F[j]}var e=Math.floor(p.height*t.height),w=Math.floor(p.height*(1+t.height)),y=p.width;if(document.all&&!window.opera){if(p.parentElement.tagName== "A"){x=document.createElement("a");x.href=p.parentElement.href}x.className=s;p.className="reflected";x.style.cssText=p.style.cssText;p.style.cssText="vertical-align: bottom";var v=document.createElement("img");v.src=p.src;v.style.width=y+"px";v.style.display="block";v.style.height=p.height+"px";v.style.marginBottom="-"+(p.height-e)+"px";v.style.filter="flipv progid:DXImageTransform.Microsoft.Alpha(opacity="+t.opacity*100+", style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy="+t.height* 100+")";x.style.width=y+"px";x.style.height=w+"px";p.parentNode.replaceChild(x,p);x.appendChild(p);x.appendChild(v)}else{var u=document.createElement("canvas");if(u.getContext){x.className=s;p.className="reflected";x.style.cssText=p.style.cssText;p.style.cssText="vertical-align: bottom";var C=u.getContext("2d");u.style.height=e+"px";u.style.width=y+"px";u.height=e;u.width=y;x.style.width=y+"px";x.style.height=w+"px";p.parentNode.replaceChild(x,p);x.appendChild(p);x.appendChild(u);C.save();C.translate(0, o.height-1);C.scale(1,-1);C.drawImage(o,0,0,y,o.height);C.restore();C.globalCompositeOperation="destination-out";var E=C.createLinearGradient(0,0,0,e);E.addColorStop(1,"rgba(255, 255, 255, 1.0)");E.addColorStop(0,"rgba(255, 255, 255, "+(1-t.opacity)+")");C.fillStyle=E;C.rect(0,0,y,e*2);C.fill()}}}catch(I){}},remove:function(o){if(o.className=="reflected"){o.className=o.parentNode.className;o.parentNode.parentNode.replaceChild(o,o.parentNode)}}}; function addReflections(){var o=document.myGetElementsByClassName("reflect");for(i=0;i<o.length;i++){var t=null,p=null,x=o[i].className.split(" ");for(j=0;j<x.length;j++)if(x[j].indexOf("rheight")==0)t=x[j].substring(7)/100;else if(x[j].indexOf("ropacity")==0)p=x[j].substring(8)/100;Reflection.add(o[i],{height:t,opacity:p})}}var previousOnload=window.onload;window.onload=function(){previousOnload&&previousOnload();addReflections()}; Scroller={speed:10,gy:function(o){gy=o.offsetTop;if(o.offsetParent)for(;o=o.offsetParent;)gy+=o.offsetTop;return gy},scrollTop:function(){body=document.body;d=document.documentElement;if(body&&body.scrollTop)return body.scrollTop;if(d&&d.scrollTop)return d.scrollTop;if(window.pageYOffset)return window.pageYOffset;return 0},add:function(o,t,p){if(o.addEventListener)return o.addEventListener(t,p,false);if(o.attachEvent)return o.attachEvent("on"+t,p)},end:function(o){if(window.event){window.event.cancelBubble= true;window.event.returnValue=false}else if(o.preventDefault&&o.stopPropagation){o.preventDefault();o.stopPropagation()}},scroll:function(o){i=window.innerHeight||document.documentElement.clientHeight;h=document.body.scrollHeight;a=Scroller.scrollTop();a+=o>a?h-o>i?Math.ceil((o-a)/Scroller.speed):Math.ceil((o-a-(h-o))/Scroller.speed):(o-a)/Scroller.speed;window.scrollTo(0,a);if(a==o||Scroller.offsetTop==a)clearInterval(Scroller.interval);Scroller.offsetTop=a},init:function(){Scroller.add(window,"load", Scroller.render)},render:function(){a=document.getElementsByTagName("a");Scroller.end(this);for(i=0;i<a.length;i++){l=a[i];if(l.href&&l.href.indexOf("#")!=-1&&(l.pathname==location.pathname||"/"+l.pathname==location.pathname)){Scroller.add(l,"click",Scroller.end);l.onclick=function(){Scroller.end(this);l=this.hash.substr(1);a=document.getElementsByTagName("a");for(i=0;i<a.length;i++)if(a[i].name==l){clearInterval(Scroller.interval);Scroller.interval=setInterval("Scroller.scroll("+Scroller.gy(a[i])+ ")",10)}}}}}};Scroller.init(); (function(){function o(b,c){c.src?e.ajax({url:c.src,async:false,dataType:"script"}):e.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function t(){return+new Date}function p(b,c){return b[0]&&parseInt(e.curCSS(b[0],c,true),10)||0}function x(){if(!S){S=true;document.addEventListener&&!e.browser.opera&&document.addEventListener("DOMContentLoaded",e.ready,false);e.browser.msie&&window==top&&function(){if(!e.isReady){try{document.documentElement.doScroll("left")}catch(c){setTimeout(arguments.callee,0); return}e.ready()}}();e.browser.opera&&document.addEventListener("DOMContentLoaded",function(){if(!e.isReady){for(var c=0;c<document.styleSheets.length;c++)if(document.styleSheets[c].disabled){setTimeout(arguments.callee,0);return}e.ready()}},false);if(e.browser.safari){var b;(function(){if(!e.isReady)if(document.readyState!="loaded"&&document.readyState!="complete")setTimeout(arguments.callee,0);else{if(b===v)b=e("style, link[rel=stylesheet]").length;document.styleSheets.length!=b?setTimeout(arguments.callee, 0):e.ready()}})()}e.event.add(window,"load",e.ready)}}var F=window.jQuery,s=window.$,e=window.jQuery=window.$=function(b,c){return new e.fn.init(b,c)},w=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,y=/^.[^:#\[\.]*$/,v;e.fn=e.prototype={init:function(b,c){b=b||document;if(b.nodeType){this[0]=b;this.length=1;return this}if(typeof b=="string"){var f=w.exec(b);if(f&&(f[1]||!c))if(f[1])b=e.clean([f[1]],c);else{if(c=document.getElementById(f[3])){if(c.id!=f[3])return e().find(b);return e(c)}b=[]}else return e(c).find(b)}else if(e.isFunction(b))return e(document)[e.fn.ready? "ready":"load"](b);return this.setArray(e.makeArray(b))},jquery:"1.2.6",size:function(){return this.length},length:0,get:function(b){return b==v?e.makeArray(this):this[b]},pushStack:function(b){b=e(b);b.prevObject=this;return b},setArray:function(b){this.length=0;Array.prototype.push.apply(this,b);return this},each:function(b,c){return e.each(this,b,c)},index:function(b){return e.inArray(b&&b.jquery?b[0]:b,this)},attr:function(b,c,f){var g=b;if(b.constructor==String)if(c===v)return this[0]&&e[f|| "attr"](this[0],b);else{g={};g[b]=c}return this.each(function(m){for(b in g)e.attr(f?this.style:this,b,e.prop(this,g[b],f,m,b))})},css:function(b,c){if((b=="width"||b=="height")&&parseFloat(c)<0)c=v;return this.attr(b,c,"curCSS")},text:function(b){if(typeof b!="object"&&b!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(b));var c="";e.each(b||this,function(){e.each(this.childNodes,function(){if(this.nodeType!=8)c+=this.nodeType!=1?this.nodeValue:e.fn.text([this])})}); return c},wrapAll:function(b){this[0]&&e(b,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){for(var c=this;c.firstChild;)c=c.firstChild;return c}).append(this);return this},wrapInner:function(b){return this.each(function(){e(this).contents().wrapAll(b)})},wrap:function(b){return this.each(function(){e(this).wrapAll(b)})},append:function(){return this.domManip(arguments,true,false,function(b){this.nodeType==1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments, true,true,function(b){this.nodeType==1&&this.insertBefore(b,this.firstChild)})},before:function(){return this.domManip(arguments,false,false,function(b){this.parentNode.insertBefore(b,this)})},after:function(){return this.domManip(arguments,false,true,function(b){this.parentNode.insertBefore(b,this.nextSibling)})},end:function(){return this.prevObject||e([])},find:function(b){var c=e.map(this,function(f){return e.find(b,f)});return this.pushStack(/[^+>] [^+>]/.test(b)||b.indexOf("..")>-1?e.unique(c): c)},clone:function(b){var c=this.map(function(){if(e.browser.msie&&!e.isXMLDoc(this)){var g=this.cloneNode(true),m=document.createElement("div");m.appendChild(g);return e.clean([m.innerHTML])[0]}else return this.cloneNode(true)}),f=c.find("*").andSelf().each(function(){if(this[u]!=v)this[u]=null});b===true&&this.find("*").andSelf().each(function(g){if(this.nodeType!=3){var m=e.data(this,"events");for(var k in m)for(var n in m[k])e.event.add(f[g],k,m[k][n],m[k][n].data)}});return c},filter:function(b){return this.pushStack(e.isFunction(b)&& e.grep(this,function(c,f){return b.call(c,f)})||e.multiFilter(b,this))},not:function(b){if(b.constructor==String)if(y.test(b))return this.pushStack(e.multiFilter(b,this,true));else b=e.multiFilter(b,this);var c=b.length&&b[b.length-1]!==v&&!b.nodeType;return this.filter(function(){return c?e.inArray(this,b)<0:this!=b})},add:function(b){return this.pushStack(e.unique(e.merge(this.get(),typeof b=="string"?e(b):e.makeArray(b))))},is:function(b){return!!b&&e.multiFilter(b,this).length>0},hasClass:function(b){return this.is("."+ b)},val:function(b){if(b==v){if(this.length){var c=this[0];if(e.nodeName(c,"select")){var f=c.selectedIndex,g=[],m=c.options;c=c.type=="select-one";if(f<0)return null;var k=c?f:0;for(f=c?f+1:m.length;k<f;k++){var n=m[k];if(n.selected){b=e.browser.msie&&!n.attributes.value.specified?n.text:n.value;if(c)return b;g.push(b)}}return g}else return(this[0].value||"").replace(/\r/g,"")}}else{if(b.constructor==Number)b+="";return this.each(function(){if(this.nodeType==1)if(b.constructor==Array&&/radio|checkbox/.test(this.type))this.checked= e.inArray(this.value,b)>=0||e.inArray(this.name,b)>=0;else if(e.nodeName(this,"select")){var q=e.makeArray(b);e("option",this).each(function(){this.selected=e.inArray(this.value,q)>=0||e.inArray(this.text,q)>=0});if(!q.length)this.selectedIndex=-1}else this.value=b})}},html:function(b){return b==v?this[0]?this[0].innerHTML:null:this.empty().append(b)},replaceWith:function(b){return this.after(b).remove()},eq:function(b){return this.slice(b,b+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this, arguments))},map:function(b){return this.pushStack(e.map(this,function(c,f){return b.call(c,f,c)}))},andSelf:function(){return this.add(this.prevObject)},data:function(b,c){var f=b.split(".");f[1]=f[1]?"."+f[1]:"";if(c===v){var g=this.triggerHandler("getData"+f[1]+"!",[f[0]]);if(g===v&&this.length)g=e.data(this[0],b);return g===v&&f[1]?this.data(f[0]):g}else return this.trigger("setData"+f[1]+"!",[f[0],c]).each(function(){e.data(this,b,c)})},removeData:function(b){return this.each(function(){e.removeData(this, b)})},domManip:function(b,c,f,g){var m=this.length>1,k;return this.each(function(){if(!k){k=e.clean(b,this.ownerDocument);f&&k.reverse()}var n=this;if(c&&e.nodeName(this,"table")&&e.nodeName(k[0],"tr"))n=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var q=e([]);e.each(k,function(){var r=m?e(this).clone(true)[0]:this;if(e.nodeName(r,"script"))q=q.add(r);else{if(r.nodeType==1)q=q.add(e("script",r).remove());g.call(n,r)}});q.each(o)})}};e.fn.init.prototype= e.fn;e.extend=e.fn.extend=function(){var b=arguments[0]||{},c=1,f=arguments.length,g=false,m;if(b.constructor==Boolean){g=b;b=arguments[1]||{};c=2}if(typeof b!="object"&&typeof b!="function")b={};if(f==c){b=this;--c}for(;c<f;c++)if((m=arguments[c])!=null)for(var k in m){var n=b[k],q=m[k];if(b!==q)if(g&&q&&typeof q=="object"&&!q.nodeType)b[k]=e.extend(g,n||(q.length!=null?[]:{}),q);else if(q!==v)b[k]=q}return b};var u="jQuery"+t(),C=0,E={},I=/z-?index|font-?weight|opacity|zoom|line-?height/i,G=document.defaultView|| {};e.extend({noConflict:function(b){window.$=s;if(b)window.jQuery=F;return e},isFunction:function(b){return!!b&&typeof b!="string"&&!b.nodeName&&b.constructor!=Array&&/^[\s[]?function/.test(b+"")},isXMLDoc:function(b){return b.documentElement&&!b.body||b.tagName&&b.ownerDocument&&!b.ownerDocument.body},globalEval:function(b){if(b=e.trim(b)){var c=document.getElementsByTagName("head")[0]||document.documentElement,f=document.createElement("script");f.type="text/javascript";if(e.browser.msie)f.text= b;else f.appendChild(document.createTextNode(b));c.insertBefore(f,c.firstChild);c.removeChild(f)}},nodeName:function(b,c){return b.nodeName&&b.nodeName.toUpperCase()==c.toUpperCase()},cache:{},data:function(b,c,f){b=b==window?E:b;var g=b[u];g||(g=b[u]=++C);if(c&&!e.cache[g])e.cache[g]={};if(f!==v)e.cache[g][c]=f;return c?e.cache[g][c]:g},removeData:function(b,c){b=b==window?E:b;var f=b[u];if(c){if(e.cache[f]){delete e.cache[f][c];c="";for(c in e.cache[f])break;c||e.removeData(b)}}else{try{delete b[u]}catch(g){b.removeAttribute&& b.removeAttribute(u)}delete e.cache[f]}},each:function(b,c,f){var g,m=0,k=b.length;if(f)if(k==v)for(g in b){if(c.apply(b[g],f)===false)break}else for(;m<k;){if(c.apply(b[m++],f)===false)break}else if(k==v)for(g in b){if(c.call(b[g],g,b[g])===false)break}else for(f=b[0];m<k&&c.call(f,m,f)!==false;f=b[++m]);return b},prop:function(b,c,f,g,m){if(e.isFunction(c))c=c.call(b,g);return c&&c.constructor==Number&&f=="curCSS"&&!I.test(m)?c+"px":c},className:{add:function(b,c){e.each((c||"").split(/\s+/),function(f, g){if(b.nodeType==1&&!e.className.has(b.className,g))b.className+=(b.className?" ":"")+g})},remove:function(b,c){if(b.nodeType==1)b.className=c!=v?e.grep(b.className.split(/\s+/),function(f){return!e.className.has(c,f)}).join(" "):""},has:function(b,c){return e.inArray(c,(b.className||b).toString().split(/\s+/))>-1}},swap:function(b,c,f){var g={};for(var m in c){g[m]=b.style[m];b.style[m]=c[m]}f.call(b);for(m in c)b.style[m]=g[m]},css:function(b,c,f){if(c=="width"||c=="height"){var g;f={position:"absolute", visibility:"hidden",display:"block"};var m=c=="width"?["Left","Right"]:["Top","Bottom"];function k(){g=c=="width"?b.offsetWidth:b.offsetHeight;var n=0,q=0;e.each(m,function(){n+=parseFloat(e.curCSS(b,"padding"+this,true))||0;q+=parseFloat(e.curCSS(b,"border"+this+"Width",true))||0});g-=Math.round(n+q)}e(b).is(":visible")?k():e.swap(b,f,k);return Math.max(0,g)}return e.curCSS(b,c,f)},curCSS:function(b,c,f){function g(q){if(!e.browser.safari)return false;q=G.getComputedStyle(q,null);return!q||q.getPropertyValue("color")== ""}var m,k=b.style;if(c=="opacity"&&e.browser.msie){m=e.attr(k,"opacity");return m==""?"1":m}if(e.browser.opera&&c=="display"){var n=k.outline;k.outline="0 solid black";k.outline=n}if(c.match(/float/i))c=L;if(!f&&k&&k[c])m=k[c];else if(G.getComputedStyle){if(c.match(/float/i))c="float";c=c.replace(/([A-Z])/g,"-$1").toLowerCase();if((m=G.getComputedStyle(b,null))&&!g(b))m=m.getPropertyValue(c);else{k=[];f=[];n=b;for(b=0;n&&g(n);n=n.parentNode)f.unshift(n);for(;b<f.length;b++)if(g(f[b])){k[b]=f[b].style.display; f[b].style.display="block"}m=c=="display"&&k[f.length-1]!=null?"none":m&&m.getPropertyValue(c)||"";for(b=0;b<k.length;b++)if(k[b]!=null)f[b].style.display=k[b]}if(c=="opacity"&&m=="")m="1"}else if(b.currentStyle){m=c.replace(/\-(\w)/g,function(q,r){return r.toUpperCase()});m=b.currentStyle[c]||b.currentStyle[m];if(!/^\d+(px)?$/i.test(m)&&/^\d/.test(m)){c=k.left;f=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;k.left=m||0;m=k.pixelLeft+"px";k.left=c;b.runtimeStyle.left=f}}return m},clean:function(b, c){var f=[];c=c||document;if(typeof c.createElement=="undefined")c=c.ownerDocument||c[0]&&c[0].ownerDocument||document;e.each(b,function(g,m){if(m){if(m.constructor==Number)m+="";if(typeof m=="string"){m=m.replace(/(<(\w+)[^>]*?)\/>/g,function(q,r,A){return A.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?q:r+"></"+A+">"});var k=e.trim(m).toLowerCase();g=c.createElement("div");var n=!k.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!k.indexOf("<leg")&&[1,"<fieldset>", "</fieldset>"]||k.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!k.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!k.indexOf("<td")||!k.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!k.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||e.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];for(g.innerHTML=n[1]+m+n[2];n[0]--;)g=g.lastChild;if(e.browser.msie){k=!k.indexOf("<table")&&k.indexOf("<tbody")<0?g.firstChild&&g.firstChild.childNodes: n[1]=="<table>"&&k.indexOf("<tbody")<0?g.childNodes:[];for(n=k.length-1;n>=0;--n)e.nodeName(k[n],"tbody")&&!k[n].childNodes.length&&k[n].parentNode.removeChild(k[n]);/^\s/.test(m)&&g.insertBefore(c.createTextNode(m.match(/^\s*/)[0]),g.firstChild)}m=e.makeArray(g.childNodes)}if(!(m.length===0&&!e.nodeName(m,"form")&&!e.nodeName(m,"select")))if(m[0]==v||e.nodeName(m,"form")||m.options)f.push(m);else f=e.merge(f,m)}});return f},attr:function(b,c,f){if(!(!b||b.nodeType==3||b.nodeType==8)){var g=!e.isXMLDoc(b), m=f!==v,k=e.browser.msie;c=g&&e.props[c]||c;if(b.tagName){var n=/href|src|style/.test(c);if(c in b&&g&&!n){if(m){if(c=="type"&&e.nodeName(b,"input")&&b.parentNode)throw"type property can't be changed";b[c]=f}if(e.nodeName(b,"form")&&b.getAttributeNode(c))return b.getAttributeNode(c).nodeValue;return b[c]}if(k&&g&&c=="style")return e.attr(b.style,"cssText",f);m&&b.setAttribute(c,""+f);b=k&&g&&n?b.getAttribute(c,2):b.getAttribute(c);return b===null?v:b}if(k&&c=="opacity"){if(m){b.zoom=1;b.filter=(b.filter|| "").replace(/alpha\([^)]*\)/,"")+(parseInt(f)+""=="NaN"?"":"alpha(opacity="+f*100+")")}return b.filter&&b.filter.indexOf("opacity=")>=0?parseFloat(b.filter.match(/opacity=([^)]*)/)[1])/100+"":""}c=c.replace(/-([a-z])/ig,function(q,r){return r.toUpperCase()});if(m)b[c]=f;return b[c]}},trim:function(b){return(b||"").replace(/^\s+|\s+$/g,"")},makeArray:function(b){var c=[];if(b!=null){var f=b.length;if(f==null||b.split||b.setInterval||b.call)c[0]=b;else for(;f;)c[--f]=b[f]}return c},inArray:function(b, c){for(var f=0,g=c.length;f<g;f++)if(c[f]===b)return f;return-1},merge:function(b,c){var f=0,g,m=b.length;if(e.browser.msie)for(;g=c[f++];){if(g.nodeType!=8)b[m++]=g}else for(;g=c[f++];)b[m++]=g;return b},unique:function(b){var c=[],f={};try{for(var g=0,m=b.length;g<m;g++){var k=e.data(b[g]);if(!f[k]){f[k]=true;c.push(b[g])}}}catch(n){c=b}return c},grep:function(b,c,f){for(var g=[],m=0,k=b.length;m<k;m++)!f!=!c(b[m],m)&&g.push(b[m]);return g},map:function(b,c){for(var f=[],g=0,m=b.length;g<m;g++){var k= c(b[g],g);if(k!=null)f[f.length]=k}return f.concat.apply([],f)}});var J=navigator.userAgent.toLowerCase();e.browser={version:(J.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(J),opera:/opera/.test(J),msie:/msie/.test(J)&&!/opera/.test(J),mozilla:/mozilla/.test(J)&&!/(compatible|webkit)/.test(J)};var L=e.browser.msie?"styleFloat":"cssFloat";e.extend({boxModel:!e.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":L,cssFloat:L,styleFloat:L, readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});e.each({parent:function(b){return b.parentNode},parents:function(b){return e.dir(b,"parentNode")},next:function(b){return e.nth(b,2,"nextSibling")},prev:function(b){return e.nth(b,2,"previousSibling")},nextAll:function(b){return e.dir(b,"nextSibling")},prevAll:function(b){return e.dir(b,"previousSibling")},siblings:function(b){return e.sibling(b.parentNode.firstChild,b)},children:function(b){return e.sibling(b.firstChild)},contents:function(b){return e.nodeName(b, "iframe")?b.contentDocument||b.contentWindow.document:e.makeArray(b.childNodes)}},function(b,c){e.fn[b]=function(f){var g=e.map(this,c);if(f&&typeof f=="string")g=e.multiFilter(f,g);return this.pushStack(e.unique(g))}});e.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){e.fn[b]=function(){var f=arguments;return this.each(function(){for(var g=0,m=f.length;g<m;g++)e(f[g])[c](this)})}});e.each({removeAttr:function(b){e.attr(this, b,"");this.nodeType==1&&this.removeAttribute(b)},addClass:function(b){e.className.add(this,b)},removeClass:function(b){e.className.remove(this,b)},toggleClass:function(b){e.className[e.className.has(this,b)?"remove":"add"](this,b)},remove:function(b){if(!b||e.filter(b,[this]).r.length){e("*",this).add(this).each(function(){e.event.remove(this);e.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(e(">*",this).remove();this.firstChild;)this.removeChild(this.firstChild)}}, function(b,c){e.fn[b]=function(){return this.each(c,arguments)}});e.each(["Height","Width"],function(b,c){var f=c.toLowerCase();e.fn[f]=function(g){return this[0]==window?e.browser.opera&&document.body["client"+c]||e.browser.safari&&window["inner"+c]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+c]||document.body["client"+c]:this[0]==document?Math.max(Math.max(document.body["scroll"+c],document.documentElement["scroll"+c]),Math.max(document.body["offset"+c],document.documentElement["offset"+ c])):g==v?this.length?e.css(this[0],f):null:this.css(f,g.constructor==String?g:g+"px")}});var M=e.browser.safari&&parseInt(e.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uffff*_-]|\\\\.)",U=new RegExp("^>\\s*("+M+"+)"),V=new RegExp("^("+M+"+)(#)("+M+"+)"),W=new RegExp("^([#.]?)("+M+"*)");e.extend({expr:{"":function(b,c,f){return f[2]=="*"||e.nodeName(b,f[2])},"#":function(b,c,f){return b.getAttribute("id")==f[2]},":":{lt:function(b,c,f){return c<f[3]-0},gt:function(b,c,f){return c>f[3]- 0},nth:function(b,c,f){return f[3]-0==c},eq:function(b,c,f){return f[3]-0==c},first:function(b,c){return c==0},last:function(b,c,f,g){return c==g.length-1},even:function(b,c){return c%2==0},odd:function(b,c){return c%2},"first-child":function(b){return b.parentNode.getElementsByTagName("*")[0]==b},"last-child":function(b){return e.nth(b.parentNode.lastChild,1,"previousSibling")==b},"only-child":function(b){return!e.nth(b.parentNode.lastChild,2,"previousSibling")},parent:function(b){return b.firstChild}, empty:function(b){return!b.firstChild},contains:function(b,c,f){return(b.textContent||b.innerText||e(b).text()||"").indexOf(f[3])>=0},visible:function(b){return"hidden"!=b.type&&e.css(b,"display")!="none"&&e.css(b,"visibility")!="hidden"},hidden:function(b){return"hidden"==b.type||e.css(b,"display")=="none"||e.css(b,"visibility")=="hidden"},enabled:function(b){return!b.disabled},disabled:function(b){return b.disabled},checked:function(b){return b.checked},selected:function(b){return b.selected||e.attr(b, "selected")},text:function(b){return"text"==b.type},radio:function(b){return"radio"==b.type},checkbox:function(b){return"checkbox"==b.type},file:function(b){return"file"==b.type},password:function(b){return"password"==b.type},submit:function(b){return"submit"==b.type},image:function(b){return"image"==b.type},reset:function(b){return"reset"==b.type},button:function(b){return"button"==b.type||e.nodeName(b,"button")},input:function(b){return/input|select|textarea|button/i.test(b.nodeName)},has:function(b, c,f){return e.find(f[3],b).length},header:function(b){return/h\d/i.test(b.nodeName)},animated:function(b){return e.grep(e.timers,function(c){return b==c.elem}).length}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+M+"+)")],multiFilter:function(b,c,f){for(var g,m=[];b&&b!=g;){g=b;var k=e.filter(b,c,f);b=k.t.replace(/^\s*,\s*/,"");m=f?(c=k.r):e.merge(m,k.r)}return m},find:function(b,c){if(typeof b!="string")return[b]; if(c&&c.nodeType!=1&&c.nodeType!=9)return[];c=c||document;for(var f=[c],g=[],m,k;b&&m!=b;){var n=[];m=b;b=e.trim(b);k=false;var q=U,r=q.exec(b);if(r){k=r[1].toUpperCase();for(var A=0;f[A];A++)for(r=f[A].firstChild;r;r=r.nextSibling)if(r.nodeType==1&&(k=="*"||r.nodeName.toUpperCase()==k))n.push(r);f=n;b=b.replace(q,"");if(b.indexOf(" ")==0)continue;k=true}else{q=/^([>+~])\s*(\w*)/i;if((r=q.exec(b))!=null){n=[];A={};k=r[2].toUpperCase();r=r[1];for(var z=0,H=f.length;z<H;z++)for(var D=r=="~"||r=="+"? f[z].nextSibling:f[z].firstChild;D;D=D.nextSibling)if(D.nodeType==1){var B=e.data(D);if(r=="~"&&A[B])break;if(!k||D.nodeName.toUpperCase()==k){if(r=="~")A[B]=true;n.push(D)}if(r=="+")break}f=n;b=e.trim(b.replace(q,""));k=true}}if(b&&!k)if(b.indexOf(",")){q=V;if(r=q.exec(b))r=[0,r[2],r[3],r[1]];else{q=W;r=q.exec(b)}r[2]=r[2].replace(/\\/g,"");k=f[f.length-1];if(r[1]=="#"&&k&&k.getElementById&&!e.isXMLDoc(k)){n=k.getElementById(r[2]);if((e.browser.msie||e.browser.opera)&&n&&typeof n.id=="string"&&n.id!= r[2])n=e('[@id="'+r[2]+'"]',k)[0];f=n=n&&(!r[3]||e.nodeName(n,r[3]))?[n]:[]}else{for(A=0;f[A];A++){k=r[1]=="#"&&r[3]?r[3]:r[1]!=""||r[0]==""?"*":r[2];if(k=="*"&&f[A].nodeName.toLowerCase()=="object")k="param";n=e.merge(n,f[A].getElementsByTagName(k))}if(r[1]==".")n=e.classFilter(n,r[2]);if(r[1]=="#"){f=[];for(A=0;n[A];A++)if(n[A].getAttribute("id")==r[2]){f=[n[A]];break}n=f}f=n}b=b.replace(q,"")}else{c==f[0]&&f.shift();g=e.merge(g,f);n=f=[c];b=" "+b.substr(1,b.length)}if(b){b=e.filter(b,n);f=n=b.r; b=e.trim(b.t)}}if(b)f=[];f&&c==f[0]&&f.shift();return g=e.merge(g,f)},classFilter:function(b,c,f){c=" "+c+" ";for(var g=[],m=0;b[m];m++){var k=(" "+b[m].className+" ").indexOf(c)>=0;if(!f&&k||f&&!k)g.push(b[m])}return g},filter:function(b,c,f){for(var g;b&&b!=g;){g=b;for(var m=e.parse,k,n=0;m[n];n++)if(k=m[n].exec(b)){b=b.substring(k[0].length);k[2]=k[2].replace(/\\/g,"");break}if(!k)break;if(k[1]==":"&&k[2]=="not")c=y.test(k[3])?e.filter(k[3],c,true).r:e(c).not(k[3]);else if(k[1]==".")c=e.classFilter(c, k[2],f);else if(k[1]=="["){m=[];var q=k[3];n=0;for(var r=c.length;n<r;n++){var A=c[n],z=A[e.props[k[2]]||k[2]];if(z==null||/href|src|selected/.test(k[2]))z=e.attr(A,k[2])||"";if((q==""&&!!z||q=="="&&z==k[5]||q=="!="&&z!=k[5]||q=="^="&&z&&!z.indexOf(k[5])||q=="$="&&z.substr(z.length-k[5].length)==k[5]||(q=="*="||q=="~=")&&z.indexOf(k[5])>=0)^f)m.push(A)}c=m}else if(k[1]==":"&&k[2]=="nth-child"){q={};m=[];g=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(k[3]=="even"&&"2n"||k[3]=="odd"&&"2n+1"||!/\D/.test(k[3])&&"0n+"+ k[3]||k[3]);A=g[1]+(g[2]||1)-0;g=g[3]-0;n=0;for(r=c.length;n<r;n++){z=c[n];var H=z.parentNode,D=e.data(H);if(!q[D]){var B=1;for(H=H.firstChild;H;H=H.nextSibling)if(H.nodeType==1)H.nodeIndex=B++;q[D]=true}D=false;if(A==0){if(z.nodeIndex==g)D=true}else if((z.nodeIndex-g)%A==0&&(z.nodeIndex-g)/A>=0)D=true;D^f&&m.push(z)}c=m}else{var K=e.expr[k[1]];if(typeof K=="object")K=K[k[2]];if(typeof K=="string")K=eval("false||function(a,i){return "+K+";}");c=e.grep(c,function(N,O){return K(N,O,k,c)},f)}}return{r:c, t:b}},dir:function(b,c){var f=[];for(b=b[c];b&&b!=document;){b.nodeType==1&&f.push(b);b=b[c]}return f},nth:function(b,c,f){c=c||1;for(var g=0;b;b=b[f])if(b.nodeType==1&&++g==c)break;return b},sibling:function(b,c){for(var f=[];b;b=b.nextSibling)b.nodeType==1&&b!=c&&f.push(b);return f}});e.event={add:function(b,c,f,g){if(!(b.nodeType==3||b.nodeType==8)){if(e.browser.msie&&b.setInterval)b=window;if(!f.guid)f.guid=this.guid++;if(g!=v){var m=f;f=this.proxy(m,function(){return m.apply(this,arguments)}); f.data=g}var k=e.data(b,"events")||e.data(b,"events",{}),n=e.data(b,"handle")||e.data(b,"handle",function(){if(typeof e!="undefined"&&!e.event.triggered)return e.event.handle.apply(arguments.callee.elem,arguments)});n.elem=b;e.each(c.split(/\s+/),function(q,r){q=r.split(".");r=q[0];f.type=q[1];q=k[r];if(!q){q=k[r]={};if(!e.event.special[r]||e.event.special[r].setup.call(b)===false)if(b.addEventListener)b.addEventListener(r,n,false);else b.attachEvent&&b.attachEvent("on"+r,n)}q[f.guid]=f;e.event.global[r]= true});b=null}},guid:1,global:{},remove:function(b,c,f){if(!(b.nodeType==3||b.nodeType==8)){var g=e.data(b,"events"),m;if(g){if(c==v||typeof c=="string"&&c.charAt(0)==".")for(var k in g)this.remove(b,k+(c||""));else{if(c.type){f=c.handler;c=c.type}e.each(c.split(/\s+/),function(n,q){n=q.split(".");q=n[0];if(g[q]){if(f)delete g[q][f.guid];else for(f in g[q])if(!n[1]||g[q][f].type==n[1])delete g[q][f];for(m in g[q])break;if(!m){if(!e.event.special[q]||e.event.special[q].teardown.call(b)===false)if(b.removeEventListener)b.removeEventListener(q, e.data(b,"handle"),false);else b.detachEvent&&b.detachEvent("on"+q,e.data(b,"handle"));m=null;delete g[q]}}})}for(m in g)break;if(!m){if(c=e.data(b,"handle"))c.elem=null;e.removeData(b,"events");e.removeData(b,"handle")}}}},trigger:function(b,c,f,g,m){c=e.makeArray(c);if(b.indexOf("!")>=0){b=b.slice(0,-1);var k=true}if(f){if(f.nodeType==3||f.nodeType==8)return;var n,q=e.isFunction(f[b]||null),r=!c[0]||!c[0].preventDefault;if(r){c.unshift({type:b,target:f,preventDefault:function(){},stopPropagation:function(){}, timeStamp:t()});c[0][u]=true}c[0].type=b;if(k)c[0].exclusive=true;if(k=e.data(f,"handle"))n=k.apply(f,c);if((!q||e.nodeName(f,"a")&&b=="click")&&f["on"+b]&&f["on"+b].apply(f,c)===false)n=false;r&&c.shift();if(m&&e.isFunction(m)){c=m.apply(f,n==null?c:c.concat(n));if(c!==v)n=c}if(q&&g!==false&&n!==false&&!(e.nodeName(f,"a")&&b=="click")){this.triggered=true;try{f[b]()}catch(A){}}this.triggered=false}else this.global[b]&&e("*").add([window,document]).trigger(b,c);return n},handle:function(b){var c, f,g,m,k;b=arguments[0]=e.event.fix(b||window.event);g=b.type.split(".");b.type=g[0];g=g[1];m=!g&&!b.exclusive;k=(e.data(this,"events")||{})[b.type];for(var n in k){f=k[n];if(m||f.type==g){b.handler=f;b.data=f.data;f=f.apply(this,arguments);if(c!==false)c=f;if(f===false){b.preventDefault();b.stopPropagation()}}}return c},fix:function(b){if(b[u]==true)return b;var c=b;b={originalEvent:c};for(var f="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" "), g=f.length;g;g--)b[f[g]]=c[f[g]];b[u]=true;b.preventDefault=function(){c.preventDefault&&c.preventDefault();c.returnValue=false};b.stopPropagation=function(){c.stopPropagation&&c.stopPropagation();c.cancelBubble=true};b.timeStamp=b.timeStamp||t();if(!b.target)b.target=b.srcElement||document;if(b.target.nodeType==3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement==b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null){f=document.documentElement; g=document.body;b.pageX=b.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f.clientLeft||0);b.pageY=b.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f.clientTop||0)}if(!b.which&&(b.charCode||b.charCode===0?b.charCode:b.keyCode))b.which=b.charCode||b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},proxy:function(b,c){c.guid=b.guid=b.guid||c.guid||this.guid++;return c},special:{ready:{setup:function(){x()},teardown:function(){}}, mouseenter:{setup:function(){if(e.browser.msie)return false;e(this).bind("mouseover",e.event.special.mouseenter.handler);return true},teardown:function(){if(e.browser.msie)return false;e(this).unbind("mouseover",e.event.special.mouseenter.handler);return true},handler:function(b){if(T(b,this))return true;b.type="mouseenter";return e.event.handle.apply(this,arguments)}},mouseleave:{setup:function(){if(e.browser.msie)return false;e(this).bind("mouseout",e.event.special.mouseleave.handler);return true}, teardown:function(){if(e.browser.msie)return false;e(this).unbind("mouseout",e.event.special.mouseleave.handler);return true},handler:function(b){if(T(b,this))return true;b.type="mouseleave";return e.event.handle.apply(this,arguments)}}}};e.fn.extend({bind:function(b,c,f){return b=="unload"?this.one(b,c,f):this.each(function(){e.event.add(this,b,f||c,f&&c)})},one:function(b,c,f){var g=e.event.proxy(f||c,function(m){e(this).unbind(m,g);return(f||c).apply(this,arguments)});return this.each(function(){e.event.add(this, b,g,f&&c)})},unbind:function(b,c){return this.each(function(){e.event.remove(this,b,c)})},trigger:function(b,c,f){return this.each(function(){e.event.trigger(b,c,this,true,f)})},triggerHandler:function(b,c,f){return this[0]&&e.event.trigger(b,c,this[0],false,f)},toggle:function(b){for(var c=arguments,f=1;f<c.length;)e.event.proxy(b,c[f++]);return this.click(e.event.proxy(b,function(g){this.lastToggle=(this.lastToggle||0)%f;g.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))}, hover:function(b,c){return this.bind("mouseenter",b).bind("mouseleave",c)},ready:function(b){x();e.isReady?b.call(document,e):e.readyList.push(function(){return b.call(this,e)});return this}});e.extend({isReady:false,readyList:[],ready:function(){if(!e.isReady){e.isReady=true;if(e.readyList){e.each(e.readyList,function(){this.call(document)});e.readyList=null}e(document).triggerHandler("ready")}}});var S=false;e.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error".split(","), function(b,c){e.fn[c]=function(f){return f?this.bind(c,f):this.trigger(c)}});function T(b,c){for(b=b.relatedTarget;b&&b!=c;)try{b=b.parentNode}catch(f){b=c}return b==c}e(window).bind("unload",function(){e("*").add(document).unbind()});e.fn.extend({_load:e.fn.load,load:function(b,c,f){if(typeof b!="string")return this._load(b);var g=b.indexOf(" ");if(g>=0){var m=b.slice(g,b.length);b=b.slice(0,g)}f=f||function(){};g="GET";if(c)if(e.isFunction(c)){f=c;c=null}else{c=e.param(c);g="POST"}var k=this;e.ajax({url:b, type:g,dataType:"html",data:c,complete:function(n,q){if(q=="success"||q=="notmodified")k.html(m?e("<div/>").append(n.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(m):n.responseText);k.each(f,[n.responseText,q,n])}});return this},serialize:function(){return e.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return e.nodeName(this,"form")?e.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)|| /text|hidden|password/i.test(this.type))}).map(function(b,c){b=e(this).val();return b==null?null:b.constructor==Array?e.map(b,function(f){return{name:c.name,value:f}}):{name:c.name,value:b}}).get()}});e.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,c){e.fn[c]=function(f){return this.bind(c,f)}});var X=t();e.extend({get:function(b,c,f,g){if(e.isFunction(c)){f=c;c=null}return e.ajax({type:"GET",url:b,data:c,success:f,dataType:g})},getScript:function(b,c){return e.get(b, null,c,"script")},getJSON:function(b,c,f){return e.get(b,c,f,"json")},post:function(b,c,f,g){if(e.isFunction(c)){f=c;c={}}return e.ajax({type:"POST",url:b,data:c,success:f,dataType:g})},ajaxSetup:function(b){e.extend(e.ajaxSettings,b)},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript", json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(b){function c(){b.success&&b.success(n,k);b.global&&e.event.trigger("ajaxSuccess",[B,b])}function f(){b.complete&&b.complete(B,k);b.global&&e.event.trigger("ajaxComplete",[B,b]);b.global&&!--e.active&&e.event.trigger("ajaxStop")}b=e.extend(true,b,e.extend(true,{},e.ajaxSettings,b));var g,m=/=\?(&|$)/g,k,n,q=b.type.toUpperCase();if(b.data&&b.processData&&typeof b.data!="string")b.data=e.param(b.data); if(b.dataType=="jsonp"){if(q=="GET")b.url.match(m)||(b.url+=(b.url.match(/\?/)?"&":"?")+(b.jsonp||"callback")+"=?");else if(!b.data||!b.data.match(m))b.data=(b.data?b.data+"&":"")+(b.jsonp||"callback")+"=?";b.dataType="json"}if(b.dataType=="json"&&(b.data&&b.data.match(m)||b.url.match(m))){g="jsonp"+X++;if(b.data)b.data=(b.data+"").replace(m,"="+g+"$1");b.url=b.url.replace(m,"="+g+"$1");b.dataType="script";window[g]=function(Q){n=Q;c();f();window[g]=v;try{delete window[g]}catch(Y){}A&&A.removeChild(z)}}if(b.dataType== "script"&&b.cache==null)b.cache=false;if(b.cache===false&&q=="GET"){m=t();var r=b.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+m+"$2");b.url=r+(r==b.url?(b.url.match(/\?/)?"&":"?")+"_="+m:"")}if(b.data&&q=="GET"){b.url+=(b.url.match(/\?/)?"&":"?")+b.data;b.data=null}b.global&&!e.active++&&e.event.trigger("ajaxStart");m=/^(?:\w+:)?\/\/([^\/?#]+)/;if(b.dataType=="script"&&q=="GET"&&m.test(b.url)&&m.exec(b.url)[1]!=location.host){var A=document.getElementsByTagName("head")[0],z=document.createElement("script"); z.src=b.url;if(b.scriptCharset)z.charset=b.scriptCharset;if(!g){var H=false;z.onload=z.onreadystatechange=function(){if(!H&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){H=true;c();f();A.removeChild(z)}}}A.appendChild(z)}else{var D=false,B=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;b.username?B.open(q,b.url,b.async,b.username,b.password):B.open(q,b.url,b.async);try{b.data&&B.setRequestHeader("Content-Type",b.contentType);if(b.ifModified)B.setRequestHeader("If-Modified-Since", e.lastModified[b.url]||"Thu, 01 Jan 1970 00:00:00 GMT");B.setRequestHeader("X-Requested-With","XMLHttpRequest");B.setRequestHeader("Accept",b.dataType&&b.accepts[b.dataType]?b.accepts[b.dataType]+", */*":b.accepts._default)}catch(K){}if(b.beforeSend&&b.beforeSend(B,b)===false){b.global&&e.active--;B.abort();return false}b.global&&e.event.trigger("ajaxSend",[B,b]);var N=function(Q){if(!D&&B&&(B.readyState==4||Q=="timeout")){D=true;if(O){clearInterval(O);O=null}k=Q=="timeout"&&"timeout"||!e.httpSuccess(B)&& "error"||b.ifModified&&e.httpNotModified(B,b.url)&&"notmodified"||"success";if(k=="success")try{n=e.httpData(B,b.dataType,b.dataFilter)}catch(Y){k="parsererror"}if(k=="success"){var R;try{R=B.getResponseHeader("Last-Modified")}catch(aa){}if(b.ifModified&&R)e.lastModified[b.url]=R;g||c()}else e.handleError(b,B,k);f();if(b.async)B=null}};if(b.async){var O=setInterval(N,13);b.timeout>0&&setTimeout(function(){if(B){B.abort();D||N("timeout")}},b.timeout)}try{B.send(b.data)}catch(Z){e.handleError(b,B,null, Z)}b.async||N();return B}},handleError:function(b,c,f,g){b.error&&b.error(c,f,g);b.global&&e.event.trigger("ajaxError",[c,b,g])},active:0,httpSuccess:function(b){try{return!b.status&&location.protocol=="file:"||b.status>=200&&b.status<300||b.status==304||b.status==1223||e.browser.safari&&b.status==v}catch(c){}return false},httpNotModified:function(b,c){try{var f=b.getResponseHeader("Last-Modified");return b.status==304||f==e.lastModified[c]||e.browser.safari&&b.status==v}catch(g){}return false},httpData:function(b, c,f){var g=b.getResponseHeader("content-type");b=(g=c=="xml"||!c&&g&&g.indexOf("xml")>=0)?b.responseXML:b.responseText;if(g&&b.documentElement.tagName=="parsererror")throw"parsererror";if(f)b=f(b,c);c=="script"&&e.globalEval(b);if(c=="json")b=eval("("+b+")");return b},param:function(b){var c=[];if(b.constructor==Array||b.jquery)e.each(b,function(){c.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value))});else for(var f in b)b[f]&&b[f].constructor==Array?e.each(b[f],function(){c.push(encodeURIComponent(f)+ "="+encodeURIComponent(this))}):c.push(encodeURIComponent(f)+"="+encodeURIComponent(e.isFunction(b[f])?b[f]():b[f]));return c.join("&").replace(/%20/g,"+")}});e.fn.extend({show:function(b,c){return b?this.animate({height:"show",width:"show",opacity:"show"},b,c):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(e.css(this,"display")=="none"){var f=e("<"+this.tagName+" />").appendTo("body");this.style.display=f.css("display");if(this.style.display=="none")this.style.display= "block";f.remove()}}).end()},hide:function(b,c){return b?this.animate({height:"hide",width:"hide",opacity:"hide"},b,c):this.filter(":visible").each(function(){this.oldblock=this.oldblock||e.css(this,"display");this.style.display="none"}).end()},_toggle:e.fn.toggle,toggle:function(b,c){return e.isFunction(b)&&e.isFunction(c)?this._toggle.apply(this,arguments):b?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},b,c):this.each(function(){e(this)[e(this).is(":hidden")?"show":"hide"]()})}, slideDown:function(b,c){return this.animate({height:"show"},b,c)},slideUp:function(b,c){return this.animate({height:"hide"},b,c)},slideToggle:function(b,c){return this.animate({height:"toggle"},b,c)},fadeIn:function(b,c){return this.animate({opacity:"show"},b,c)},fadeOut:function(b,c){return this.animate({opacity:"hide"},b,c)},fadeTo:function(b,c,f){return this.animate({opacity:c},b,f)},animate:function(b,c,f,g){var m=e.speed(c,f,g);return this[m.queue===false?"each":"queue"](function(){if(this.nodeType!= 1)return false;var k=e.extend({},m),n,q=e(this).is(":hidden"),r=this;for(n in b){if(b[n]=="hide"&&q||b[n]=="show"&&!q)return k.complete.call(this);if(n=="height"||n=="width"){k.display=e.css(this,"display");k.overflow=this.style.overflow}}if(k.overflow!=null)this.style.overflow="hidden";k.curAnim=e.extend({},b);e.each(b,function(A,z){var H=new e.fx(r,k,A);if(/toggle|show|hide/.test(z))H[z=="toggle"?q?"show":"hide":z](b);else{var D=z.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),B=H.cur(true)||0;if(D){z= parseFloat(D[2]);var K=D[3]||"px";if(K!="px"){r.style[A]=(z||1)+K;B=(z||1)/H.cur(true)*B;r.style[A]=B+K}if(D[1])z=(D[1]=="-="?-1:1)*z+B;H.custom(B,z,K)}else H.custom(B,z,"")}});return true})},queue:function(b,c){if(e.isFunction(b)||b&&b.constructor==Array){c=b;b="fx"}if(!b||typeof b=="string"&&!c)return P(this[0],b);return this.each(function(){if(c.constructor==Array)P(this,b,c);else{P(this,b).push(c);P(this,b).length==1&&c.call(this)}})},stop:function(b,c){var f=e.timers;b&&this.queue([]);this.each(function(){for(var g= f.length-1;g>=0;g--)if(f[g].elem==this){c&&f[g](true);f.splice(g,1)}});c||this.dequeue();return this}});function P(b,c,f){if(b){c=c||"fx";var g=e.data(b,c+"queue");if(!g||f)g=e.data(b,c+"queue",e.makeArray(f))}return g}e.fn.dequeue=function(b){b=b||"fx";return this.each(function(){var c=P(this,b);c.shift();c.length&&c[0].call(this)})};e.extend({speed:function(b,c,f){var g=b&&b.constructor==Object?b:{complete:f||!f&&c||e.isFunction(b)&&b,duration:b,easing:f&&c||c&&c.constructor!=Function&&c};g.duration= (g.duration&&g.duration.constructor==Number?g.duration:e.fx.speeds[g.duration])||e.fx.speeds.def;g.old=g.complete;g.complete=function(){g.queue!==false&&e(this).dequeue();e.isFunction(g.old)&&g.old.call(this)};return g},easing:{linear:function(b,c,f,g){return f+g*b},swing:function(b,c,f,g){return(-Math.cos(b*Math.PI)/2+0.5)*g+f}},timers:[],timerId:null,fx:function(b,c,f){this.options=c;this.elem=b;this.prop=f;if(!c.orig)c.orig={}}});e.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem, this.now,this);(e.fx.step[this.prop]||e.fx.step._default)(this);if(this.prop=="height"||this.prop=="width")this.elem.style.display="block"},cur:function(b){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];return(b=parseFloat(e.css(this.elem,this.prop,b)))&&b>-10000?b:parseFloat(e.curCSS(this.elem,this.prop))||0},custom:function(b,c,f){function g(k){return m.step(k)}this.startTime=t();this.start=b;this.end=c;this.unit=f||this.unit||"px";this.now=this.start; this.pos=this.state=0;this.update();var m=this;g.elem=this.elem;e.timers.push(g);if(e.timerId==null)e.timerId=setInterval(function(){for(var k=e.timers,n=0;n<k.length;n++)k[n]()||k.splice(n--,1);if(!k.length){clearInterval(e.timerId);e.timerId=null}},13)},show:function(){this.options.orig[this.prop]=e.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height")this.elem.style[this.prop]="1px";e(this.elem).show()},hide:function(){this.options.orig[this.prop]= e.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(b){var c=t();if(b||c>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();b=this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)b=false;if(b){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(e.css(this.elem,"display")=="none")this.elem.style.display= "block"}if(this.options.hide)this.elem.style.display="none";if(this.options.hide||this.options.show)for(var g in this.options.curAnim)e.attr(this.elem.style,g,this.options.orig[g])}b&&this.options.complete.call(this.elem);return false}else{f=c-this.startTime;this.state=f/this.options.duration;this.pos=e.easing[this.options.easing||(e.easing.swing?"swing":"linear")](this.state,f,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};e.extend(e.fx, {speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(b){b.elem.scrollLeft=b.now},scrollTop:function(b){b.elem.scrollTop=b.now},opacity:function(b){e.attr(b.elem.style,"opacity",b.now)},_default:function(b){b.elem.style[b.prop]=b.now+b.unit}}});e.fn.offset=function(){function b(D){c(e.curCSS(D,"borderLeftWidth",true),e.curCSS(D,"borderTopWidth",true))}function c(D,B){f+=parseInt(D,10)||0;g+=parseInt(B,10)||0}var f=0,g=0,m=this[0],k;if(m)with(e.browser){var n=m.parentNode,q=m,r=m.offsetParent; k=m.ownerDocument;var A=safari&&parseInt(version)<522&&!/adobeair/i.test(J),z=e.curCSS,H=z(m,"position")=="fixed";if(m.getBoundingClientRect){m=m.getBoundingClientRect();c(m.left+Math.max(k.documentElement.scrollLeft,k.body.scrollLeft),m.top+Math.max(k.documentElement.scrollTop,k.body.scrollTop));c(-k.documentElement.clientLeft,-k.documentElement.clientTop)}else{for(c(m.offsetLeft,m.offsetTop);r;){c(r.offsetLeft,r.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(r.tagName)||safari&&!A)b(r);if(!H&&z(r, "position")=="fixed")H=true;q=/^body$/i.test(r.tagName)?q:r;r=r.offsetParent}for(;n&&n.tagName&&!/^body|html$/i.test(n.tagName);){/^inline|table.*$/i.test(z(n,"display"))||c(-n.scrollLeft,-n.scrollTop);mozilla&&z(n,"overflow")!="visible"&&b(n);n=n.parentNode}if(A&&(H||z(q,"position")=="absolute")||mozilla&&z(q,"position")!="absolute")c(-k.body.offsetLeft,-k.body.offsetTop);H&&c(Math.max(k.documentElement.scrollLeft,k.body.scrollLeft),Math.max(k.documentElement.scrollTop,k.body.scrollTop))}k={top:g, left:f}}return k};e.fn.extend({position:function(){var b;if(this[0]){b=this.offsetParent();var c=this.offset(),f=/^body|html$/i.test(b[0].tagName)?{top:0,left:0}:b.offset();c.top-=p(this,"marginTop");c.left-=p(this,"marginLeft");f.top+=p(b,"borderTopWidth");f.left+=p(b,"borderLeftWidth");b={top:c.top-f.top,left:c.left-f.left}}return b},offsetParent:function(){for(var b=this[0].offsetParent;b&&!/^body|html$/i.test(b.tagName)&&e.css(b,"position")=="static";)b=b.offsetParent;return e(b)}});e.each(["Left", "Top"],function(b,c){var f="scroll"+c;e.fn[f]=function(g){if(this[0])return g!=v?this.each(function(){this==window||this==document?window.scrollTo(!b?g:e(window).scrollLeft(),b?g:e(window).scrollTop()):(this[f]=g)}):this[0]==window||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||e.boxModel&&document.documentElement[f]||document.body[f]:this[0][f]}});e.each(["Height","Width"],function(b,c){var f=b?"Left":"Top",g=b?"Right":"Bottom";e.fn["inner"+c]=function(){return this[c.toLowerCase()]()+p(this, "padding"+f)+p(this,"padding"+g)};e.fn["outer"+c]=function(m){return this["inner"+c]()+p(this,"border"+f+"Width")+p(this,"border"+g+"Width")+(m?p(this,"margin"+f)+p(this,"margin"+g):0)}})})(); var Pixastic=function(){function o(s,e,w){if(s.addEventListener)s.addEventListener(e,w,false);else s.attachEvent&&s.attachEvent("on"+e,w)}function t(s){var e=false;function w(){if(!e){e=true;s()}}document.write('<script defer src="//:" id="__onload_ie_sumbox__"><\/script>');var y=document.getElementById("__onload_ie_sumbox__");y.onreadystatechange=function(){if(y.readyState=="complete"){y.parentNode.removeChild(y);w()}};document.addEventListener&&document.addEventListener("DOMContentLoaded",w,false); o(window,"load",w)}function p(){if(Pixastic.parseOnLoad)for(var s=x("pixastic",null,"img"),e=x("pixastic",null,"canvas"),w=s.concat(e),y=0;y<w.length;y++)(function(){for(var v=w[y],u=[],C=v.className.split(" "),E=0;E<C.length;E++){var I=C[E];if(I.substring(0,9)=="pixastic-"){I=I.substring(9);I!=""&&u.push(I)}}if(u.length)if(v.tagName=="IMG"){C=new Image;C.src=v.src;if(C.complete)for(C=0;C<u.length;C++){if(E=Pixastic.applyAction(v,v,u[C],null))v=E}else C.onload=function(){for(var G=0;G<u.length;G++){var J= Pixastic.applyAction(v,v,u[G],null);if(J)v=J}}}else setTimeout(function(){for(var G=0;G<u.length;G++){var J=Pixastic.applyAction(v,v,u[G],null);if(J)v=J}},1)})()}function x(s,e,w){var y=[];if(e==null)e=document;if(w==null)w="*";e=e.getElementsByTagName(w);w=e.length;s=new RegExp("(^|\\s)"+s+"(\\s|$)");for(j=i=0;i<w;i++)if(s.test(e[i].className)){y[j]=e[i];j++}return y}function F(s,e){if(Pixastic.debug)try{switch(e){case "warn":console.warn("Pixastic:",s);break;case "error":console.error("Pixastic:", s);break;default:console.log("Pixastic:",s)}}catch(w){}}t(p);return{parseOnLoad:false,debug:false,applyAction:function(s,e,w,y){y=y||{};var v=s.tagName=="CANVAS";if(v&&Pixastic.Client.isIE()){Pixastic.debug&&F("Tried to process a canvas element but browser is IE.");return false}var u,C;if(Pixastic.Client.hasCanvas()){u=document.createElement("canvas");C=u.getContext("2d")}var E=parseInt(s.offsetWidth),I=parseInt(s.offsetHeight);if(w.indexOf("(")>-1){var G=w;w=G.substr(0,G.indexOf("("));G=G.match(/\((.*?)\)/); if(G[1]){G=G[1].split(";");for(var J=0;J<G.length;J++){thisArg=G[J].split("=");if(thisArg.length==2)if(thisArg[0]=="rect"){var L=thisArg[1].split(",");y[thisArg[0]]={left:parseInt(L[0],10)||0,top:parseInt(L[1],10)||0,width:parseInt(L[2],10)||0,height:parseInt(L[3],10)||0}}else y[thisArg[0]]=thisArg[1]}}}if(!y.rect)y.rect={left:0,top:0,width:E,height:I};G=false;if(Pixastic.Actions[w]&&typeof Pixastic.Actions[w].process=="function")G=true;if(!G){Pixastic.debug&&F('Invalid action "'+w+'". Maybe file not included?'); return false}if(!Pixastic.Actions[w].checkSupport()){Pixastic.debug&&F('Action "'+w+'" not supported by this browser.');return false}if(Pixastic.Client.hasCanvas()){u.width=E;u.height=I;u.style.width=E+"px";u.style.height=I+"px";C.drawImage(e,0,0,E,I)}e={image:s,canvas:u,width:E,height:I,useData:true,options:y};w=Pixastic.Actions[w].process(e);if(!w)return false;if(Pixastic.Client.hasCanvas()){if(e.useData)if(Pixastic.Client.hasCanvasImageData()){u.getContext("2d").putImageData(e.canvasData,y.rect.left, y.rect.top);u.getContext("2d").fillRect(0,0,0,0)}u.title=s.title;u.imgsrc=s.imgsrc;if(!v)u.alt=s.alt;if(!v)u.imgsrc=s.src;u.className=s.className;u.setAttribute("style",s.getAttribute("style"));u.cssText=s.cssText;u.name=s.name;u.tabIndex=s.tabIndex;u.id=s.id;s.parentNode&&s.parentNode.replaceChild&&s.parentNode.replaceChild(u,s);return u}return s},prepareData:function(s,e){var w=s.canvas.getContext("2d"),y=s.options.rect;w=w.getImageData(y.left,y.top,y.width,y.height);y=w.data;if(!e)s.canvasData= w;return y},process:function(s,e,w,y){if(s.tagName=="IMG"){var v=new Image;v.src=s.src;if(v.complete){var u=Pixastic.applyAction(s,v,e,w);y&&y(u);return u}else v.onload=function(){var C=Pixastic.applyAction(s,v,e,w);y&&y(C)}}if(s.tagName=="CANVAS"){u=Pixastic.applyAction(s,s,e,w);y&&y(u);return u}},Client:{hasCanvas:function(){var s=document.createElement("canvas"),e=false;try{e=!!(typeof s.getContext=="function"&&s.getContext("2d"))}catch(w){}return function(){return e}}(),hasCanvasImageData:function(){var s= document.createElement("canvas"),e=false,w;try{if(typeof s.getContext=="function"&&(w=s.getContext("2d")))e=typeof w.getImageData=="function"}catch(y){}return function(){return e}}(),isIE:function(){return!!document.all&&!!window.attachEvent&&!window.opera}},Actions:{}}}(); if(typeof jQuery!="undefined"&&jQuery&&jQuery.fn)jQuery.fn.pixastic=function(o,t){var p=[];this.each(function(){if(!(this.tagName=="IMG"&&!this.complete)){var x=Pixastic.process(this,o,t);x&&p.push(x)}});return p.length>0?jQuery(p):this}; Pixastic.Actions.brightness={process:function(o){var t=parseInt(o.options.brightness,10)||0,p=parseFloat(o.options.contrast)||0,x=!!o.options.legacy;if(x)t=Math.min(150,Math.max(-150,t));else var F=1+Math.min(150,Math.max(-150,t))/150;p=Math.max(0,p+1);if(Pixastic.Client.hasCanvasImageData()){var s=Pixastic.prepareData(o),e=o.options.rect;o=e.width;var w=e.height;e=o*4;w=w;do{var y=(w-1)*e,v=o;do{var u=y+(v-1)*4;if(x)var C=s[u]+t,E=s[u+1]+t,I=s[u+2]+t;else{C=s[u]*F;E=s[u+1]*F;I=s[u+2]*F}if(p!=1){C= (C-128)*p+128;E=(E-128)*p+128;I=(I-128)*p+128}if(C<0)C=0;if(E<0)E=0;if(I<0)I=0;if(C>255)C=255;if(E>255)E=255;if(I>255)I=255;s[u]=C;s[u+1]=E;s[u+2]=I}while(--v)}while(--w);return true}},checkSupport:function(){return Pixastic.Client.hasCanvasImageData()}}; Pixastic.Actions.desaturate={process:function(o){var t=!!o.options.average;if(Pixastic.Client.hasCanvasImageData()){var p=Pixastic.prepareData(o),x=o.options.rect;o=x.width;var F=x.height;x=o*4;F=F;do{var s=(F-1)*x,e=o;do{var w=s+(e-1)*4,y=t?(p[w]+p[w+1]+p[w+2])/3:p[w]*0.3+p[w+1]*0.59+p[w+2]*0.11;p[w]=p[w+1]=p[w+2]=y}while(--e)}while(--F);return true}else if(Pixastic.Client.isIE()){o.image.style.filter+=" gray";return true}},checkSupport:function(){return Pixastic.Client.hasCanvasImageData()||Pixastic.Client.isIE()}}; Pixastic.Actions.lighten={process:function(o){var t=parseFloat(o.options.amount)||0;if(Pixastic.Client.hasCanvasImageData()){var p=Pixastic.prepareData(o),x=o.options.rect;o=x.width;var F=x.height;x=o*4;F=F;do{var s=(F-1)*x,e=o;do{var w=s+(e-1)*4,y=p[w],v=p[w+1],u=p[w+2];y+=y*t;v+=v*t;u+=u*t;if(y<0)y=0;if(v<0)v=0;if(u<0)u=0;if(y>255)y=255;if(v>255)v=255;if(u>255)u=255;p[w]=y;p[w+1]=v;p[w+2]=u}while(--e)}while(--F);return true}else if(Pixastic.Client.isIE()){p=o.image;if(t<0){p.style.filter+=" light()"; p.filters[p.filters.length-1].addAmbient(255,255,255,100*-t)}else if(t>0){p.style.filter+=" light()";p.filters[p.filters.length-1].addAmbient(255,255,255,100);p.filters[p.filters.length-1].addAmbient(255,255,255,100*t)}return true}},checkSupport:function(){return Pixastic.Client.hasCanvasImageData()||Pixastic.Client.isIE()}};jQuery.preloadImages=function(){for(var o=0;o<arguments.length;o++)jQuery("<img>").attr("src",arguments[o])}; this.screenshotPreview=function(){xOffset=164;yOffset=20;$("a.screenshot").hover(function(o){this.t=this.title;this.title="";var t=this.t!=""?"<br/>"+this.t:"";$("body").append("<p id='screenshot'><img src='"+this.rel+"' alt='url preview' />"+t+"</p>");$("#screenshot").css("top",o.pageY-xOffset+"px").css("left",o.pageX+yOffset+"px").fadeIn("fast")},function(){this.title=this.t;$("#screenshot").remove()});$("a.screenshot").mousemove(function(o){$("#screenshot").css("top",o.pageY-xOffset+"px").css("left", o.pageX+yOffset+"px")})}; $(document).ready(function(){$("#q").focus(function(){$("#qt").fadeTo("fast",1)});$("#q").blur(function(){$("#qt").fadeTo("fast",0.3)});$.preloadImages("images/ss/web.png","images/ss/past.png","images/ss/present.png","images/ss/future.png","images/ss/home.png","images/ss/about.png","images/ss/members.png","images/ss/projects.png","images/ss/technology.png","images/ss/contact.png","images/ss/links.png");screenshotPreview();$("#navigation .img").hover(function(){$(this).hasClass("selected")||$(this).fadeTo("fast", 1)},function(){$(this).hasClass("selected")||$(this).fadeTo("fast",0.5)});$(".result").hover(function(){$(this).css("border","3px solid #0099ff")},function(){$(this).css("border","3px solid black")});$("a").click(function(){var o=$("#words").css("font-size"),t=parseFloat(o,10);o=o.slice(-2);if(this.id=="largerTextLink"){if(t+3<50)t+=3}else if(this.id=="smallerTextLink"){if(t-3>5)t-=3}else if(this.id=="resetTextLink")t=16;$("#words").css("font-size",t+o);createCookie("textsizestyle",t,365)});initialize()}); function createCookie(o,t,p){if(p){var x=new Date;x.setTime(x.getTime()+p*24*60*60*1E3);p="; expires="+x.toGMTString()}else p="";document.cookie=o+"="+t+p+"; path=/"}function readCookie(o){o=o+"=";for(var t=document.cookie.split(";"),p=0;p<t.length;p++){for(var x=t[p];x.charAt(0)==" ";)x=x.substring(1,x.length);if(x.indexOf(o)==0)return x.substring(o.length,x.length)}return null}function set_label(o,t){document.getElementById(t+"_label").innerHTML=o} function jsGet(o,t){if(t.match(o))return t.split(o+"=")[1].split("&")[0]}function jsHash(o){if(o.match("#"))return o.split("#")[1]} (function(o){o.fn.hint=function(t){t||(t="blur");return this.each(function(){var p=o(this),x=p.attr("title");if(x){p.blur(function(){p.val()==""&&p.val(x).addClass(t)}).focus(function(){p.val()==x&&p.val("").removeClass(t)}).parents("form:first").submit(function(){p.val()==x&&p.val("").removeClass(t)}).end().blur();o.browser.mozilla&&!p.attr("autocomplete")&&setTimeout(function(){p.val()==x&&p.val("");p.blur()},10)}})}})(jQuery);var blank=new Image;blank.src="images/blank.gif"; $(document).ready(function(){var o=/MSIE ((5\.5)|6)/.test(navigator.userAgent)&&navigator.platform=="Win32";o&&$("img[src$=.png]").each(function(){if(this.complete)fixPng(this);else this.onload=function(){fixPng(this)}})});function fixPng(o){var t=o.src;if(!o.style.width)o.style.width=$(o).width();if(!o.style.height)o.style.height=$(o).height();o.onload=function(){};o.src=blank.src;o.runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+t+"',sizingMethod='scale')"};
