function ChangeLeft(action,item) {
	if(action=="on") {
		item.className = "smenu_a";
	}
	if(action=="off") {
		item.className = "smenu_n";
	}
}

function ChangeRight1(action,item) {
	if(action=="on") {
		document.getElementById('right1').className = 'bg8 bb'+item;
	}
	if(action=="off") {
		document.getElementById('right1').className = 'bg8';
	}
}

function ChangeRight2(action,item) {
	if(action=="on") {
		document.getElementById('right2').className = 'bg88 bbb'+item;
	}
	if(action=="off") {
		document.getElementById('right2').className = 'bg88';
	}
}

function ChangeTopMenu(action,type,item) {
	if(action=="on") {
		document.getElementById('toptd'+item).className = "top_menu_item_td";
		document.getElementById('top'+item).className = "top_menu_item_a";
		if(type!="first") {
			document.getElementById('topimg'+item).src="images/pic8.jpg";
		}
		if(type=="first") {
			document.getElementById('topfirst').src="images/pic9.jpg";
		}
		if(type=="last") {
			document.getElementById('toplast').src="images/pic10.jpg";
		}
	}
	if(action=="off") {
		document.getElementById('toptd'+item).className = "";
		document.getElementById('top'+item).className = "top_menu_item";
		if(type!="first") {
			document.getElementById('topimg'+item).src="images/pic4.jpg";
		}
		if(type=="first") {
			document.getElementById('topfirst').src="images/pic2.jpg";
		}
		if(type=="last") {
			document.getElementById('toplast').src="images/pic3.jpg";
		}
	}
}
