
var agt = navigator.userAgent.toLowerCase();
var win = (agt.indexOf('win') != -1);// Windows
var mac = (agt.indexOf('mac') != -1);// Macintosh
var ng = (!document.all && document.getElementById);// NN6
var ie = (document.all);// IE 4.x
var ns = (document.layers);// Netscape 4.x
// 
if (win) {// Windows
if (ng) {// Netscape 6.x (Gecko)
document.write("<link rel=\"stylesheet\" href=\"../css/win_ng.css\" type=\"text/css\">");
}
else if (ie) {// IE 4.x
document.write("<link rel=\"stylesheet\" href=\"../css/win_ie.css\" type=\"text/css\">");
}
else if (ns) {// Netscape 4.x
document.write("<link rel=\"stylesheet\" href=\"../css/win_ns.css\" type=\"text/css\">");
}
}
else if (mac) {// Macintosh
if (ng) {// Netscape 6.x (Gecko)
document.write("<link rel=\"stylesheet\" href=\"../css/mac_ng.css\" type=\"text/css\">");
}
else if (ie) {// IE 4.x
document.write("<link rel=\"stylesheet\" href=\"../css/mac_ie.css\" type=\"text/css\">");
}
else if (ns) {// Netscape 4.x
document.write("<link rel=\"stylesheet\" href=\"../css/mac_ns.css\" type=\"text/css\">");
}
}

function winopen(){
	window.open("saiyo/index.html","win1","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,close=yes,width=1024,height=628,left=0,top=0")
}
function win2open(){
	window.open("../saiyo/index.html","win1","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,close=yes,width=1024,height=628,left=0,top=0")
}

