$(document).ready(function(){
    $("#showSM").click(function(){
        $(".siteMap").slideToggle('fast');
        return false;
    });
})
$(window).load(function(){       
    //
    //    $("#wrapper #leftmenu ul li  ").each(function(){
    //        p=$(this).position();
    //        R=295;
    //        Offseter=70;
    //
    //
    //        $(this).css({
    //            left:  Math.sqrt( 2*R*p.top -(p.top*p.top) )  -Offseter - $(this).children().first().width() +0.02*p.top
    //        }
    //        );
    //    });
    $("ul.napisali li a span").hide();
    //    $("ul.napisali li a span").css("opacity","0.9");

    $(function() {
        $("ul.napisali li a").hover(
            function() {
                $(this).children("span").fadeIn("fast");
            },
            function() {
                $(this).children("span").css("display","none");
            });
    });
    //    $("ul.lList li a").lightBox();
    //    $(".big ul li a").lightBox();

    $("ul.napisali li a").click(function() {
        window.open(this.href);
        return false;
    });
//    alert('window load');
      
}); 
function eventTest() {    
    $('.scrollcontainer').jScrollPane({
        dragMaxHeight:20,
        reinitialiseOnImageLoad: true
    });
}
$(function(){    
    $('div#animation').cycle({
        delay:1000,
        speed:1000
    });
})

