/*
 * jQuery UI Tabs and jQuery UI @VERSION
 *
 * Copyright (c) 2007, 2008 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Tabs
 *
 * Depends:
 *	ui.core.js
 */
eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}(';(4($){$.4W={4V:8,4U:20,4X:4Y,51:17,50:46,4Z:40,4T:35,4S:13,4M:27,4L:36,4K:45,4N:37,4O:4R,4Q:4P,52:53,5g:5f,5e:5h,5i:5l,5k:34,5j:33,5d:5c,56:39,55:16,54:32,57:9,58:38};c 3l=$.2O.11;c 2o=$.1e.4J&&(5b($.1e.2Z)<1.9);$.h={2Z:"@49",2J:{1g:4(3p,28,1o){c 2g=$.h[3p].1f;2D(c i 5a 1o){2g.29[i]=2g.29[i]||[];2g.29[i].1L([28,1o[i]])}},3E:4(K,k,12){c 1o=K.29[k];6(!1o){b}2D(c i=0;i<1o.C;i++){6(K.f[1o[i][0]]){1o[i][1].1R(K.q,12)}}}},1U:{},O:4(k){6($.h.1U[k]){b $.h.1U[k]}c 1q=$(\'<2X 4E="h-4g">\').F(k).O({4l:\'4n\',4m:\'-3t\',3u:\'-3t\',21:\'3e\'}).3h(\'3o\');$.h.1U[k]=!!((!(/4k|4o/).1p(1q.O(\'4p\'))||(/^[1-9]/).1p(1q.O(\'4i\'))||(/^[1-9]/).1p(1q.O(\'4f\'))||!(/2S/).1p(1q.O(\'4h\'))||!(/4j|4I\\(0, 0, 0, 0\\)/).1p(1q.O(\'4D\'))));3R{$(\'3o\').3d(0).4B(1q.3d(0))}3W(e){}b $.h.1U[k]},4H:4(e,a){6($(e).O(\'4G\')==\'2K\'){b l}c 1X=(a&&a==\'3u\')?\'4z\':\'4t\',2c=l;6(e[1X]>0){b S}e[1X]=1;2c=(e[1X]>0);e[1X]=0;b 2c}};$.2O.1u({11:4(){$("*",2).1g(2).U(4(){$(2).3k("11")});b 3l.1R(2,2t)},4s:4(){b 2.R(\'1Y\',\'4r\').O(\'3m\',\'\').1b(\'3v.h\')},4u:4(){b 2.R(\'1Y\',\'3q\').O(\'3m\',\'2S\').N(\'3v.h\',4(){b l})},4v:4(1I){b(1I!==1h?2.R("1I",2o?"3N:"+1I:1I):(2.R("1I")||"").1k(/^3N:/,""))},4w:4(1V,G){b(G!==1h?2.U(4(i,1y){(2o?1y.5n("5D://69.68.67/6a/6b/2Y","2Y:"+1V,G):$(1y).R("3x-"+1V,G))}):2.R(2o?"2Y:"+1V:"3x-"+1V))}});$.1u($.6d[\':\'],{w:4(a,i,m){b $.w(a,m[3])},6c:4(a,i,m){c 2f=a.2f.66();c 3F=4(q){4 2L(q){c 1Q=q.1Q;b(1Q.21!=\'2S\'&&1Q.60!=\'2K\')}c 25=2L(q);(25&&$.U($.6f(q,\'43\'),4(){b(25=2L(2))}));b 25};b(a.5Y>=0&&((\'a\'==2f&&a.z)||(/61|1B|62|3z/.1p(2f)&&\'2K\'!=a.19&&!a.v))&&3F(a))}});4 2m(P,2J,3y,12){4 3a(19){c 1i=$[P][2J][19]||[];b(1E 1i==\'1F\'?1i.2P(/,?\\s+/):1i)}c 1i=3a(\'2m\');6(12.C==1&&1E 12[0]==\'1F\'){1i=1i.2A(3a(\'3A\'))}b($.1O(3y,1i)!=-1)}$.1J=4(k,1f){c P=k.2P(".")[0];k=k.2P(".")[1];$.2O[k]=4(f){c 1T=(1E f==\'1F\'),12=3P.1f.6n.3E(2t,1);6(1T&&f.6h(0,1)==\'2s\'){b 2}6(1T&&2m(P,k,f,12)){c K=$.w(2[0],k);b(K?K[f].1R(K,12):1h)}b 2.U(4(){c K=$.w(2,k);(!K&&!1T&&$.w(2,k,6i $[P][k](2,f)));(K&&1T&&$.6j(K[f])&&K[f].1R(K,12))})};$[P]=$[P]||{};$[P][k]=4(q,f){c 7=2;2.14=k;2.3g=$[P][k].6k||k;2.3M=P+\'-\'+k;2.f=$.1u({},$.1J.1Z,$[P][k].1Z,$.3C&&$.3C.3d(q)[k],f);2.q=$(q).N(\'5W.\'+k,4(e,D,G){b 7.1G(D,G)}).N(\'5z.\'+k,4(e,D){b 7.3c(D)}).N(\'11\',4(){b 7.1w()});2.2x()};$[P][k].1f=$.1u({},$.1J.1f,1f);$[P][k].3A=\'28\'};$.1J.1f={2x:4(){},1w:4(){2.q.24(2.14)},28:4(D,G){c f=D,7=2;6(1E D=="1F"){6(G===1h){b 2.3c(D)}f={};f[D]=G}$.U(f,4(D,G){7.1G(D,G)})},3c:4(D){b 2.f[D]},1G:4(D,G){2.f[D]=G;6(D==\'v\'){2.q[G?\'F\':\'L\'](2.3M+\'-v\')}},3f:4(){2.1G(\'v\',l)},31:4(){2.1G(\'v\',S)},V:4(19,e,w){c 2M=(19==2.3g?19:2.3g+19);e=e||$.1n.5B({19:2M,2p:2.q[0]});b 2.q.3k(2M,[e,w],2.f[19])}};$.1J.1Z={v:l};$.h.3r={5w:4(){c 7=2;2.q.N(\'5v.\'+2.14,4(e){b 7.3w(e)}).N(\'2i.\'+2.14,4(e){6(7.2E){7.2E=l;b l}});6($.1e.22){2.3s=2.q.R(\'1Y\');2.q.R(\'1Y\',\'3q\')}2.5p=l},5o:4(){2.q.1b(\'.\'+2.14);($.1e.22&&2.q.R(\'1Y\',2.3s))},3w:4(e){(2.18&&2.1M(e));2.2k=e;c 7=2,3n=(e.5t==1),3J=(1E 2.f.2Q=="1F"?$(e.2p).3Z().1g(e.2p).15(2.f.2Q).C:l);6(!3n||3J||!2.3j(e)){b S}2.26=!2.f.2r;6(!2.26){2.5R=47(4(){7.26=S},2.f.2r)}6(2.2F(e)&&2.2u(e)){2.18=(2.2v(e)!==l);6(!2.18){e.5Q();b S}}2.2C=4(e){b 7.3G(e)};2.2B=4(e){b 7.1M(e)};$(3D).N(\'3I.\'+2.14,2.2C).N(\'3B.\'+2.14,2.2B);b l},3G:4(e){6($.1e.22&&!e.3z){b 2.1M(e)}6(2.18){2.2w(e);b l}6(2.2F(e)&&2.2u(e)){2.18=(2.2v(2.2k,e)!==l);(2.18?2.2w(e):2.1M(e))}b!2.18},1M:4(e){$(3D).1b(\'3I.\'+2.14,2.2C).1b(\'3B.\'+2.14,2.2B);6(2.18){2.18=l;2.2E=S;2.3i(e)}b l},2F:4(e){b(2z.5I(2z.3K(2.2k.3L-e.3L),2z.3K(2.2k.3H-e.3H))>=2.f.42)},2u:4(e){b 2.26},2v:4(e){},2w:4(e){},3i:4(e){},3j:4(e){b S}};$.h.3r.1Z={2Q:y,42:1,2r:0}})(2y);(4($){$.1J("h.5",{2x:4(){2.1K(S)},1G:4(D,G){6((/^p/).1p(D))2.1B(G);J{2.f[D]=G;2.1K()}},C:4(){b 2.$5.C},3b:4(a){b a.3O&&a.3O.1k(/\\s/g,\'2s\').1k(/[^A-5L-5M-9\\-2s:\\.]/g,\'\')||2.f.44+$.w(a)},h:4(2a,E){b{f:2.f,2a:2a,E:E,d:2.$5.d(2a)}},2l:4(W){b W.1k(/:/g,\'\\\\:\')},1P:4(){c M=2.M||(2.M=\'h-5-\'+$.w(2.q[0]));b $.M.1R(y,[M].2A($.5K(2t)))},1K:4(4a){2.$B=$(\'j:2c(a[z])\',2.q);2.$5=2.$B.2n(4(){b $(\'a\',2)[0]});2.$x=$([]);c 7=2,o=2.f;2.$5.U(4(i,a){6(a.W&&a.W.1k(\'#\',\'\'))7.$x=7.$x.1g(7.2l(a.W));J 6($(a).R(\'z\')!=\'#\'){$.w(a,\'z.5\',a.z);$.w(a,\'Q.5\',a.z);c 1a=7.3b(a);a.z=\'#\'+1a;c $E=$(\'#\'+1a);6(!$E.C){$E=$(o.30).R(\'1a\',1a).F(o.23).5J(7.$x[i-1]||7.q);$E.w(\'1w.5\',S)}7.$x=7.$x.1g($E)}J o.v.1L(i+1)});6(4a){2.q.F(o.2W);2.$x.F(o.23);6(o.p===1h){6(4d.W){2.$5.U(4(i,a){6(a.W==4d.W){o.p=i;b l}})}J 6(o.M){c d=5G(7.1P(),10);6(d&&7.$5[d])o.p=d}J 6(7.$B.15(\'.\'+o.H).C)o.p=7.$B.d(7.$B.15(\'.\'+o.H)[0])}o.p=o.p===y||o.p!==1h?o.p:0;o.v=$.5H(o.v.2A($.2n(2.$B.15(\'.\'+o.1v),4(n,i){b 7.$B.d(n)}))).48();6($.1O(o.p,o.v)!=-1)o.v.5N($.1O(o.p,o.v),1);2.$x.F(o.Y);2.$B.L(o.H);6(o.p!==y){2.$x.Z(o.p).L(o.Y);c 1s=[o.H];6(o.1z)1s.1L(o.1A);2.$B.Z(o.p).F(1s.1H(\' \'));c 2G=4(){7.V(\'u\',y,7.h(7.$5[o.p],7.$x[o.p]))};6($.w(2.$5[o.p],\'Q.5\'))2.Q(o.p,2G);J 2G()}$(5O).N(\'5U\',4(){7.$5.1b(\'.5\');7.$B=7.$5=7.$x=y})}J o.p=2.$B.d(2.$B.15(\'.\'+o.H)[0]);6(o.M)2.1P(o.p,o.M);2D(c i=0,j;j=2.$B[i];i++)$(j)[$.1O(i,o.v)!=-1&&!$(j).1C(o.H)?\'F\':\'L\'](o.1v);6(o.1l===l)2.$5.24(\'1l.5\');c 1r,1x;6(o.1j){6(o.1j.5V==3P){1r=o.1j[0];1x=o.1j[1]}J 1r=1x=o.1j}4 2H($1y,1j){$1y.O({21:\'\'});6($.1e.22&&1j.5T)$1y[0].1Q.5S(\'15\')}c 1W=1x?4(X,$u){$u.3U(1x,1x.3V||\'41\',4(){$u.L(o.Y);2H($u,1x);7.V(\'u\',y,7.h(X,$u[0]))})}:4(X,$u){$u.L(o.Y);7.V(\'u\',y,7.h(X,$u[0]))};c 2q=1r?4(X,$I,$u){$I.3U(1r,1r.3V||\'41\',4(){$I.F(o.Y);2H($I,1r);6($u)1W(X,$u,$I)})}:4(X,$I,$u){$I.F(o.Y);6($u)1W(X,$u)};4 3Y(X,$j,$I,$u){c 1s=[o.H];6(o.1z)1s.1L(o.1A);$j.F(1s.1H(\' \')).5P().L(1s.1H(\' \'));2q(X,$I,$u)}2.$5.1b(\'.5\').N(o.1n+\'.5\',4(){c $j=$(2).3Z(\'j:Z(0)\'),$I=7.$x.15(\':25\'),$u=$(7.2l(2.W));6(($j.1C(o.H)&&!o.1z)||$j.1C(o.1v)||$(2).1C(o.1N)||7.V(\'1B\',y,7.h(2,$u[0]))===l){2.2j();b l}o.p=7.$5.d(2);6(o.1z){6($j.1C(o.H)){7.f.p=y;$j.L([o.H,o.1A].1H(\' \'));7.$x.1d();2q(2,$I);2.2j();b l}J 6(!$I.C){7.$x.1d();c a=2;7.Q(7.$5.d(2),4(){$j.F([o.H,o.1A].1H(\' \'));1W(a,$u)});2.2j();b l}}6(o.M)7.1P(o.p,o.M);7.$x.1d();6($u.C){c a=2;7.Q(7.$5.d(2),$I.C?4(){3Y(a,$j,$I,$u)}:4(){$j.F(o.H);1W(a,$u)})}J 5F\'2y 5E 5u: 5s 5r 5q.\';6($.1e.22)2.2j();b l});6(o.1n!=\'2i\')2.$5.N(\'2i.5\',4(){b l})},1g:4(T,1m,d){6(d==1h)d=2.$5.C;c o=2.f;c $j=$(o.4c.1k(/#\\{z\\}/g,T).1k(/#\\{1m\\}/g,1m));$j.w(\'1w.5\',S);c 1a=T.5C(\'#\')==0?T.1k(\'#\',\'\'):2.3b($(\'a:5X-5A\',$j)[0]);c $E=$(\'#\'+1a);6(!$E.C){$E=$(o.30).R(\'1a\',1a).F(o.Y).w(\'1w.5\',S)}$E.F(o.23);6(d>=2.$B.C){$j.3h(2.q);$E.3h(2.q[0].43)}J{$j.3S(2.$B[d]);$E.3S(2.$x[d])}o.v=$.2n(o.v,4(n,i){b n>=d?++n:n});2.1K();6(2.$5.C==1){$j.F(o.H);$E.L(o.Y);c z=$.w(2.$5[0],\'Q.5\');6(z)2.Q(d,z)}2.V(\'1g\',y,2.h(2.$5[d],2.$x[d]))},11:4(d){c o=2.f,$j=2.$B.Z(d).11(),$E=2.$x.Z(d).11();6($j.1C(o.H)&&2.$5.C>1)2.1B(d+(d+1<2.$5.C?1:-1));o.v=$.2n($.4e(o.v,4(n,i){b n!=d}),4(n,i){b n>=d?--n:n});2.1K();2.V(\'11\',y,2.h($j.2I(\'a\')[0],$E[0]))},3f:4(d){c o=2.f;6($.1O(d,o.v)==-1)b;c $j=2.$B.Z(d).L(o.1v);6($.1e.5x){$j.O(\'21\',\'5y-3e\');47(4(){$j.O(\'21\',\'3e\')},0)}o.v=$.4e(o.v,4(n,i){b n!=d});2.V(\'3f\',y,2.h(2.$5[d],2.$x[d]))},31:4(d){c 7=2,o=2.f;6(d!=o.p){2.$B.Z(d).F(o.1v);o.v.1L(d);o.v.48();2.V(\'31\',y,2.h(2.$5[d],2.$x[d]))}},1B:4(d){6(1E d==\'1F\')d=2.$5.d(2.$5.15(\'[z$=\'+d+\']\')[0]);2.$5.Z(d).6l(2.f.1n+\'.5\')},Q:4(d,1t){c 7=2,o=2.f,$a=2.$5.Z(d),a=$a[0],3Q=1t==1h||1t===l,T=$a.w(\'Q.5\');1t=1t||4(){};6(!T||!3Q&&$.w(a,\'1l.5\')){1t();b}c 1c=4(1D){c $1D=$(1D),$1c=$1D.2I(\'*:6g\');b $1c.C&&$1c.6m(\':6e(63)\')&&$1c||$1D};c 2R=4(){7.$5.15(\'.\'+o.1N).L(o.1N).U(4(){6(o.2b)1c(2).1D().2e(1c(2).w(\'1m.5\'))});7.2h=y};6(o.2b){c 1m=1c(a).2e();1c(a).64(\'<2N></2N>\').2I(\'2N\').w(\'1m.5\',1m).2e(o.2b)}c 1S=$.1u({},o.1S,{T:T,3X:4(r,s){$(7.2l(a.W)).2e(r);2R();6(o.1l)$.w(a,\'1l.5\',S);7.V(\'Q\',y,7.h(7.$5[d],7.$x[d]));3R{o.1S.3X(r,s)}3W(e){}1t()}});6(2.2h){2.2h.5Z();2R()}$a.F(o.1N);7.2h=$.65(1S)},T:4(d,T){2.$5.Z(d).24(\'1l.5\').w(\'Q.5\',T)},1w:4(){c o=2.f;2.q.1b(\'.5\').L(o.2W).24(\'5\');2.$5.U(4(){c z=$.w(2,\'z.5\');6(z)2.z=z;c $2=$(2).1b(\'.5\');$.U([\'z\',\'Q\',\'1l\'],4(i,4b){$2.24(4b+\'.5\')})});2.$B.1g(2.$x).U(4(){6($.w(2,\'1w.5\'))$(2).11();J $(2).L([o.H,o.1A,o.1v,o.23,o.Y].1H(\' \'))});6(o.M)2.1P(y,o.M)}});$.1u($.h.5,{2Z:\'@49\',2m:\'C\',1Z:{1z:l,1n:\'2i\',v:[],M:y,2b:\'4x&#4y;\',1l:l,44:\'h-5-\',1S:y,1j:y,4c:\'<j><a z="#{z}"><3T>#{1m}</3T></a></j>\',30:\'<2X></2X>\',2W:\'h-5-4A\',H:\'h-5-p\',1A:\'h-5-1z\',1v:\'h-5-v\',23:\'h-5-E\',Y:\'h-5-I\',1N:\'h-5-4F\'}});$.1u($.h.5.1f,{2T:y,4q:4(2U,2d){2d=2d||l;c 7=2,t=2.f.p;4 2V(){7.2T=4C(4(){t=++t<7.$5.C?t:0;7.1B(t)},2U)}4 1d(e){6(!e||e.5m){59(7.2T)}}6(2U){2V();6(!2d)2.$5.N(2.f.1n+\'.5\',1d);J 2.$5.N(2.f.1n+\'.5\',4(){1d();t=7.f.p;2V()})}J{1d();2.$5.1b(2.f.1n+\'.5\',1d)}}})})(2y);',62,396,'||this||function|tabs|if|self||||return|var|index||options||ui||li|name|false||||selected|element||||show|disabled|data|panels|null|href||lis|length|key|panel|addClass|value|selectedClass|hide|else|instance|removeClass|cookie|bind|css|namespace|load|attr|true|url|each|_trigger|hash|clicked|hideClass|eq||remove|args||widgetName|filter|||_mouseStarted|type|id|unbind|inner|stop|browser|prototype|add|undefined|methods|fx|replace|cache|label|event|set|test|tmp|hideFx|classes|callback|extend|disabledClass|destroy|showFx|el|deselectable|deselectableClass|select|hasClass|parent|typeof|string|_setData|join|role|widget|_tabify|push|_mouseUp|loadingClass|inArray|_cookie|style|apply|ajaxOptions|isMethodCall|cssCache|state|showTab|scroll|unselectable|defaults||display|msie|panelClass|removeData|visible|mouseDelayMet||option|plugins|tab|spinner|has|continuing|html|nodeName|proto|xhr|click|blur|_mouseDownEvent|_sanitizeSelector|getter|map|isFF2|target|hideTab|delay|_|arguments|_mouseDelayMet|_mouseStart|_mouseDrag|_init|jQuery|Math|concat|_mouseUpDelegate|_mouseMoveDelegate|for|_preventClickEvent|_mouseDistanceMet|onShow|resetStyle|find|plugin|hidden|checkStyles|eventName|em|fn|split|cancel|cleanup|none|rotation|ms|start|navClass|div|aaa|version|panelTemplate|disable|||||||||getMethods|_tabId|_getData|get|block|enable|widgetEventPrefix|appendTo|_mouseStop|_mouseCapture|triggerHandler|_remove|MozUserSelect|btnIsLeft|body|module|on|mouse|_mouseUnselectable|5000px|left|selectstart|_mouseDown|aria|method|button|getterSetter|mouseup|metadata|document|call|isVisible|_mouseMove|pageY|mousemove|elIsCancel|abs|pageX|widgetBaseClass|wairole|title|Array|bypassCache|try|insertBefore|span|animate|duration|catch|success|switchTab|parents||normal|distance|parentNode|idPrefix|||setTimeout|sort|VERSION|init|prefix|tabTemplate|location|grep|width|gen|backgroundImage|height|transparent|auto|position|top|absolute|default|cursor|rotate|off|enableSelection|scrollTop|disableSelection|ariaRole|ariaState|Loading|8230|scrollLeft|nav|removeChild|setInterval|backgroundColor|class|loading|overflow|hasScroll|rgba|mozilla|INSERT|HOME|ESCAPE|LEFT|NUMPAD_ADD|110|NUMPAD_DECIMAL|107|ENTER|END|CAPS_LOCK|BACKSPACE|keyCode|COMMA|188|DOWN|DELETE|CONTROL|NUMPAD_DIVIDE|111|SPACE|SHIFT|RIGHT|TAB|UP|clearInterval|in|parseFloat|190|PERIOD|NUMPAD_MULTIPLY|108|NUMPAD_ENTER|106|NUMPAD_SUBTRACT|PAGE_UP|PAGE_DOWN|109|clientX|setAttributeNS|_mouseDestroy|started|identifier|fragment|Mismatching|which|Tabs|mousedown|_mouseInit|safari|inline|getData|child|fix|indexOf|http|UI|throw|parseInt|unique|max|insertAfter|makeArray|Za|z0|splice|window|siblings|preventDefault|_mouseDelayTimer|removeAttribute|opacity|unload|constructor|setData|first|tabIndex|abort|visibility|input|textarea|img|wrapInner|ajax|toLowerCase|org|w3|www|2005|07|tabbable|expr|not|dir|last|substring|new|isFunction|eventPrefix|trigger|is|slice'.split('|'),0,{}))


/*
 * jQuery Cycle Lite Plugin
 * http://malsup.com/jquery/cycle/lite/
 * Copyright (c) 2008-2011 M. Alsup
 * Version: 1.1 (03/07/2011)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires: jQuery v1.3.2 or later
 */
;(function($){var ver="Lite-1.1";$.fn.cycle=function(options){return this.each(function(){options=options||{};if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=0;this.cyclePause=0;var $cont=$(this);var $slides=options.slideExpr?$(options.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){window.console&&console.log("terminating; too few slides: "+els.length);return ;}var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});var cls=this.className;opts.width=parseInt((cls.match(/w:(\d+)/)||[])[1])||opts.width;opts.height=parseInt((cls.match(/h:(\d+)/)||[])[1])||opts.height;opts.timeout=parseInt((cls.match(/t:(\d+)/)||[])[1])||opts.timeout;if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}var first=0;$slides.css({position:"absolute",top:0,left:0}).each(function(i){$(this).css("z-index",els.length-i);});$(els[first]).css("opacity",1).show();if($.browser.msie){els[first].style.removeAttribute("filter");}if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}if(opts.pause){$cont.hover(function(){this.cyclePause=1;},function(){this.cyclePause=0;});}var txFn=$.fn.cycle.transitions[opts.fx];txFn&&txFn($cont,$slides,opts);$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:$el.height();this.cycleW=(opts.fit&&opts.width)?opts.width:$el.width();});if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){if(opts.speed.constructor==String){opts.speed={slow:600,fast:200}[opts.speed]||400;}if(!opts.sync){opts.speed=opts.speed/2;}while((opts.timeout-opts.speed)<250){opts.timeout+=opts.speed;}}opts.speedIn=opts.speed;opts.speedOut=opts.speed;opts.slideCount=els.length;opts.currSlide=first;opts.nextSlide=1;var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length>1){opts.after[1].apply(e0,[e0,e0,opts,true]);}if(opts.click&&!opts.next){opts.next=opts.click;}if(opts.next){$(opts.next).bind("click",function(){return advance(els,opts,opts.rev?-1:1);});}if(opts.prev){$(opts.prev).bind("click",function(){return advance(els,opts,opts.rev?1:-1);});}if(opts.timeout){this.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev);},opts.timeout+(opts.delay||0));}});};function go(els,opts,manual,fwd){if(opts.busy){return ;}var p=els[0].parentNode,curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleTimeout===0&&!manual){return ;}if(manual||!p.cyclePause){if(opts.before.length){$.each(opts.before,function(i,o){o.apply(next,[curr,next,opts,fwd]);});}var after=function(){if($.browser.msie){this.style.removeAttribute("filter");}$.each(opts.after,function(i,o){o.apply(next,[curr,next,opts,fwd]);});};if(opts.nextSlide!=opts.currSlide){opts.busy=1;$.fn.cycle.custom(curr,next,opts,after);}var roll=(opts.nextSlide+1)==els.length;opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}if(opts.timeout){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev);},opts.timeout);}}function advance(els,opts,val){var p=els[0].parentNode,timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){opts.nextSlide=0;}}go(els,opts,1,val>=0);return false;}$.fn.cycle.custom=function(curr,next,opts,cb){var $l=$(curr),$n=$(next);$n.css(opts.cssBefore);var fn=function(){$n.animate(opts.animIn,opts.speedIn,opts.easeIn,cb);};$l.animate(opts.animOut,opts.speedOut,opts.easeOut,function(){$l.css(opts.cssAfter);if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){opts.cssBefore={opacity:0};opts.animOut={opacity:0};opts.animIn={opacity:1};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:"fade",timeout:4000,speed:1000,next:null,prev:null,before:null,after:null,height:"auto",sync:1,fit:0,pause:0,delay:0,slideExpr:null,cssBefore:{},cssAfter:{},animIn:{},animOut:{}};})(jQuery);

// geolocation
$.get("/geo/geolocate.php", function(countrycode) {
		if (countrycode=="") return;
		$(".geolocate").each(function() {
			var $e = $(this);
			var attrs = ["text", "href", "src"];
			for (var i = 0; i < attrs.length; i++) {
				var a = attrs[i];
				var d = $e.data("geo-" + a + "-" + countrycode);
				if (typeof d != "undefined" && d.length > 0) {
					if (a == "text") {$e.text(d);} else {
						$e.attr(a, d);
					}
				}
			}
		});
	});


validateURL = function(url) {
	return (/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(url));
}


$(document).ready(function() {
	// validate URLs
	$("a.validate").each(function() {
		e = $(this);
		if (!validateURL(e.attr("href"))) {
			e.replaceWith(e.text());
			//console.log(e.attr("href") + ": not validated");
		}
	});

	$("a.collapser").click(function (e) {
		e.preventDefault();
		$($(this).data("target")).toggleClass("collapsed");
		return false;
	});

});