/**
 * @author BitArtis.pl
 */

$(document).ready(function() {
	$('a.LB').lightBox();
	
	$(".right_item").click(function () { 
		idek=$(this).attr("id");
		idek=idek.split("_");
		idek=idek[1];
		
		$('.leftContent').each(function () {
			$(this).hide();
		});
		$('#tekst_'+idek).show();

		$('.k_1').each(function () {
			$(this).hide();
		});
		$('#kreska_'+idek).show();
		
		$('.right_item').each(function () {
			$(this).css("color", $('html').css("color"));
		});
		$('#menu_'+idek).css("color", "#eba600");
	});

	$('.right_item').hover(
		function() {
			idek=$(this).attr("id");
			idek=idek.split("_");
			idek=idek[1];
			$('#menuh_'+idek).show();
		},
		function() {
			idek=$(this).attr("id");
			idek=idek.split("_");
			idek=idek[1];
			$('#menuh_'+idek).hide();
		}
	);

});

function polecaj() {
	$('#polec').show();
}

function polec_OK() {
	$('#polec_OK').hide();
}



/*

 */
// Lighbox
/*
$(document).ready(function() {
	$('a.LB').lightBox();
})
*/


// Google MAPS
/*
function load() {
	var zoom=11;
	var xx=50.0;
	var yy=22.0;
	var point = new GLatLng(xx,yy);  
	var marker = new GMarker(point);

	if (GBrowserIsCompatible()) { 
		var mapa = new GMap2(document.getElementById("mapka")); 
		mapa.addControl(new GSmallZoomControl());
		mapa.setCenter(new GLatLng(xx,yy), zoom); 
		mapa.addOverlay(marker);
	}
}
*/
