var bg="#102045";
var fg="#FFFFFF";
var curr_marker=new Array();

function mover(id,fcolor,bcolor){
		bg=document.getElementById(id).style.backgroundColor;
		fg=document.getElementById(id).style.color;
		document.getElementById(id).style.backgroundColor=bcolor;
		document.getElementById(id).style.color=fcolor;
		document.getElementById('link_'+id).style.color=fcolor;

 curr_marker["id"]="pm_"+id;
 if(document.getElementById(curr_marker["id"])){
 	curr_marker["visibility"]=document.getElementById(curr_marker["id"]).style.visibility;
 	document.getElementById(curr_marker["id"]).style.visibility="hidden";
	}else{
	curr_marker["visibility"]="hidden";
	}

}

function mout(id){
	with(document.getElementById(id)){
		style.backgroundColor=bg;
		style.color=fg;
	}
	document.getElementById('link_'+id).style.color=fg;
	if(curr_marker["visibility"] != "hidden"){
 		document.getElementById(curr_marker["id"]).style.visibility=curr_marker["visibility"];
	}
}

function clickf(id){
	var a = document.getElementById('link_'+id);

	if (a.target)
	{
		top[a.target].location.href = a.href;
	}
	else
	{
		self.location.href = a.href;
	}
}


var prevbg="#102045";
var prevfg="#FFFFFF";
var nextbg="#102045";
var nextfg="#FFFFFF";
function moverSeparator(id, color)
{
	var prevSeparator = document.getElementById('separator_' + id);
	if (prevSeparator)
	{
		prevbg = prevSeparator.style.backgroundColor;
		prevfg = prevSeparator.style.color;
		prevSeparator.style.backgroundColor = color;
		prevSeparator.style.color = color;
	}
	var nextSeparator = document.getElementById('separator_' + (id+1));
	if (nextSeparator)
	{
		nextbg = nextSeparator.style.backgroundColor;
		nextfg = nextSeparator.style.color;
		nextSeparator.style.backgroundColor = color;
		nextSeparator.style.color = color;
	}
}
function moutSeparator(id)
{
	var prevSeparator = document.getElementById('separator_' + id);
	if (prevSeparator)
	{
		prevSeparator.style.backgroundColor = prevbg;
		prevSeparator.style.color = prevfg;
	}
	var nextSeparator = document.getElementById('separator_' + (id+1));
	if (nextSeparator)
	{
		nextSeparator.style.backgroundColor = nextbg;
		nextSeparator.style.color = nextfg;
	}
}