(function(a){a.fn.hoverIntent=function(b,c){var d={sensitivity:7,interval:100,timeout:0};d=a.extend(d,c?{over:b,out:c}:b);var e,f,g,h;var i=function(a){e=a.pageX;f=a.pageY};var j=function(b,c){c.hoverIntent_t=clearTimeout(c.hoverIntent_t);if(Math.abs(g-e)+Math.abs(h-f)<d.sensitivity){a(c).unbind("mousemove",i);c.hoverIntent_s=1;return d.over.apply(c,[b])}else{g=e;h=f;c.hoverIntent_t=setTimeout(function(){j(b,c)},d.interval)}};var k=function(a,b){b.hoverIntent_t=clearTimeout(b.hoverIntent_t);b.hoverIntent_s=0;return d.out.apply(b,[a])};var l=function(b){var c=(b.type=="mouseover"?b.fromElement:b.toElement)||b.relatedTarget;while(c&&c!=this){try{c=c.parentNode}catch(b){c=this}}if(c==this){return false}var e=jQuery.extend({},b);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(b.type=="mouseover"){g=e.pageX;h=e.pageY;a(f).bind("mousemove",i);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){j(e,f)},d.interval)}}else{a(f).unbind("mousemove",i);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){k(e,f)},d.timeout)}}};return this.mouseover(l).mouseout(l)}})(jQuery);(function(a){a.fn.superfish=function(b){var c=a.fn.superfish,d=c.c,e=a(['<span class="',d.arrowClass,'"> &#187;</span>'].join("")),f=function(){var b=a(this),c=h(b);clearTimeout(c.sfTimer);b.showSuperfishUl().siblings().hideSuperfishUl()},g=function(){var b=a(this),d=h(b),e=c.op;clearTimeout(d.sfTimer);d.sfTimer=setTimeout(function(){e.retainPath=a.inArray(b[0],e.$path)>-1;b.hideSuperfishUl();if(e.$path.length&&b.parents(["li.",e.hoverClass].join("")).length<1){f.call(e.$path)}},e.delay)},h=function(a){var b=a.parents(["ul.",d.menuClass,":first"].join(""))[0];c.op=c.o[b.serial];return b},i=function(a){a.addClass(d.anchorClass).append(e.clone())};return this.each(function(){var e=this.serial=c.o.length;var h=a.extend({},c.defaults,b);h.$path=a("li."+h.pathClass,this).slice(0,h.pathLevels).each(function(){a(this).addClass([h.hoverClass,d.bcClass].join(" ")).filter("li:has(ul)").removeClass(h.pathClass)});c.o[e]=c.op=h;a("li:has(ul)",this)[a.fn.hoverIntent&&!h.disableHI?"hoverIntent":"hover"](f,g).each(function(){if(h.autoArrows)i(a(">a:first-child",this))}).not("."+d.bcClass).hideSuperfishUl();var j=a("a",this);j.each(function(a){var b=j.eq(a).parents("li");j.eq(a).focus(function(){f.call(b)}).blur(function(){g.call(b)})});h.onInit.call(this)}).each(function(){var b=[d.menuClass];if(c.op.dropShadows&&!(a.browser.msie&&a.browser.version<7))b.push(d.shadowClass);a(this).addClass(b.join(" "))})};var b=a.fn.superfish;b.o=[];b.op={};b.IE7fix=function(){var c=b.op;if(a.browser.msie&&a.browser.version>6&&c.dropShadows&&c.animation.opacity!=undefined)this.toggleClass(b.c.shadowClass+"-off")};b.c={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",arrowClass:"sf-sub-indicator",shadowClass:"sf-shadow"};b.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},speed:"normal",autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};a.fn.extend({hideSuperfishUl:function(){var c=b.op,d=c.retainPath===true?c.$path:"";c.retainPath=false;var e=a(["li.",c.hoverClass].join(""),this).add(this).not(d).removeClass(c.hoverClass).find(">ul").hide().css("visibility","hidden");c.onHide.call(e);return this},showSuperfishUl:function(){var a=b.op,c=b.c.shadowClass+"-off",d=this.addClass(a.hoverClass).find(">ul:hidden").css("visibility","visible");b.IE7fix.call(d);a.onBeforeShow.call(d);d.animate(a.animation,a.speed,function(){b.IE7fix.call(d);a.onShow.call(d)});return this}})})(jQuery);(function(a){function c(c,d){var e;do{e=a.curCSS(c,d);if(e!=""&&e!="transparent"||a.nodeName(c,"body"))break;d="backgroundColor"}while(c=c.parentNode);return b(e)}function b(b){var c;if(b&&b.constructor==Array&&b.length==3)return b;if(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))return[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])];if(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b))return[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55];if(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b))return[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)];if(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b))return[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)];return d[a.trim(b).toLowerCase()]}a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(d,e){a.fx.step[e]=function(a){if(a.state==0){a.start=c(a.elem,e);a.end=b(a.end)}a.elem.style[e]="rgb("+[Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0]),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1]),255),0),Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2]),255),0)].join(",")+")"}});var d={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]}})(jQuery)

   /*!
 * jQuery Lightbox Evolution - for jQuery 1.3+
 * http://codecanyon.net/item/jquery-lightbox-evolution/115655?ref=aeroalquimia
 *
 * Copyright 2010, Eduardo Daniel Sada
 * http://codecanyon.net/wiki/buying/howto-buying/licensing/
 *
 * Version: 1.4.6 (Jun 12 2011)
 *
 * Includes jQuery Easing v1.3
 * http://gsgd.co.uk/sandbox/jquery/easing/
 * Copyright (c) 2008 George McGinley Smith
 * Released under the BSD License.
 */

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(B($){E p=($.1B.2u&&1C($.1B.2v,10)<7&&1C($.1B.2v,10)>4);r($.H===23){$.1m({H:B(a,b){r(a){H=B(){S a.3z(b||8,4E)}};S H}})};$.1m($.2w.4F,{4G:B(){r(8.u.2x){8.u.2x.4H(8.4I,8.4J,8)}(2h.2w.2x[8.4K]||2h.2w.2x.4L)(8)}});$.1m($.2V,{24:B(x,t,b,c,d,s){r(s==23)s=1.4M;S c*((t=t/d-1)*t*((s+1)*t+s)+1)+b}});$.1m({2i:{3A:{D:\'2W-Q\',1g:4N,A:4O,C:4P,U:\'#4Q\',2y:O,1h:{\'1D\':0.6},2z:3B,2A:4R,4S:3C,4T:3C,4U:\'24\',4V:\'24\',4W:\'24\',4X:\'24\',25:{\'3D\':10,\'2B\':26,\'1E\':\'24\',\'3E\':2},1F:{\'A\':4Y,\'C\':4Z},3F:\'1d\'},u:{},1R:{},V:{},1b:{},q:{Q:[],F:{1i:[],1S:[],17:[],1T:[]},U:[],W:[]},18:O,1t:O,1G:\'1b\',3G:{1H:{11:/[^\\.]\\.(1H)\\s*$/i},2X:{11:/2X\\.L\\/3H/i,N:\'=\',Z:1,1e:1,12:"19://1p.2X.L/2j/%T%?1u=1&M;51=1&M;2C=0"},2Y:{11:/2Y\\.L\\/3H/i,N:\'/\',Z:4,12:"19://1p.2Y.L/52/%T%/.1H?53=54=55"},2Z:{11:/2Z\\.L\\/1v/i,N:\'/\',Z:4,12:"19://1p.2Z.L/1H/1v/%T%?56=0&M;57=1"},1I:{11:/1I\\.L\\/58/i,N:\'=\',Z:1,12:"19://1v.1I.L/59.1H?1u=1&M;5a=5b&M;5c=%T%"},31:{11:/31\\.L/i,N:\'/\',Z:3,1e:1,12:"19://32.31.L/1v/%T%?5d=1&M;1u=1&M;5e=1&M;5f=1&M;5g=0&M;5h=&M;33=1"},34:{11:/34.L/i,N:\'=\',Z:1,12:"19://1p.34.L/v/%T%"},35:{11:/35.L/i,N:\'/\',Z:5,12:"19://1p.35.L/5i.5j?5k=%T%"},5l:{11:/2k.L\\/1v\\//i,N:\'1v/\',Z:1,12:"19://1p.2k.L/2D/2D.5m.1H?2E=K&M;33=1&M;5n=K&M;3I=%T%"},2k:{11:/2k.L\\/1v:/i,N:\'1v:\',Z:1,12:"19://1p.2k.L/2D/2D.1H?1u=K&M;33=1&M;3I=%T%"},36:{11:/36.3J/i,N:\'/\',Z:4,12:"19://1p.36.3J/1F/1v/%T%?5o=%2F&M;1u=K&M;5p=%T%&M;5q=K&M;5r=0.5s&M;5t=0.5u&M;5v=5w"},38:{11:/38.L/i,N:\'/\',Z:3,12:"19://1p.38.L/32/%T%"},3K:{11:/v.3K.L/i,N:\'/\',Z:3,12:"19://5x.5y.L/32.1H?5z=%T%&M;v=1.5A"},3a:{11:/3a.L\\/5B/i,N:\'/\',Z:4,12:"19://5C.3a.L/%T%.5D?1u=K&M;1J=1K"}},3L:{3b:{11:/3b.L\\/28/i,N:\'?\',Z:1,12:"19://1p.3b.L/28/2j/?5E=5F-5G-5H-5I-5J&M;w=%A%&M;h=%C%&M;%T%"},5K:{11:/28.1I.L(.*)5L=c/i,N:\'?\',Z:1,12:"19://28.1I.L/?3M=5M&M;%T%"},1I:{11:/28.1I.L/i,N:\'?\',Z:1,12:"19://28.1I.L/?3M=2j&M;%T%"}},3c:/\\.(5N|5O|5P|5Q|5R|5S)(.*)?$/i,1h:{2G:B(b){8.u=b;8.X=$(\'<G T="\'+2l 3d().3e()+\'" R="\'+8.u.D+\'-1h"></G>\');8.X.I($.1m({},{\'1q\':\'5T\',\'1d\':0,\'13\':0,\'1D\':0,\'1w\':\'1K\',\'z-Z\':8.u.1g},8.u.1x));8.X.1n($.H(B(a){r(8.u.2H){r($.1L(8.u.1M)){8.u.1M()}J{8.1r()}}a.1U()},8));8.2m=K;8.3N();S 8},3N:B(){8.2I=$(2J.3f);8.2I.29(8.X);r(p){8.X.I({\'1q\':\'2n\'});E a=1C(8.X.I(\'1g\'));r(!a){a=1;E b=8.X.I(\'1q\');r(b==\'3O\'||!b){8.X.I({\'1q\':\'5U\'})}8.X.I({\'1g\':a})}a=(!!(8.u.1g||8.u.1g===0)&&a>8.u.1g)?8.u.1g:a-1;r(a<0){a=1}8.1j=$(\'<1e T="3P\'+2l 3d().3e()+\'" 5V="5W" 3Q=0 1V=""></1e>\');8.1j.I({1g:a,1q:\'2n\',1d:0,13:0,1J:\'1K\',A:0,C:0,1D:0});8.1j.5X(8.X);$(\'W, 3f\').I({\'C\':\'26%\',\'A\':\'26%\',\'2o-13\':0,\'2o-2a\':0})}},15:B(x,y){8.X.I({\'C\':0,\'A\':0});r(8.1j){8.1j.I({\'C\':0,\'A\':0})};E a={x:$(2J).A(),y:$(2J).C()};8.X.I({\'A\':\'26%\',\'C\':y?y:a.y});r(8.1j){8.1j.I({\'C\':0,\'A\':0});8.1j.I({\'1q\':\'2n\',\'13\':0,\'1d\':0,\'A\':8.X.A(),\'C\':y?y:a.y})}S 8},Y:B(a){r(!8.2m){S 8};r(8.1E){8.1E.1W()};r(8.1j){8.1j.I({\'1w\':\'3g\'})};8.X.I({\'1w\':\'3g\',\'1D\':0});8.2I.1f(\'15\',$.H(8.15,8));8.15();8.2m=O;8.1E=8.X.3R(8.u.2z,8.u.1x.1D,$.H(B(){r(8.u.1x.1D){8.X.I(8.u.1x)};8.X.3h(\'Y\');r($.1L(a)){a()}},8));S 8},1r:B(a){r(8.2m){S 8};r(8.1E){8.1E.1W()};r(8.1j){8.1j.I({\'1w\':\'1K\'})};8.2I.2b(\'15\');8.2m=K;8.1E=8.X.3R(8.u.2A,0,$.H(B(){8.X.3h(\'1r\');r($.1L(a)){a()};8.X.I({\'C\':0,\'A\':0,\'1w\':\'1K\'})},8));S 8}},2G:B(a){8.u=$.1m(K,8.3A,a);8.1h.2G({D:8.u.D,1x:8.u.1h,2H:!8.u.2y,1g:8.u.1g-1,1M:$.H(8.1i,8),2z:8.u.2z,2A:8.u.2A});8.q.Q=$(\'<G R="\'+8.u.D+\' \'+8.u.D+\'-1G-1b"><G R="\'+8.u.D+\'-1J-1d-13"></G><G R="\'+8.u.D+\'-1J-1d-3S"></G><G R="\'+8.u.D+\'-1J-1d-2a"></G><a R="\'+8.u.D+\'-1a-1i" 1y="#1i"><1k>5Y</1k></a><G R="\'+8.u.D+\'-1X"><a R="\'+8.u.D+\'-1a-13" 1y="#"><1k>3T</1k></a><a R="\'+8.u.D+\'-1a-2a" 1y="#"><1k>3U</1k></a></G><G R="\'+8.u.D+\'-F"><G R="\'+8.u.D+\'-F-5Z"></G><a R="\'+8.u.D+\'-1a-13" 1y="#"><1k>3T</1k></a><a R="\'+8.u.D+\'-1a-17" 1y="#"><1k>60</1k></a><G R="\'+8.u.D+\'-F-1N"></G><a R="\'+8.u.D+\'-1a-2a" 1y="#"><1k>3U</1k></a><G R="\'+8.u.D+\'-F-61"></G></G><G R="\'+8.u.D+\'-U"></G><G R="\'+8.u.D+\'-W"></G><G R="\'+8.u.D+\'-1J-2K-13"></G><G R="\'+8.u.D+\'-1J-2K-3S"></G><G R="\'+8.u.D+\'-1J-2K-2a"></G></G>\');8.q.1X=$(\'.\'+8.u.D+\'-1X\',8.q.Q);8.q.F.G=$(\'.\'+8.u.D+\'-F\',8.q.Q);8.q.F.1i=$(\'.\'+8.u.D+\'-1a-1i\',8.q.Q);8.q.F.1S=$(\'.\'+8.u.D+\'-1a-13\',8.q.Q);8.q.F.17=$(\'.\'+8.u.D+\'-1a-17\',8.q.Q);8.q.F.1T=$(\'.\'+8.u.D+\'-1a-2a\',8.q.Q);8.q.F.1N=$(\'.\'+8.u.D+\'-F-1N\',8.q.Q);8.q.U=$(\'.\'+8.u.D+\'-U\',8.q.Q);8.q.W=$(\'.\'+8.u.D+\'-W\',8.q.Q);8.q.P=$(\'<G R="\'+8.u.D+\'-P"></G>\').29(8.q.Q);8.q.P.I({\'1q\':\'2n\',\'z-Z\':8.u.1g,\'1d\':-3V,\'13\':-3V});$(\'3f\').29(8.q.P);8.3W();S 8.q.Q},3W:B(){8.q.F.1i.1f(\'1n\',$.H(B(a){8.1i();a.1U()},8));$(1c).1f(\'15\',$.H(B(){r(8.18){8.1h.15();r(!8.1t){8.1Y()}}},8));$(1c).1f(\'62\',$.H(B(){r(8.18&&!8.1t){8.1Y()}},8));$(2J).1f(\'63\',$.H(B(a){r(8.18){r(a.3i==27&&8.1h.u.2H){8.1i()}r(8.V.2p>1){r(a.3i==37){8.q.F.1S.2L(\'1n\',a)}r(a.3i==39){8.q.F.1T.2L(\'1n\',a)}}}},8));8.q.F.17.1f(\'1n\',$.H(B(a){8.3X();a.1U()},8));8.1h.X.1f(\'Y\',$.H(B(){$(8).2L(\'Y\')},8));8.1h.X.1f(\'1r\',$.H(B(){$(8).2L(\'1i\')},8))},3Y:B(b){r($.2M(b)&&b.2c>1&&b[0].1O(8.3c)){8.V.3j=b;8.V.1l=0;8.V.2p=b.2c;b=b[0];8.q.F.1S.2b(\'1n\');8.q.F.1T.2b(\'1n\');8.q.F.1S.1f(\'1n\',$.H(B(a){r(8.V.1l-1<0){8.V.1l=8.V.2p-1}J{8.V.1l=8.V.1l-1}8.Y(8.V.3j[8.V.1l]);a.1U()},8));8.q.F.1T.1f(\'1n\',$.H(B(a){r(8.V.1l+1>=8.V.2p){8.V.1l=0}J{8.V.1l=8.V.1l+1}8.Y(8.V.3j[8.V.1l]);a.1U()},8))}r(8.V.2p>1){r(8.q.1X.I("1w")=="1K"){8.q.F.G.Y()}8.q.F.1S.Y();8.q.F.1T.Y()}J{8.q.F.1S.1r();8.q.F.1T.1r()}},3Z:B(b,c){$.1P(b,$.H(B(i,a){8.q.F.1N.29($(\'<a 1y="#" R="\'+a[\'R\']+\'">\'+a.W+\'</a>\').1f(\'1n\',$.H(B(e){r($.1L(a.1M)){a.1M(8.1b.1V,8,c[8.V.1l||0])}e.1U()},8)))},8));8.q.F.G.Y()},Y:B(b,c,d,f){E g=\'\';E h=O;r(($.2M(b)&&b.2c<=1)||b==\'\'){S O};8.1Z();h=8.18;8.41();r(!h){8.1Y()};8.3Y(b,c);r($.2M(b)&&b.2c>1){b=b[0]}E j=b.N("%42%");E b=j[0];E k=j[1]||\'\';c=$.1m(K,{\'A\':0,\'C\':0,\'2y\':0,\'3k\':\'\',\'21\':k,\'3l\':K,\'P\':-1,\'1e\':O,\'2N\':\'\',\'2O\':K,\'2P\':B(){},\'2Q\':B(){}},c||{});8.u.2P=c.2P;8.u.2Q=c.2Q;8.u.2O=c.2O;43=8.44(b);c=$.1m({},c,43);E l={x:$(1c).A(),y:$(1c).C()};r(c.A&&(c.A+\'\').22("p")>0){c.A=(l.x-20)*c.A.45(0,c.A.22("p"))/26}r(c.C&&(c.C+\'\').22("p")>0){c.C=(l.y-20)*c.C.45(0,c.C.22("p"))/26}8.q.U.2b(\'1z\');8.1h.u.2H=!c.2y;8.q.F.17.2d(8.u.D+\'-1a-3m\');8.q.F.17.2q(8.u.D+\'-1a-17\');8.1t=!(c.P>0||(c.P==-1&&c.3l));r($.2M(c.F)){8.3Z(c.F,f)}r(!8.q.F.1N.46(":1o")){8.q.F.G.Y()}r(c.3k!=\'\'){g=c.3k}J r(c.1e){g=\'1e\'}J r(b.1O(8.3c)){g=\'1b\'}J{$.1P(8.3G,$.H(B(i,e){r(b.N(\'?\')[0].1O(e.11)){r(e.N){47=b.N(e.N)[e.Z].N(\'?\')[0].N(\'&\')[0];b=e.12.2e("%T%",47)}g=e.1e?\'1e\':\'1F\';c.A=c.A?c.A:8.u.1F.A;c.C=c.C?c.C:8.u.1F.C;S O}},8));$.1P(8.3L,B(i,e){r(b.1O(e.11)){g=\'1e\';r(e.N){T=b.N(e.N)[e.Z];b=e.12.2e("%T%",T).2e("%A%",c.A).2e("%C%",c.C)}}});r(g==\'\'){r(b.1O(/#/)){3n=b.64(b.22("#"));r($(3n).2c>0){g=\'3o\';b=3n}J{g=\'1Q\'}}J{g=\'1Q\'}}}r(g==\'1b\'){8.q.F.17.1r();E m=2l 65();m.48=$.H(B(){m.48=B(){};r(!8.18){S O};8.1b={A:m.A,C:m.C,1V:m.1V};r(c.A){A=1C(c.A);C=1C(c.C)}J{r(c.3l){E a=8.3p(m.A,m.C);A=a.A;C=a.C;r(m.A!=A||m.C!=C){8.q.F.G.Y();8.q.F.17.Y()}}J{A=m.A;C=m.C}}8.15(A,C);8.q.U.1f(\'1z\',$.H(B(){r(!8.18){S O};8.2R(\'1b\');8.q.U.1o();8.q.W.1o();r(c.21!=\'\'){8.q.U.29($(\'<G R="\'+8.u.D+\'-21"></G>\').W(c.21))}$(m).1r();8.q.U.29(m);$(m).1W().66(3B,$.H(B(){8.q.U.2d(8.u.D+\'-1Z\')},8))},8))},8);m.67=$.H(B(){8.2f("3q 49 1b 4a 4b 3r. 4c 4d 4e 4f.")},8);m.1V=b}J r(g==\'1F\'||g==\'3o\'||g==\'1Q\'){r(g==\'3o\'){8.2r($(b).68(K).Y(),c.A>0?c.A:$(b).4g(K),c.C>0?c.C:$(b).4h(K),\'W\')}J r(g==\'1Q\'){r(c.A){A=c.A;C=c.C}J{8.2f("4i 4j 4k 4l 2S 4m 4n 2S Q.");S O}r(8.1R.1Q){8.1R.1Q.69()};8.1R.1Q=$.1Q({12:b,4o:"6a",6b:O,6c:"W",2f:$.H(B(){8.2f("3q 49 6d 4a 4b 3r. 4c 4d 4e 4f.")},8),6e:$.H(B(a){8.2r($(a),A,C,\'W\')},8)})}J r(g==\'1F\'){E n=8.4p(b,c.A,c.C,c.2N);8.2r($(n),c.A,c.C,\'W\')}}J r(g==\'1e\'){r(c.A){A=c.A;C=c.C}J{8.2f("4i 4j 4k 4l 2S 4m 4n 2S Q.");S O}8.2r($(\'<1e T="3P\'+(2l 3d().3e())+\'" 3Q="0" 1V="\'+b+\'" 1x="2o:0; 3s:0;"></1e>\').I(c),c.A,c.C,\'W\')}8.1M=$.1L(d)?d:B(e){}},4p:B(a,b,c,d){r(2T d==\'23\'||d==\'\')d=\'2E=1&1u=1&6f=1\';E e=\'<4q A="\'+b+\'" C="\'+c+\'" 6g="6h:6i-6j-6k-6l-6m"><16 D="6n" 1A="\'+a+\'" 1x="2o:0; 3s:0;"></16>\';e+=\'<16 D="6o" 1A="K"></16><16 D="4r" 1A="4s"></16><16 D="4t" 1A="4u"></16>\';e+=\'<16 D="2E" 1A="K"></16><16 D="1u" 1A="K"></16><16 D="2N" 1A="\'+d+\'"></16>\';e+=\'<16 D="A" 1A="\'+b+\'"></16><16 D="C" 1A="\'+c+\'"></16>\';e+=\'<2j 1V="\'+a+\'" 4o="6p/x-6q-1F" 4r="4s" 6r="K" 2E="K" 1u="K" 2N="\'+d+\'" 4t="4u" A="\'+b+\'" C="\'+c+\'" 1x="2o:0; 3s:0;"></2j></4q>\';S e},2r:B(a,b,c,d){r(2T d!==\'23\'){8.2R(d)}8.15(b+30,c+20);8.q.U.1f(\'1z\',$.H(B(){8.q.U.2d(8.u.D+\'-1Z\');8.q.W.W(a);8.q.W.W(a);8.q.U.2b(\'1z\');r(8.u.2O&&2T 4v!==\'23\'){4v.6s()}8.u.2P()},8))},1Y:B(w,h){E a={x:$(1c).A(),y:$(1c).C()};E b={x:$(1c).4w(),y:$(1c).4x()};E c=h!=2U?h:8.q.Q.4h();E d=w!=2U?w:8.q.Q.4g();E y=0;E x=0;x=b.x+((a.x-d)/2);r(8.18){y=b.y+(a.y-c)/2}J r(8.u.3F=="2K"){y=(b.y+a.y+14)}J{y=(b.y-c)-14}r(8.18){r(!8.1R.P){8.1s(8.q.P,{\'13\':x},\'P\')}8.1s(8.q.P,{\'1d\':y},\'P\')}J{8.q.P.I({\'13\':x,\'1d\':y})}},1s:B(d,f,g,h,i){r(3t($.3u.2W)<1.6){E j=$.6t({2s:i||O,2B:8.u[g+\'4y\'],2V:8.u[g+\'4z\'],1z:($.1L(h)?$.H(h,8):2U)});S d[j.2s===O?"1P":"2s"](B(){E c=$.1m({},j),4A=8;c.6u=$.1m({},f);$.1P(f,B(a,b){E e=2l $.2w(4A,c,a);e.1N(e.6v(K)||0,b,"6w")});S K})}J{d.2g(f,{2s:i||O,2B:8.u[g+\'4y\'],2V:8.u[g+\'4z\'],1z:($.1L(h)?$.H(h,8):2U)})}},15:B(x,y){r(8.18){E a={x:$(1c).A(),y:$(1c).C()};E b={x:$(1c).4w(),y:$(1c).4x()};E c=(b.x+(a.x-(x+14))/2);E d=(b.y+(a.y-(y+14))/2);r($.1B.2u||($.1B.6x&&(3t($.1B.2v)<1.9))){y+=4}8.1R.P=K;8.1s(8.q.P.1W(),{\'13\':(8.1t&&c<0)?0:c,\'1d\':(8.1t&&(y+14)>a.y)?b.y:d},\'P\',$.H(B(){8.P=O},8.1R));8.1s(8.q.W,{\'C\':y-20},\'15\');8.1s(8.q.Q.1W(),{\'A\':(x+14),\'C\':y-20},\'15\',{},K);8.1s(8.q.F.G,{\'A\':x,\'C\':y},\'15\');8.1s(8.q.1X,{\'A\':x},\'15\');8.1s(8.q.1X,{\'1d\':(y-4B)/2},\'P\');8.1s(8.q.U.1W(),{\'A\':x,\'C\':y},\'15\',B(){$(8.q.U).3h(\'1z\')})}J{8.q.W.I({\'C\':y-20});8.q.Q.I({\'A\':x+14,\'C\':y-20});8.q.U.I({\'A\':x,\'C\':y});8.q.F.G.I({\'A\':x,\'C\':y});8.q.1X.I({\'A\':x,\'C\':4B})}},1i:B(a){8.18=O;8.V={};8.u.2Q();r($.1B.2u){8.q.U.1o();8.q.W.1o();8.q.F.1N.1o();8.q.P.I({\'1w\':\'1K\'});8.1Y()}J{8.q.P.2g({\'1D\':0,\'1d\':\'-=40\'},{2s:O,1z:($.H(B(){8.q.U.1o();8.q.W.1o();8.q.F.1N.1o();8.1Y();8.q.P.I({\'1w\':\'1K\',\'1D\':1,\'3v\':\'18\'})},8))})}8.1h.1r($.H(B(){r($.1L(8.1M)){8.1M.3z(8,$.6y(a))}},8));8.q.U.1W(K,O);8.q.U.2b(\'1z\')},41:B(){8.18=K;r($.1B.2u){8.q.P.6z(0).1x.6A(\'6B\');8.q.F.G.I({\'1q\':\'3O\'}).I({\'1q\':\'2n\'})}8.q.P.I({\'1w\':\'3g\',\'3v\':\'18\'}).Y();8.1h.Y()},25:B(){E x=8.u.25.3D;E d=8.u.25.2B;E t=8.u.25.1E;E o=8.u.25.3E;E l=8.q.P.1q().13;E e=8.q.P;6C(i=0;i<o;i++){e.2g({13:l+x},d,t);e.2g({13:l-x},d,t)};e.2g({13:l+x},d,t);e.2g({13:l},d,t)},2R:B(a){r(a!=8.1G){8.q.Q.2d(8.u.D+\'-1G-\'+8.1G);8.1G=a;8.q.Q.2q(8.u.D+\'-1G-\'+8.1G)}8.q.P.I({\'3v\':\'18\'})},2f:B(a){6D(a);8.1i()},44:B(d){E e=/Q\\[(.*)?\\]$/i;E f={};r(d.1O(/#/)){d=d.4C(0,d.22("#"))}d=d.4C(d.22(\'?\')+1).N("&");$.1P(d,B(){E a=8.N("=");E b=a[0];E c=a[1];r(b.1O(e)){r(6E(c)){c=1C(c)}J r(c.4D()=="K"){c=K}J r(c.4D()=="O"){c=O}f[b.1O(e)[1]]=c}});S f},3p:B(x,y){E a=$(1c).A()-50;E b=$(1c).C()-50;r(x>a){y=y*(a/x);x=a;r(y>b){x=x*(b/y);y=b}}J r(y>b){x=x*(b/y);y=b;r(x>a){y=y*(a/x);x=a}}S{A:1C(x),C:1C(y)}},1Z:B(){8.2R(\'1b\');8.q.U.1o();8.q.W.1o();8.q.U.2q(8.u.D+\'-1Z\');8.q.F.G.1r();r(8.18==O){8.1Y(8.u.A,8.u.C);8.15(8.u.A,8.u.C)}},3X:B(){r(8.1t){8.1t=O;8.q.F.17.2d(8.u.D+\'-1a-3m\');8.q.F.17.2q(8.u.D+\'-1a-17\');E a=8.3p(8.1b.A,8.1b.C);8.1Z();8.q.F.G.Y();8.15(a.A,a.C)}J{8.1t=K;8.q.F.17.2d(8.u.D+\'-1a-17\');8.q.F.17.2q(8.u.D+\'-1a-3m\');8.1Z();8.q.F.G.Y();8.15(8.1b.A,8.1b.C)}}},Q:B(a,b,c){r(2T a!==\'23\'){S $.2i.Y(a,b,c)}J{S $.2i}}});$.3u.Q=B(l,m){S $(8).6F(\'1n\',B(e){e.1U();$(8).6G();E b=[];E c=$.3w($(8).2t(\'2C\'))||\'\';E d=$.3w($(8).2t(\'21\'))||\'\';E f=$(8);c=c.2e(\'[\',\'\\\\\\\\[\');c=c.2e(\']\',\'\\\\\\\\]\');r(!c||c==\'\'||c===\'6H\'){b=$(8).2t(\'1y\');3x=(d||d!=\'\')?$.1m({},l,{\'21\':d}):l}J{E g=[];E h=[];E j=[];E k=O;$("a[2C="+c+"], 6I[2C="+c+"]").1P($.H(B(i,a){r(8==a){h.6J(a);k=K}J r(k==O){j.3y(a)}J{h.3y(a)}},8));g=f=h.6K(j);$.1P(g,B(){E a=$.3w($(8).2t(\'21\'))||\'\';a=a?"%42%"+a:\'\';b.3y($(8).2t(\'1y\')+a)});r(b.2c==1){b=b[0]}3x=l}$.2i.Y(b,3x,m,f)})};$(B(){r(3t($.3u.2W)>1.2){$.2i.2G()}J{6L"3q 2h 2v 6M 6N 3r 46 6O 6P. 6Q 6R 6S 2h 1.3+";}})})(2h);',62,427,'||||||||this||||||||||||||||||esqueleto|if|||options||||||width|function|height|name|var|buttons|div|proxy|css|else|true|com|amp|split|false|move|lightbox|class|return|id|background|gallery|html|element|show|index||reg|url|left||resize|param|max|visible|http|button|image|window|top|iframe|bind|zIndex|overlay|close|shim|span|current|extend|click|empty|www|position|hide|morph|maximized|autoplay|video|display|style|href|complete|value|browser|parseInt|opacity|transition|flash|mode|swf|google|border|none|isFunction|callback|custom|match|each|ajax|animations|prev|next|preventDefault|src|stop|navigator|movebox|loading||title|indexOf|undefined|easeOutBack|shake|100||maps|append|right|unbind|length|removeClass|replace|error|animate|jQuery|LightBoxObject|embed|collegehumor|new|hidden|absolute|margin|total|addClass|appendhtml|queue|attr|msie|version|fx|step|modal|showDuration|closeDuration|duration|rel|moogaloop|autostart||create|hideOnClick|target|document|bottom|triggerHandler|isArray|flashvars|cufon|onOpen|onClose|changemode|the|typeof|null|easing|jquery|youtube|metacafe|dailymotion||vimeo|player|fullscreen|megavideo|gametrailers|ustream||twitvid||vzaar|bing|imgsreg|Date|getTime|body|block|trigger|keyCode|images|force|autoresize|min|obj|inline|calculate|The|loaded|padding|parseFloat|fn|overflow|trim|copy_options|push|apply|defaults|400|1000|distance|loops|emergefrom|videoregs|watch|clip_id|tv|wordpress|mapsreg|output|inject|static|IF_|frameborder|fadeTo|middle|Previous|Next|999|addevents|maximinimize|create_gallery|custombuttons||open|LIGHTBOX|urloptions|unserialize|substring|is|videoid|onload|requested|cannot|be|Please|try|again|later|outerWidth|outerHeight|You|need|to|specify|size|of|type|swf2html|object|allowscriptaccess|always|wmode|transparent|Cufon|scrollLeft|scrollTop|Duration|Transition|self|90|slice|toLowerCase|arguments|prototype|update|call|elem|now|prop|_default|70158|7000|470|280|FFFFFF|200|moveDuration|resizeDuration|showTransition|closeTransition|moveTransition|resizeTransition|640|360||fs|fplayer|playerVars|autoPlay|yes|additionalInfos|autoStart|videoplay|googleplayer|hl|en|docId|hd|show_title|show_byline|show_portrait|color|remote_wrap|php|mid|collegehumornew|jukebox|use_node_id|loc|vid|disabledComment|beginPercent|5331|endPercent|6292|locale|en_US|s0|videopress|guid|01|videos|view|flashplayer|emid|3ede2bc8|227d|8fec|d84a|00b6ff19b1cb|streetview|layer|svembed|jpg|jpeg|gif|png|bmp|tiff|fixed|relative|scrolling|no|insertAfter|Close|init|Maximize|end|scroll|keydown|substr|Image|fadeIn|onerror|clone|abort|GET|cache|dataType|content|success|fullscreenbutton|classid|clsid|D27CDB6E|AE6D|11cf|96B8|444553540000|movie|allowFullScreen|application|shockwave|allowfullscreen|refresh|speed|curAnim|cur|px|mozilla|makeArray|get|removeAttribute|filter|for|alert|isFinite|live|blur|nofollow|area|unshift|concat|throw|that|was|too|old|Lightbox|Evolution|requires'.split('|'),0,{}));





/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/

// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing['jswing'] = jQuery.easing['swing'];

jQuery.extend( jQuery.easing,
{
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		//alert(jQuery.easing.default);
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
	},
	easeInQuad: function (x, t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	easeOutQuad: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	easeInOutQuad: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	easeInCubic: function (x, t, b, c, d) {
		return c*(t/=d)*t*t + b;
	},
	easeOutCubic: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	},
	easeInOutCubic: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t + b;
		return c/2*((t-=2)*t*t + 2) + b;
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInQuint: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	},
	easeInSine: function (x, t, b, c, d) {
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
	},
	easeOutSine: function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	easeInOutSine: function (x, t, b, c, d) {
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
	},
	easeInExpo: function (x, t, b, c, d) {
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
	},
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	},
	easeInCirc: function (x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
	},
	easeOutCirc: function (x, t, b, c, d) {
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
	},
	easeInOutCirc: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
	},
	easeInElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	},
	easeOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeInOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158; 
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	},
	easeInOutBounce: function (x, t, b, c, d) {
		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
	}
});

/*
 *
 * TERMS OF USE - EASING EQUATIONS
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2001 Robert Penner
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
 */
/*
|--------------------------------------------------------------------------
| UItoTop jQuery Plugin 1.1
| http://www.mattvarone.com/web-design/uitotop-jquery-plugin/
|--------------------------------------------------------------------------
*/

(function($){
	$.fn.UItoTop = function(options) {

 		var defaults = {
			text: 'To Top',
			min: 200,
			inDelay:600,
			outDelay:400,
  			containerID: 'toTop',
			containerHoverID: 'toTopHover',
			scrollSpeed: 1200,
			easingType: 'linear'
 		};

 		var settings = $.extend(defaults, options);
		var containerIDhash = '#' + settings.containerID;
		var containerHoverIDHash = '#'+settings.containerHoverID;
		
		$('body').append('<a href="#" id="'+settings.containerID+'">'+settings.text+'</a>');
		$(containerIDhash).hide().click(function(){
			$('html, body').animate({scrollTop:0}, settings.scrollSpeed, settings.easingType);
			$('#'+settings.containerHoverID, this).stop().animate({'opacity': 0 }, settings.inDelay, settings.easingType);
			return false;
		})
		.prepend('<span id="'+settings.containerHoverID+'"></span>')
		.hover(function() {
				$(containerHoverIDHash, this).stop().animate({
					'opacity': 1
				}, 600, 'linear');
			}, function() { 
				$(containerHoverIDHash, this).stop().animate({
					'opacity': 0
				}, 700, 'linear');
			});
					
		$(window).scroll(function() {
			var sd = $(window).scrollTop();
			if(typeof document.body.style.maxHeight === "undefined") {
				$(containerIDhash).css({
					'position': 'absolute',
					'top': $(window).scrollTop() + $(window).height() - 50
				});
			}
			if ( sd > settings.min ) 
				$(containerIDhash).fadeIn(settings.inDelay);
			else 
				$(containerIDhash).fadeOut(settings.Outdelay);
		});

};
})(jQuery);







