function preload() {
  if (document.images) {
    var imgsrc = preload.arguments;
    arr=new Array(imgsrc.length);
    for (var j=0; j<imgsrc.length; j++) {
      arr[j] = new Image;
      arr[j].src = imgsrc[j];
    }
  }
}

function view_top_menu()
{
  $('.top_menu_items').show();
  $('.view_top_menu').hide();
}

function view_round($id)
{
  $('#'+$id+' .round').show();
  $('#'+$id+' .link').css("background","#427BAD");
}

function hide_round($id)
{
  $('#'+$id+' .round').hide();
  $('#'+$id+' .link').css("background","transparent");
}

$(document).ready(function(){
	// $('.fotolink,.fotolink2').lightBox();
	
	// $('p').eq(0).addClass("first_paragraf");
	
	// $('#wrapper').pngFix( );
	
	
	$.Lightbox.construct({
    show_linkback: false,
    show_helper_text: false,
    show_info: true,
    show_extended_info: true,
    download_link: false,
    keys: {
    	close: 'z',
    	prev: 'q',
    	next: 'e'
    },
    opacity: 0.7,
    text: {
    	image: 'Фото',
    	of: 'из',
    	close: 'Закрыть',
    	download: 'Загрузить'
    }
  }); 
  
  // $('.fotolink,.fotolink2').lightBox();
});

/* $(function(){
  $(".fotolink").lightBox({
  	overlayBgColor: '#EBF5FF',
  	txtImage: 'Фото',
    txtOf: 'из',
    txtPrev: '&nbsp;Назад',
    txtNext: '&nbsp;Вперед',
    keyToClose: 'q',
    keyToPrev: 'z',
    keyToNext: 'c'
  });
}); */

DD_belatedPNG.fix('.png');
