/*
var zobrazit1 = true;
var zobrazit2 = true;
var zobrazit3 = true;

$(document).ready(function() {
   
   $('div.obdelnik1 div a').click(function(e){
     zobrazit1 = false;
     zobrazit2 = false;
     zobrazit3 = false;
   });
   $('div.obdelnik2 div a').click(function(e){
     zobrazit1 = false;
     zobrazit2 = false;
     zobrazit3 = false;
   });
   $('div.obdelnik3 div a').click(function(e){
     zobrazit1 = false;
     zobrazit2 = false;
     zobrazit3 = false;
   });
   
   $('div.obdelnik1 div').click(function(e){
      if (zobrazit1) {
          $('.obdelnik1 div div.rollup').css({
            'display':'block',
            'height':'0px',
            'opacity':'0.85'});
          $('.obdelnik1 div div.rollup').animate({
            height: '325px'
          }, 400 , function() {
              zobrazit1 = false;
          });
      }
      if (zobrazit1 == false) {
          $('.obdelnik1 div div.rollup').animate({
            height: '0px'
          }, 400 , function() {
              $('.obdelnik1 div div.rollup').css('display','none');
              $('.obdelnik1 div div.rollup').css('padding','0px');
              zobrazit1 = true;
          });
      }
   });
   
   
   $('div.obdelnik2 div').click(function(e){
      if (zobrazit2) {
          $('.obdelnik2 div div.rollup').css({
            'display':'block',
            'height':'0px',
            'opacity':'0.85'});
          $('.obdelnik2 div div.rollup').animate({
            height: '325px'
          }, 400 , function() {
              zobrazit2 = false;
          });
      }
      if (!zobrazit2) {
          $('.obdelnik2 div div.rollup').animate({
            height: '0px'
          }, 400 , function() {
              $('.obdelnik2 div div.rollup').css('display','none');
              $('.obdelnik2 div div.rollup').css('padding','0px');
              zobrazit2 = true;
          });
      }
   });
  
   $('div.obdelnik3 div').click(function(e){
      if (zobrazit3) {
          $('.obdelnik3 div div.rollup').css({
            'display':'block',
            'height':'0px',
            'opacity':'0.85'});
          $('.obdelnik3 div div.rollup').animate({
            height: '325px'
          }, 400 , function() {
              zobrazit3 = false;
          });
      }
      if (!zobrazit3) {
          $('.obdelnik3 div div.rollup').animate({
            height: '0px'
          }, 400 , function() {
              $('.obdelnik3 div div.rollup').css('display','none');
              $('.obdelnik3 div div.rollup').css('padding','0px');
              zobrazit3 = true;
          });
      }
   });
   
});
*/



$(document).ready(function()
{
	slide("#bodycenter", 25, 15, 150, .8);
});

function slide(navigation_id, pad_out, pad_in, time, multiplier)
{
	
	var list_elements = navigation_id + " div.obd";
	$(list_elements).each(function(i) {
		 $("div div.rollup",this).css('height','0');
		 $("div div.rollup",this).css('opacity','0.85');
	});

	$(list_elements).each(function(i) {
		$(this).hover(function(){
			  $("div div.rollup",this).animate({ height: '300px' }, 400);
		},function(){
			$("div div.rollup",this).animate({ height: '0px' }, 400, function() {
         $(this).css('display','none');
      });
		});
	});
}

















