	$(document).ready(function()	{ 
  /*  menu */  
   $("ul#menu_top_ul li:last-child a").addClass("noborder"); 
   $("div#menu_left li:last-child").addClass("noborder"); 
   $("div#menu_bottom li:last-child").addClass("noborder"); 
 

/* set font */
$("#setfont1").click(function() {

     $(".content_middle").removeClass('fontsize2');
     $(".content_middle").addClass('fontsize1');
     
  	});
$("#setfont2").click(function() {
     $(".content_middle").removeClass('fontsize1');
     $(".content_middle").addClass('fontsize2'); 	
  	});
  	
  	
  
  /* var div = document.getElementsByTagName('div');
   for(i=0; i < div.length; i++) {
   	  if (div[i].id == 'content_middle') {
   	  	div[i].style.fontSize = size + "%";
				div[i].style.lineHeight = (line/10) + "em"
				
				}
   }
}
    */
    
 /* carousel */
 function mycarousel_initCallback(carousel) {
    // Disable autoscrolling if the user clicks the prev or next button.
    carousel.buttonNext.bind('click', function() {
        carousel.startAuto(0);
    });
 
    carousel.buttonPrev.bind('click', function() {
        carousel.startAuto(0);
    });
 
    // Pause autoscrolling if the user moves with the cursor over the clip.
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};
 
 $('#mycarousel').jcarousel({
        auto: 2,
        wrap: 'circular',
        initCallback: mycarousel_initCallback
    });
             
	/* photogallery */
	$("a[rel^='prettyPhoto']").prettyPhoto({
			theme: 'facebook', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
			overlay_gallery: false,
      show_title: false
		});

    
    
/* print*/         
  	$("a#print_button").click(function() {
      window.print(); 	
  	});
  		$("a#tisknout-stranku").click(function() {
      window.print(); 	
  	});
/* news*/
   $(".news_info:last-child").addClass("noborder"); 
   $('div.hide').hide();
   $('a.onclick').click(function() {
    $(this).prev().slideToggle('fast');
		if ($(this).html()=="[+]") {
			 $(this).html("[-]");
			 return false;
			 }
		if ($(this).html()=="[-]") $(this).html("[+]");
		return false;
  });
/* last news */
  $('div.hide-news').hide();
  $('#last-action').click(function() {
  $(".hide-news").slideToggle('fast');
  });

/* email */
$("#email").focus(function() {this.value='';	return false;})
$("#name").focus(function() {this.value='';	return false;})
$("#input").focus(function() {this.value='';	return false;})
 
/* notice   */
 $("#dialog").dialog({
			height: 120,
			modal: true,
			buttons: {
				Ok: function() {
					$(this).dialog('close');
				}
			}
		});


});




  
