function overM1(id) {
	document.getElementById("m1left"+id).style.background = "url(images/left.gif) no-repeat left -68px";
	document.getElementById("m1right"+id).style.background = "url(images/right.gif) no-repeat right -68px";
	document.getElementById("href"+id).style.color = "#007ed7";
	if (document.getElementById("drop"+id)) document.getElementById("drop"+id).style.display = "block";
}

function outM1(id) {
	document.getElementById("m1left"+id).style.background = "url(images/left.gif) no-repeat left 0px";
	document.getElementById("href"+id).style.color = "#ffffff";
	document.getElementById("m1right"+id).style.background = "url(images/right.gif) no-repeat right 0px";
	if (document.getElementById("drop"+id)) document.getElementById("drop"+id).style.display = "none";
}

function overM10(id) {
	document.getElementById("m1left"+id).style.background = "url(images/left0.gif) no-repeat left -68px";
	document.getElementById("m1right"+id).style.background = "url(images/right.gif) no-repeat right -68px";
	document.getElementById("href"+id).style.color = "#007ed7";
	if (document.getElementById("drop"+id)) document.getElementById("drop"+id).style.display = "block";
}

function outM10(id) {
	document.getElementById("m1left"+id).style.background = "url(images/left0.gif) no-repeat left 0px";
	document.getElementById("href"+id).style.color = "#ffffff";
	document.getElementById("m1right"+id).style.background = "url(images/right.gif) no-repeat right 0px";
	if (document.getElementById("drop"+id)) document.getElementById("drop"+id).style.display = "none";
}

/*если есть 2 уровень меню*/

function overM1c(id) {
	document.getElementById("m1left"+id).style.background = "url(images/leftc.gif) no-repeat left -68px";
	document.getElementById("m1right"+id).style.background = "url(images/rightc.gif) no-repeat right -68px";
	document.getElementById("href"+id).style.color = "#007ed7";
	if (document.getElementById("drop"+id)) document.getElementById("drop"+id).style.display = "block";
}

function outM1c(id) {
	document.getElementById("m1left"+id).style.background = "url(images/leftc.gif) no-repeat left 0px";
	document.getElementById("href"+id).style.color = "#ffffff";
	document.getElementById("m1right"+id).style.background = "url(images/rightc.gif) no-repeat right 0px";
	if (document.getElementById("drop"+id)) document.getElementById("drop"+id).style.display = "none";
}
function overM10c(id) {
	document.getElementById("m1left"+id).style.background = "url(images/left0c.gif) no-repeat left -68px";
	document.getElementById("m1right"+id).style.background = "url(images/rightc.gif) no-repeat right -68px";
	document.getElementById("href"+id).style.color = "#007ed7";
	if (document.getElementById("drop"+id)) document.getElementById("drop"+id).style.display = "block";
}

function outM10c(id) {
	document.getElementById("m1left"+id).style.background = "url(images/left0c.gif) no-repeat left 0px";
	document.getElementById("href"+id).style.color = "#ffffff";
	document.getElementById("m1right"+id).style.background = "url(images/rightc.gif) no-repeat right 0px";
	if (document.getElementById("drop"+id)) document.getElementById("drop"+id).style.display = "none";
}

function overM2(id) {
	/*document.getElementById("m2dropr"+id).style.background = "url(images/m2dropron.gif) no-repeat right ";
	document.getElementById("m2dropl"+id).style.background = "url(images/m2droplon.gif) no-repeat left";*/
}

function outM2(id) {
	/*document.getElementById("m2dropr"+id).style.background = " #e3f1ff";
	document.getElementById("m2dropl"+id).style.background = " #e3f1ff";*/
}

function overM1a(id) {
	if (document.getElementById("drop"+id))	document.getElementById("drop"+id).style.display = "block";
	document.getElementById("m1left"+id).style.background = "url(images/leftc.gif) no-repeat left -68px";
	document.getElementById("m1right"+id).style.background = "url(images/rightc.gif) no-repeat right -68px";
}

function outM1a(id) {
	if (document.getElementById("drop"+id))	document.getElementById("drop"+id).style.display = "none";
	document.getElementById("m1left"+id).style.background = "url(images/left.gif) no-repeat left -68px";
	document.getElementById("m1right"+id).style.background = "url(images/right.gif) no-repeat right -68px";
}

function overM1a0(id) {
	if (document.getElementById("drop"+id))	document.getElementById("drop"+id).style.display = "block";
	document.getElementById("m1left"+id).style.background = "url(images/left0c.gif) no-repeat left -68px";
	document.getElementById("m1right"+id).style.background = "url(images/rightc.gif) no-repeat right -68px";
}

function outM1a0(id) {
	if (document.getElementById("drop"+id))	document.getElementById("drop"+id).style.display = "none";
	document.getElementById("m1left"+id).style.background = "url(images/left0.gif) no-repeat left -68px";
	document.getElementById("m1right"+id).style.background = "url(images/right.gif) no-repeat right -68px";
}

function overCronics(id) {
	obj = document.getElementById(id);
	obj.style.display = "block";
}

function outCronics(id) {
	obj = document.getElementById(id);
	obj.style.display = "block";
}

