var doc = document; var win = window;
jQuery(document).ready(function(){
	noSpam();
	smoothscroll();
	naviFade();
	input(-3);
	jQuery('#gototop').topLink({fadeSpeed: 300});
	if(jQuery('a[rel^=lightbox]').length > 0){
		jQuery('a[rel^=lightbox]').fancybox({
					'overlayShow'	: true,
					'transitionIn'	: 'elastic',
					'transitionOut'	: 'elastic'				
		});
	}
	jQuery("#fancyvideohref").fancybox({
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic'
	});
		if(jQuery('a.kundenkarte').length > 0){
		jQuery('a.kundenkarte').fancybox({
				'overlayShow'	: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'width'				: '65%',
				'height'			: '75%',
				'type' : 'iframe',
				'autoScale'			: false
		});
	}
	jQuery('.content').hide();
	jQuery('.click').click(function(){
		jQuery('.content').slideUp(500);
		if(jQuery(this).next('.content').css('display') == 'none'){
			jQuery(this).next('.content').slideDown(500);
		}
	});
	
	jQuery('body').prepend('<div id="cboxOverlay"></div>');
	$overlay = jQuery('#cboxOverlay');
	$overlay.css({
		position:'fixed',
		width:'100%',
		height:'100%',
		background:'#000',
		zIndex:1
	}).fadeOut(0);
	});

	jQuery(window).load(function(){
		jQuery('#overlayImage').fadeOut(4000, function(){
			jQuery('#overlayTop,#overlayBottom').animate({
				height: 0
			}, 1200, function(){jQuery('#overlay').css('display','none');});
		});
		ewPanorama.addTo('backgroundPanorama','100%','100%','images/panorama.jpg',4615,'naviForBackgroundPanorama','images/panoramaTrans-th.jpg');

	});

function naviFade(){
	jQuery('li.drop')
		.mouseenter(function(){
			jQuery(this).children('ul.add01').stop(true,true).fadeIn(300);
		})
		.mouseleave(function(){
			jQuery(this).children('ul.add01').stop(true,true).fadeOut(300);
		});	
};

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 1v(S){d 6=0;d 2=\'\';d c=\'\';d h=\'\';d b=\'\';1n(d i=0;i<o.12("e").1t;i++){2=o.12("e")[i];5(2.15){c=o.t(2.15)}h=2.4;b=2.4.W(/ 6/,\'\');5(2.1o==S&&c){5(c.1q==\'1b\'){5(c.19==r){o.t(\'e-I\').4+=\' q N\'}f{d O=o.t(\'e-I\').4.W(/ q N/,\'\');o.t(\'e-I\').4=O}}5(h.n(/q/)){5(c.1i==\'1w\'){5(c.1x[1].1s){2.4=b;2.4+=\' 6\';6=1}f{2.4=b}}f 5(c.l==\'1r\'){5(c.19==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(/1p/)){d D=18(c);5(!D&&!h.n(/q/)&&c.k!=\'\'){2.4=b;2.4+=\' 6\';6=1}f{2.4=b}5(!D&&h.n(/q/)){2.4=b;2.4+=\' 6\';6=1}f{5(6==0){2.4=b}}}5(h.n(/1m/)){d F=16(c);5(!F&&c.k!=\'\'){2.4=b;2.4+=\' 6\';6=1}f{2.4=b}5(!F&&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 $H=9(\'#K\');$H.1l(\'K\').1u(\'1y\');$H.1c(\'<v>1e 1f V 1h 1j.</v> 1d 1k 1g 1a 1F 20 U&T;21. 22 23 U&T;1Z 1Y V <v M="6">1U</v> 1V.<1W /><a 1X="Q">24 25 2a&29;1z</a>\').27(x);9(\'#P\').28(x,0.7);9(\'#Q\').X(\'1S\',\'1T\').11(g(){9(8).1G(\'.K\').Y(x);9(\'#P\').Y(x)});z y}}g 18(u){d s=(1H(14(u.k))==r)?y:r;z s}g 16(u){d s=(u.k.n(/^[\\w\\.\\-]+@([\\w\\-]+\\.)+[a-1E-Z]+$/))?r:y;z s}g j(p){p=p!=1D&&p!=\'1A\'?p:-3;9(\'j[l=G], j[l=B]\').1B(g(){d $8=9(8);5($8.m(\'A\')!==\'\'&&9.1C($8.m(\'k\'))===\'\'){$8.1I(\'<R M="e">\'+$8.m(\'A\')+\'</R>\');d $e=$8.C(\'.e\');$e.X({\'1J\':\'#1P\',\'1Q\':\'1R\',\'E\':\'1O\',\'13\':$8.E().13+14(p,10),\'17\':$8.E().17,\'B-1N\':\'1K\'});5($8.m(\'k\')!==\'\'){$8.C(\'.e\').J()}}});9(\'.e\').11(g(){9(8).J();9(8).1L(\'j\').L()});9(\'j[l=G], j[l=B]\').L(g(){5(9(8).m(\'A\')!==\'\'){9(8).C(\'.e\').J()}});9(\'j[l=G], j[l=B]\').1M(g(){5(9(8).m(\'A\')!==\'\'&&9(8).m(\'k\')===\'\'){9(8).C(\'.e\').26()}})}',62,135,'||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|numeric|position|valid|password|errorbox|telefon|hide|fehlermeldung|focus|class|rueckruf|newTelClass|cboxOverlay|errorclose|span|formular|uuml|ausgef|sind|replace|css|fadeOut|||click|getElementsByTagName|top|parseInt|htmlFor|isMailValid|left|isNumber|checked|nicht|Rueckruf|html|Sie|Beim|Abschicken|eventuell|Fehler|tagName|aufgetreten|haben|addClass|mail|for|form|number|name|checkbox|selected|length|appendTo|validateForm|SELECT|childNodes|body|en|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|show|fadeIn|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,{}));
