function makeNavigation(){
ptl = window.location.protocol;

//オンラインでの実行時

if(ptl.indexOf('http') != -1) {
WriteCSS();
}else{

//オフライン？

agent = navigator.userAgent ;
if (agent.indexOf('Win') != -1 ){ //Windows
WriteWinCSS();
}else{
WriteCSS();
}
}
}

function WriteCSS(){
vPath = window.location.pathname.split('/');
i = vPath.length;
fName= (vPath[i-1]);
fName=fName.split(".")[0]+"html";
dName= (vPath[i-2]);
dName=dName.split(".")[0];
document.write("<style type='text/css'>");
document.write("#"+fName+"{background:#CC3300;font-weight:bold;}");
document.write("#"+dName+"{background:#CC3300;font-weight:bold;}");
document.write("a"+"#"+fName+"{color:#FFFFFF;}");
document.write("a"+"#"+dName+"{color:#FFFFFF;}");
document.write("div."+dName+"{display:block !important ;margin-top:-0.9em;margin-bottom:-0.9em;}");

if(dName == "press"){
if(fName != "press02html"){
document.write("#"+"press01html"+"{background:#CC3300;font-weight:bold;}");
document.write("a"+"#"+"press01html"+"{color:#FFFFFF;}");
document.write("div."+"press01html"+"{display:block !important ;margin-top:-0.9em;margin-bottom:-0.9em;}");
}
}
document.write("</style>");
}


function WriteWinCSS(){ //Winローカル専用
vPath = window.location.pathname.split('\\');
i = vPath.length;
fName= (vPath[i-1]);
fName=fName.split(".")[0]+"html";
dName= (vPath[i-2]);
dName=dName.split(".")[0];
document.write("<style type='text/css'>");
document.write("#"+fName+"{background:#CC3300;font-weight:bold;}");
document.write("#"+dName+"{background:#CC3300;font-weight:bold;}");
document.write("a"+"#"+fName+"{color:#FFFFFF;}");
document.write("a"+"#"+dName+"{color:#FFFFFF;}");
document.write("div."+dName+"{display:block !important ;margin-top:-0.9em;margin-bottom:-0.9em;}");

if(dName == "press"){
document.write("#"+"press01html"+"{background:#CC3300;font-weight:bold;}");
document.write("a"+"#"+"press01html"+"{color:#FFFFFF;}");
document.write("div."+"press01html"+"{display:block !important ;margin-top:-0.9em;margin-bottom:-0.9em;}");
}

document.write("</style>");
}

