$(function(){
	if($('#slider').html()){
		$('#slider').s3Slider({timeout:4000, fadeTime:1000});
	}
	$('#nav li a:not(.inactive)').hover(
		function(){
			if(!$(this).hasClass('active')){
				$(this).css('background-color', '#000').stop().animate({
					paddingRight: '50px',
					backgroundColor: '#fff',
					color: '#000'
				}, 300);
			}else{
				$(this).stop().animate({
					paddingRight: '50px',
				}, 300);
			}
		},
		function(){
			if($(this).hasClass('active')){
				$(this).stop().animate({
					paddingRight: '12px'
				}, 300);
			}else{
				$(this).stop().animate({
					paddingRight: '12px',
						backgroundColor: '#000',
						color: '#fff'
				}, 300);
			}
		}
	);
	$('.thumb img').hover(
		function(){
			$(this).animate({ opacity: '1' }, 600);
		},
		function(){
			$(this).animate({ opacity: '.5' }, 600);
		}
	);
	$('input[type=text]').focus(function(){ $(this).val(''); });
	$('#thumbs ul li a').click(function(){
		var klikniete = $(this).attr('href');
		$('#slideshow img').attr('src', klikniete);
		return false;
	});

    $("#map").goMap({ 
        markers: [{  
            latitude: 52.407373,
            longitude: 16.936572, 
            title: 'KURO by Panamo'
        }],
		maptype: 'ROADMAP',
		zoom: 17
    });
});
