        var suma = 0.0;
		var actualPercent = 0;
        var nextPercent = 0;
        var nextLevel = 0;
        var nextLevelSub = 0;
        var sumaPoRabacie = 0;

		function hidePic()
		{
			$("#pic").hide();
		}

        function showPic(obj,url)
		{
			if(url=='') return false;
			$("#pic img").attr("src",url);
            var picWidth = 256;
            var picHeight = picWidth * parseFloat($("#pic img").css("height")) / parseFloat($("#pic img").css("width"));
            //alert (parseFloat($("#pic img").css("height")) + " *** " + picHeight + " width: " + parseFloat($("#pic img").css("width")) + " *** " + picWidth);
            $("#pic img").attr("width",picWidth);
			var pos = $(obj).offset();
			var offset = parseInt($(obj).css('height'));
			var posTop = pos.top+offset;
			$("#pic").css('left', pos.left-picWidth/2);
			$("#pic").css('top', pos.top);
            $("#pic").css('width',picWidth);
            if (navigator.appName=="Microsoft Internet Explorer") {
                picHeight=picWidth * 6 / 8;
                $("#pic img").attr("height",picHeight);
                $("#pic").css('height',picHeight);
            }
			$("#pic").fadeIn('fast');
		}
		
		function showPic2(obj,url)
		{
			if(url=='') return false;
			$("#pic img").attr("src",url);
            var picWidth = 256;
            var picHeight = picWidth * parseFloat($("#pic img").css("height")) / parseFloat($("#pic img").css("width"));
            //alert (parseFloat($("#pic img").css("height")) + " *** " + picHeight + " width: " + parseFloat($("#pic img").css("width")) + " *** " + picWidth);
            $("#pic img").attr("width",picWidth);
			var pos = $(obj).offset();
			var offset = parseInt($(obj).css('height'));
			var posTop = pos.top+offset;
			$("#pic").css('left', pos.left-picWidth/2);
			$("#pic").css('top', pos.top);
            $("#pic").css('width',picWidth);
            if (navigator.appName=="Microsoft Internet Explorer") {
                picHeight=picWidth * 6 / 8;
                $("#pic img").attr("height",picHeight);
                $("#pic").css('height',picHeight);
            }
			$("#pic").fadeIn('fast');
		}