//<![CDATA[
$(document).ready(function()
{

     $.reject({  
        reject: { msie5: true,msie6: true }, 
        header: 'Vedeli Ste o tom, &#382;e Internet Explorer 6 je zastaral&#253;?',  
        paragraph1: 'Pr&#225;ve ho pou&#382;&#237;vate. Pre&#269;o pou&#382;&#237;va&#357; nie&#269;o, &#269;o bolo vymyslen&#233; pre surfovanie na internete v rokoch 2000, ke&#271; si m&#244;&#382;te ZADARMO dopria&#357; viac?',
        paragraph2: 'Sk&#250;ste porozm&#253;&#353;la&#357; nad lep&#353;&#237;m internetov&#253;m prehliada&#269;om ako je ten, ktor&#253; pr&#225;ve pou&#382;&#237;vate. Cho&#271;te s dobou a nain&#353;talujte si jeden z t&#253;chto uveden&#253;ch.',
        closeMessage: 'Po zatvoren&#237; tohto okna sa str&#225;nka nemus&#237; spr&#225;vne zobrazova&#357; na tomto type prehliada&#269;a.',
		imagePath: 'http://studiof5.sk/toto/images/prehliadace/',
		closeCookie: true
     });

$.easing.bouncy = function (x, t, b, c, d) { 
    var s = 1.70158; 
    if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; 
    return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; 
} 
 
// create custom tooltip effect for jQuery Tooltip 
$.tools.tooltip.addEffect("bouncy", 
 
    // opening animation 
    function(done) { 
        this.getTip().animate({top: '+=15'}, 500, 'bouncy', done).show(); 
    }, 
 
    // closing animation 
    function(done) { 
        this.getTip().animate({top: '-=15'}, 500, 'bouncy', function()  { 
            $(this).hide(); 
            done.call(); 
        }); 
    } 
);



	$(function() {         
	         
	    $("div.vertical").scrollable({ 
	        vertical:true,  
	        size: 1 
	         
	    }).circular().navigator().mousewheel().autoscroll({ 
	    steps: 1, 
	    interval: 10000         
		});
	     
	}); 

	$('.preview-image').append('<span class="corners"></span>').hover(function () {
	 $("img", this).stop().animate({top:"-54px"},{queue:false,duration:200});
		 }, function() {
     $("img", this).stop().animate({top:"0px"},{queue:false,duration:400});
	 
	});




	$(function() { 
		if ( !$.browser.msie ) {
			$(".checkbox").change(function(){
				if($(this).is(":checked")){
					$(this).next("label").addClass("LabelSelected");
				}else{
					$(this).next("label").removeClass("LabelSelected");
				}
			});
		};		     
	}); 





	$("#rybycka").mouseenter(function(){$("#chyba").fadeOut("slow");});

    $("#rybycka[title]").tooltip({tip: '#minitip', effect: 'bouncy'});
    $("#partneri .wrap .partner a[title]").tooltip({tip: '#tip', offset: [-30, 0], effect: 'bouncy'});


	
	$(function() { 
	    $("#referencia").click(function() { 
	        $(this).expose({api: true, lazy:true, maskId:'mask'}).load(); 
	 
	    }); 
	});

	$('#vypis ul li a').hover(function () {
		 $(this).stop().animate({marginLeft:"20px"},{queue:false,duration:300});
		}, function() {
	     $(this).stop().animate({marginLeft:"3px"},{queue:false,duration:400});
	});

	$('#legenda ul li a').hover(function () {
		 $(this).stop().animate({marginBottom:"15px"},{queue:false,duration:300});
		}, function() {
	     $(this).stop().animate({marginBottom:"3px"},{queue:false,duration:400});
	});

	$('#vypis ul ul li:last').addClass("border-bottom");

});
//]]>

