function formatText(index, panel) {
	  return index + "";
  };

$(function () {

	$('.anythingSlider').anythingSlider({
		easing: "easeOutBounce",        // Anything other than "linear" or "swing" requires the easing plugin
		autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
		delay: 6000,                    // How long between slide transitions in AutoPlay mode
		startStopped: false,            // If autoPlay is on, this can force it to start stopped
		animationTime: 800,             // How long the slide transition takes
		hashTags: false,                 // Should links change the hashtag in the URL?
		buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
			pauseOnHover: false,             // If true, and autoPlay is enabled, the show will pause on hover
			startText: "Go",                // Start text
			stopText: "Stop",               // Stop text
			navigationFormatter: formatText // Details at the top of the file on this use (advanced use)
	});
	
	$("#slide-jump").click(function(){
		$('.anythingSlider').anythingSlider(6);
	});
	
});

Cufon.replace('#menu_top, #header ul.navigation, h1, h2, h3', {hover: 'true'});

$(document).ready(function() {

	$("#form_body").not("div.show").hide();
	
	$("a.show").text('ukryj formularz kontaktowy');
	
	$("#form").not("a.show").click(
	function()
	{
		$("#form_body").slideToggle("normal");
	}).toggle(function() { $(this).text('ukryj formularz kontaktowy'); }, function() { $(this).text("pokaż formularz kontaktowy"); });
	
	$("a.show").click(
	function()
	{
		$("#form_body").slideToggle("normal");
	}).toggle(function() { $(this).text('pokaż formularz kontaktowy'); }, function() { $(this).text("ukryj formularz kontaktowy"); });	
console.log($('#menu_top').offset());
	$('.right iframe').css({'z-index': 999, 'position': 'absolute', 'top': $('.thumbNav').offset().top - 6, 'left': $('.thumbNav').offset().left + $('.thumbNav').width() - 300}).fadeIn();
	
});

