$(document).ready(function(){

get_url_parameter( "DS" );


if(get_url_parameter()){
   $("#content, #logo, #menu, #footer").css({'display': 'none'});
   $("#logo").fadeIn(300, 
      function(){
          $("#menu").fadeIn(300, function(){
              $("#content").fadeIn(300, function(){
                     $("#footer").fadeIn(300);
              });
          });
          
      }
   );
   $("#menu").css({'display': 'none'});
}  
   
   $("#logo").hover(
      function(){
          $(this).animate({'left': '30px'},200)
      },
      function(){
          $(this).animate({'left': '35px'},200)
      }
   );

   $("#menu a").hover(function(){
			$(this).stop().animate({ lineHeight: "31px" }, 200);

   		},function(){
				$(this).stop().animate({ lineHeight: "39px" }, 100);
    });
    $('p.round').corner("round");
  });
  
function get_url_parameter(){
    var _s = window.location.href
    var _m = 'cz'; // needle
    var _c = 0;
    for (var i=0;i<_s.length;i++) {
        if (_m == _s.substr(i,_m.length))
        _c++;
    }
    if(_c > 1) return false;
    else return true;
}

