/*
 * Tabs 3 - New Wave Tabs
 *
 * Copyright (c) 2007 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/Tabs
 */
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}('(6($){$.4=$.4||{};$.2n.3=6(){7 b=1e 1b[0]==\'1W\'&&1b[0];7 c=b&&1N.1M.2e.2b(1b,1)||1b;u 2.Q(6(){5(b){7 a=$.t(2,\'4-3\');a[b].2o(a,c)}C 2k $.4.3(2,c[0]||{})})};$.4.3=6(e,f){7 d=2;2.p=e;2.l=$.1s({q:0,S:f.q===1a,V:\'1f\',Y:[],F:1a,1k:\'2F&#2z;\',1S:H,1Q:\'4-3-\',1j:{},W:1a,1O:\'<B><a w="#{w}"><1i>#{1h}</1i></a></B>\',1w:\'<1L></1L>\',1g:\'4-3-2h\',x:\'4-3-q\',1t:\'4-3-S\',J:\'4-3-Y\',T:\'4-3-1d\',L:\'4-3-17\',1c:\'4-3-2W\'},f);2.l.V+=\'.4-3\';2.l.F=$.F&&$.F.1I==2U&&2.l.F;$(e).1o(\'2R.4-3\',6(b,c,a){d.l[c]=a;2.19()}).1o(\'2Q.4-3\',6(a,b){u d.l[b]});$.t(e,\'4-3\',2);2.19(18)};$.1s($.4.3.1M,{1D:6(a){u a.23&&a.23.Z(/\\s/g,\'1T\').Z(/[^A-2I-2C-9\\-1T:\\.]/g,\'\')||2.l.1Q+$.t(a)},4:6(a,b){u{2y:2,l:2.l,1X:a,1d:b}},19:6(g){2.$m=$(\'B:2u(a[w])\',2.p);2.$3=2.$m.1z(6(){u $(\'a\',2)[0]});2.$8=$([]);7 f=2,o=2.l;2.$3.Q(6(i,a){5(a.I&&a.I.Z(\'#\',\'\'))f.$8=f.$8.X(a.I);C 5($(a).U(\'w\')!=\'#\'){$.t(a,\'w.4-3\',a.w);$.t(a,\'y.4-3\',a.w);7 b=f.1D(a);a.w=\'#\'+b;7 c=$(\'#\'+b);5(!c.D){c=$(o.1w).U(\'15\',b).v(o.T).2m(f.$8[i-1]||f.p);c.t(\'14.4-3\',18)}f.$8=f.$8.X(c)}C o.Y.2l(i+1)});5(g){$(2.p).K(o.1g)||$(2.p).v(o.1g);2.$8.Q(6(){7 a=$(2);a.K(o.T)||a.v(o.T)});2j(7 i=0,G;G=o.Y[i];i++)2.1x(G);2.$3.Q(6(i,a){5(1v.I){5(a.I==1v.I){o.q=i;5($.M.13||$.M.2i){7 b=$(1v.I),1K=b.U(\'15\');b.U(\'15\',\'\');1u(6(){b.U(\'15\',1K)},2g)}2f(0,0);u H}}C 5(o.F){7 c=2d($.F(\'4-3\'+$.t(f.p)),10);5(c&&f.$3[c]){o.q=c;u H}}C 5(f.$m.z(i).K(o.x)){o.q=i;u H}});7 n=2.$m.D;2c(2.$m.z(o.q).K(o.J)&&n){o.q=++o.q<2.$m.D?o.q:0;n--}5(!n)o.S=18;2.$8.v(o.L);2.$m.E(o.x);5(!o.S){2.$8.z(o.q).P().E(o.L);2.$m.z(o.q).v(o.x)}7 j=!o.S&&$.t(2.$3[o.q],\'y.4-3\');5(j)2.y(o.q,j);5(!(/^1f/).2a(o.V))2.$3.1o(\'1f\',6(e){e.29()})}7 k,R,11={\'28-27\':0,1r:1},1J=\'2V\';5(o.W&&o.W.1I==1N)k=o.W[0]|| 11,R=o.W[1]|| 11;C k=R=o.W|| 11;7 h={1q:\'\',2T:\'\',2S:\'\'};5(!$.M.13)h.1H=\'\';6 1G(b,c,a){c.26(k,k.1r||1J,6(){c.v(o.L).12(h);5($.M.13&&k.1H)c[0].25.N=\'\';5(a)1F(b,a,c)})}6 1F(b,a,c){5(R===11)a.12(\'1q\',\'1E\');a.26(R,R.1r||1J,6(){a.E(o.L).12(h);5($.M.13&&R.1H)a[0].25.N=\'\';$(f.p).O("P.4-3",[f.4(b,a[0])])})}6 24(c,a,d,b){a.v(o.x).2P().E(o.x);1G(c,d,b)}2.$3.1C(o.V).1o(o.V,6(){7 b=$(2).2O(\'B:z(0)\'),$17=f.$8.N(\':2N\'),$P=$(2.I);5((b.K(o.x)&&!o.S)||b.K(o.J)||$(f.p).O("22.4-3",[f.4(2,$P[0])])===H){2.1n();u H}f.l.q=f.$3.G(2);5(o.S){5(b.K(o.x)){f.l.q=1a;b.E(o.x);f.$8.1B();1G(2,$17);2.1n();u H}C 5(!$17.D){f.$8.1B();7 a=2;f.y(f.$3.G(2),6(){b.v(o.x).v(o.1t);1F(a,$P)});2.1n();u H}}5(o.F)$.F(\'4-3\'+$.t(f.p),f.l.q,o.F);f.$8.1B();5($P.D){7 a=2;f.y(f.$3.G(2),6(){24(a,b,$17,$P)})}C 21\'1A 1Z 1Y: 2M 2L 2J.\';5($.M.13)2.1n();u H})},X:6(d,e,f){5(d&&e){f=f||2.$3.D;7 o=2.l;7 a=$(o.1O.Z(/#\\{w\\}/,d).Z(/#\\{1h\\}/,e));a.t(\'14.4-3\',18);7 b=d.2H(\'#\')==0?d.Z(\'#\',\'\'):2.1D($(\'a:2G-2B\',a)[0]);7 c=$(\'#\'+b);5(!c.D){c=$(o.1w).U(\'15\',b).v(o.T).v(o.L);c.t(\'14.4-3\',18)}5(f>=2.$m.D){a.1U(2.p);c.1U(2.p.2A)}C{a.1V(2.$m[f]);c.1V(2.$8[f])}2.19();5(2.$3.D==1){a.v(o.x);c.E(o.L);7 g=$.t(2.$3[0],\'y.4-3\');5(g)2.y(f,g)}$(2.p).O("X.4-3",[2.4(2.$3[f],2.$8[f])])}C 21\'1A 1Z 1Y: 2D 2E 1b 2x X 1X.\';},16:6(a){5(a&&a.1I==2w){7 o=2.l,$B=2.$m.z(a).16(),$1d=2.$8.z(a).16();5($B.K(o.x)&&2.$3.D>1)2.1f(a+(a<2.$3.D?1:-1));2.19();$(2.p).O("16.4-3",[2.4($B.2v(\'a\')[0],$1d[0])])}},20:6(a){7 b=2,o=2.l,$B=2.$m.z(a);$B.E(o.J);5($.M.2K){$B.12(\'1q\',\'2t-1E\');1u(6(){$B.12(\'1q\',\'1E\')},0)}o.Y=$.1z(2.$m.N(\'.\'+o.J),6(n,i){u b.$m.G(n)});$(2.p).O("20.4-3",[2.4(2.$3[a],2.$8[a])])},1x:6(a){7 b=2,o=2.l;2.$m.z(a).v(o.J);o.Y=$.1z(2.$m.N(\'.\'+o.J),6(n,i){u b.$m.G(n)});$(2.p).O("1x.4-3",[2.4(2.$3[a],2.$8[a])])},22:6(a){5(1e a==\'1W\')a=2.$3.G(2.$3.N(\'[w$=\'+a+\']\')[0]);2.$3.z(a).2s(2.l.V)},y:6(d,b){7 f=2,o=2.l,$a=2.$3.z(d),a=$a[0];7 e=$a.t(\'y.4-3\');5(!e){1e b==\'6\'&&b();u}5(o.1k){7 h=$(\'1i\',a),1h=h.1l();h.1l(\'<1R>\'+o.1k+\'</1R>\')}7 c=6(){f.$3.N(\'.\'+o.1c).Q(6(){$(2).E(o.1c);5(o.1k)$(\'1i\',2).1l(1h)});f.1m=1a};7 g=$.1s({},o.1j,{1P:e,1y:6(r,s){$(a.I).1l(r);c();1e b==\'6\'&&b();5(o.1S)$.1p(a,\'y.4-3\');$(f.p).O("y.4-3",[f.4(f.$3[d],f.$8[d])]);o.1j.1y&&o.1j.1y(r,s)}});5(2.1m){2.1m.2r();c()}$a.v(o.1c);1u(6(){f.1m=$.2q(g)},0)},1P:6(a,b){2.$3.z(a).t(\'y.4-3\',b)},14:6(){7 o=2.l;$(2.p).1C(\'.4-3\').E(o.1g).1p(\'4-3\');2.$3.Q(6(){7 a=$.t(2,\'w.4-3\');5(a)2.w=a;$(2).1C(\'.4-3\').1p(\'w.4-3\').1p(\'y.4-3\')});2.$m.X(2.$8).Q(6(){5($.t(2,\'14.4-3\'))$(2).16();C $(2).E([o.x,o.1t,o.J,o.T,o.L].2p(\' \'))})}})})(1A);',62,183,'||this|tabs|ui|if|function|var|panels|||||||||||||options|lis|||element|selected|||data|return|addClass|href|selectedClass|load|eq||li|else|length|removeClass|cookie|index|false|hash|disabledClass|hasClass|hideClass|browser|filter|triggerHandler|show|each|showFx|unselect|panelClass|attr|event|fx|add|disabled|replace||baseFx|css|msie|destroy|id|remove|hide|true|tabify|null|arguments|loadingClass|panel|typeof|click|navClass|label|span|ajaxOptions|spinner|html|xhr|blur|bind|removeData|display|duration|extend|unselectClass|setTimeout|location|panelTemplate|disable|success|map|jQuery|stop|unbind|tabId|block|showTab|hideTab|opacity|constructor|baseDuration|toShowId|div|prototype|Array|tabTemplate|url|idPrefix|em|cache|_|appendTo|insertBefore|string|tab|Tabs|UI|enable|throw|select|title|switchTab|style|animate|width|min|preventDefault|test|call|while|parseInt|slice|scrollTo|500|nav|opera|for|new|push|insertAfter|fn|apply|join|ajax|abort|trigger|inline|has|find|Number|to|instance|8230|parentNode|child|z0|Not|enough|Loading|first|indexOf|Za|identifier|safari|fragment|Mismatching|visible|parents|siblings|getData|setData|height|overflow|Function|normal|loading'.split('|'),0,{}));

/*
 * Tabs 3 extensions
 *
 * Copyright (c) 2007 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * http://docs.jquery.com/UI/TabsExtensions
 */
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}('(5($){$.s($.k.4.o,{3:g,q:5(b){9 a=1;5 7(e){8(e.p){d(a.3)}}8(b){9 2=1.6.n;1.3=m(5(){2=++2<a.$4.l?2:0;a.j(2)},b);1.$4.i(1.6.c,7)}h{d(1.3);1.$4.f(1.6.c,7)}}})})(r);',29,29,'|this|t|rotation|tabs|function|options|stop|if|var|||event|clearInterval||unbind|null|else|bind|click|ui|length|setInterval|selected|prototype|clientX|rotate|jQuery|extend'.split('|'),0,{}));

/* =========================================================

//jquery.innerfade.js

//Datum: 2008-02-14
//Firma: Medienfreunde Hofmann & Baldes GbR
//Author: Torsten Baldes
//Mail: t.baldes@medienfreunde.com
//Web: http://medienfreunde.com

//based on the work of Matt Oakes http://portfolio.gizone.co.uk/applications/slideshow/
//and Ralf S. Engelschall http://trainofthoughts.org/

*
*  <ul id="news"> 
*    <li>content 1</li>
*    <li>content 2</li>
*    <li>content 3</li>
*  </ul>
*  
*  $('#news').innerfade({ 
*    animationtype: Type of animation 'fade' or 'slide' (Default: 'fade'), 
*    speed: Fading-/Sliding-Speed in milliseconds or keywords (slow, normal or fast) (Default: 'normal'), 
*    timeout: Time between the fades in milliseconds (Default: '2000'), 
*    type: Type of slideshow: 'sequence', 'random' or 'random_start' (Default: 'sequence'), 
*      containerheight: Height of the containing element in any css-height-value (Default: 'auto'),
*    runningclass: CSS-Class which the container get’s applied (Default: 'innerfade'),
*    children: optional children selector (Default: null)
*  }); 
*

//========================================================= */
(function($) {
 $.fn.innerfade = function(options) {
     return this.each(function() {   
         $.innerfade(this, options);
     });
 };
 $.innerfade = function(container, options) {
     var settings = {
         'animationtype':    'fade',
         'speed':            'normal',
         'type':          'sequence',
         'timeout':        2000,
         'containerheight':  'auto',
         'runningclass':  'innerfade',
         'children':      null
     };
     if (options) {
         $.extend(settings, options);
     }
     if (settings.children === null) {
         var elements = $(container).children();
     } else {
         var elements = $(container).children(settings.children);
     }
     if (elements.length > 1) {
         $(container).css('position', 'relative').css('height', settings.containerheight).addClass(settings.runningclass);
         for (var i = 0; i < elements.length; i++) {
             $(elements[i]).css('z-index', String(elements.length-i)).css('position', 'absolute').hide();
         };
         if (settings.type == "sequence") {
             setTimeout(function() {
                 $.innerfade.next(elements, settings, 1, 0);
             }, settings.timeout);
             $(elements[0]).show();
         } else if (settings.type == "random") {
             var last = Math.floor ( Math.random () * ( elements.length ) );
             setTimeout(function() {
                 do { 
                     current = Math.floor ( Math.random ( ) * ( elements.length ) );
                 } while (last == current );          
                 $.innerfade.next(elements, settings, current, last);
             }, settings.timeout);
             $(elements[last]).show();
         } else if ( settings.type == 'random_start' ) {
             settings.type = 'sequence';
             var current = Math.floor ( Math.random () * ( elements.length ) );
             setTimeout(function(){
                 $.innerfade.next(elements, settings, (current + 1) %  elements.length, current);
             }, settings.timeout);
             $(elements[current]).show();
         }   else {
             alert('Innerfade-Type must either be \'sequence\', \'random\' or \'random_start\'');
         }
     }
 };

 $.innerfade.next = function(elements, settings, current, last) {
     if (settings.animationtype == 'slide') {
         $(elements[last]).slideUp(settings.speed, function() {
             $(elements[current]).slideDown(settings.speed);
         });
     } else if (settings.animationtype == 'fade') {
         $(elements[last]).fadeOut(settings.speed);
         $(elements[current]).fadeIn(settings.speed, function() {
             removeFilter($(this)[0]);
         });
     } else {
         alert('Innerfade-animationtype must either be \'slide\' or \'fade\'');
     }
     if (settings.type == "sequence") {
         if ((current + 1) < elements.length) {
             current = current + 1;
             last = current - 1;
         } else {
             current = 0;
             last = elements.length - 1;
         }
     } else if (settings.type == "random") {
         last = current;
         while (current == last) {
             current = Math.floor(Math.random() * elements.length);
         }
     } else {
         alert('Innerfade-Type must either be \'sequence\', \'random\' or \'random_start\'');
     }
     setTimeout((function() {
         $.innerfade.next(elements, settings, current, last);
     }), settings.timeout);
 };

})(jQuery);

//**** remove Opacity-Filter in ie ****
function removeFilter(element) {
 if(element.style.removeAttribute){
     element.style.removeAttribute('filter');
 }
}


$(document).ready(function() {
	$("a.popup").click(function() {
		var href = this.href;
		if(this.pathname.startsWith("/internet") || this.pathname.startsWith("internet")) {
			var withoutDotHtml = href.substring(0, href.lastIndexOf("."));
			var newLink = withoutDotHtml + ".popup.show.html";
			href = newLink;
		}
		window.open(href, "", "height=300, width=502, scrollbars=1, location=0, menubar=0, toolbar=0, status=0");
		return false;
	})
}); 
String.prototype.startsWith = function(str){return (this.match("^"+str)==str)}
