window.addEvent('domready',function(){
			new SlideItMoo({itemsVisible: 7, // the number of thumbnails that are visible
				currentElement: 0, // the current element. starts from 0. If you want to start the display with a specific thumbnail, change this
				thumbsContainer: 'thumbs2',
				elementScrolled: 'thumb_container2',
				overallContainer: 'gallery_container2'});
			
			var el = $('sizeChanger'),
			font = $('textC');
	
			// Create the new slider instance
			new Slider(el, el.getElement('.knob'), {
				steps: 35,	// There are 35 steps
				range: [8],	// Minimum value is 8
				onChange: function(value){
					// Everytime the value changes, we change the font of an element
					font.setStyle('font-size', value);
				}
			}).set(font.getStyle('font-size').toInt());
			
	$('commentsForm').addEvent('submit', function(e) {
		//Prevents the default submit event from loading a new page.
		e.stop();
		//Empty the log and show the spinning indicator.
		var log = $('comMes').empty().addClass('ajax-loading');
		//Set the options of the form's Request handler. 
		//("this" refers to the $('commentsForm') element).
		this.set('send', {onComplete: function(response) { 
			log.removeClass('ajax-loading');
			log.set('html', response);
		}});
		//Send the form.
		this.send();
		document.getElementById('comMes').style.backgroundColor='#fff8b9';
	});
	
		});
		
		function showCurrentDate() {
			montharray=new Array (
				"января","февраля",
				"марта","апреля","мая",
				"июня",	"июля",	"августа",
				"сентября","октября","ноября",
				"декабря");
			ndata=new Date();
			month=montharray[ndata.getMonth()];
			date=ndata.getDate();
			year=ndata.getFullYear();
			datastr=(" "+ date +" "+ month +" "+ year +" года");
			document.getElementById("current_date").innerHTML = datastr;
		};

		function onLoadFunction() {
			showCurrentDate();
		}