function loadRecentJobs(discipline) {
	$("select#select2").val(discipline);
	$.get(
		"http://de.maintec.net/ajax",
		{ call: 'ajax', callTo: 'MaintecVacancies', action: 'recentJobs', discipline: discipline },
		function(html){
			$(".rcol.recentJobs").html(html);
			$("p.menu a").mouseover(function(){ $(this).parent().siblings("ul.dropdown").show(); });
			$("p.menu a").mouseout(function(){ $(this).parent().siblings("ul.dropdown").hide(); });
			$("ul.dropdown").mouseover(function(){ $(this).show(); });
			$("ul.dropdown").mouseout(function(){ $(this).hide(); });
			$(".recentJobsDisciplines a").click(function(){
				loadRecentJobs(this.title);
				return loadFunctions();
			});
		}
	);
	return false;
}

function loadFunctions() {
	$.getJSON(
		"http://de.maintec.net/ajax",
		{ call: 'ajax', callTo: 'MaintecVacancies', action: 'discipline', city: $('#select1').val(), discipline: $('#select2').val() },
		function(json){
			var options = '';
			if(json.display == 'true') {
				// adjust width form
				$('#titlebar form').addClass('extraSelect');
				$('#titlebar form').removeClass('noExtraSelect');
				$("select#select3").show();
				for(var i=0; i<json.options.length; i++) {
					options += '<option value="'+json.options[i].optionValue+'">'+json.options[i].optionLabel+'</option>';
				}
				$("select#select3").html(options);
			} else {
				// adjust width form
				$('#titlebar form').removeClass('extraSelect');
				$('#titlebar form').addClass('noExtraSelect');
				$("select#select3").hide();
			}
		}
	);
	return false;
}

jQuery(document).ready(function($){
//$(document).ready(function(){

	$(document).pngFix();

	// Because ie6 doesn't support basic standards like css...
	if($.browser.msie) {
		if($(window).width() > 1260) $("#root").css("width", "1260px");
		else if($(window).width() < 974) $("#root").css("width", "974px");
		$(window).resize(function(){
			if($(window).width() > 1260) $("#root").css("width", "1260px");
			else if($(window).width() < 974) $("#root").css("width", "974px");
			else $("#root").css("width", $(window).width() + "px");
		});
	}
	
	
	$("table.homeTable td.content a").tooltip({
		// If this property is not given or this selector returns multiple elements,
		// it is assumed that the element that is placed next to the trigger will function as the tooltip.
		// In this case this value is used as a filter for jQuery's nextAll method which will scan for a
		// tip element after the trigger element and return the first one found. If the scan fails to return
		// any element then an additional scan is made starting from the trigger's parent element.
		delay: 500,
		offset: [10, 2],
		effect: 'slide'
	}).dynamic({
		bottom: {
			direction: 'down',
			bounce: true
		}
	});

	$('#teasers').cycle({ 
		fx: 'scrollUp',
		pause: 1,
		random:  1
	});
	

	$("p.menu a").mouseover(function(){
		$(this).parent().siblings("ul.dropdown").show();
	});
	$("p.menu a").mouseout(function(){
		$(this).parent().siblings("ul.dropdown").hide();
	});
	$(".countries a").mouseover(function(){
		$(this).siblings("ul.dropdown").show();
	});
	$(".countries a").mouseout(function(){
		$(this).siblings("ul.dropdown").hide();
	});

	$("ul.dropdown").mouseover(function(){
		$(this).show();
	});
	$("ul.dropdown").mouseout(function(){
		$(this).hide();
	});

	$('#latestNews').cycle({ fx: 'scrollUp', delay: -1000 });

	$("#trefwoord").focus(function(){
		$(this).val("");
	});
	$("#trefwoord").blur(function(){
		if($(this).val() == "") $(this).val("Suchbegriff eingeben");
	});

	$('textarea.expanding').autogrow();

	$("#print").click(function(){
		window.print();
		return false;
	});

	if($("table.tablesorter")) {
		$("table.tablesorter:not(#joblist)").tablesorter({widgets: ['zebra']});
	}

	if($("#joblist")) {
		$("#joblist").tablesorter({widgets: ['zebra']}).tablesorterPager({container: $(".pager")});
	}

	$("select#select1").change(function(){

		$.getJSON(
			"http://de.maintec.net/ajax",
			{ call: 'ajax', callTo: 'MaintecVacancies', action: 'city', city: $('#select1').val() },
			function(json){
				var options = '';
				var optgroup = false;
				for(var i=0; i<json.length; i++) {
					if((json[i].optionGroup != 'false') && (optgroup == false)) {
						options += '<optgroup label="'+json[i].optionGroup+'">';
						optgroup = true;
					}
					options += '<option value="' + json[i].optionValue + '">' + json[i].optionLabel + '</option>';
					if((json[i].optionGroup == 'false') && (optgroup == true)) {
						options += '</optgroup>';
						optgroup = false;
					}
				}
				if(optgroup == true) {
					options += '</optgroup>';
					optgroup = false;
				}
				$("select#select3").hide();
				$("select#select2").html(options);
				$('#titlebar form').removeClass('extraSelect').addClass('noExtraSelect');
			}
		);
	});

	$("select#select2").change(function(){
		loadRecentJobs($('#select2').val());
		loadFunctions();
	});

	$(".recentJobsDisciplines a").click(function(){
		loadRecentJobs(this.title);
		return loadFunctions();
	});

});



/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2008 M. Alsup
 * Version: 2.20
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
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}('(4($){8 m=\'2.20\';8 n=$.1Z.21&&/2U 6.0/.1q(2V.2W);4 1A(){7(22.23&&22.23.1A)22.23.1A(\'[E] \'+2X.2Y.2Z.30(31,\'\'))};$.F.E=4(l){Q C.1j(4(){l=l||{};7(l.2s==2t){32(l){24\'33\':7(C.11)1H(C.11);C.11=0;Q;24\'25\':C.1i=1;Q;24\'34\':C.1i=0;Q;35:l={1k:l}}}7(C.11)1H(C.11);C.11=0;C.1i=0;8 c=$(C);8 d=l.26?$(l.26,C):c.36();8 e=d.37();7(e.M<2){1A(\'38; 39 3a 3b: \'+e.M);Q}8 f=$.3c({},$.F.E.2u,l||{},$.2v?c.2v():$.3d?c.3e():{});7(f.27)f.28=f.29||e.M;f.I=f.I?[f.I]:[];f.1e=f.1e?[f.1e]:[];f.1e.2w(4(){f.2a=0});7(f.1r)f.1e.J(4(){1l(e,f,0,!f.1m)});7(n&&f.1I&&!f.2x)2b(d);8 g=C.3f;f.D=U((g.1B(/w:(\\d+)/)||[])[1])||f.D;f.A=U((g.1B(/h:(\\d+)/)||[])[1])||f.A;f.V=U((g.1B(/t:(\\d+)/)||[])[1])||f.V;7(c.y(\'1J\')==\'3g\')c.y(\'1J\',\'3h\');7(f.D)c.D(f.D);7(f.A&&f.A!=\'1K\')c.A(f.A);7(f.1n){f.1s=[];1C(8 i=0;i<e.M;i++)f.1s.J(i);f.1s.3i(4(a,b){Q 3j.1n()-0.5});f.1o=0;f.1c=f.1s[0]}S 7(f.1c>=e.M)f.1c=0;8 h=f.1c||0;d.y({1J:\'2y\',x:0,9:0}).1L().1j(4(i){8 z=h?i>=h?e.M-(i-h):h-i:e.M-i;$(C).y(\'z-1M\',z)});$(e[h]).y(\'1f\',1).T();7($.1Z.21)e[h].2z.2A(\'2c\');7(f.1g&&f.D)d.D(f.D);7(f.1g&&f.A&&f.A!=\'1K\')d.A(f.A);7(f.25)c.3k(4(){C.1i=1},4(){C.1i=0});8 j=$.F.E.L[f.1k];7($.2B(j))j(c,d,f);S 7(f.1k!=\'2d\')1A(\'3l 3m: \'+f.1k);d.1j(4(){8 a=$(C);C.W=(f.1g&&f.A)?f.A:a.A();C.X=(f.1g&&f.D)?f.D:a.D()});f.B=f.B||{};f.K=f.K||{};f.G=f.G||{};d.1N(\':2e(\'+h+\')\').y(f.B);7(f.1b)$(d[h]).y(f.1b);7(f.V){7(f.17.2s==2t)f.17={3n:3o,3p:3q}[f.17]||3r;7(!f.1O)f.17=f.17/2;3s((f.V-f.17)<3t)f.V+=f.17}7(f.2f)f.1P=f.1Q=f.2f;7(!f.1t)f.1t=f.17;7(!f.1D)f.1D=f.17;f.2C=e.M;f.1h=h;7(f.1n){f.O=f.1h;7(++f.1o==e.M)f.1o=0;f.O=f.1s[f.1o]}S f.O=f.1c>=(e.M-1)?0:f.1c+1;8 k=d[h];7(f.I.M)f.I[0].1R(k,[k,k,f,2g]);7(f.1e.M>1)f.1e[1].1R(k,[k,k,f,2g]);7(f.1E&&!f.14)f.14=f.1E;7(f.14)$(f.14).2h(\'1E\',4(){Q 2i(e,f,f.1m?-1:1)});7(f.2j)$(f.2j).2h(\'1E\',4(){Q 2i(e,f,f.1m?1:-1)});7(f.1u)2D(e,f);7(f.V||f.1r)C.11=1S(4(){1l(e,f,0,!f.1m)},f.1r?10:f.V+(f.2E||0));f.3u=4(a){8 b=$(a),s=b[0];7(!f.29)f.28++;e.J(s);7(f.18)f.18.J(s);f.2C=e.M;b.y(\'1J\',\'2y\').y(f.B).2F(c);7(n&&f.1I&&!f.2x)2b(b);7(f.1g&&f.D)b.D(f.D);7(f.1g&&f.A&&f.A!=\'1K\')d.A(f.A);s.W=(f.1g&&f.A)?f.A:b.A();s.X=(f.1g&&f.D)?f.D:b.D()}})};4 1l(a,b,c,d){7(b.2a)Q;8 p=a[0].1T,1v=a[b.1h],14=a[b.O];7(p.11===0&&!c)Q;7(!c&&!p.1i&&((b.27&&(--b.28<=0))||(b.1U&&!b.1n&&b.O<b.1h))){7(b.2k)b.2k(b);Q}7(c||!p.1i){7(b.I.M)$.1j(b.I,4(i,o){o.1R(14,[1v,14,b,d])});8 e=4(){7($.1Z.21&&b.1I)C.2z.2A(\'2c\');$.1j(b.1e,4(i,o){o.1R(14,[1v,14,b,d])})};7(b.O!=b.1h){b.2a=1;7(b.1V)b.1V(1v,14,b,e,d);S 7($.2B($.F.E[b.1k]))$.F.E[b.1k](1v,14,b,e);S $.F.E.2d(1v,14,b,e)}7(b.1n){b.1h=b.O;7(++b.1o==a.M)b.1o=0;b.O=b.1s[b.1o]}S{8 f=(b.O+1)==a.M;b.O=f?0:b.O+1;b.1h=f?a.M-1:b.O-1}7(b.1u)$.F.E.2l(b.1u,b.1h)}7(b.V&&!b.1r)p.11=1S(4(){1l(a,b,0,!b.1m)},b.V);S 7(b.1r&&p.1i)p.11=1S(4(){1l(a,b,0,!b.1m)},10)};$.F.E.2l=4(a,b){$(a).3v(\'a\').3w(\'2G\').2c(\'a:2e(\'+b+\')\').3x(\'2G\')};4 2i(a,b,c){8 p=a[0].1T,V=p.11;7(V){1H(V);p.11=0}b.O=b.1h+c;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0,1U:0}})(2M);(4($){$.F.E.L.3M=4(d,e,f){d.y(\'12\',\'19\');f.I.J(4(a,b,c){$(C).T();c.B.x=b.1w;c.G.x=0-a.1w});f.1b={x:0};f.K={x:0};f.N={P:\'Y\'}};$.F.E.L.3N=4(d,e,f){d.y(\'12\',\'19\');f.I.J(4(a,b,c){$(C).T();c.B.x=0-b.1w;c.G.x=a.1w});f.1b={x:0};f.K={x:0};f.N={P:\'Y\'}};$.F.E.L.3O=4(d,e,f){d.y(\'12\',\'19\');f.I.J(4(a,b,c){$(C).T();c.B.9=b.1x;c.G.9=0-a.1x});f.1b={9:0};f.K={9:0}};$.F.E.L.3P=4(d,e,f){d.y(\'12\',\'19\');f.I.J(4(a,b,c){$(C).T();c.B.9=0-b.1x;c.G.9=a.1x});f.1b={9:0};f.K={9:0}};$.F.E.L.3Q=4(f,g,h){f.y(\'12\',\'19\').D();h.I.J(4(a,b,c,d){$(C).T();8 e=a.1x,2p=b.1x;c.B=d?{9:2p}:{9:-2p};c.K.9=0;c.G.9=d?-e:e;g.1N(a).y(c.B)});h.1b={9:0};h.N={P:\'Y\'}};$.F.E.L.3R=4(f,g,h){f.y(\'12\',\'19\');h.I.J(4(a,b,c,d){$(C).T();8 e=a.1w,2q=b.1w;c.B=d?{x:-2q}:{x:2q};c.K.x=0;c.G.x=d?e:-e;g.1N(a).y(c.B)});h.1b={x:0};h.N={P:\'Y\'}};$.F.E.L.3S=4(d,e,f){f.I.J(4(a,b,c){$(a).y(\'H\',1)});f.B={H:2};f.K={D:\'T\'};f.G={D:\'1L\'}};$.F.E.L.3T=4(d,e,f){f.I.J(4(a,b,c){$(a).y(\'H\',1)});f.B={H:2};f.K={A:\'T\'};f.G={A:\'1L\'}};$.F.E.L.1G=4(g,h,j){8 w=g.y(\'12\',\'2N\').D();h.y({9:0,x:0});j.I.J(4(){$(C).T()});j.17=j.17/2;j.1n=0;j.1G=j.1G||{9:-w,x:15};j.18=[];1C(8 i=0;i<h.M;i++)j.18.J(h[i]);1C(8 i=0;i<j.1c;i++)j.18.J(j.18.2O());j.1V=4(a,b,c,d,e){8 f=e?$(a):$(b);f.1Y(c.1G,c.1t,c.1P,4(){e?c.18.J(c.18.2O()):c.18.2w(c.18.3U());7(e)1C(8 i=0,2r=c.18.M;i<2r;i++)$(c.18[i]).y(\'z-1M\',2r-i);S{8 z=$(a).y(\'z-1M\');f.y(\'z-1M\',U(z)+1)}f.1Y({9:0,x:0},c.1D,c.1Q,4(){$(e?C:a).1L();7(d)d()})})}};$.F.E.L.3V=4(d,e,f){f.I.J(4(a,b,c){$(C).T();c.B.x=b.W;c.K.A=b.W});f.1b={x:0};f.B={A:0};f.K={x:0};f.G={A:0};f.N={P:\'Y\'}};$.F.E.L.3W=4(d,e,f){f.I.J(4(a,b,c){$(C).T();c.K.A=b.W;c.G.x=a.W});f.1b={x:0};f.B={x:0,A:0};f.G={A:0};f.N={P:\'Y\'}};$.F.E.L.3X=4(d,e,f){f.I.J(4(a,b,c){$(C).T();c.B.9=b.X;c.K.D=b.X});f.B={D:0};f.K={9:0};f.G={D:0};f.N={P:\'Y\'}};$.F.E.L.3Y=4(d,e,f){f.I.J(4(a,b,c){$(C).T();c.K.D=b.X;c.G.9=a.X});f.B={9:0,D:0};f.K={9:0};f.G={D:0};f.N={P:\'Y\'}};$.F.E.L.2P=4(d,e,f){f.1b={x:0,9:0};f.N={P:\'Y\'};f.I.J(4(a,b,c){$(C).T();c.B={D:0,A:0,x:b.W/2,9:b.X/2};c.K={x:0,9:0,D:b.X,A:b.W};c.G={D:0,A:0,x:a.W/2,9:a.X/2}})};$.F.E.L.3Z=4(d,e,f){f.I.J(4(a,b,c){c.B={D:0,A:0,1f:1,9:b.X/2,x:b.W/2,H:1};c.K={x:0,9:0,D:b.X,A:b.W}});f.G={1f:0};f.N={H:0}};$.F.E.L.40=4(d,e,f){8 w=d.y(\'12\',\'19\').D();e.T();f.I.J(4(a,b,c){$(a).y(\'H\',1)});f.B={9:w,H:2};f.N={H:1};f.K={9:0};f.G={9:w}};$.F.E.L.41=4(d,e,f){8 h=d.y(\'12\',\'19\').A();e.T();f.I.J(4(a,b,c){$(a).y(\'H\',1)});f.B={x:h,H:2};f.N={H:1};f.K={x:0};f.G={x:h}};$.F.E.L.42=4(d,e,f){8 h=d.y(\'12\',\'19\').A();8 w=d.D();e.T();f.I.J(4(a,b,c){$(a).y(\'H\',1)});f.B={x:h,9:w,H:2};f.N={H:1};f.K={x:0,9:0};f.G={x:h,9:w}};$.F.E.L.43=4(d,e,f){f.I.J(4(a,b,c){c.B={9:C.X/2,D:0,H:2};c.K={9:0,D:C.X};c.G={9:0};$(a).y(\'H\',1)})};$.F.E.L.44=4(d,e,f){f.I.J(4(a,b,c){c.B={x:C.W/2,A:0,H:2};c.K={x:0,A:C.W};c.G={x:0};$(a).y(\'H\',1)})};$.F.E.L.45=4(d,e,f){f.I.J(4(a,b,c){c.B={9:b.X/2,D:0,H:1,P:\'1y\'};c.K={9:0,D:C.X};c.G={9:a.X/2,D:0};$(a).y(\'H\',2)});f.N={H:1,P:\'Y\'}};$.F.E.L.46=4(d,e,f){f.I.J(4(a,b,c){c.B={x:b.W/2,A:0,H:1,P:\'1y\'};c.K={x:0,A:C.W};c.G={x:a.W/2,A:0};$(a).y(\'H\',2)});f.N={H:1,P:\'Y\'}};$.F.E.L.47=4(e,f,g){8 d=g.2Q||\'9\';8 w=e.y(\'12\',\'19\').D();8 h=e.A();g.I.J(4(a,b,c){c.B={H:2,P:\'1y\'};7(d==\'2R\')c.B.9=-w;S 7(d==\'2S\')c.B.x=h;S 7(d==\'2T\')c.B.x=-h;S c.B.9=w;$(a).y(\'H\',1)});g.K={9:0,x:0};g.G={9:0,x:0};g.N={H:2,P:\'Y\'}};$.F.E.L.48=4(e,f,g){8 d=g.2Q||\'9\';8 w=e.y(\'12\',\'19\').D();8 h=e.A();g.I.J(4(a,b,c){c.B.P=\'1y\';7(d==\'2R\')c.G.9=w;S 7(d==\'2S\')c.G.x=-h;S 7(d==\'2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',62,263,'||||function|||if|var|left||||||||||||||||||||||||top|css||height|cssBefore|this|width|cycle|fn|animOut|zIndex|before|push|animIn|transitions|length|cssAfter|nextSlide|display|return|null|else|show|parseInt|timeout|cycleH|cycleW|none|px||cycleTimeout|overflow||next|||speed|els|hidden|0px|cssFirst|startingSlide|clip|after|opacity|fit|currSlide|cyclePause|each|fx|go|rev|random|randomIndex|rect|test|continuous|randomMap|speedIn|pager|curr|offsetHeight|offsetWidth|block|count|log|match|for|speedOut|click|false|shuffle|clearTimeout|cleartype|position|auto|hide|index|not|sync|easeIn|easeOut|apply|setTimeout|parentNode|nowrap|fxFn|prevNextClick|hex|animate|browser||msie|window|console|case|pause|slideExpr|autostop|countdown|autostopCount|busy|clearTypeFix|filter|custom|eq|easing|true|bind|advance|prev|end|updateActivePagerLink|typeof|pagerAnchorBuilder|pagerClick|nextW|nextH|len|constructor|String|defaults|metadata|unshift|cleartypeNoBg|absolute|style|removeAttribute|isFunction|slideCount|buildPager|delay|appendTo|activeSlide|pagerEvent|getBg|background|color|fade|jQuery|visible|shift|zoom|direction|right|up|down|MSIE|navigator|userAgent|Array|prototype|join|call|arguments|switch|stop|resume|default|children|get|terminating|too|few|slides|extend|meta|data|className|static|relative|sort|Math|hover|unknown|transition|slow|600|fast|200|400|while|250|addSlide|find|removeClass|addClass|href|parents|body|toString|nodeName|toLowerCase|html|indexOf|rgb|transparent|ffffff|ver|4000|1000|scrollUp|scrollDown|scrollLeft|scrollRight|scrollHorz|scrollVert|slideX|slideY|pop|turnUp|turnDown|turnLeft|turnRight|fadeZoom|blindX|blindY|blindZ|growX|growY|curtainX|curtainY|cover|uncover|toss|wipe|l2r|r2l|t2b|b2t'.split('|'),0,{}));



/* 
 * Auto Expanding Text Area (1.2.2)
 * by Chrys Bader (www.chrysbader.com)
 * chrysb@gmail.com
 *
 * Copyright (c) 2008 Chrys Bader (www.chrysbader.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 */

(function(jQuery){var self=null;jQuery.fn.autogrow=function(o)
{return this.each(function(){new jQuery.autogrow(this,o);});};jQuery.autogrow=function(e,o)
{this.options=o||{};this.dummy=null;this.interval=null;this.line_height=this.options.lineHeight||parseInt(jQuery(e).css('line-height'));this.min_height=this.options.minHeight||parseInt(jQuery(e).css('min-height'));this.max_height=this.options.maxHeight||parseInt(jQuery(e).css('max-height'));;this.textarea=jQuery(e);if(this.line_height==NaN)
this.line_height=0;this.init();};jQuery.autogrow.fn=jQuery.autogrow.prototype={autogrow:'1.2.2'};jQuery.autogrow.fn.extend=jQuery.autogrow.extend=jQuery.extend;jQuery.autogrow.fn.extend({init:function(){var self=this;this.textarea.css({overflow:'hidden',display:'block'});this.textarea.bind('focus',function(){self.startExpand()}).bind('blur',function(){self.stopExpand()});this.checkExpand();},startExpand:function(){var self=this;this.interval=window.setInterval(function(){self.checkExpand()},400);},stopExpand:function(){clearInterval(this.interval);},checkExpand:function(){if(this.dummy==null)
{this.dummy=jQuery('<div></div>');this.dummy.css({'font-size':this.textarea.css('font-size'),'font-family':this.textarea.css('font-family'),'width':this.textarea.css('width'),'padding':this.textarea.css('padding'),'line-height':this.line_height+'px','overflow-x':'hidden','position':'absolute','top':0,'left':-9999}).appendTo('body');}
var html=this.textarea.val().replace(/(<|>)/g,'');if($.browser.msie)
{html=html.replace(/\n/g,'<BR>new');}
else
{html=html.replace(/\n/g,'<br>new');}
if(this.dummy.html()!=html)
{this.dummy.html(html);if(this.max_height>0&&(this.dummy.height()+this.line_height>this.max_height))
{this.textarea.css('overflow-y','auto');}
else
{this.textarea.css('overflow-y','hidden');if(this.textarea.height()<this.dummy.height()+this.line_height||(this.dummy.height()<this.textarea.height()))
{this.textarea.animate({height:(this.dummy.height()+this.line_height)+'px'},100);}}}}});})(jQuery);