NavColors = new Array("D7AF09", "249CD3", "EB690D", "D7AF09", "0F69AE", "79B51E", "C80335", "D7AF09");
subnavi = false;

function mouseOverNavi(that, colornr, blend) 
{
	if(blend) {
		that.style.backgroundColor = '#'+NavColors[colornr];
		that.style.color = '#ffffff';
		document.getElementById('navilink_'+colornr).style.color = '#ffffff';
		document.getElementById('second_navi_'+sec).style.visibility = 'hidden';
		document.getElementById('second_navi_'+colornr).style.zIndex = '50';
		document.getElementById('second_navi_'+colornr).style.visibility = 'visible';
		if (colornr <= 4) document.getElementById('navi_subtext_'+colornr).style.color = '#ffffff';
		subnavi = true;
	} else {
		that.style.backgroundColor = '#fff';
		that.style.color = '#404040';
		document.getElementById('navilink_'+colornr).style.color = '#404040';
		document.getElementById('second_navi_'+colornr).style.zIndex = '1';
		document.getElementById('second_navi_'+colornr).style.visibility = 'hidden';
		if (colornr <= 4) document.getElementById('navi_subtext_'+colornr).style.color = '#7f7f7f';
		subnavi = false;
		setTimeout("if(!subnavi) document.getElementById('second_navi_'+sec).style.visibility = 'visible';", 40);
	}
}

function showPicBox(blend, source) {
  picbox = document.getElementById('picbox');
  content_table = document.getElementById('content_table');
  if(blend){
	picbox.style.width = content_table.offsetWidth;
  	picbox.style.height = content_table.offsetHeight;
  	picbox_img.src = '/img/'+source;
	picbox.style.visibility = 'visible';
  } else {
  	picbox.style.visibility = 'hidden';
  }
}
