jQuery(document).ready(function(){			  
	noSpam();
	smoothscroll();
	naviFade();
	input(-7);
	jQuery('#gototop').topLink({fadeSpeed: 300});
	if(jQuery('a.guestbook').length > 0){
		jQuery('a.guestbook').fancybox({
				'overlayShow'	: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'width'				: '70%',
				'height'			: '75%',
				'type' : 'iframe',
				'autoScale'			: false
		});
	}
	jQuery('a[rel^=lightbox]').fancybox({
				'overlayShow'	: true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'				
	});
});

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

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}('7(!f)2 f=s;7(!k)2 k=u;d y(4){2 4=0.x({1:\'v\',3:\'w\',5:\'z\',9:\'9\',8:\'8\',b:m},4);2 1=4.1;2 3=4.3;2 5=4.5;2 9=4.9;2 8=4.8;2 b=4.b;0(\'.\'+5).A();0(\'.\'+3+\'.\'+8).p(d(){7(0.q(0(6).r())==\'\'){0(6).t()}});$e=0(f.P.L);$1=$e.c(3)?$e:(b?0(\'.\'+3+\':K\'):o);7($1){$1.j(1).h(\'.\'+5).M(N,d(){7($e.c(3)){2 l=$1.O().l;0(k).J(l)}})}0(\'.\'+3+\', .\'+9).B(d(){$6=0(6);$a=$6.c(3)?$6:0(0(6).I(\'D\'));2 i=$a.h(\'.\'+5).C(\':i\')?m:o;0(\'.\'+5).E(g);0(\'.\'+1).F(1);7(i){7($a.c(8)){$a.j(1).H(\'.\'+3).n(g)}G{$a.j(1).h(\'.\'+5).n(g)}}})};',52,52,'jQuery|active|var|toggle|settings|content|this|if|multi|accAnchor|toggler|openFirst|hasClass|function|urlElem|doc|300|next|hidden|addClass|win|top|true|slideDown|false|each|trim|text|document|remove|window|accActive|accToggle|extend|acc|accContent|hide|click|is|href|slideUp|removeClass|else|nextUntil|attr|scrollTop|first|hash|show|10|offset|location'.split('|'),0,{}));


jQuery(function($){
				$.supersized({
				
					//Functionality
					slideshow               :   1,		//Slideshow on/off
					autoplay				:	1,		//Slideshow starts playing automatically
					start_slide             :   1,		//Start slide (0 is random)
					random					: 	0,		//Randomize slide order (Ignores start slide)
					slide_interval          :   5000,	//Length between transitions
					transition              :   1, 		//0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left
					transition_speed		:	1500,	//Speed of transition
					new_window				:	1,		//Image links open in new window/tab
					pause_hover             :   0,		//Pause slideshow on hover
					keyboard_nav            :   1,		//Keyboard navigation on/off
					performance				:	1,		//0-Normal, 1-Hybrid speed/quality, 2-Optimizes image quality, 3-Optimizes transition speed // (Only works for Firefox/IE, not Webkit)
					image_protect			:	1,		//Disables image dragging and right click with Javascript
					image_path				:	'img/', //Default image path

					//Size & Position
					min_width		        :   0,		//Min width allowed (in pixels)
					min_height		        :   0,		//Min height allowed (in pixels)
					vertical_center         :   1,		//Vertically center background
					horizontal_center       :   1,		//Horizontally center background
					fit_portrait         	:   1,		//Portrait images will not exceed browser height
					fit_landscape			:   0,		//Landscape images will not exceed browser width
					
					//Components
					navigation              :   1,		//Slideshow controls on/off
					thumbnail_navigation    :   1,		//Thumbnail navigation
					slide_counter           :   1,		//Display slide numbers
					slide_captions          :   1,		//Slide caption (Pull from "title" in slides array)
					slides 					:  	[		//Slideshow Images
														{image : 'http://partyservice-stoewer.de/images/slideshow/slideshow01.jpg'},  
														{image : 'http://partyservice-stoewer.de/images/slideshow/slideshow02.jpg'},
														{image : 'http://partyservice-stoewer.de/images/slideshow/slideshow03.jpg'},
														{image : 'http://partyservice-stoewer.de/images/slideshow/slideshow04.jpg'},
														{image : 'http://partyservice-stoewer.de/images/slideshow/slideshow05.jpg'} 
												]
												
				}); 
		    });

// form_validation v. 2.2 incl. newslettererror
//  ----------------------------
// | 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}('j 1h(J){9 4=0;9 2=\'\';9 8=\'\';9 e=\'\';9 6=\'\';1g(9 i=0;i<h.C("l").1f;i++){2=h.C("l")[i];5(2.I){8=h.o(2.I)}e=2.3;6=2.3.H(/ 4/,\'\');5(2.1j==J&&8){5(8.1l==\'1k\'){5(8.E==m){h.o(\'l-y\').3+=\' k D\'}b{9 F=h.o(\'l-y\').3.H(/ k D/,\'\');h.o(\'l-y\').3=F}}5(e.g(/k/)){5(8.14==\'13\'){5(8.17[1].18){2.3=6;2.3+=\' 4\';4=1}b{2.3=6}}b 5(8.1c==\'1b\'){5(8.E==v){2.3=6;2.3+=\' 4\';4=1}b{2.3=6}}b{5(8.n==\'\'){2.3=6;2.3+=\' 4\';4=1}b{2.3=6}}}5(e.g(/1o/)){9 x=G(8);5(!x&&!e.g(/k/)&&8.n!=\'\'){2.3=6;2.3+=\' 4\';4=1}b{2.3=6}5(!x&&e.g(/k/)){2.3=6;2.3+=\' 4\';4=1}b{5(4==0){2.3=6}}}5(e.g(/1n/)){9 z=12(8);5(!z&&8.n!=\'\'){2.3=6;2.3+=\' 4\';4=1}b{2.3=6}5(!z&&e.g(/k/)){2.3=6;2.3+=\' 4\';4=1}b{5(4==0){2.3=6}}}}}5(4===0){q m}b{9 $c=f(\'#1p\');$c.M(\'N\');$c.1s(\'<r>1t 1w B 1v 1u.</r> 1G 1q 1x 1D 1B 19 K&L;1F. 1z 1A K&L;1a 15 B <r 16="4">1d</r> 1i.<1e /><a 10="A">11 Q R&P;O</a>\').S(d);f(\'#t\').T(d,0.7);f(\'#A\').X(\'W\',\'U\').V(j(){$c.s(d);f(\'#t\').s(d)});q v}}j G(u){9 p=(1E(1m(u.n))==m)?v:m;q p}j 12(u){9 p=(u.n.g(/^[\\w\\.\\-]+@([\\w\\-]+\\.)+[a-1C-Z]+$/))?m:v;q p}j 1r(){9 $c=f(\'#1y\');$c.1H(\'<a 10="Y">11 Q R&P;O</a>\');$c.M(\'N\');$c.S(d);f(\'#t\').T(d,0.7);f(\'#Y\').X(\'W\',\'U\').V(j(){$c.s(d);f(\'#t\').s(d)})}',62,106,'||currentLabel|className|error|if|newClass||currentField|var||else|errorbox|300|klasse|jQuery|match|document||function|required|label|true|value|getElementById|returnvar|return|strong|fadeOut|cboxOverlay|field|false||numeric|telefon|valid|errorclose|sind|getElementsByTagName|rueckruf|checked|newTelClass|isNumber|replace|htmlFor|formular|ausgef|uuml|appendTo|body|en|szlig|Meldung|schlie|fadeIn|fadeTo|pointer|click|cursor|css|errorclose2||id|Diese|isMailValid|SELECT|tagName|Punkte|class|childNodes|selected|Pflichtfelder|llten|checkbox|type|rot|br|length|for|validateForm|gekennzeichnet|form|Rueckruf|name|parseInt|mail|number|fehlermeldung|haben|newsletterError|html|Beim|aufgetreten|Fehler|Abschicken|eventuell|fehlermeldung2|Die|falsch|alle|zA|nicht|isNaN|llt|Sie|append'.split('|'),0,{}))


//input()
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}('6 3(g){1(\'3[5=d], 3[5=7]\').l(6(){f $0=1(0);8($0.4(\'a\')!==\'\'&&1.r($0.4(\'e\'))===\'\'){$0.q(\'<i p="2">\'+$0.4(\'a\')+\'</i>\');f $2=$0.9(\'.2\');$2.o({\'m\':\'#n\',\'s\':\'C\',\'c\':\'z\',\'h\':$0.c().h+A(g,B),\'j\':$0.c().j,\'7-y\':\'t\'});8($0.4(\'e\')!==\'\'){$0.9(\'.2\').b()}}});1(\'.2\').u(6(){1(0).b();1(0).v(\'3\').k()});1(\'3[5=d], 3[5=7]\').k(6(){8(1(0).4(\'a\')!==\'\'){1(0).9(\'.2\').b()}});1(\'3[5=d], 3[5=7]\').w(6(){8(1(0).4(\'a\')!==\'\'&&1(0).4(\'e\')===\'\'){1(0).9(\'.2\').x()}})}',39,39,'this|jQuery|label|input|attr|type|function|text|if|next|alt|hide|position|password|value|var|topValue|top|span|left|focus|each|color|aaa|css|class|after|trim|padding|none|click|prev|blur|show|shadow|absolute|parseInt|10|10px'.split('|'),0,{}));

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

// 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,{}))

