(function(c){var a=c.scrollTo=function(f,e,d){a.window().scrollTo(f,e,d)};a.defaults={axis:"y",duration:1};a.window=function(){return c(c.browser.safari?"body":"html")};c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}d=c.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=b(d.offset);d.over=b(d.over);return this.each(function(){var m=this,k=c(m),l=f,j,h={},n=k.is("html,body");switch(typeof l){case"number":case"string":if(/^([+-]=)?\d+(px)?$/.test(l)){l=b(l);break}l=c(l,this);case"object":if(l.is||l.style){j=(l=c(l)).offset()}}c.each(d.axis.split(""),function(r,s){var t=s=="x"?"Left":"Top",v=t.toLowerCase(),q="scroll"+t,o=m[q],p=s=="x"?"Width":"Height",u=p.toLowerCase();if(j){h[q]=j[v]+(n?0:o-k.offset()[v]);if(d.margin){h[q]-=parseInt(l.css("margin"+t))||0;h[q]-=parseInt(l.css("border"+t+"Width"))||0}h[q]+=d.offset[v]||0;if(d.over[v]){h[q]+=l[u]()*d.over[v]}}else{h[q]=l[v]}if(/^\d+$/.test(h[q])){h[q]=h[q]<=0?0:Math.min(h[q],g(p))}if(!r&&d.queue){if(o!=h[q]){i(d.onAfterFirst)}delete h[q]}});i(d.onAfter);function i(o){k.animate(h,e,d.easing,o&&function(){o.call(this,f)})}function g(o){var p=n?c.browser.opera?document.body:document.documentElement:m;return p["scroll"+o]-p["client"+o]}})};function b(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);(function(d){var b=location.href.replace(/#.*/,"");var c=d.localScroll=function(e){d("body").localScroll(e)};c.defaults={duration:1000,axis:"y",event:"click",stop:true};c.hash=function(e){e=d.extend({},c.defaults,e);e.hash=false;if(location.hash){setTimeout(function(){a(0,location,e)},0)}};d.fn.localScroll=function(f){f=d.extend({},c.defaults,f);return(f.persistent||f.lazy)?this.bind(f.event,function(h){var g=d([h.target,h.target.parentNode]).filter(e)[0];g&&a(h,g,f)}):this.find("a").filter(e).bind(f.event,function(g){a(g,this,f)}).end().end();function e(){return !!this.href&&!!this.hash&&this.href.replace(this.hash,"")==b&&(!f.filter||d(this).is(f.filter))}};function a(j,i,g){var k=i.hash.slice(1),h=document.getElementById(k)||document.getElementsByName(k)[0];if(h){if(d("#"+k).hasClass("noscroll")){return""}j&&j.preventDefault();var f=d(g.target||d.scrollTo.window());if(g.lock&&f.is(":animated")||g.onBefore&&g.onBefore.call(i,j,h,f)===false){return}g.onStart.call();if(g.stop){f.queue("fx",[]).stop()}f.scrollTo(h,g).trigger("notify.serialScroll",[h]);if(g.hash){f.queue(function(){location=i.hash})}}}})(jQuery);(function(a){var b=a.serialScroll=function(c){a.scrollTo.window().serialScroll(c)};b.defaults={duration:1000,axis:"x",event:"click",start:0,step:1,lock:true,cycle:true,constant:true};a.fn.serialScroll=function(d){d=a.extend({},b.defaults,d);var f=d.event,e=d.step,c=d.lazy;return this.each(function(){var j=d.target?this:document,h=a(d.target||this,j),l=h[0],r=d.items,n=d.start,s=d.interval,g=d.navigation,i;if(!c){r=k()}if(d.force){t({},n)}a(d.prev||[],j).bind(f,-e,m);a(d.next||[],j).bind(f,e,m);if(!l.ssbound){h.bind("prev.serialScroll",-e,m).bind("next.serialScroll",e,m).bind("goto.serialScroll",t)}if(s){h.bind("start.serialScroll",function(u){if(!s){o();s=true;p()}}).bind("stop.serialScroll",function(){o();s=false})}h.bind("notify.serialScroll",function(w,v){var u=q(v);if(u>-1){n=u}});l.ssbound=true;if(d.jump){(c?h:k()).bind(f,function(u){t(u,q(u.target))})}if(g){g=a(g,j).bind(f,function(u){u.data=Math.round(k().length/g.length)*g.index(this);t(u,this)})}function m(u){d.onStart.call();u.data+=n;t(u,this)}function t(A,y){if(!isNaN(y)){A.data=y;y=l}var B=A.data,u,C=A.type,z=d.exclude?k().slice(0,-d.exclude):k(),x=z.length,v=z[B],w=d.duration;if(C){A.preventDefault()}if(s){o();i=setTimeout(p,d.interval)}if(!v){u=B<0?0:x-1;if(n!=u){B=u}else{if(!d.cycle){return}else{B=x-u-1}}v=z[B]}if(!v||C&&n==B||d.lock&&h.is(":animated")||C&&d.onBefore&&d.onBefore.call(y,A,v,h,k(),B)===false){return}if(d.stop){h.queue("fx",[]).stop()}if(d.constant){w=Math.abs(w/e*(n-B))}h.scrollTo(v,w,d).trigger("notify.serialScroll",[B])}function p(){h.trigger("next.serialScroll")}function o(){clearTimeout(i)}function k(){return a(r,l)}function q(v){if(!isNaN(v)){return v}var w=k(),u;while((u=w.index(v))==-1&&v!=l){v=v.parentNode}return u}})}})(jQuery);(function(c){c.effects=c.effects||{};c.extend(c.effects,{version:"1.6rc5",save:function(f,g){for(var e=0;e<g.length;e++){if(g[e]!==null){f.data("ec.storage."+g[e],f[0].style[g[e]])}}},restore:function(f,g){for(var e=0;e<g.length;e++){if(g[e]!==null){f.css(g[e],f.data("ec.storage."+g[e]))}}},setMode:function(e,f){if(f=="toggle"){f=e.is(":hidden")?"show":"hide"}return f},getBaseline:function(f,g){var h,e;switch(f[0]){case"top":h=0;break;case"middle":h=0.5;break;case"bottom":h=1;break;default:h=f[0]/g.height}switch(f[1]){case"left":e=0;break;case"center":e=0.5;break;case"right":e=1;break;default:e=f[1]/g.width}return{x:e,y:h}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper")){return e.parent()}var f={width:e.outerWidth(true),height:e.outerHeight(true),"float":e.css("float")};e.wrap('<div class="ui-effects-wrapper" style="font-size:100%;background:transparent;border:none;margin:0;padding:0"></div>');var i=e.parent();if(e.css("position")=="static"){i.css({position:"relative"});e.css({position:"relative"})}else{var h=e.css("top");if(isNaN(parseInt(h,10))){h="auto"}var g=e.css("left");if(isNaN(parseInt(g,10))){g="auto"}i.css({position:e.css("position"),top:h,left:g,zIndex:e.css("z-index")}).show();e.css({position:"relative",top:0,left:0})}i.css(f);return i},removeWrapper:function(e){if(e.parent().is(".ui-effects-wrapper")){return e.parent().replaceWith(e)}return e},setTransition:function(f,h,e,g){g=g||{};c.each(h,function(k,j){unit=f.cssUnit(j);if(unit[0]>0){g[j]=unit[0]*e+unit[1]}});return g},animateClass:function(g,h,j,i){var e=(typeof j=="function"?j:(i?i:null));var f=(typeof j=="string"?j:null);return this.each(function(){var p={};var m=c(this);var o=m.attr("style")||"";if(typeof o=="object"){o=o.cssText}if(g.toggle){m.hasClass(g.toggle)?g.remove=g.toggle:g.add=g.toggle}var k=c.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(g.add){m.addClass(g.add)}if(g.remove){m.removeClass(g.remove)}var l=c.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(g.add){m.removeClass(g.add)}if(g.remove){m.addClass(g.remove)}for(var q in l){if(typeof l[q]!="function"&&l[q]&&q.indexOf("Moz")==-1&&q.indexOf("length")==-1&&l[q]!=k[q]&&(q.match(/color/i)||(!q.match(/color/i)&&!isNaN(parseInt(l[q],10))))&&(k.position!="static"||(k.position=="static"&&!q.match(/left|top|bottom|right/)))){p[q]=l[q]}}m.animate(p,h,f,function(){if(typeof c(this).attr("style")=="object"){c(this).attr("style")["cssText"]="";c(this).attr("style")["cssText"]=o}else{c(this).attr("style",o)}if(g.add){c(this).addClass(g.add)}if(g.remove){c(this).removeClass(g.remove)}if(e){e.apply(this,arguments)}})})}});c.fn.extend({_show:c.fn.show,_hide:c.fn.hide,__toggle:c.fn.toggle,_addClass:c.fn.addClass,_removeClass:c.fn.removeClass,_toggleClass:c.fn.toggleClass,effect:function(f,e,g,h){return c.effects[f]?c.effects[f].call(this,{method:f,options:e||{},duration:g,callback:h}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{var e=arguments[1]||{};e.mode="show";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{var e=arguments[1]||{};e.mode="hide";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(arguments[0].constructor==Function)){return this.__toggle.apply(this,arguments)}else{var e=arguments[1]||{};e.mode="toggle";return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback])}},addClass:function(f,e,h,g){return e?c.effects.animateClass.apply(this,[{add:f},e,h,g]):this._addClass(f)},removeClass:function(f,e,h,g){return e?c.effects.animateClass.apply(this,[{remove:f},e,h,g]):this._removeClass(f)},toggleClass:function(f,e,h,g){return e?c.effects.animateClass.apply(this,[{toggle:f},e,h,g]):this._toggleClass(f)},morph:function(e,g,f,i,h){return c.effects.animateClass.apply(this,[{add:g,remove:e},f,i,h])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(e){var f=this.css(e),g=[];c.each(["em","px","%","pt"],function(h,j){if(f.indexOf(j)>0){g=[parseFloat(f),j]}});return g}});c.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(f,e){c.fx.step[e]=function(g){if(g.state==0){g.start=d(g.elem,e);g.end=b(g.end)}g.elem.style[e]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0],10),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1],10),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2],10),255),0)].join(",")+")"}});function b(f){var e;if(f&&f.constructor==Array&&f.length==3){return f}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3],10)]}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55]}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}if(e=/rgba\(0, 0, 0, 0\)/.exec(f)){return a.transparent}return a[c.trim(f).toLowerCase()]}function d(g,e){var f;do{f=c.curCSS(g,e);if(f!=""&&f!="transparent"||c.nodeName(g,"body")){break}e="backgroundColor"}while(g=g.parentNode);return b(f)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};c.easing.jswing=c.easing.swing;c.extend(c.easing,{def:"easeOutQuad",swing:function(f,g,e,i,h){return c.easing[c.easing.def](f,g,e,i,h)},easeInQuad:function(f,g,e,i,h){return i*(g/=h)*g+e},easeOutQuad:function(f,g,e,i,h){return -i*(g/=h)*(g-2)+e},easeInOutQuad:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g+e}return -i/2*((--g)*(g-2)-1)+e},easeInCubic:function(f,g,e,i,h){return i*(g/=h)*g*g+e},easeOutCubic:function(f,g,e,i,h){return i*((g=g/h-1)*g*g+1)+e},easeInOutCubic:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g+e}return i/2*((g-=2)*g*g+2)+e},easeInQuart:function(f,g,e,i,h){return i*(g/=h)*g*g*g+e},easeOutQuart:function(f,g,e,i,h){return -i*((g=g/h-1)*g*g*g-1)+e},easeInOutQuart:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g*g+e}return -i/2*((g-=2)*g*g*g-2)+e},easeInQuint:function(f,g,e,i,h){return i*(g/=h)*g*g*g*g+e},easeOutQuint:function(f,g,e,i,h){return i*((g=g/h-1)*g*g*g*g+1)+e},easeInOutQuint:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g*g*g+e}return i/2*((g-=2)*g*g*g*g+2)+e},easeInSine:function(f,g,e,i,h){return -i*Math.cos(g/h*(Math.PI/2))+i+e},easeOutSine:function(f,g,e,i,h){return i*Math.sin(g/h*(Math.PI/2))+e},easeInOutSine:function(f,g,e,i,h){return -i/2*(Math.cos(Math.PI*g/h)-1)+e},easeInExpo:function(f,g,e,i,h){return(g==0)?e:i*Math.pow(2,10*(g/h-1))+e},easeOutExpo:function(f,g,e,i,h){return(g==h)?e+i:i*(-Math.pow(2,-10*g/h)+1)+e},easeInOutExpo:function(f,g,e,i,h){if(g==0){return e}if(g==h){return e+i}if((g/=h/2)<1){return i/2*Math.pow(2,10*(g-1))+e}return i/2*(-Math.pow(2,-10*--g)+2)+e},easeInCirc:function(f,g,e,i,h){return -i*(Math.sqrt(1-(g/=h)*g)-1)+e},easeOutCirc:function(f,g,e,i,h){return i*Math.sqrt(1-(g=g/h-1)*g)+e},easeInOutCirc:function(f,g,e,i,h){if((g/=h/2)<1){return -i/2*(Math.sqrt(1-g*g)-1)+e}return i/2*(Math.sqrt(1-(g-=2)*g)+1)+e},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(f,g,e,j,i,h){if(h==undefined){h=1.70158}return j*(g/=i)*g*((h+1)*g-h)+e},easeOutBack:function(f,g,e,j,i,h){if(h==undefined){h=1.70158}return j*((g=g/i-1)*g*((h+1)*g+h)+1)+e},easeInOutBack:function(f,g,e,j,i,h){if(h==undefined){h=1.70158}if((g/=i/2)<1){return j/2*(g*g*(((h*=(1.525))+1)*g-h))+e}return j/2*((g-=2)*g*(((h*=(1.525))+1)*g+h)+2)+e},easeInBounce:function(f,g,e,i,h){return i-c.easing.easeOutBounce(f,h-g,0,i,h)+e},easeOutBounce:function(f,g,e,i,h){if((g/=h)<(1/2.75)){return i*(7.5625*g*g)+e}else{if(g<(2/2.75)){return i*(7.5625*(g-=(1.5/2.75))*g+0.75)+e}else{if(g<(2.5/2.75)){return i*(7.5625*(g-=(2.25/2.75))*g+0.9375)+e}else{return i*(7.5625*(g-=(2.625/2.75))*g+0.984375)+e}}}},easeInOutBounce:function(f,g,e,i,h){if(g<h/2){return c.easing.easeInBounce(f,g*2,0,i,h)*0.5+e}return c.easing.easeOutBounce(f,g*2-h,0,i,h)*0.5+i*0.5+e}})})(jQuery);(function(a){a.effects.highlight=function(b){return this.queue(function(){var e=a(this),d=["backgroundImage","backgroundColor","opacity"];var h=a.effects.setMode(e,b.options.mode||"show");var c=b.options.color||"#ffff99";var g=e.css("backgroundColor");a.effects.save(e,d);e.show();e.css({backgroundImage:"none",backgroundColor:c});var f={backgroundColor:g};if(h=="hide"){f.opacity=0}e.animate(f,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(h=="hide"){e.hide()}a.effects.restore(e,d);if(h=="show"&&a.browser.msie){this.style.removeAttribute("filter")}if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);(function(e){var f={put:function(h,g){(g||window).location.hash=encodeURIComponent(h)},get:function(h){var g=((h||window).location.hash).replace(/^#/,"");return e.browser.fx?g:decodeURIComponent(g)}};var d={id:"__jQuery_history",init:function(){var g='<iframe id="'+this.id+'" style="display:none" src="javascript:false;" />';e("body").prepend(g);return this},_document:function(){return e("#"+this.id)[0].contentWindow.document},put:function(h){var g=this._document();g.open();g.close();f.put(h,g)},get:function(){return f.get(this._document())}};var b={appState:undefined,callback:undefined,init:function(g){},check:function(){},load:function(g){}};e.history=b;var a={init:function(h){b.callback=h;var g=f.get();b.appState=g;b.callback(g);setInterval(b.check,100)},check:function(){var g=f.get();if(g!=b.appState){b.appState=g;b.callback(g)}},load:function(g){if(g!=b.appState){f.put(g);b.appState=g;b.callback(g)}}};var c={init:function(h){b.callback=h;var g=f.get();b.appState=g;d.init().put(g);if(g){b.callback(g)}setInterval(b.check,100)},check:function(){var g=d.get();if(g!=b.appState){f.put(g);b.appState=g;b.callback(g)}},load:function(g){if(g!=b.appState){f.put(g);d.put(g);b.appState=g;b.callback(g)}}};if(e.browser.msie&&(e.browser.version<8||document.documentMode<8)){e.extend(b,c)}else{e.extend(b,a)}})(jQuery);
/*
 * jQuery corner plugin: simple corner rounding
 * Examples and documentation at: http://jquery.malsup.com/corner/
 * version 2.10 (05-MAY-2010)
 * Requires jQuery v1.3.2 or later
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Authors: Dave Methvin and Mike Alsup
 */
(function(c){var a=document.createElement("div").style;var h=a.MozBorderRadius!==undefined;var j=a.WebkitBorderRadius!==undefined;var e=a.borderRadius!==undefined||a.BorderRadius!==undefined;var d=document.documentMode||0;var l=c.browser.msie&&((c.browser.version<8&&!d)||d<8);var i=c.browser.msie&&(function(){var n=document.createElement("div");try{n.style.setExpression("width","0+0");n.style.removeExpression("width")}catch(m){return false}return true})();function g(m,n){return parseInt(c.css(m,n))||0}function k(m){var m=parseInt(m).toString(16);return(m.length<2)?"0"+m:m}function b(o){while(o){var m=c.css(o,"backgroundColor");if(m&&m!="transparent"&&m!="rgba(0, 0, 0, 0)"){if(m.indexOf("rgb")>=0){var n=m.match(/\d+/g);return"#"+k(n[0])+k(n[1])+k(n[2])}return m}if(o.nodeName.toLowerCase()=="html"){break}o=o.parentNode}return"#ffffff"}function f(o,m,n){switch(o){case"round":return Math.round(n*(1-Math.cos(Math.asin(m/n))));case"cool":return Math.round(n*(1+Math.cos(Math.asin(m/n))));case"sharp":return Math.round(n*(1-Math.cos(Math.acos(m/n))));case"bite":return Math.round(n*(Math.cos(Math.asin((n-m-1)/n))));case"slide":return Math.round(n*(Math.atan2(m,n/m)));case"jut":return Math.round(n*(Math.atan2(n,(n-m-1))));case"curl":return Math.round(n*(Math.atan(m)));case"tear":return Math.round(n*(Math.cos(m)));case"wicked":return Math.round(n*(Math.tan(m)));case"long":return Math.round(n*(Math.sqrt(m)));case"sculpt":return Math.round(n*(Math.log((n-m-1),n)));case"dogfold":case"dog":return(m&1)?(m+1):n;case"dog2":return(m&2)?(m+1):n;case"dog3":return(m&3)?(m+1):n;case"fray":return(m%2)*n;case"notch":return n;case"bevelfold":case"bevel":return m+1}}c.fn.corner=function(m){if(this.length==0){if(!c.isReady&&this.selector){var n=this.selector,o=this.context;c(function(){c(n,o).corner(m)})}return this}return this.each(function(v){var u=c(this);var D=[u.attr(c.fn.corner.defaults.metaAttr)||"",m||""].join(" ").toLowerCase();var K=/keep/.test(D);var C=((D.match(/cc:(#[0-9a-f]+)/)||[])[1]);var p=((D.match(/sc:(#[0-9a-f]+)/)||[])[1]);var G=parseInt((D.match(/(\d+)px/)||[])[1])||10;var E=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/;var r=((D.match(E)||["round"])[0]);var s=/dogfold|bevelfold/.test(D);var q={T:0,B:1};var z={TL:/top|tl|left/.test(D),TR:/top|tr|right/.test(D),BL:/bottom|bl|left/.test(D),BR:/bottom|br|right/.test(D)};if(!z.TL&&!z.TR&&!z.BL&&!z.BR){z={TL:1,TR:1,BL:1,BR:1}}if(c.fn.corner.defaults.useNative&&r=="round"&&(e||h||j)&&!C&&!p){if(z.TL){u.css(e?"border-top-left-radius":h?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",G+"px")}if(z.TR){u.css(e?"border-top-right-radius":h?"-moz-border-radius-topright":"-webkit-border-top-right-radius",G+"px")}if(z.BL){u.css(e?"border-bottom-left-radius":h?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",G+"px")}if(z.BR){u.css(e?"border-bottom-right-radius":h?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",G+"px")}return}var H=document.createElement("div");c(H).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:p||"transparent",borderStyle:"solid"});var N={T:parseInt(c.css(this,"paddingTop"))||0,R:parseInt(c.css(this,"paddingRight"))||0,B:parseInt(c.css(this,"paddingBottom"))||0,L:parseInt(c.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined){this.style.zoom=1}if(!K){this.style.border="none"}H.style.borderColor=C||b(this.parentNode);var F=c(this).outerHeight();for(var I in q){var y=q[I];if((y&&(z.BL||z.BR))||(!y&&(z.TL||z.TR))){H.style.borderStyle="none "+(z[I+"R"]?"solid":"none")+" none "+(z[I+"L"]?"solid":"none");var O=document.createElement("div");c(O).addClass("jquery-corner");var B=O.style;y?this.appendChild(O):this.insertBefore(O,this.firstChild);if(y&&F!="auto"){if(c.css(this,"position")=="static"){this.style.position="relative"}B.position="absolute";B.bottom=B.left=B.padding=B.margin="0";if(i){B.setExpression("width","this.parentNode.offsetWidth")}else{B.width="100%"}}else{if(!y&&c.browser.msie){if(c.css(this,"position")=="static"){this.style.position="relative"}B.position="absolute";B.top=B.left=B.right=B.padding=B.margin="0";if(i){var L=g(this,"borderLeftWidth")+g(this,"borderRightWidth");B.setExpression("width","this.parentNode.offsetWidth - "+L+'+ "px"')}else{B.width="100%"}}else{B.position="relative";B.margin=!y?"-"+N.T+"px -"+N.R+"px "+(N.T-G)+"px -"+N.L+"px":(N.B-G)+"px -"+N.R+"px -"+N.B+"px -"+N.L+"px"}}for(var J=0;J<G;J++){var x=Math.max(0,f(r,J,G));var M=H.cloneNode(false);M.style.borderWidth="0 "+(z[I+"R"]?x:0)+"px 0 "+(z[I+"L"]?x:0)+"px";y?O.appendChild(M):O.insertBefore(M,O.firstChild)}if(s&&c.support.boxModel){if(y&&l){continue}for(var P in z){if(!z[P]){continue}if(y&&(P=="TL"||P=="TR")){continue}if(!y&&(P=="BL"||P=="BR")){continue}var A={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:H.style.borderColor};var t=c("<div/>").css(A).css({width:G+"px",height:"1px"});switch(P){case"TL":t.css({bottom:0,left:0});break;case"TR":t.css({bottom:0,right:0});break;case"BL":t.css({top:0,left:0});break;case"BR":t.css({top:0,right:0});break}O.appendChild(t[0]);var Q=c("<div/>").css(A).css({top:0,bottom:0,width:"1px",height:G+"px"});switch(P){case"TL":Q.css({left:G});break;case"TR":Q.css({right:G});break;case"BL":Q.css({left:G});break;case"BR":Q.css({right:G});break}O.appendChild(Q[0])}}}}})};c.fn.uncorner=function(){if(e||h||j){this.css(e?"border-radius":h?"-moz-border-radius":"-webkit-border-radius",0)}c("div.jquery-corner",this).remove();return this};c.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);(function(a){a.fn.fancyZoom=function(p){var p=p||{};var m=p&&p.directory?p.directory:"images";var e=false;if(a("#zoom").length==0){var f=a.browser.msie?"gif":"png";var k='<div id="zoom" style="display:none;">                   <table id="zoom_table" style="border-collapse:collapse; width:100%; height:100%;">                     <tbody>                       <tr>                         <td class="tl" style="background:url('+m+"/tl."+f+') 0 0 no-repeat; width:20px; height:20px; overflow:hidden;" />                         <td class="tm" style="background:url('+m+"/tm."+f+') 0 0 repeat-x; height:20px; overflow:hidden;" />                         <td class="tr" style="background:url('+m+"/tr."+f+') 100% 0 no-repeat; width:20px; height:20px; overflow:hidden;" />                       </tr>                       <tr>                         <td class="ml" style="background:url('+m+"/ml."+f+') 0 0 repeat-y; width:20px; overflow:hidden;" />                         <td class="mm" style="background:#fff; vertical-align:top; padding:10px;">                           <div id="zoom_content">                           </div>                         </td>                         <td class="mr" style="background:url('+m+"/mr."+f+') 100% 0 repeat-y;  width:20px; overflow:hidden;" />                       </tr>                       <tr>                         <td class="bl" style="background:url('+m+"/bl."+f+') 0 100% no-repeat; width:20px; height:20px; overflow:hidden;" />                         <td class="bm" style="background:url('+m+"/bm."+f+') 0 100% repeat-x; height:20px; overflow:hidden;" />                         <td class="br" style="background:url('+m+"/br."+f+') 100% 100% no-repeat; width:20px; height:20px; overflow:hidden;" />                       </tr>                     </tbody>                   </table>                   <a href="#" title="Close" id="zoom_close" style="position:absolute; top:0; left:0;">                     <img src="'+m+"/closebox."+f+'" alt="Close" style="border:none; margin:0; padding:0;" />                   </a>                 </div>';a("body").append(k);a("html").click(function(q){if(a(q.target).parents("#zoom:visible").length==0){l()}});a(document).keyup(function(q){if(q.keyCode==27&&a("#zoom:visible").length>0){l()}});a("#zoom_close").click(l)}var o=a("#zoom");var j=a("#zoom_table");var i=a("#zoom_close");var h=a("#zoom_content");var b=a("td.ml,td.mm,td.mr");this.each(function(q){a(a(this).attr("href")).hide();a(this).click(n)});return this;function n(w){if(e){return false}e=true;var q=a(a(this).attr("href"));var u=p.width;var v=p.height;var r=window.innerWidth||(window.document.documentElement.clientWidth||window.document.body.clientWidth);var E=window.innerHeight||(window.document.documentElement.clientHeight||window.document.body.clientHeight);var C=window.pageXOffset||(window.document.documentElement.scrollLeft||window.document.body.scrollLeft);var B=window.pageYOffset||(window.document.documentElement.scrollTop||window.document.body.scrollTop);var F={width:r,height:E,x:C,y:B};var r=(u||q.width())+60;var E=(v||q.height())+60;var z=F;var A=Math.max((z.height/2)-(E/2)+B,0);var D=(z.width/2)-(r/2);var s=w.pageY;var t=w.pageX;i.attr("curTop",s);i.attr("curLeft",t);i.attr("scaleImg",p.scaleImg?"true":"false");a("#zoom").hide().css({position:"absolute",top:s+"px",left:t+"px",width:"1px",height:"1px"});g();i.hide();if(p.closeOnClick){a("#zoom").click(l)}if(p.scaleImg){h.html(q.html());a("#zoom_content img").css("width","100%")}else{h.html("")}a("#zoom").animate({top:A+"px",left:D+"px",opacity:"show",width:r,height:E},500,null,function(){if(p.scaleImg!=true){h.html(q.html())}d();i.show();e=false});return false}function l(){if(e){return false}e=true;a("#zoom").unbind("click");g();if(i.attr("scaleImg")!="true"){h.html("")}i.hide();a("#zoom").animate({top:i.attr("curTop")+"px",left:i.attr("curLeft")+"px",opacity:"hide",width:"1px",height:"1px"},500,null,function(){if(i.attr("scaleImg")=="true"){h.html("")}d();e=false});return false}function c(s){a("#zoom_table td").each(function(u){var t=a(this).css("background-image").replace(/\.(png|gif|none)\"\)$/,"."+s+'")');a(this).css("background-image",t)});var r=i.children("img");var q=r.attr("src").replace(/\.(png|gif|none)$/,"."+s);r.attr("src",q)}function g(){if(a.browser.msie&&parseFloat(a.browser.version)>=7){c("gif")}}function d(){if(a.browser.msie&&a.browser.version>=7){c("png")}}}})(jQuery);$(document).ready(function(){$("#login").corner("15px");$(".trigger").corner("15px");$("#submenudiv").corner("bottom 6px");$("a.zoom").each(function(){$(this).fancyZoom({directory:g_zoom})});$(".tooltip").hover(function(){this.tip=this.title;$(this).append('<div class="tooltip_0"><div class="tooltip_1"></div><div class="tooltip_2">'+this.tip+'</div><div class="tooltip_3"></div></div>');this.title="";this.width=$(this).width();$(this).find(".tooltip_0").css({left:-260,top:-5});$(".tooltip_0").fadeIn(300)},function(){$(".tooltip_0").fadeOut(100);$(this).children(".tooltip_0").remove();this.title=this.tip});var c=$("#slider .panel");var k=$("#slider .scrollContainer");var f=$("#slider .scroll").css("overflow","hidden");f.before('<img src="'+g_img+'tab_left_button.png" class="scrollButtons left">').after('<img src="'+g_img+'tab_righ_button.png" class="scrollButtons right">');$("#slider .navigation li").click(g);var a=true;var j=true;var e=false;if(a&&c.length){c.css({"float":"left",position:"relative"});k.css("width",c[0].offsetWidth*c.length)}var d={target:f,items:c,navigation:".navigation a",prev:"img.left",next:"img.right",axis:"xy",duration:500,easing:"swing",onAfter:b,onStart:h};if(window.location.hash){b({id:window.location.hash.substr(1)})}else{$("#slider .navigation a:first").click();h()}$("#slider").serialScroll(d);$.localScroll(d);$("#loginbox_link").click(function(){$("#login").slideToggle(function(){if($(this).is(":visible")){$("input[name=email]",$(this)).focus()}});$("#boxforgetform").hide();$("#boxloginform").show()});$("#boxloginform .forget_link").click(function(){$("#boxloginform").hide();$("#boxforgetform").show().find("input[name=email]").focus()});$("#boxforgetform").submit(function(){var l=$(this);$.post($(this).attr("action"),l.serialize(),function(m){if(m.error){alert(m.error)}else{if(m.ok){$("#boxforgetform").hide();$("#boxloginform").show();l.siblings(".msg_info").show().html(m.ok).delay(4000).fadeOut(3000)}}},"json");return false});if(window.location.hash.replace("#","")=="login"){$("#loginbox_link").click()}function g(){$(this).parents("ul:first").find("li").removeClass("selected").end().end().addClass("selected")}function b(m){var l=$("#slider .navigation").find('li[id$="tab-'+m.id+'"]').get(0);g.call(l);if(!e){h()}}function h(){if(!e){$(".trigger").css({display:"block"}).animate({opacity:1},500,"swing");e=true}else{$(".trigger").css({display:"none",opacity:"0"});e=false}}if(g_act=="help"){var i=false;$.history.init(function(o){var m=null;if(m=o.match(/\/([0-9]+)$/)){var l=$("#help_item_"+m[1]);var n=$(l).parent();$("> .help_question",l).unbind("click").click(function(){i=true;$("> .help_answer",l).slideToggle(function(){i=false})});if(!i){if(!n.is(":visible")){n.slideDown(function(){$("> .help_answer",l).slideDown()})}else{$("> .help_answer",l).slideToggle()}}else{i=false}}else{if(o){var p=$("#help_page .help_section_"+o);var n=p.next();p.unbind("click").click(function(){i=true;n.slideToggle(function(){i=false})});if(!i){n.slideToggle()}else{i=false}}}})}});var message={submit:function(a){if(!$("#namep").val()){return false}$("#message_spinner").html($("#spinner_inline").html());var b="new";if(g_preview){b="preview"}$.post(g_url+"message/submit/msgact-"+b,a,function(c){$("#message_"+b).html(c);$("#message_"+b).effect("highlight");$("#message_spinner").html("")})},edit:function(a,d){if(!$("#namep2").val()){return false}$("#message_spinner2").html($("#spinner_inline").innerHTML);var c="edit";var b="#message_view";if(g_preview){c="preview";b="#message_preview2"}$.post(g_url+"message/submit/msgact-"+c+"/id-"+d,a,function(e){if(c=="edit"){$("#message_show").show();$("#message_edit").hide()}$(b).html(e);$(b).effect("highlight");$("#message_spinner2").html("")})},goedit:function(a){$("#message_spinner3").html($("#spinner_inline").html());$.get(g_url+"message/goedit/id-"+a,function(b){$("#message_show").hide();$("#message_edit").show();$("#message_edit").html(b);$("#message_spinner3").html("")})},all:function(){$("#messages_newest").hide();$("#messages_all").html($("#spinner_inline").html());$.get(g_url+"message/list",function(a){$("#messages_all").html(a)})},comment:function(a){if(!$("#bodyc").val()){return false}$("#message_spinner4").html($("#spinner_inline").html());$.ajax({url:g_url+"message_comment/add",type:"post",data:a,complete:function(b){$("#message_comments").html(b.responseText);$("#msgcomment_"+b.getResponseHeader("ComId")).effect("highlight");$("#bodyc").val("");$("#message_spinner4").html("")}});return false},comment_del:function(b,a){if(confirm(a)){$("#message_spinner3").html($("#spinner_inline").html());$.get(g_url+"message_comment/remove/id-"+b,function(c){if(c=="done"){$("#msgcomment_"+b).remove()}$("#message_spinner3").html("")})}}};function eat(g,c,f){g+=" ";var a=g.length;var b=0;var d="";for(var e=0;e<a;e++){b=0;while(g.charCodeAt(e)!=32){b=b*10;b=b+g.charCodeAt(e)-48;e++}d+=String.fromCharCode(let(b,c,f))}parent.location="mailto:"+d}function hurt(c,e,b){c+=" ";var d=c.length;var f=0;for(var a=0;a<d;a++){f=0;while(c.charCodeAt(a)!=32){f=f*10;f=f+c.charCodeAt(a)-48;a++}document.write("&");document.write("#");document.write(let(f,e,b))}}function let(b,c,e){if(e%2==0){head=1;for(var d=1;d<=e/2;d++){privacy=(b*b)%c;head=(privacy*head)%c}}else{head=b;for(var a=1;a<=e/2;a++){privacy=(b*b)%c;head=(privacy*head)%c}}return head}function formconfirm(e,d){if(!d){d=""}var b="";var a=/^[a-zA-Z0-9]*$/;var c=$("#"+e+" #"+d+"password");if(c.val()!=""){if(!a.test(c.val())){b="pass1"}if(c.val().length<4){b="pass1"}if(!b){if(c.val()!=$("#2password").val()){b="pass2"}}}else{if(d){b="pass1"}}if(b){alert(signuperror[b]);c.focus();return false}else{return true}}function formcheck(c){var a="";if((c=="signup")||(c=="order")){if(!$("#terms").is(":checked")){a="terms"}}var b="";$("#"+c+" input:not(#time_zone)").each(function(){var d=$(this);if(!d.val()){if(d.attr("id")!="learned"){a="fillout"}}if((c=="signup")||(c=="order")){if(d.attr("id")=="email"){if(!emailcheck(d.val())){a="email"}}}});if(a){alert(signuperror[a]);$("#name").focus();return false}else{if(c=="order"){return formconfirm("order")}return true}}function emailcheck(b){var r=1;var u=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum|asia|cat|jobs|mobi|tel|travel)$/;var q=/^(.+)@(.+)$/;var o='\\(\\)><@,;:\\\\\\"\\.\\[\\]';var j="[^\\s"+o+"]";var d='("[^"]*")';var p=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;var a=j+"+";var n="("+a+"|"+d+")";var k=new RegExp("^"+n+"(\\."+n+")*$");var f=new RegExp("^"+a+"(\\."+a+")*$");var c=b.match(q);if(c==null){return false}var s=c[1];var t=c[2];for(l=0;l<s.length;l++){if(s.charCodeAt(l)>127){return false}}for(l=0;l<t.length;l++){if(t.charCodeAt(l)>127){return false}}if(s.match(k)==null){return false}var h=t.match(p);if(h!=null){for(var l=1;l<=4;l++){if(h[l]>255){return false}}return true}var g=new RegExp("^"+a+"$");var e=t.split(".");var m=e.length;for(l=0;l<m;l++){if(e[l].search(g)==-1){return false}}if(r&&e[e.length-1].length!=2&&e[e.length-1].search(u)==-1){return false}if(m<2){return false}return true}function signupfree(a){timezone();$("#progress").show();$("#submit").disabled="disabled";if(formcheck("signup")){$.ajax({url:a.attr("action"),type:"post",data:a.serialize(),complete:function(b){signup(b)}})}else{$("#progress").hide();$("#submit").disabled=""}return false}function signuporder(a){timezone();$("#progress").show();$("#submit").disabled="disabled";if(formcheck("order")){$.ajax({url:a.attr("action"),type:"post",data:a.serialize(),complete:function(b){signup(b)}})}else{$("#progress").hide();$("#submit").disabled=""}return false}function signup(c){var b=c.getResponseHeader("Error");var a="";if(b=="1"){a="email_exists"}if(b=="2"){a="error"}if(a){alert(signuperror[a]);$("#progress").hide();$("#submit").disabled=""}else{$("#signup_steps").html(c.responseText);$("#signup_steps").effect("highlight",{},1000)}}function timezone(){var a=new Date();$("#time_zone").val((-(a.getTimezoneOffset()/60)))};