$(document).ready(function(){
	$('.spl_snip_next').click(function() {
    $('.spl_snip').toggle();
    $('.spl_snip_next').toggle();
    $('.show_link').toggle();
    return false;
  });
  
  $('.hide_snip_next').click(function() {
    $('.spl_snip').toggle();
    $('.spl_snip_next').toggle();
    $('.show_link').toggle();
    return false;
  });
  
});


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");
});




function check_fb()
{
  name = $("#fb_name").attr("value");
  phone = $("#fb_phone").attr("value");
  
  if(name != "") {
    if(phone != "")
      return true;
    else {
      alert("Введите Ваш телефон");
      return false;
    }
  } else {
    alert("Введите Ваше имя");
    return false;
  }
}
