// JavaScript Document

var image1 = new Image();
image1.src = "images/images/mp_left_4x54.jpg";
var image2 = new Image();
image2.src = "images/mp_right_4x54.jpg";
var image3 = new Image();
image3.src = "images/mp_right_act_4x54.jpg";


function ch_style(id,action,is184,juststarted)
{

	var left_styles = Array('mp_left','mp_left_sh');
	var right_styles = Array('mp_right','mp_right_sh','mp_right_act');
	var text_styles = Array('mp','mp_act');
	var line_styles = Array('br_line','br_line_act','br_line_184','br_line_184_act');
	
	if (juststarted == null) 
	{
		if (id == active_id) { return; }
		if (action == 0) {}
		else { ch_style(active_id,0,active_is184,true); }
	}

	var line_action = action;
	var self_right = action*2;
	
	if ((is184 != null)&&(is184)) { line_action+= 2; }
	if (document.getElementById('left_'+(id+1))) { document.getElementById('left_'+(id+1)).className = left_styles[action]; }
	if (document.getElementById('right_'+(id-1))) { document.getElementById('right_'+(id-1)).className = right_styles[action]; }
	if (document.getElementById('line_'+id)) { document.getElementById('line_'+id).className = line_styles[line_action]; }
	if (document.getElementById('right_'+id)) { document.getElementById('right_'+id).className = right_styles[self_right]; }
	if (document.getElementById('text_'+id)) { document.getElementById('text_'+id).className = text_styles[action]; }
	
	if (juststarted == null) 
	{
		if (id == active_id) { return; }
		if (action == 0) { ch_style(active_id,1,active_is184,true); }
	}


}

function go2url(url)
{
	window.location = url;	
}
