// -------- start of jQuery document.ready() ---------- //
  
$(document).ready(function() {

  //adding ID menu for compatibility
  $("menu").attr({id: "menu"});
  
  //adding top round corners to the content
  $("#content .inside").append("<em class='top'></em>")
  
  //removing background from the last li in footer
  $("#footer li:last").css({background: 'none', paddingRight: '0'});
  
  //padding-left to the first element in top menu
  $("menu li:first").addClass("first");
  
  //adding the balloons to the navigation
  $("#navigation").append("<em></em>");
  
  //profiles, toggle answers
  $("dir li.answers a").toggle( function() {
  $("div.question-answers").css("display", "none");
    $("dir").css ({borderBottom: 'none', height: '10px', paddingBottom: '0'})
    return false;
  }, function (){

    $("div.question-answers").css("display", "block");
    $("dir").css ({borderBottom: '1px dashed #D0EBED', height: '30px', paddingBottom: '1.5em'})
    return false;
  });
  
  /*
  if($.browser.mozilla) { $(function () {
  
	var name = "#navigation";
	var menuYloc = null;
	
			menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")))
			$(window).scroll(function () { 
				offset = menuYloc+$(document).scrollTop()+"px";
				$(name).animate({top:offset},{duration:800,queue:false});
			});
	});}
  */

});
// -------- end of jQuery document.ready() ---------- //


function hlasuj(ans,que){
  $.get("/anketa.php",{ ans: ans, que: que }, function(data){
    $(".poll"+que).html(data);
  });
  return false;
}
