function reload(){
	var $active = $(".active");
	var $next = $active.next().length ? $active.next() : $(".focusitem:first");

	$active.removeClass('active');
	$next.removeClass('notactive');
	$active.addClass('notactive');
	$next.addClass('active');
}

$(document).ready(function() { 
	Cufon.replace('h1, h2, h3, h4', { fontFamily: 'Calluna'});
	$('a[href="#"]').click(function(){ return false});
	
	
	//test rozwijacz
$(document).ready(function() {	
	
		$('#open-1').click(
		function() {
		
		$("body").fadOut();
		
        });
});
	
	
	
	
	
	//rotator
	$(".goleft").click( function(e) {
        var $active = $(".active");
        var $next = $active.prev().length ? $active.prev() : $(".focusitem:last");
 
        $active.removeClass('active');
        $active.addClass('notactive');
        $next.addClass('active');
        $next.removeClass('notactive');
    });
 
    $(".goright").click( function(e) {
        var $active = $(".active");
        var $next = $active.next().length ? $active.next() : $(".focusitem:first");

        $active.removeClass('active');
		$next.removeClass('notactive');
        $active.addClass('notactive');
        $next.addClass('active');
    });
	
	setInterval( "reload()", 10000 );

	alert(msg);
	//animation top baner
	// $('#content-rotator').fadeIn();	
		// $('.tea-title h1:eq(0)').animate({right: '+=410'}, 1000)
		// $('.tea-title h2:eq(0)').animate({right: '+=410'}, 1300);
		// $('.tea-title h2:eq(1)').animate({right: '+=410'}, 1500);
	//font dla windowsa	
	var system = navigator.platform;
	if (system = 'Win32 ' ){$('body').css('font-family','Arial');};
	//product gallery
	$(".gallery-select-nav li img:lt(4)").click(function(){
		var target = $(this).attr("src");
		$(".rotate-product img").removeAttr("src").attr('src', target);	
		$(".gallery-select-nav li img").removeClass('activ-img');
		$(this).addClass('activ-img');
   });
   //acordeon menu
   $('.button-category').click(function() {
	  $(this).next('ul li').slideToggle('slow', function() {});
	});
	
	$('.#rotate-product-ban div:eq(0)').css('display', 'none');
	
	alert(baner[0]);	
});
