var z = 0; var p = 0; var s = 0; var mx = 5; var my = 7; var mx2 = 5; var my2 = 7; var mxs = 22; var mys = 14; var mxl = 225; var myl = 147; var zztimer; var zztimer2; var xxx=0; var url = new Array(); url[1] = "http://style.sanosuke.co.jp/infopreneur.html"; url[2] = "http://style.sanosuke.co.jp/affiliater.html"; url[3] = "http://style.sanosuke.co.jp/howtobuy.html"; url[4] = "http://style.sanosuke.co.jp/service.html"; url[5] = "http://style.sanosuke.co.jp/contact.html"; url[6] = "http://style.sanosuke.co.jp/news.html"; function menuon(a){ document.getElementById("login" + a).style.display = "block"; document.getElementById("cate" + a).style.backgroundPosition = "top"; document.getElementById("cate" + a).style.color = '#f04000'; } function menuout(a){ document.getElementById("login" + a).style.display = "none"; document.getElementById("cate" + a).style.backgroundPosition = "bottom"; document.getElementById("cate" + a).style.color = '#000000'; } function setrmenu(a,b){ if(p != a){ if(b == 0){ z = 0; if(zztimer2) clearTimeout(zztimer2); if(zztimer) clearTimeout(zztimer); document.getElementById("toprmenu").style.display = "block"; document.getElementById("toprmenu2").style.display = "none"; s = 0; mx = mx2; my = my2; p = a; } } if(s == 0 && p == a){ mx += mxs; my += mys; document.getElementById("toprmenu").style.width = mx+"px"; document.getElementById("toprmenu").style.height = my+"px"; document.getElementById("toprmenu").style.margin = "24px 0px 0px "+(230+mxl-mx+67*a)+"px"; document.getElementById("toprmenu").innerHTML = ""; } if(mx == mxl && p == a && s == 0){ document.getElementById("toprmenu2").style.display = "block"; document.getElementById("toprmenu2").style.margin = "52px 0px 0px "+(230+mxl-mx+67*a)+"px"; document.getElementById("toprmenu2").innerHTML = ""; s = 1; if(z < 2) setrmenuoff(1); }else if(s == 0){ zztimer2 = setTimeout("setrmenu("+a+",1)", 20); } } function setrmenuoff(a){ if(z == 2 && mx == mxl && a == 0){ document.getElementById("toprmenu").innerHTML = ""; document.getElementById("toprmenu").style.display = "none"; document.getElementById("toprmenu2").style.display = "none"; p = 0; z = 0; } if(a == 1 && mx == mxl){ z = 2; zztimer = setTimeout("setrmenuoff(0)", 10000); } } function setrmenuon(){ z = 0; }