﻿var activeSwap = 1;
function initfchange(){
 document.getElementById('swapContent' + activeSwap).style.display = 'block';
 document.getElementById('contentNaviText' + activeSwap).style.color = '#f37a1f';
 if(document.getElementById('contentNaviImg1')){
  document.getElementById('contentNaviImg' + activeSwap).style.border = '#f37a1f 2px solid';
 }
}
function fchange(swapTo){
 if(swapTo!=activeSwap){
  document.getElementById('contentNaviText'+activeSwap).style.color = '#656565';
  document.getElementById('swapContent' + activeSwap).style.display = 'none';
  document.getElementById('swapContent' + activeSwap).style.visibility = 'hidden';
  document.getElementById('contentNaviText' + activeSwap).style.color = '#666666';
  if(document.getElementById('contentNaviImg1')){
   document.getElementById('contentNaviImg' + activeSwap).style.border = '#ffffff 2px solid';
  }
  document.getElementById('swapContent' + swapTo).style.display = 'block';
  document.getElementById('swapContent' + swapTo).style.visibility = 'visible';
  document.getElementById('contentNaviText' + swapTo).style.color = '#f37a1f';
  if(document.getElementById('contentNaviImg1')){
   document.getElementById('contentNaviImg' + swapTo).style.border = '#f37a1f 2px solid';
  }
  activeSwap=swapTo;
 }
}
function fover(swapTo){
 document.getElementById('contentNaviText'+swapTo).style.color = '#f37a1f';
 if(document.getElementById('contentNaviImg1')){
  document.getElementById('contentNaviImg' + swapTo).style.border = '#f37a1f 2px solid';
 }
}
function fout(swapTo){
 if(swapTo!=activeSwap){
  document.getElementById('contentNaviText'+swapTo).style.color = '#656565';
  if(document.getElementById('contentNaviImg1')){
   document.getElementById('contentNaviImg' + swapTo).style.border = '#ffffff 2px solid';
  }
 }
}
AddToOnloadHandler(initfchange);