Cufon.replace('h1', {
	textShadow: '1px 1px rgba(0, 0, 0, 0.1)',
	color: '-linear-gradient(#333, #a1a1a1)'
});

Cufon.replace('h2, h3');

Cufon.replace('#bottom-menu a, .col-menu .level-top', {
	fontFamily: 'NewsGothDmEU',
	hover: true} );

/************************************************************* */

$(function() {
	$('a.nyroModal').nyroModal({
		autoSizable: true,
		closeButton: '<a href="#" class="nyroModalClose" id="closeBut" title="Zamknij okno"></a>'
	});

	$('#referencje a.pos, #realizacje a.pos').tooltip({
		track: true,
		delay: 0,
		showURL: false,
		showBody: " - ",
		fade: 250
	});

	$('#referencje a.pos').flyout({destPadding: 0,
				startOffsetX: 0,
				startOffsetY: 0,
				loadingText: 'Wcztywanie...',
				closeTip: 'Kliknij aby schować'});

	$('#realizacje a.pos').lightBox({
		overlayBgColor: '#999',
		overlayOpacity: 0.6,
		txtImage: 'Zdjęcie',
		txtOf: 'z'

	});

	$('.clearField').clearField();

	$('#top-menu li a, #top .but_prib').append('<span class="hover"></span>');
	// span whose opacity will animate when mouse hovers.

	$('#top-menu li a, #top .but_prib').hover(function() {
		$('.hover', this).stop().animate({
			'opacity': 1
			}, 500,'easeOutSine')
        },

		function() {
			$('.hover', this).stop().animate({
			'opacity': 0
			}, 500, 'easeOutQuad')

		})
	});

