new function (){
  var Root = 1;        //初期ルート
  var position = 0;    //初期ボジション
  var Size = 143;      //メニューサイズ

  var ViewNavi = function(){
    var SubList = document.getElementById("gNavi").getElementsByTagName("ol");
    for(var i=0;i<SubList.length;i++){
      SubList[i].parentNode.i = i;
      SubList[i].parentNode.onmouseover = function(){
        var SubNavi = this.getElementsByTagName("ol")[0];
        var NaviView = SubNavi.style;

        //透明度設定
        NaviView.opacity = "0.9";
        NaviView.filter = "alpha(opacity=90)";
        NaviView.MozOpacity = "0.9";

        NaviView.display = "block";
        NaviView.left = Size * (this.i + Root) + position + "px";

      }
      SubList[i].parentNode.onmouseout = function(){
        this.getElementsByTagName("ol")[0].style.display = "none";
      }
    }
  }
  function addEvent(elm,listener,fn){
    try{
      elm.addEventListener(listener,fn,false);
    }catch(e){
      elm.attachEvent("on"+listener,fn);
    }
  }
  addEvent(window, "load", ViewNavi);
}


function smartRollover() {
  if(document.getElementsByTagName) {
    var images = document.getElementsByTagName("img");

    for(var i=0; i < images.length; i++) {
      if(images[i].getAttribute("src").match("_off."))
      {
        images[i].onmouseover = function() {
          this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));
        }
        images[i].onmouseout = function() {
          this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));
        }
      }
    }
  }
}

if(window.addEventListener) {
  window.addEventListener("load", smartRollover, false);
}
else if(window.attachEvent) {
  window.attachEvent("onload", smartRollover);
}


function openBrWindow(theURL,winName,features){
  window.open(theURL,winName,features);
}


function mailMageEntry() { 
  window.open("#", "mmw","scrollbars=yes,width=500,height=500") ; 
  window.document.inform.action = "https://s.blayn.jp/bm/p/f/tf.php?id=d3beauty" ; 
  window.document.inform.target = "mmw";
  window.document.inform.method = "POST";
  window.document.inform.submit();
}
