
		function showBubbleBig(e, url) {
			var ePosition=$(e).offset();

			$('body').append('<div id="tooltipBubble">Loading...</div>');
			$('#tooltipBubble').width(700);
			//$("#tooltipBubble").height(200);
			$("#tooltipBubble").css('border', '2px solid #000');
			$("#tooltipBubble").css('padding', '10px');
			$("#tooltipBubble").css('z-index', 1000);
			$("#tooltipBubble").css('position', 'absolute');
			$("#tooltipBubble").css('background-color', '#fff');
			$("#tooltipBubble").css('top', (ePosition['top']+$(e).outerHeight()));
			$("#tooltipBubble").css('left', (ePosition['left']-$("#tooltipBubble").outerWidth()));
			$("#tooltipBubble").css('overflow', 'hidden');
			$("#tooltipBubble").css('font-size', '100%');
			$("#tooltipBubble").css('text-align', 'left');
			$("#tooltipBubble").css('font-family', 'Verdana, Arial, sans-serif');
			$("#tooltipBubble").load(url);
			
			$(e).mouseout(function() {$("#tooltipBubble").remove();});
		}
		
		
		
		
				function showBubble(e, url) {
			var ePosition=$(e).offset();

			$('body').append('<div id="tooltipBubble">Loading...</div>');
			$('#tooltipBubble').width(500);
			//$("#tooltipBubble").height(200);
			$("#tooltipBubble").css('border', '2px solid #000');
			$("#tooltipBubble").css('padding', '10px');
			$("#tooltipBubble").css('z-index', 1000);
			$("#tooltipBubble").css('position', 'absolute');
			$("#tooltipBubble").css('background-color', '#fff');
			$("#tooltipBubble").css('top', (ePosition['top']+$(e).outerHeight()));
			$("#tooltipBubble").css('left', (ePosition['left']-$("#tooltipBubble").outerWidth()));
			$("#tooltipBubble").css('overflow', 'hidden');
			$("#tooltipBubble").css('font-size', '100%');
			$("#tooltipBubble").css('text-align', 'left');
			$("#tooltipBubble").css('font-family', 'Verdana, Arial, sans-serif');
			$("#tooltipBubble").load(url);
			
			$(e).mouseout(function() {$("#tooltipBubble").remove();});
		}


		
		$('#mnu-tree').ready(function() {
			//$("ul#tree_all").Treeview({collapsed: true});
			//alert($("ul#tree_all").children().length);

			tree = $('#mnu-tree');
			
			var treeNodes=tree.find('li');
			
			for(x=0;x<treeNodes.length;x++) {
				var node=treeNodes[x];
				node.id='tree-node'+(x+1);
				//if($.cookie('debora_tree-node'+(x+1))==1 || !$.cookie('debora_tree-node'+(x+1))) {
				if($.cookie('debora_tree-node'+(x+1))==1) {
					$(treeNodes[x]).children('ul').show();
				}
			}
			
			$('li', tree.get(0)).each(
				function()
				{
					subbranch = $('ul', this);
					if (subbranch.size() > 0) {
						if (subbranch.eq(0).css('display') == 'none') {
							$(this).prepend('<img src="http://www.levny-knihy.cz/img/sys/tree-expandable.gif" alt="Image" class="expandImage" />');
						} else {
							$(this).prepend('<img src="http://www.levny-knihy.cz/img/sys/tree-collapsable.gif" alt="Image" class="expandImage" />');
						}
					} else {
						$(this).prepend('<img src="http://www.levny-knihy.cz/img/sys/tree-item.gif" alt="Image" class="expandImage" />');
					}
				}
			);
			
			$('img.expandImage', tree.get(0)).click(
				function()
				{
					if($(this).parent('li').children('ul').length>0) {
						var nodeID=this.parentNode.id;
						subbranch = $('ul', this.parentNode).eq(0);
						if (subbranch.css('display') == 'none') {
							subbranch.show();
							this.src = 'http://www.levny-knihy.cz/img/sys/tree-collapsable.gif';
							$.cookie('debora_'+nodeID, '1', { expires: 1, path: '/' })
						} else {
							subbranch.hide();
							this.src = 'http://www.levny-knihy.cz/img/sys/tree-expandable.gif';
							$.cookie('debora_'+nodeID, '0', { expires: 1, path: '/' });
						}
					}
				}
			);		
		});