function gif_over(id) {
	img = document.getElementById(id);
	img.src=img.src.replace('.gif','r.gif');
};
function gif_out(id) {
	img = document.getElementById(id);
	img.src=img.src.replace('r.gif','.gif');
};

function m_over(id) {
	img = document.getElementById(id);
	img.src=img.src.replace('.gif','_a.gif');
};
function m_out(id) {
	img = document.getElementById(id);
	img.src=img.src.replace('_a.gif','.gif');
};

function menu_over(id){
	bg = document.getElementById("menu"+id);
	div = document.getElementById("left_div");
	bg.style.backgroundImage = bg.style.backgroundImage.replace('.gif','r.gif');
	div.style.backgroundImage = div.style.backgroundImage.replace('left.gif','left'+id+'.gif');
}
function menu_out(id){
	bg = document.getElementById("menu"+id);
	div = document.getElementById("left_div");
	bg.style.backgroundImage = bg.style.backgroundImage.replace('r.gif','.gif');
	div.style.backgroundImage = div.style.backgroundImage.replace('left'+id+'.gif','left.gif');
}

function top_menu_over(id){
	document.getElementById("top_menu_"+id).style.backgroundImage = "url(/img/top_menu/menu"+id+".gif)";
}
function top_menu_out(id){
	document.getElementById("top_menu_"+id).style.backgroundImage = "url(/img/spacer.gif)";
}

function active_menu(id){
	//id.style.backgroundColor = '#87051D';
	document.getElementById('bg_menu'+id).style.backgroundColor = "#87051D";
	document.getElementById('menu'+id).style.backgroundImage = "url('/img/index2/left_menu_bgr.gif')";
}
function passive_menu(id){
	//id.style.backgroundColor = '#F85510';
	document.getElementById('bg_menu'+id).style.backgroundColor = "#E0D7CE";
	document.getElementById('menu'+id).style.backgroundImage = "url('/img/index2/left_menu_bg.gif')";
}

function menu_over_new(id){
	//bg = document.getElementById("menu"+id);
	//div = document.getElementById("left_div");
	//bg.style.backgroundImage = bg.style.backgroundImage.replace('.gif','r.gif');
	//div.style.backgroundImage = div.style.backgroundImage.replace('left.gif','left'+id+'.gif');
	div = document.getElementById("menu_right_"+id);
	table = document.getElementById("table_menu");
	div.style.backgroundImage = "url('/img/menu/bg_rightr.gif')";
	table.style.backgroundImage = "url('/img/menu/left"+id+".gif')";
}
function menu_out_new(id){
	//bg = document.getElementById("menu"+id);
	//div = document.getElementById("left_div");
	//bg.style.backgroundImage = bg.style.backgroundImage.replace('r.gif','.gif');
	//div.style.backgroundImage = div.style.backgroundImage.replace('left'+id+'.gif','left.gif');
	div = document.getElementById("menu_right_"+id);
	table = document.getElementById("table_menu");
	div.style.backgroundImage = "url('/img/menu/bg_right.gif')";
	table.style.backgroundImage = "url('/img/menu/left.gif')";
}
function active_line(id){
	document.getElementById("_line").style.backgroundImage = "url('/img/menu/left"+id+"_r.gif')";
}


/*

function menu_over_dop(){
	div.style.backgroundImage = "url('/img/menu_page/buttono.gif')";
}
function menu_out_dop(){
	div.style.backgroundImage = "url('/img/menu_page/button.gif')";
}

*/


/*
function showwin(url){
	document.getElementById("black_div").style.display = "block";
	document.getElementById("text_div").style.display = "block";
	load_div(url,text_div);
}   */