/*  ===========================
	VERSION INFO:
	-------------------
	A collection of various jQuery plugins
	Revision: v 1.4.1
	Last Updated: 2008-04-11 @ 15:35 EST
	=========================== */

// Rounded Corner Kit (http://meerbox.nl/?page_id=4)
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}('(x($){e 1o=x(19){e 2l=N.1X("M");g(1c 16==\'X\'&&$.11.Z){E r.1n(x(){})}e 1L=x(a,b){E a-b};e 1k=x(a){e b=a.2n();E b.2k(1L)[0]};e G=x(12,1v){E J($.t(12.1t?12[0]:12,1v))||0};e Q=x(M,c,A,D,F,1P){e 1M=/^1l\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$/;e P=1M.2p(D);g(P){17=n m(J(P[1]),J(P[2]),J(P[3]));D=\'2h(\'+17[0]+\', \'+17[1]+\', \'+17[2]+\')\'}e F=J(F);e q=M.1y(\'2d\');g(c==1){q.1x=D;q.2e(0,0,1,1);E}g(A==\'y\'){e k=n m(0,0,c,0,c,0,0,c,0,0)}C g(A==\'w\'){e k=n m(c,0,c,c,c,0,0,0,0,0)}C g(A==\'v\'){e k=n m(0,c,c,c,0,c,0,0,0,c)}C g(A==\'u\'){e k=n m(c,c,c,0,c,0,0,c,c,c)}q.1x=D;q.1u();q.1w(k[0],k[1]);q.1W(k[2],k[3]);g(A==\'u\')q.1r(k[4],k[5],c,c,k[6],k[7]);C q.1r(k[4],k[5],0,0,k[6],k[7]);q.1W(k[8],k[9]);q.2Q();g(F>0&&F<c){e h=F/2;g(A==\'y\'){e k=n m(c-h,h,c-h,h,h,c-h);e K=n m(0,0)}C g(A==\'w\'){e k=n m(c-h,c-h,c-h,h,h,h);e K=n m(0,0)}C g(A==\'v\'){e k=n m(c-h,c-h,h,c-h,h,h,h,c-h);e K=n m(0,0)}C g(A==\'u\'){e k=n m(c-h,h,c-h,h,h,c-h,c-h,c-h);e K=n m(c,c)}q.2J=1P;q.2I=F;q.1u();q.1w(k[0],k[1]);q.1r(k[2],k[3],K[0],K[1],k[4],k[5]);q.2F()}};e R=x(p,c){e j=N.1X(\'M\');j.1I("1H",c);j.1I("1G",c);j.18.2w="2v";j.18.W="1E";j.2r="1D";j=p.2o(j);g(!j.1y&&1c 16!=\'X\'){e j=16.2m(j)}E j};e o=(19||"").1C();e c=J((o.1B(/(\\d+)2j/)||[])[1])||15;e D=((o.1B(/(#[0-2i-f]+)/)||[])[1]);g(c==15){c="1z"}e 2g={T:0,B:1};e l={y:/14|y/.13(o),w:/14|w/.13(o),v:/1b|v/.13(o),u:/1b|u/.13(o)};g(!l.y&&!l.w&&!l.v&&!l.u){l={y:1,w:1,v:1,u:1}}E r.1n(x(){e j=$(r);g($.11.Z){r.18.2f=1}e 1a=1k(n m(G(r,\'1H\'),G(r,\'1G\')));g(c=="1z"){c=1a/4;g(c>10){c=10}}g(1a<c){c=(1a/2)}j.2c("M.1D").2b();g(j.t(\'W\')==\'2a\'){j.t(\'W\',\'29\')}C g(j.t(\'W\')==\'28\'&&$.11.Z&&!(N.27==\'26\'&&1c N.25.18.24!="X")){j.t(\'W\',\'1E\')}j.t(\'23\',\'22\');e 1g=G(r,\'21\');e 1e=G(r,\'20\');e 1f=G(r,\'1Z\');e 1s=G(r,\'2R\');e L=n m();g(l.y||l.w){L.1d(1g)}g(l.u||l.w){L.1d(1e)}g(l.u||l.v){L.1d(1f)}g(l.v||l.y){L.1d(1s)}O=1k(L);e 1q=0-1g;e 1i=0-1e;e 1h=0-1f;e 1p=0-1s;g(l.y){e y=$(R(r,c)).t({1V:1p,14:1q}).V(0)}g(l.w){e w=$(R(r,c)).t({1A:1i,14:1q}).V(0)}g(l.v){e v=$(R(r,c)).t({1V:1p,1b:1h}).V(0)}g(l.u){e u=$(R(r,c)).t({1A:1i,1b:1h}).V(0)}g(D==X){e H=j.1U();e z=H.t(\'1T-1S\');2P((z=="1R"||z=="1l(0, 0, 0, 0)")&&H.V(0).2N.1C()!="2M"){z=H.t(\'1T-1S\');H=H.1U()}}C{z=D}g(z=="1R"||z=="1l(0, 0, 0, 0)"){z="#2L"}g(l.y){Q(y,c,\'y\',z,O,j.t(\'1O\'))}g(l.w){Q(w,c,\'w\',z,O,j.t(\'1O\'))}g(l.v){Q(v,c,\'v\',z,O,j.t(\'1F\'))}g(l.u){Q(u,c,\'u\',z,O,j.t(\'1F\'))}j.2H(\'2G\')})};g($.11.Z&&1c 16==\'X\'){e I=n m();e U=n m();$.1m.S=x(19){I[I.Y]=r;U[U.Y]=19;E r.1n(x(){})};N.2E("2D",2C,2B);e j=$("2A[@1J*=1t.S.]");g(j.Y==1){e 1Y=j.2z(\'1J\');e 1j=1Y.2y(\'/\');1j.2x();e 1K=1j.2K(\'/\')||\'.\';e 1N=1K+\'/2u.2t.2O\';$.2s(1N,x(){1Q()})}e 1Q=x(){$.1m.S=1o;2q(e i=0;i<I.Y;i++){I[i].S(U[i])}I=15;U=15}}C{$.1m.S=1o}})(2S);',62,179,'||||||||||||radius||var||if|offset||elm|steps|opts|Array|new|||ctx|this||css|br|bl|tr|function|tl|bg|r_type||else|bg_color|return|border_width|getCSSint|current_p|corner_buffer|parseInt|curve_to|bordersWidth|canvas|document|borderswidth_smallest|bits|drawRoundCornerCanvasShape|creatCanvas|corner||corner_buffer_args|get|position|undefined|length|msie||browser|el|test|top|null|G_vmlCanvasManager|channels|style|options|widthheight_smallest|bottom|typeof|push|border_r|border_b|border_t|p_bottom|p_right|pathArray|getMin|rgba|fn|each|_corner|p_left|p_top|bezierCurveTo|border_l|jquery|beginPath|prop|moveTo|fillStyle|getContext|auto|right|match|toLowerCase|cornercanvas|absolute|borderBottomColor|width|height|setAttribute|src|base|asNum|reg|excanvasjs|borderTopColor|border_color|execbuffer|transparent|color|background|parent|left|lineTo|createElement|jc_src|borderBottomWidth|borderRightWidth|borderTopWidth|visible|overflow|maxHeight|body|CSS1Compat|compatMode|fixed|relative|static|remove|children||fillRect|zoom|edges|rgb|9a|px|sort|testcanvas|initElement|concat|appendChild|exec|for|className|getScript|pack|excanvas|block|display|pop|split|attr|script|true|false|BackgroundImageCache|execCommand|stroke|roundCornersParent|addClass|lineWidth|strokeStyle|join|ffffff|html|tagName|js|while|fill|borderLeftWidth|jQuery'.split('|'),0,{}))

// width / height reading tools (http://plugins.jquery.com/project/dimensions)
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}('(5($){$.19={P:\'1.2\'};$.u([\'j\',\'w\'],5(i,d){$.q[\'O\'+d]=5(){p(!3[0])6;g a=d==\'j\'?\'s\':\'m\',e=d==\'j\'?\'D\':\'C\';6 3.B(\':y\')?3[0][\'L\'+d]:4(3,d.x())+4(3,\'n\'+a)+4(3,\'n\'+e)};$.q[\'I\'+d]=5(b){p(!3[0])6;g c=d==\'j\'?\'s\':\'m\',e=d==\'j\'?\'D\':\'C\';b=$.F({t:Z},b||{});g a=3.B(\':y\')?3[0][\'8\'+d]:4(3,d.x())+4(3,\'E\'+c+\'w\')+4(3,\'E\'+e+\'w\')+4(3,\'n\'+c)+4(3,\'n\'+e);6 a+(b.t?(4(3,\'t\'+c)+4(3,\'t\'+e)):0)}});$.u([\'m\',\'s\'],5(i,b){$.q[\'l\'+b]=5(a){p(!3[0])6;6 a!=W?3.u(5(){3==h||3==r?h.V(b==\'m\'?a:$(h)[\'U\'](),b==\'s\'?a:$(h)[\'T\']()):3[\'l\'+b]=a}):3[0]==h||3[0]==r?S[(b==\'m\'?\'R\':\'Q\')]||$.N&&r.M[\'l\'+b]||r.A[\'l\'+b]:3[0][\'l\'+b]}});$.q.F({z:5(){g a=0,f=0,o=3[0],8,9,7,v;p(o){7=3.7();8=3.8();9=7.8();8.f-=4(o,\'K\');8.k-=4(o,\'J\');9.f+=4(7,\'H\');9.k+=4(7,\'Y\');v={f:8.f-9.f,k:8.k-9.k}}6 v},7:5(){g a=3[0].7;G(a&&(!/^A|10$/i.16(a.15)&&$.14(a,\'z\')==\'13\'))a=a.7;6 $(a)}});5 4(a,b){6 12($.11(a.17?a[0]:a,b,18))||0}})(X);',62,72,'|||this|num|function|return|offsetParent|offset|parentOffset|||||borr|top|var|window||Height|left|scroll|Left|padding|elem|if|fn|document|Top|margin|each|results|Width|toLowerCase|visible|position|body|is|Right|Bottom|border|extend|while|borderTopWidth|outer|marginLeft|marginTop|client|documentElement|boxModel|inner|version|pageYOffset|pageXOffset|self|scrollTop|scrollLeft|scrollTo|undefined|jQuery|borderLeftWidth|false|html|curCSS|parseInt|static|css|tagName|test|jquery|true|dimensions'.split('|'),0,{}))

// slide jumper (v 0.7, developed by Jade Rauenzahn - jade.rauenzahn@foxnews.com)
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};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}('s i(a,b,c,d,e){0 f=$(a).l({9:7});0 g=$(a).4().1;0 h=(f*(g/f));r(e){$(b+" > 2").q({1:-h},{\'p\':\'k\',\'j\':8})}m{$(b+" > 2").n({1:-h+\'o\'})}$(d+" > 6").5(\'3\');$(c).t(\'3\')}',30,30,'var|left|div|active|position|removeClass|li|true|350|margin|||||||||jumpSlide|duration|swing|outerWidth|else|css|px|easing|animate|if|function|addClass'.split('|'),0,{}))
// eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};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}('n 6(a,b,c,d){0 e=$(a).9({7:5});0 f=$(a).3().1;0 g=(e*(f/e));$(b+" > m").l({1:-g},{\'h\':\'8\',\'i\':j});$(d+" > k").4(\'2\');$(c).o(\'2\')}',25,25,'var|left|active|position|removeClass|true|jumpSlide|margin|swing|outerWidth||||||||easing|duration|350|li|animate|div|function|addClass'.split('|'),0,{}))

// jCord - a simple accordion solution (v 0.5, developed by Jade Rauenzahn - jade.rauenzahn@foxnews.com)
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};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}('s v(a,b,c,d){2 e=$(a+" > "+b);x(2 i=0;i<e.5;i++){2 f="n"+(i+1);2 g="6"+(i+1);$(e[i]).m("l",f);4(c){$("#"+f+" w").m("l",g)}$(d).k(\'3\')}};s u(a,b,c){2 d=$(".3");2 e=$(".3").t().m("l");2 f=$(b+" + p");2 g=(b.o(b.5-1,b.5))-1;2 h="#n"+(g);2 i=g+1;4(e){2 j=e.o(e.5-1,e.5)}q{2 j=1}4(f.y("3")){4(i!=1){f.9().r("3");$(h+" + p").9().k("3");4(c){$("#6"+i).8("7");$("#6"+g).8("7")}}}q{d.9().r("3");f.9().k("3");4(c){$("#6"+i).8("7");$("#6"+j).8("7")}}}',35,35,'||var|show|if|length|toggle|180|rotateLeft|slideToggle|||||||||||addClass|id|attr|trigger|substring|div|else|removeClass|function|prev|jCord|jCordInit|img|for|hasClass'.split('|'),0,{}));

// rotation plugin (http://code.google.com/p/jquery-rotate/)
jQuery.fn.rotate=function(angle,whence){var p=this.get(0);if(!whence){p.angle=((p.angle==undefined?0:p.angle)+angle)%360}else{p.angle=angle}if(p.angle>=0){var rotation=Math.PI*p.angle/180}else{var rotation=Math.PI*(360+p.angle)/180}var costheta=Math.cos(rotation);var sintheta=Math.sin(rotation);if(document.all&&!window.opera){var canvas=document.createElement('img');canvas.src=p.src;canvas.height=p.height;canvas.width=p.width;canvas.style.filter="progid:DXImageTransform.Microsoft.Matrix(M11="+costheta+",M12="+(-sintheta)+",M21="+sintheta+",M22="+costheta+",SizingMethod='auto expand')"}else{var canvas=document.createElement('canvas');if(!p.oImage){canvas.oImage=new Image();canvas.oImage.src=p.src}else{canvas.oImage=p.oImage}canvas.style.width=canvas.width=Math.abs(costheta*canvas.oImage.width)+Math.abs(sintheta*canvas.oImage.height);canvas.style.height=canvas.height=Math.abs(costheta*canvas.oImage.height)+Math.abs(sintheta*canvas.oImage.width);var context=canvas.getContext('2d');context.save();if(rotation<=Math.PI/2){context.translate(sintheta*canvas.oImage.height,0)}else if(rotation<=Math.PI){context.translate(canvas.width,-costheta*canvas.oImage.height)}else if(rotation<=1.5*Math.PI){context.translate(-costheta*canvas.oImage.width,canvas.height)}else{context.translate(0,-sintheta*canvas.oImage.width)}context.rotate(rotation);context.drawImage(canvas.oImage,0,0,canvas.oImage.width,canvas.oImage.height);context.restore()}canvas.id=p.id;canvas.angle=p.angle;p.parentNode.replaceChild(canvas,p)}
jQuery.fn.rotateRight = function(angle) { this.rotate(angle==undefined?90:angle); }
jQuery.fn.rotateLeft = function(angle) { this.rotate(angle==undefined?-90:-angle); }

// column equalizer (http://www.tomdeater.com/jquery/equalize_columns/)
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};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}('(2($){$.c.f=2(){6 a=0;e 1.4("3","8").5(2(){a=9.b(a,1.7)}).4("3",a).5(2(){6 h=1.7;d(h>a){$(1).4("3",a-(h-a))}})}})(g);',18,18,'|this|function|height|css|each|var|offsetHeight|auto|Math||max|fn|if|return|equalizeCols|jQuery|'.split('|'),0,{}))

// dragger (http://fromvega.com/wordpress/2007/07/14/easydrag-jquery-plugin/)
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}('(3($){2 d=o;2 f=M;2 g={};2 h={};2 i;2 j;2 k;2 l;2 m={};$.r=3(e){2 a=0;2 b=0;6(!e)2 e=X.W;6(e.t||e.w){a=e.t;b=e.w}S 6(e.v||e.A){a=e.v+7.C.B+7.D.B;b=e.A+7.C.F+7.D.F}5{\'x\':a,\'y\':b}};$.s=3(e){2 a=$.r(e);2 b=(a.x-i);2 c=(a.y-j);$(f).n("11",(k+c));$(f).n("10",(l+b))};$(7).Y(3(e){6(d&&m[f.4]==\'p\'){$.s(e);6(h[f.4]!=q){h[f.4](e,f)}5 o}});$(7).U(3(e){6(d&&m[f.4]==\'p\'){d=o;6(g[f.4]!=q){g[f.4](e,f)}5 o}});$.8.T=3(a){5 1.9(3(){h[1.4]=a})};$.8.R=3(a){5 1.9(3(){g[1.4]=a})};$.8.Q=3(){5 1.9(3(){m[1.4]=\'P\'})};$.8.O=3(){5 1.9(3(){m[1.4]=\'p\'})};$.8.u=3(b){5 1.9(3(){6(q==1.4||!1.4.N)1.4="u"+(L K().J());m[1.4]="p";$(1).n("V","I");$(1).H(3(e){$(1).n("G","Z");$(1).n("z-15","14");d=E;f=1;2 a=$.r(e);i=a.x;j=a.y;k=1.13;l=1.12;$.s(e);5 b?E:o})})}})(16);',62,69,'|this|var|function|id|return|if|document|fn|each||||||||||||||css|false|on|undefined|getMousePosition|updatePosition|pageX|easydrag|clientX|pageY||||clientY|scrollLeft|body|documentElement|true|scrollTop|position|mousedown|move|getTime|Date|new|null|length|dragOn|off|dragOff|ondrop|else|ondrag|mouseup|cursor|event|window|mousemove|absolute|left|top|offsetLeft|offsetTop|10000|index|jQuery'.split('|'),0,{}))

// slideSwap (v 0.4, developed by Jade Rauenzahn, vamped by by Thomas Kim)
function swapSlideInit(blockBase) {for(var i=2; i<=$(blockBase).length; i++) {$(blockBase+':nth-child('+i+')').hide();}}
function swapTab(tab,triggerBase,blockBase) {
  var triggerIndex = tab.parentNode.getAttribute("id").split("b")[1];
  for(var i=0;i<7; i++) 
  { 
    if($(blockBase)[i].style.display!="none") {
      $(blockBase)[i].style.display="none";
      $(triggerBase)[i].className="";
    }
  }
  $(blockBase)[triggerIndex].style.display="block";
  $(triggerBase)[triggerIndex].className="active";
}

// Fade Toggle (why is this not standard? http://plugins.jquery.com/project/togglefade)
// NOTE: This can't be packed.
(function($) {
  $.fn.toggleFade = function(settings)
  {
  	settings = jQuery.extend(
  		{
        speedIn: "normal",
        speedOut: settings.speedIn
  		}, settings
  	);
  	return this.each(function()
  	{
  	  var isHidden = jQuery(this).is(":hidden");
      jQuery(this)[ isHidden ? "fadeIn" : "fadeOut" ]( isHidden ? settings.speedIn : settings.speedOut);
    });
  };
})(jQuery);