var abspath,shortcutpath;

//* path    ***************
Here=window.location.pathname.split("/j/");
mypath = "";
h =0;


if (Here.length >1){
h =Here[ Here.length-1].split("/").length;
for (i=0;i<h;i++){mypath += "../";}
}//else{mypath = "";h =0;}

if (abspath == 1){mypath = "http://cob.rikkyo.ac.jp/";}
if (shortcutpath ==1){mypath = "/";}


//* WIN MAC	分岐	


//alert       (navigator.userAgent.indexOf('Mac'));

//if(navigator.userAgent.indexOf('Safari') > -1) {
if(navigator.userAgent.indexOf('Mac') > -1) {
	document.write('<link rel="stylesheet" type="text/Css" href="' + mypath + 'j/Zcss/mac.css" />');
	//alert(navigator.userAgent);
}
else {
	document.write('<link rel="stylesheet" type="text/Css" href="' + mypath + 'j/Zcss/win.css" />');
}

//* CSS	分岐	CSS内の画像のパス記述は呼び出し元の、このJSからのパスになっている

	
if (abspath == 1){
	document.write('<link rel="stylesheet" type="text/Css" href="' + mypath + 'j/Zcss/abs.css" />');
}	
else if(shortcutpath ==1) {
	document.write('<link rel="stylesheet" type="text/Css" href="' + mypath + 'j/Zcss/short.css" />');
}	
	
else{
	document.write('<link rel="stylesheet" type="text/Css" href="' + mypath + 'j/Zcss/2nd.css" />');
}



document.close();