// JavaScript Document function setActive() { if(document.getElementById('gnavArea')) { var geturl = document.URL; var protocol = location.protocol; var domain = document.domain; var gn = document.getElementById("gnavArea").getElementsByTagName("img"); if(geturl.match(protocol + "//" + domain + "/about/")) { gn[1].setAttribute("src", gn[1].getAttribute("src").replace("_off.","_act.")); } else if(geturl.match(protocol + "//" + domain + "/step/")) { gn[2].setAttribute("src", gn[2].getAttribute("src").replace("_off.","_act.")); } else if(geturl.match(protocol + "//" + domain + "/course/")) { gn[3].setAttribute("src", gn[3].getAttribute("src").replace("_off.","_act.")); } else if(geturl.match(protocol + "//" + domain + "/salon_info/")) { gn[4].setAttribute("src", gn[4].getAttribute("src").replace("_off.","_act.")); } else if(geturl.match(protocol + "//" + domain + "/faq/")) { gn[5].setAttribute("src", gn[5].getAttribute("src").replace("_off.","_act.")); } } } if(window.addEventListener) { window.addEventListener("load", setActive, false); } else if(window.attachEvent) { window.attachEvent("onload", setActive); }