var view = "policy01";
var lays = new Array(3);
lays[0] ="menu_bottun1";
lays[1] ="menu_bottun2";
lays[2] ="menu_bottun3";

function MM_swapLink(layName) {
  setFGCOLOR(layName,'#8B3A3A');
}

function MM_swapLinkRestore(layName, target) {
  if (view != target) {
      setFGCOLOR(layName,'#B5B5B5');
  }
}

function setFGCOLOR(layName,color){ 
  if(document.all)                  //IE4—p
    document.all(layName).style.color=color;
  else if(document.getElementById)  //N6,Moz,IE5,IE6—p
    document.getElementById(layName).style.color=color;
}

/**
 * setPolicyPosition
 * @param layName
 * @param target
 */
function setPolicyPosition(layName, target){
    view = target;
    window.policy.location.href="policy.html#" + target; 
    window.scroll(0,0);
    for(var i=0; i<lays.length; i++) {
	  if (layName!=lays[i]){
    	  MM_swapLinkRestore(lays[i]);
      }
    }
}

