//Выпадающее меню
	<!--//--><![CDATA[//><!--
		jsHover = function() {
			var hEls = document.getElementById("nav").getElementsByTagName("li");
			for (var i=0, len=hEls.length; i<len; i++) {
				hEls[i].onmouseover=function() { this.className+=" jshover"; }
				hEls[i].onmouseout=function() { this.className=this.className.replace(" jshover", ""); }
			}
		}
		if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", 
	
	jsHover);
	//--><!]]>
	function set_menu_over(id) {
	
		for (i = 0; i < num_menu; i++) {
			
			objl = document.getElementById('bl'+i);
			objr = document.getElementById('br'+i);
		
			if (id != i) {
				
				objl.className = 'dot';
				objr.className = 'dot';
				
			} else {
			
				objl.className = 'left_border_menu';
				objr.className = 'right_border_menu';
				
			}
			
		}
		
	}

	function searchStart() {
		
		obj = document.forms["search_form"].keyword;
		
		if (!obj.value || obj.value == 'Найти') {
			alert('Введите текст для начала поиска!');
		} else {
			document.search_form.submit();
		}
	}


//показать/скрыть блок-----------------
	function hideShow(id,type) {
		
		block = document.getElementById(id);
		
		if (!type) {	
			if (block.style.display == 'none') {
				block.style.display = '';
			} else {
				block.style.display = 'none';
			}
		} else if (type == 'none' || type == 'block') {
			block.style.display = type;
		} else if (type == 'up' && block.style.display != 'none') {
			//alert('up');
			Slide(id).up();
		} else if (type == 'down' && block.style.display == 'none') {
			//alert('down');
			Slide(id).down();
		}
		
	}
	
	function hsLeftBlock(id) {
		
		block = document.getElementById('lbc'+id);
	
		if (block.style.display == 'none') {
			Slide('lbc'+id).down();
			document.getElementById('lbp'+id).innerHTML = '<img src="'+http_path+'img/leftblock_close.jpg" alt="Скрыть" />';
		} else {
			Slide('lbc'+id).up();
			document.getElementById('lbp'+id).innerHTML = '<img src="'+http_path+'img/leftblock_open.jpg" alt="Отобразить" />';
		}
		
	}

//Slide - плавное открытие и закрытие блока
	var slideInUse = new Array();
	
	function Slide(objId, options) {
		this.obj = document.getElementById(objId);
		this.duration = 1;
		this.height = parseInt(this.obj.style.height);
	
		if(typeof options != 'undefined') { this.options = options; } else { this.options = {}; }
		if(this.options.duration) { this.duration = this.options.duration; }
			
		this.up = function() {
			this.curHeight = this.height;
			this.newHeight = '1';
			if(slideInUse[objId] != true) {
				var finishTime = this.slide();
				window.setTimeout("Slide('"+objId+"').finishup("+this.height+");",finishTime);
			}
		}
		
		this.down = function() {
			this.newHeight = this.height;
			this.curHeight = '1';
			if(slideInUse[objId] != true) {
				this.obj.style.height = '1px';
				this.obj.style.display = 'block';
				this.slide();
			}
		}
		
		this.slide = function() {
			slideInUse[objId] = true;
			var frames = 30 * duration; // Running at 30 fps
	
			var tIncrement = (duration*1000) / frames;
			tIncrement = Math.round(tIncrement);
			var sIncrement = (this.curHeight-this.newHeight) / frames;
	
			var frameSizes = new Array();
			for(var i=0; i < frames; i++) {
				if(i < frames/2) {
					frameSizes[i] = (sIncrement * (i/frames))*4;
				} else {
					frameSizes[i] = (sIncrement * (1-(i/frames)))*4;
				}
			}
			
			for(var i=0; i < frames; i++) {
				this.curHeight = this.curHeight - frameSizes[i];
				window.setTimeout("document.getElementById('"+objId+"').style.height='"+Math.round(this.curHeight)+"px';",tIncrement * i);
			}
			
			window.setTimeout("delete(slideInUse['"+objId+"']);",tIncrement * i);
			
			if(this.options.onComplete) {
				window.setTimeout(this.options.onComplete, tIncrement * (i-2));
			}
			
			return tIncrement * i;
		}
		
		this.finishup = function(height) {
			this.obj.style.display = 'none';
			this.obj.style.height = height + 'px';
		}
		
		return this;
	}