$(document).ready(function(){
						   
	/* some styles for safari */						   
	//if(jQuery.browser.safari) $("head").append('<link rel="stylesheet" type="text/css" href="/common/css/safari.css" media="screen, projection" />')
	/* /some styles for safari */
	
  /* rounded corners */
  $(".table th").filter(":first-child").addClass(" first-child");
  $(".table th").filter(":last-child").addClass(" last-child");
  $(".table td").filter(":first-child").addClass(" first-child");

  $(".fund-table th").filter(":first-child").addClass(" first-child");
  $(".fund-table th").filter(":last-child").addClass(" last-child");
  $(".fund-table td").filter(":first-child").addClass(" first-child");

  $(".report th").filter(":first-child").addClass(" first-child");
  $(".report th").filter(":last-child").addClass(" last-child");
  $(".report td").filter(":first-child").addClass(" first-child");
  /* /rounded corners */
  
  /* pif-menu */

  /* disabled by perrero, 2010.07.22
  $("#m2, #m3, #m4, #m5, #m6").hide(); // Прячем все блоки, за исключением информации о компании
  $("#pm-m1").addClass(" clicked");
  */

  /*
  function(){ 
    clickMenu('m1'); // инициализация функции переключения меню 
  }
  */

  /* disabled by perrero, 2010.07.22
  $(".pif-menu table td").hover(
    function(){
	  $(this).addClass(" active")// при наведении мышки на пункт меню -- добавляем класс active...
	},
	function(){
      $(this).removeClass(" active"); // ...и убираем
	  }
	);
	$(".pif-menu table td").click(
		function(){
		  $("*").removeClass(" clicked");
		  $(this).addClass(" clicked")
		}	
	);
  */

  /* /pif-menu */

  /* reports menu */
  var current_year = 2008;
  $(".reports .reportItem").hide();
  //$(".reports #reportItem-" + current_year).customShow("slow");
  $(".reports .reports-menu #m-" + current_year).addClass(" active");
  $(".reports .reports-menu li").click(
	  function(){
		 $(".reports .reports-menu *").removeClass(" active");
		 $(this).addClass(" active")
	  }	
    );
  /* /reports menu */

});



function clickReportsMenu(year){
	$(".reports .reportItem").hide();
	$(".reports #reportItem-" + year).customShow("slow");
}
