function menuShow(id)
{
	$('#'+id).show();
}

function menuHide(id)
{
	$('#'+id).hide();
}

function textReplace()
{

        Cufon.replace('#menu span');
		Cufon.replace('#menu a');
		
		Cufon.replace('.topMenuLink');

        Cufon.replace('a.silownia', {color: '#619300'});
        Cufon.replace('a.aerobik', {color: '#1d81ce'});
        Cufon.replace('a.spa', {color: '#6f3398'});

        Cufon.replace('.silownia', {color: '#619300'});
        Cufon.replace('.aerobik', {color: '#1d81ce'});
        Cufon.replace('.spa', {color: '#6f3398'});

		Cufon.replace('h1');
		Cufon.replace('h1.kontakt');
		Cufon.replace('h2');
		Cufon.replace('h3');
        
        Cufon.replace('h1.silownia', {color: '#619300'});
        Cufon.replace('h1.aerobik', {color: '#1d81ce'});
        Cufon.replace('h1.spa', {color: '#6f3398'});
		
		Cufon.replace('.spa', {color: '#6f3398'});

        Cufon.replace('h2.silownia', {color: '#619300'});
        Cufon.replace('h2.aerobik', {color: '#1d81ce'});
        Cufon.replace('h2.spa', {color: '#6f3398'});

        Cufon.replace('h3.silownia', {color: '#619300'});
        Cufon.replace('h3.aerobik', {color: '#1d81ce'});
        Cufon.replace('h3.spa', {color: '#6f3398'});

        //Cufon.replace('h2', {color: '#ffffff'});

        //Cufon.replace('h3', {color: '-linear-gradient(#ffa62a, #ff6300)'});
        //Cufon.replace('h4', {color: '-linear-gradient(#ffa62a, #ff6300)'});
		
		
		Cufon.replace('.description h1', {color: '#ffffff'});

}

<!--  Do not remove the lines below - otherwise the hover on menu will not work -->
jQuery(function() {
window.setInterval(
function() {Cufon.refresh('#navigationMenu li a.navigationMenuLink');},
50
	);
});


function textTooltips()
{

	//Select all anchor tag with rel set to tooltip
	$('a[rel=tooltip]').mouseover(function(e) {
		
		//Grab the title attribute's value and assign it to a variable
		var tip = $(this).attr('title');	
		
		//Remove the title attribute's to avoid the native tooltip from the browser
		$(this).attr('title','');
		
		//Append the tooltip template and its value
		$(this).append('<div id="tooltip"><div class="tipHeader"></div><div class="tipBody">' + tip + '</div><div class="tipFooter"></div></div>');		
				
		//Show the tooltip with faceIn effect
		$('#tooltip').fadeIn('500');
		$('#tooltip').fadeTo('10',0.9);
		
	}).mousemove(function(e) {
	
		//Keep changing the X and Y axis for the tooltip, thus, the tooltip move along with the mouse
		$('#tooltip').css('top', e.pageY + 10 );
		$('#tooltip').css('left', e.pageX + 20 );
		
	}).mouseout(function() {
	
		//Put back the title attribute's value
		$(this).attr('title',$('.tipBody').html());
	
		//Remove the appended tooltip template
		$(this).children('div#tooltip').remove();
		
	});
	
}


function makeFancybox()
{
	$("a[rel=lbx]").fancybox({
		'titleShow'		: false
		//'titlePosition'	: 'over'
	});
}

function scrollPane(id)
{
        if(!id)
         id = '#pane1';
         
	$(id).jScrollPane({showArrows:true, scrollbarWidth: 15, arrowSize: 16});
}
/*
function loadProdukt(this)
{

				$('.Produkty li a').blur();
				text = $(this).find("a").attr('href');
				//text = $(this).attr('href');
				text = text.replace('index.php?ToDo=', '');

				$('.Produkty li').removeClass('sel');
				$(this).parent().addClass('sel');
				$('#ProduktKarta').fadeTo(100, 0.5);
				//$('#ProduktKarta').fadeOut(10);
				$('.LoadingProduct').show();

				$('#ProduktKarta').load('remote.php?section=' + text, function() {

					//Load was performed
					textReplace();
					textTooltips();
					makeFancybox();

					$('.LoadingProduct').hide();

					$('#ProduktKarta').fadeTo(100, 1);

					//$('#ProduktKarta').fadeIn(10);
				});

}
*/

