jQuery(document).ready(function(){			  
	noSpam();
	smoothscroll();
	jQuery('#gototop').topLink({fadeSpeed: 300});
	if(jQuery('a.na02').length > 0){
		jQuery('a.na02').fancybox({
				'overlayShow'	: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'width'				: '50%',
				'height'			: '75%',

				'type' : 'iframe',
				'autoScale'			: false
		});
	}
	
	if(jQuery('a[rel^=lightbox]').length > 0){
		jQuery('a[rel^=lightbox]').fancybox({
					'overlayShow'	: true,
					'transitionIn'	: 'elastic',
					'transitionOut'	: 'elastic'				
		});
	}
	
	jQuery('body').prepend('<div id="cboxOverlay"></div>');
	$overlay = jQuery('#cboxOverlay');
	$overlay.css({
		position:'fixed',
		width:'100%',
		height:'100%',
		background:'#000',
		zIndex:1
	}).fadeOut(0);
});
	

function noSpam(){
	jQuery('a.email').each(function(){
		jQuery(this).find('span').first().html('@');
		jQuery(this).attr('href','mailto:'+jQuery(this).text());
	});
}


// form_validation v. 2.2 incl colorbox errormsg and input()
//  ----------------------------
// | Euroweb Internet GmbH     |
//  ----------------------------
// Last changed:	15. 02. 2011
// by Sebastian Pontow - s.pontow@euroweb.de
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}('g 1w(16){d 6=0;d 2=\'\';d c=\'\';d h=\'\';d b=\'\';1o(d i=0;i<o.R("e").1e;i++){2=o.R("e")[i];5(2.19){c=o.t(2.19)}h=2.4;b=2.4.14(/ 6/,\'\');5(2.1r==16&&c){5(c.1t==\'1g\'){5(c.O==r){o.t(\'e-I\').4+=\' q 18\'}f{d 11=o.t(\'e-I\').4.14(/ q 18/,\'\');o.t(\'e-I\').4=11}}5(h.n(/q/)){5(c.1p==\'1s\'){5(c.1l[1].1c){2.4=b;2.4+=\' 6\';6=1}f{2.4=b}}f 5(c.l==\'1f\'){5(c.O==y){2.4=b;2.4+=\' 6\';6=1}f{2.4=b}}f{5(c.k==\'\'){2.4=b;2.4+=\' 6\';6=1}f{2.4=b}}}5(h.n(/1n/)){d G=M(c);5(!G&&!h.n(/q/)&&c.k!=\'\'){2.4=b;2.4+=\' 6\';6=1}f{2.4=b}5(!G&&h.n(/q/)){2.4=b;2.4+=\' 6\';6=1}f{5(6==0){2.4=b}}}5(h.n(/1q/)){d E=N(c);5(!E&&c.k!=\'\'){2.4=b;2.4+=\' 6\';6=1}f{2.4=b}5(!E&&h.n(/q/)){2.4=b;2.4+=\' 6\';6=1}f{5(6==0){2.4=b}}}}}5(6===0){z r}f{d $J=9(\'#K\');$J.1v(\'1u\');$J.1m(\'<v>1d 1a T 1b 1k.</v> 1j 1i 1h 1x 1E 1Z P&Q;20. 21 22 P&Q;1Y 1X T <v 12="6">1T</v> 1U.<1V /><a 1W="V">23 24 29&28;25</a>\').1y(x);9(\'#W\').27(x,0.7);9(\'#V\').15(\'1R\',\'1S\').U(g(){9(8).1F(\'.K\').L(x);9(\'#W\').L(x)});z y}}g M(u){d s=(1G(17(u.k))==r)?y:r;z s}g N(u){d s=(u.k.n(/^[\\w\\.\\-]+@([\\w\\-]+\\.)+[a-1D-Z]+$/))?r:y;z s}g j(p){p=p!=1C&&p!=\'1z\'?p:-3;9(\'j[l=H], j[l=B]\').1A(g(){d $8=9(8);5($8.m(\'A\')!==\'\'&&9.1B($8.m(\'k\'))===\'\'){$8.1H(\'<13 12="e">\'+$8.m(\'A\')+\'</13>\');d $e=$8.C(\'.e\');$e.15({\'1I\':\'#1O\',\'1P\':\'1Q\',\'F\':\'1N\',\'Y\':$8.F().Y+17(p,10),\'X\':$8.F().X,\'B-1M\':\'1J\'});5($8.m(\'k\')!==\'\'){$8.C(\'.e\').D()}}});9(\'.e\').U(g(){9(8).D();9(8).1K(\'j\').S()});9(\'j[l=H], j[l=B]\').S(g(){5(9(8).m(\'A\')!==\'\'){9(8).C(\'.e\').D()}});9(\'j[l=H], j[l=B]\').1L(g(){5(9(8).m(\'A\')!==\'\'&&9(8).m(\'k\')===\'\'){9(8).C(\'.e\').26()}})}',62,134,'||currentLabel||className|if|error||this|jQuery||newClass|currentField|var|label|else|function|klasse||input|value|type|attr|match|document|topValue|required|true|returnvar|getElementById|field|strong||300|false|return|alt|text|next|hide|valid|position|numeric|password|telefon|errorbox|fehlermeldung|fadeOut|isNumber|isMailValid|checked|ausgef|uuml|getElementsByTagName|focus|sind|click|errorclose|cboxOverlay|left|top|||newTelClass|class|span|replace|css|formular|parseInt|rueckruf|htmlFor|Abschicken|Fehler|selected|Beim|length|checkbox|Rueckruf|eventuell|haben|Sie|aufgetreten|childNodes|html|number|for|tagName|mail|form|SELECT|name|body|appendTo|validateForm|nicht|fadeIn|undefined|each|trim|null|zA|alle|parents|isNaN|after|color|none|prev|blur|shadow|absolute|aaa|padding|10px|cursor|pointer|rot|gekennzeichnet|br|id|Punkte|llten|Pflichtfelder|llt|Die|falsch|Diese|Meldung|en|show|fadeTo|szlig|schlie'.split('|'),0,{}));

// smoothscroll and gototop-button
//	Last changed:	Sebastian Pontow - s.pontow@euroweb.de
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}('2.z.y=5(6){6=2.A({b:B},6);3 g;3 f=c;3 $e=2(8);3 $7=2(7);3 d=2(D.o).x(0).E().d;$7.t(5(){7.u(g);g=7.w(5(){9($7.p()<=d){f=c;$e.m(6.b)}K 9(f==c){f=h;$e.F(h,h).N(6.b).n(5(){$e.m(6.b)})}},G)})};5 H(){2(\'a[J*=#]\').n(5(){9(j.k.i(/^\\//,\'\')==8.k.i(/^\\//,\'\')&&j.l==8.l){3 $4=2(8.r);$4=$4.q&&$4||2(\'[M=\'+8.r.I(1)+\']\');9($4.q){3 s=$4.L().d;2(\'P,o\').O({p:s},C);v c}}})};',52,52,'||jQuery|var|target|function|settings|window|this|if||fadeSpeed|false|top|message|displayed|scroll_timer|true|replace|location|pathname|hostname|fadeOut|click|body|scrollTop|length|hash|targetOffset|scroll|clearTimeout|return|setTimeout|children|topLink|fn|extend|200|1000|document|position|stop|100|smoothscroll|slice|href|else|offset|name|fadeIn|animate|html'.split('|'),0,{}));
