$(document).ready(function() {

		// Option set as a global variable 3500
		$.fn.loopedSlider.defaults.addPagination = true;
		$('#loopedSlider').loopedSlider({
			autoStart: false,
			restart: 5000,
			addPagination: false,
			containerClick: false
		});

		$('#newsslider').loopedSlider({
	  addPagination: true,
	  autoStart: 6000
		});

		$('#referencieslider').loopedSlider({
	  addPagination: true,
	  autoStart: 4000
		});



  Cufon.replace('h1', { fontFamily: 'Luxi Sans' });
	 Cufon.replace('h2', { fontFamily: 'Luxi Sans' });


$("#referencie img").hover(function(){
  $(this).addClass("hover");
		$(this).fadeTo("slow", 0.5); // This should set the opacity to 100% on hover
	},function(){
   		$(this).fadeTo("slow", 1); // This should set the opacity back to 60% on mouseout
	});


  // OPEN EXTERNAL LINK
  
 $('a[href^=http]')
  .attr({
    target: "_blank",
    title: "Odkaz do nového okna"
   });
   





// SLIDER
	$(".slider .vzorbox").hide();

	$(".slider h3").click(function(){
		$(this).next(".vzorbox").slideToggle("slow").siblings("div:visible").slideUp("slow");
		$(this).toggleClass("active");
		$(this).siblings("h3").removeClass("active");
  return false;
	});
	
	// SLUZBY > HOSTING
  $('div.demo-show > ul').hide();
  $('div.demo-show > h3').click(function() {
    $(this).next().slideToggle('fast');
  });

	// SLUZBY > KATALOGY
  $('div.kat_show > ul').hide();
  $('div.kat_show > h3').click(function() {
    $(this).next().slideToggle('fast');
  });



	});





