var newClass = function() {
	return function() {
		return this.init.apply(this, arguments);
	}
}
Baner = newClass();
Baner.prototype = {
	init: function() {
		var t = this;
		t.BanF = $('#BanF, #vp');
    t.SelectPS = t.BanF.find('.SelectPS, .SelectVP');
	},
	
	photoOver: function(id) {
		// console.log(id);
		var t = this;
		t.SelectPS.find('.ColorfulPhoto').css('display', 'none');
		t.SelectPS.find('.GreyPhoto').css('display', 'inline');
    $('#' + id).find('.ColorfulPhoto').css('display', 'inline');
		$('#' + id).find('.GreyPhoto').css('display', 'none');
  },
  
    
	photoOut: function() {
		var t = this;
		t.BanF.find('.ColorfulPhoto').css('display', 'none');
		t.BanF.find('.GreyPhoto').css('display', 'inline');
	}

}; 


Otvet = newClass();
Otvet.prototype = {
	init: function() {
		var t = this;
		t.HeaderPS = $('#HeaderPSF');
	},
	
	photoOver: function(id) {
		// console.log(id);
		var t = this;
		t.HeaderPS.css('background', '#F8F8F8 url(i/grom1.gif) no-repeat scroll 21px 7px');
	},

	photoOut: function() {
		var t = this;
    t.HeaderPS.css('background', '#F8F8F8 url(i/grom.jpg) no-repeat scroll 21px 7px');
	}

};
