
function formatTitle(title, currentArray, currentIndex, currentOpts) {
    if (title) return '<div id="tip7-title">' + (title && title.length ? '<b>' + title + '</b>' : '' ) + '</div>';
    else return '';

}

     function komunikat_de () {
     
        $.prompt('Bitte kommen Sie bald wieder.',{
            focus:1,
            top: 180,
            buttons:{
                'OK':true
            },
            callback: function(v,m,f){
                                return false;
                            
            }

        }   );
        return false;
     
     }

function foto_zmiana (numer) {
    $('#foto_link').attr('href',linki_f[numer]);
    $('#foto').attr('src',fotosy[numer]);
}




function test() {
    var fr=$('#fraza').val();


    wpisz_fraze=wpisz_fraze.replace('&oacute;','ó');
    if (fr.replace(/\s/g,"")=="" || fr==wpisz_fraze)
    {
        $.prompt(fraza_mus,{
            focus:1,
            top: 180,
            buttons:{
                'OK':true
            },
            callback: function(v,m,f){

                if (fr==wpisz_fraze) $("#fraza").val('');
                $("#fraza").focus();
                $("#fraza").css({
                    'color':"#333333",
                    'font':'normal 12px arial'
                });
            }

        }
        );
        return false;
    } else return true;
}
jQuery.easing.easeOutQuart = function (x, t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};


$(function() {

//$('.prev').click (function () {
//    console.log('klik');
//
//$('#ll').scrollTo( '+=100px', 800,{axis:"x"} );
//return false;
//}
//);

    $('#pscrol').serialScroll({
		items:'li',
		prev:'a.prev',
		next:'a.next',
		offset:0, //when scrolling to photo, stop 230 before reaching it (from the left)
		start:0, //as we are centering it, start at the 2nd
		duration:1200,
		force:true,
		stop:true,
		lock:false,
		cycle:false, //don't pull back once you reach the end
                step:1,
                exclude:4,
		easing:'easeOutQuart', //use this easing equation for a funny effect
		jump: false, //click on the images to scroll to them
                onBefore:function( e, elem, $pane, $items, pos ){

		}
	});





    $(".mLi").hover(function() {
        if ($.browser.msie && $.browser.version.substr(0,1)=="6") {
            $(this).find('.podmenu').css('background','url(gfx/hover.png) no-repeat right top');
        } else {
        $(this).find('.podmenu').css('background','url(gfx/left.png) no-repeat left top');
        }
        $(this).find(".sub").slideDown('fast').show().hover(function() {
            
            },function(){
            
            });

    }, function(){
        if ($(this).parent().find('.podmenu').attr('id') !='mActive') {
        $(this).parent().find('.podmenu').css('background-image','none');
        }
        $(this).find(".sub").slideUp('fast',function(){
            if ($(this).parent().find('.podmenu').attr('id') !='mActive') {
            $(this).parent().find('.podmenu').css('background-image','none');
            }
        }).hide();

    });


    $('#fraza').click(function() {


        if ($(this).val().replace(/\s/g,"")==wpisz_fraze.replace(/\s/g,"")) {

            $(this).val('');
            $(this).css({
                'color':"#333333",
                'font':'normal 12px/21px arial'
            });
        }
    });

    



    

});
