function setMenu() {
  var get = getRequest();
  var file = GetFileName(location.href);
  
  switch(file) {
    case "result":
    case "result_list":
    case "result_detail":
      document.getElementById("M_RESULT").style.backgroundPosition = "-229px -40px";
      break;
    case "counselor":
    case "counselor_detail":
      document.getElementById("M_COACH").style.backgroundPosition = "-318px -40px";
      break;
    case "salon_detail":
      document.getElementById("M_LIST").style.backgroundPosition = "-464px -40px";
      break;
    case "int_list":
      document.getElementById("M_LAW").style.backgroundPosition = "-700px -40px";
      break;
    default:
      if(get["page_id"]==95) {
        document.getElementById("M_ABOUT").style.backgroundPosition = "0 -40px";
      } else if(get["page_id"]==11) {
        document.getElementById("M_SYSTEM").style.backgroundPosition = "-567px -40px";
      }
      break;
  }
}

function getRequest(){
  if(location.search.length > 1) {
    var get = new Object();
    var ret = location.search.substr(1).split("&");
    for(var i = 0; i < ret.length; i++) {
      var r = ret[i].split("=");
      get[r[0]] = r[1];
    }
    return get;
  } else {
    return false;
  }
}

function GetFileName(file_url){
  file_url = file_url.substring(file_url.lastIndexOf("/")+1,file_url.length)
  file_url = file_url.substring(0,file_url.indexOf("."));
  return file_url;
}


