var newClass = function() {
	return function() {
		return this.init.apply(this, arguments);
	}
}

var Smena = newClass();

Smena.prototype = {

  init: function() {
	 var t = this;	
	 
	 
	$(".ButtonNull input").mouseover(function() {
      $(this).addClass('ButtonNav');
    });
	
	$(".ButtonNull input").mouseout(function() {
		$(this).removeClass('ButtonNav');
    });

	$(".ButtonInput input").mouseover(function() {
      $(this).addClass('ButtonInputNav');
    });
	
	$(".ButtonInput input").mouseout(function() {
		$(this).removeClass('ButtonInputNav');
    });

	$(".ZaprosInput input").mouseover(function() {
      $(this).addClass('ZaprosInputNav');
    });
	
	$(".ZaprosInput input").mouseout(function() {
		$(this).removeClass('ZaprosInputNav');
    });
	
	$(".OtsyvButton input").mouseover(function() {
      $(this).addClass('OtsyvButtonNav');
    });
	
	$(".OtsyvButton input").mouseout(function() {
		$(this).removeClass('OtsyvButtonNav');
    });

	$(".BgOB").mouseover(function() {
      $(this).addClass('BgOBNav');
    });
	
	$(".BgOB").mouseout(function() {
		$(this).removeClass('BgOBNav');
    });
	
	$(".KorsIn input").mouseover(function() {
      $(this).addClass('KorsInNav');
    });
	
	$(".KorsIn input").mouseout(function() {
		$(this).removeClass('KorsInNav');
    });
	
	$(".ButtonZakaz input").mouseover(function() {
      $(this).addClass('ButtonZakaznav');
    });
	
	$(".ButtonZakaz input").mouseout(function() {
		$(this).removeClass('ButtonZakaznav');
    });
	
	$(".ReturnSpisokZak a").mouseover(function() {
      $(this).addClass('RSZNav');
    });
	
	$(".ReturnSpisokZak a").mouseout(function() {
		$(this).removeClass('RSZNav');
    });

	$(".ChangeText").click(function() {
      t.changeClicktext();
    });

 },
 
  changeClicktext: function() {
	  $(".ChangeText .BgOB").toggleClass('DisplayNone');	  	
  }


};

$(document).ready(function(){
	new	Smena();
});