function setMenu()



{



	url = window.location.toString();



	



	if(url.indexOf('about.html') != -1)



	{



		document.getElementById('menu1-1').className='current';	



	}



	else if(url.indexOf('news.html') != -1)



	{



		document.getElementById('menu1-2').className='current';	



	}



	else if(url.indexOf('production.html') != -1)



	{



		document.getElementById('menu1-3').className='current';	



	}



	else if(url.indexOf('service.html') != -1)



	{



		document.getElementById('menu1-4').className='current';	



	}



	



	if(url.indexOf('burovoe-oborudovanie.html') != -1)



	{



        $(".i1").addClass("current_image");

		document.getElementById('menu2-1').className='current2';

        //document.getElementById('imenu2-1').className='current';



	}



	else if(url.indexOf('burovoj-instrument.html') != -1)



	{



        $(".i2").addClass("current_image");

		document.getElementById('menu2-2').className='current2';	



	}



	else if(url.indexOf('bur-nasosi.html') != -1)



	{



        $(".i3").addClass("current_image");

		document.getElementById('menu2-3').className='current2';	



	}



	else if(url.indexOf('predstavitelstva.html') != -1)



	{



        $(".i4").addClass("current_image");

		document.getElementById('menu2-4').className='current2';	



	}



	else if(url.indexOf('contacts.html') != -1)



	{



        $(".i5").addClass("current_image");

		document.getElementById('menu2-5').className='current2';	



	}



}











var cur_id = '';







function setCurId()



{



	url = window.location.toString();



	



	if (url.indexOf('kolonkovoe-burenie.html') != -1 || url.indexOf('sharoshechnoe-burenie.html') != -1 || url.indexOf('shnekovoe-burenie.html') != -1 || url.indexOf('udarno-kanatnoe-burenie.html') != -1 || url.indexOf('pnevmoudarnoe-burenie-kolcevim-zaboem.html') != -1 || url.indexOf('pnevmoudarnoe-burenie-sploshnim-zaboem.html') != -1 || url.indexOf('vspomogatelnij-instrument.html') != -1 || url.indexOf('avarijnij-instrument.html') != -1)



	{



		cur_id = 'pb1';	



	}



	else if (url.indexOf('nb-32-nb-50.html') != -1 || url.indexOf('nb-3-nb-4.html') != -1)



	{



		cur_id = 'pb2';	



	}



	



	if(navigator.appName=='Opera' && false) //т.к. в опере происходит глюк меню, если начинаем просмотр с url вида http://zavodbt.ru, то приходится раскрывать меню полностью



	//сейчас сделал в Опере как и в остальных браузерах (добавил false в if), т.к. по непонятным причинам, глюк исчез



	{



		document.getElementById('sub1').style.display = '';



		document.getElementById('sub2').style.display = '';



		document.getElementById('sub3').style.display = '';



	}



	



	cur_el = document.getElementById(cur_id);



	if(cur_el)



		cur_el.style.display = '';



}

