var newClass = function() {
	return function() {
		return this.init.apply(this, arguments);
	}
}

var Smena = newClass();

Smena.prototype = {

  init: function() {
	 var t = this;	
	 
	$(".One").click(function() {
    $(this).parents(".BlockRR").find(".One").addClass("SelectRasdel");
    $(this).parents(".BlockRR").find(".Two").removeClass("SelectRasdel");
    $(this).parents(".BlockRR").find(".TableOne").removeClass("DisplayNone");
    $(this).parents(".BlockRR").find(".TableTwo").addClass("DisplayNone");
    });
    
    $(".Two").click(function() {
    $(this).parents(".BlockRR").find(".Two").addClass("SelectRasdel");
    $(this).parents(".BlockRR").find(".One").removeClass("SelectRasdel");
    $(this).parents(".BlockRR").find(".TableTwo").removeClass("DisplayNone");
    $(this).parents(".BlockRR").find(".TableOne").addClass("DisplayNone");
    });
	
	$(".BlockNews .StandartBlockNG").mouseover(function() {
    $(this).addClass("SBNGSel");
    });
	
	$(".BlockNews .StandartBlockNG").mouseout(function() {
    $(this).removeClass("SBNGSel");
    });
	
	$(".BlockVideo .ImgBlock").mouseover(function() {
    $(this).parents(".BlockVideo").find(".BgSB").toggleClass("DisplayNone");
	$(this).parents(".BlockVideo").find(".SelectBlockTd").addClass("SelectBlockTdSel");
    });
	
	$(".BlockVideo .ImgBlock").mouseout(function() {
    $(this).parents(".BlockVideo").find(".BgSB").toggleClass("DisplayNone");
	$(this).parents(".BlockVideo").find(".SelectBlockTd").removeClass("SelectBlockTdSel");
    });
	
	$(".ImgBlock").mouseover(function() {
    $(this).find(".Png").toggleClass("DisplayNone");
    });
	
	$(".ImgBlock").mouseout(function() {
    $(this).find(".Png").toggleClass("DisplayNone");
    });
	
	$(".ComentNumber").mouseover(function() {
	$(this).addClass("ComentNumberSel");
    });
	
	$(".ComentNumber").mouseout(function() {
	$(this).removeClass("ComentNumberSel");
    });

	$(".AutorsBlockSmall .ComentNumber").mouseover(function() {
	$(this).addClass("ComentNumberSelABS");
    });
	
	$(".AutorsBlockSmall .ComentNumber").mouseout(function() {
	$(this).removeClass("ComentNumberSelABS");
    });
	
	$(".ComentHA").mouseover(function() {
	$(this).addClass("ComentHASel");
    });
	
	$(".ComentHA").mouseout(function() {
	$(this).removeClass("ComentHASel");
    });
	
	$(".FullShop span").mouseover(function() {
	$(this).parents(".FullShop").addClass("FullShopSel");
    });
	
	$(".FullShop span").mouseout(function() {
	$(this).parents(".FullShop").removeClass("FullShopSel");
    });

	$(".FullListACS").mouseover(function() {
	$(this).addClass("FullListACSSel");
    });
	
	$(".FullListACS").mouseout(function() {
	$(this).removeClass("FullListACSSel");
    });
	
	$(".FullLN").mouseover(function() {
	$(this).addClass("FullLNSel");
    });
	
	$(".FullLN").mouseout(function() {
	$(this).removeClass("FullLNSel");
    });

 }

};

$(document).ready(function(){
	new	Smena();
});
