function initialize() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("mapa"));
		map.setCenter(new GLatLng(54.3779, 19.4390), 14);
		map.setUIToDefault();
	}
}

$(function() {
	$(".newsticker").jCarouselLite( {
		vertical : true,
		hoverPause : true,
		visible : 4,
		auto : 5000,
		speed : 500
	});
});

function autoFill(id, v) {
	$(id).css( {
		color : "#FB6600"
	}).attr( {
		value : v
	}).focus(function() {
		if ($(this).val() == v) {
			$(this).val("").css( {
				color : "#000"
			});
		}
	}).blur(function() {
		if ($(this).val() == "") {
			$(this).css( {
				color : "#FB6600"
			}).val(v);
		}
	});
}

function startAccordion() {
	$(document).ready(function() {
		jQuery('#sidebarmenu').accordion( {
			header : '.title',
			active : false,
			alwaysOpen : 0,
			autoheight : false
		});
	});
}

function translejt($string) {
	// document.getElementById($string).innerHTML = "uuu";

	$(document).ready(function() {
		alert($string);
	});
}

function translate1($string) {
	// var toTranslate = document.getElementById($string).innerHTML;
	// google.language.translate(toTranslate,"en","pl",function(result) {if
	// (!result.error) {document.getElementById($string).innerHTML =
	// result.translation;}});
}

$(document).ready(function() {
	$(document).pngFix();

	featuredcontentslider.init( {
		id : "shmain",
		contentsource : [ "inline", "" ],
		toc : "#increment",
		nextprev : [ "", "" ],
		revealtype : "mouseover",
		enablefade : [ true, 0.05 ],
		autorotate : [ true, 5000 ],
		onChange : function(previndex, curindex) {
		}
	});
	autoFill($("#inputnlr"), $("#inputnlr").val());
	initialize();
	$(".galeria a").fancybox( {
		'overlayShow' : true
	});

});

