// JavaScript Document
	$(document).ready(function(){
				
				$('#controller').jFlow({
					slides: '#maincontent',
					controller: '.jFlowControl',
					width: '100%',
					height: '388px',
					easing: 'easeOutBack',
					duration: 400,
					next: '.jFlowNext',	
					interval: 9999999999 /*so it does not automatically scroll. Gets a little cranky when you add too many 9s though.*/
							
				});		
				
				$('#controller2').jFlow({
					slides: '#top',
					controller: '.jFlowControl2',
					width: '100%',
					height: '320px',
					easing: 'swing',
					duration: 800,
					interval: 6000,
					next: '.jFlowNext2',
					prev: '.jFlowPrev2'
				});	
						  
				 $('#news').cycle({ 
					fx:     'fade', 
					timeout: 6000, 
					delay:  -2000 
				});
				
				$('#hpportfolio').cycle({ 
					fx:     'scrollDown', 
					timeout: 6000, 
					delay:  -2000,
					easing: 'easeOutBack',
					pause:   1
				});
				
				$('a.nudge').hover(function() { //mouse in
				$(this).animate({ paddingTop: 0 }, 400, 'easeOutBounce');
				}, function() { //mouse out
				$(this).animate({ paddingTop: 20 }, 400, 'easeOutBounce');
				});
				
				$('a.rnudge').hover(function() { //mouse in
				$(this).animate({ paddingRight: '20px' }, 400, 'easeOutBounce');
				}, function() { //mouse out
				$(this).animate({ paddingRight: 0 }, 400, 'easeOutBounce');
				});
				
				$('.scroll-pane').jScrollPane({
					scrollbarWidth: 12,
					wheelSpeed: 100            
				});		         
				
				/*form examples*/
				
				$('#search').example('Search');
				$('#name2').example('John Smith');
				$('#email2').example('example@address.com');
				$('#phone').example('For us to contact you');
				$('#site').example('www.example.com');
				$('#company').example('Foundation');
				$('#messagebox').example('How can we help you?');
				
				$('#search_pl').example('Szukaj');
				$('#name_pl').example('Jan Kowalski');
				$('#email_pl').example('przykladowy@adres.com');
				$('#phone_pl').example('Dla nas do kontaktu');
				$('#site_pl').example('www.twoja_nazwa.com');
				$('#company_pl').example('Fundacja');
				$('#messagebox_pl').example('Jak mozemy Ci pomoc?');
				
				$('#search_sp').example('Search');
				$('#name_sp').example('Juan Sanchez');
				$('#email_sp').example('ejemplo@direccion.com');
				$('#phone_sp').example('Para que te llamamos');
				$('#site_sp').example('www.ejemplo.com');
				$('#company_sp').example('Fundacion');
				$('#messagebox_sp').example('como te podemos ayudar?');
				
				
				/*end of form examples*/
				
				/*
				
				$("#tag").click(function(){
				$("#tag").animate({ right: '900px', opacity: 'hide'}, 'slow', 'easeOutBack');
				
				});
				
				*/
				
		/*$("#accordion").accordion({
			autoHeight: false,
			
		});
		$('#wycieczka1').click(function () {$("#accordion").accordion('activate' , 1)});
		$('#wycieczka2').click(function () {$("#accordion").accordion('activate' , 2)});
		$('#wycieczka3').click(function () {$("#accordion").accordion('activate' , 3)}); */
		  $(function() {
          $('h2#wycieczka1').click(function() {
                $('#pane1').removeClass('hide');
				$('#pane2').addClass('hide');
				$('#pane3').addClass('hide');
				$('#pane0').addClass('hide');
               
            });   
		  
		  
		  $('h2#wycieczka2').click(function() {
                $('#pane1').addClass('hide');
				$('#pane2').removeClass('hide');
				$('#pane3').addClass('hide');
				$('#pane0').addClass('hide');
               
            }); 
		  
		   $('h2#wycieczka3').click(function() {
                $('#pane1').addClass('hide');
				$('#pane2').addClass('hide');
				$('#pane3').removeClass('hide');
				$('#pane0').addClass('hide');
               
            }); 
        });

				
				$.uGallery(); /*Initiates the Gallery*/      
				});     
					
