
	// gabo.js
	
	$(document).ready(function() 
	{
		$('.toolTip').hover(
			function() {
			this.tip = this.title;
			$(this).append(
				'<div class="toolTipWrapper">'
					+'<div class="toolTipTop"></div>'
					+'<div class="toolTipMid">'
						+this.tip
					+'</div>'
					+'<div class="toolTipBtm"></div>'
				+'</div>'
			);
			this.title = "";
			this.width = $(this).width();
			$(this).find('.toolTipWrapper').css({left:this.width-22})
			$('.toolTipWrapper').fadeIn(300);
		},
		function() {
			$('.toolTipWrapper').fadeOut(100);
			$(this).children().remove();
				this.title = this.tip;
			}
		);
	});
	
	// 
	hs.graphicsDir = 'media/layout/hs-galeria/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
 	hs.fadeInOut = true;
 	hs.wrapperClassName = 'dark';
	hs.dimmingOpacity = 0.75;
	
	// define the restraining box
	hs.useBox = false;
	hs.width = 900;
	hs.height = 600;
	hs.dimmingOpacity = 0.75;
		
	// Add the controlbar
	hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			opacity: 1,
			position: 'bottom center',
			hideOnMouseOut: true
		}
	});	
	
	//
	function zamykajdiva(elementID) 
	{ 
		if (document.getElementById) 
		{ // DOM3 = IE5, NS6 
		  document.getElementById(elementID).style.visibility = 'hidden'; 
		  document.getElementById(elementID).style.display = 'none'; 
		  document.getElementById(elementID).setAttribute( 'style', 'display:none' );
		  document.getElementById(elementID).setAttribute( 'style', 'visibility:hidden' );
 		} 
		
 	} 	
