		Cufon.replace('ul#main_menu li a', {hover: true});
		Cufon.replace('.slide_elem p');
		Cufon.replace('#content_header');
		Cufon.replace('#bottom_menu li a');

	$(function() {
	    // run the code in the markup!
	$('#s1').cycle({
	        speed:       1200,
	        timeout:     3000,
	        pager:      '#wrap_taglines ul',
	        pagerEvent: 'mouseover',
			pauseOnPagerHover: true,
				    pagerAnchorBuilder: function(idx, slide) { 
	/* 			    <img alt="inna dzialalnosc" src= /> */
	/* 	        return '<li><img src="img/' + slide.children[0].alt + '.png"/></li>';  */
				return '<li class="tagline_nav '+ slide.children[0].alt + '"><a href="'+ slide.children[1].href +'"></a></li>'
		    } 
	});

	});


		$(document).ready(function()
		{
		
        $('#main_menu li').click(function()
        {
          var url = $(this).next('a').attr('href');
          // document.location.href = url;
        
        });
        
        $('.tagline_nav').click(function()
        {
          var url = $(this).find('a').attr('href');
          document.location.href = url;
        
        });
        
        
        $('.menuInfo').click(function()
        {
            var url = $(this).next('a').attr('href');
            // document.location.href = url;
        });
		
		$('#main_menu li').hover(function()
		{
		   
           $(this).find('.menuInfo').fadeIn(100);
		   $(this).find('a').addClass("red_nav");
		   		Cufon.replace(this);

		},
		function()
		{
		  
		  $(this).find('.menuInfo').fadeOut(100);
		  $(this).find('a').removeClass("red_nav");
				   		Cufon.replace(this);

		});
		
		$('.header_container').hover(function()
		{
		   
		   $(this).addClass("highlighted_news")
		   $(this).find('.news_header').find('h1').addClass('red_nav').addClass('active_news');
                        // Cufon.replace($(this).find('h1'));


		},
		function()
		{
		  
		  $(this).removeClass("highlighted_news")
		  $(this).find('.news_header').find('h1').removeClass('red_nav').removeClass('active_news');
                        // Cufon.replace($(this).find('h1'));



		});
		
		$('#bottom_menu li').hover(function()
		{
		   
		   $(this).find('a').addClass("red_nav");
	   		Cufon.replace(this);

		},
		function()
		{
		  
		  $(this).find('a').removeClass("red_nav");
   		  Cufon.replace(this);

		});
		

		});
		
        // $(document).ready(function() {     
    	   	$(".extraimages").fancybox({
    				'titlePosition'	: 'over',
    				'showActivity':true,
    				'cyclic':true,
    				'autoScale':true,
    				'width':700

          // });
          
          
		});	
		
		
