//******** WinとMacでfont指定のcssを振り分ける ****

if (navigator.appVersion.indexOf("Mac") != -1) {
	// MACの場合
		document.write("<link rel=\"stylesheet\" href=\"http://www.marubiru.com/css/font-mac.css\" type=\"text/css\">");


/* 更にブラウザごとに分岐する場合は
	if (navigator.userAgent.indexOf("Firefox") != -1){
		// Firefox
		document.write("<link rel=\"stylesheet\" href=\"http://www.marubiru.com/css/font-ffm.css\" type=\"text/css\">");
	} else {
		// その他
		document.write("<link rel=\"stylesheet\" href=\"http://www.marubiru.com/css/font-common.css\" type=\"text/css\">");
	}
*/


} else if (navigator.userAgent.indexOf("MSIE 7.0") != -1) {
	// windowsの場合
 // しかもMSIE 7.0
	document.write("<link rel=\"stylesheet\" href=\"http://www.marubiru.com/css/font-winIE7.css\" type=\"text/css\">");
 } else {
  // その他
	document.write("<link rel=\"stylesheet\" href=\"http://www.marubiru.com/css/font-common.css\" type=\"text/css\">");
}





//********　「過去の記事」のプルダウン --------

//******** サブメニュー非対応環境かどうかを判断する。********
function ifSupported() {
	if (window.opera && (!document.all)) {
		return(0);
	}
	if (document.all || document.getElementById) { return(1) }
	return(0);
	}
//******** 対応環境ではサブメニューを予め非表示にする。********
if (ifSupported()) {
	document.write(
		'<style type="text/css">'+
		'.subMenu {'+
		'	display: none;'+
		'	}'+
		'</style>'
		);
	}
//******** サブメニューの表示/非表示を切替える。********
function subMenu(id) {
	if (ifSupported()==0) { return; }

	if (document.all) {
		if (document.all[id].style.display!='block') {
			document.all[id].style.display='block';
			}
		else {
			document.all[id].style.display='none';
			}
		return;
		}

	if (document.getElementById(id).style.display!='block') {
		document.getElementById(id).style.display='block';
		}
	else {
		document.getElementById(id).style.display='none';
		}
	return;
	}





//********「会社概要」用subWin ********

function profileWin(openMe) {
    pop=window.open(openMe,"profileWin","width=600,height=600,left=0,top=0,menubar=0,toolbar=0,location=0,resizable=1,scrollbars=1,status=0,directories=0");
	}


//********「個人情報保護方針」用subWin ********

function privacyWin(openMe) {
    pop=window.open(openMe,"privacyWin","width=628,height=618,left=0,top=0,menubar=1,toolbar=1,location=0,resizable=1,scrollbars=1,status=1,directories=0");
}


//********「プレゼントllbeanカバン」用subWin ********

function presentWin(openMe) {
    pop=window.open(openMe,"presentWin","width=420,height=380,left=0,top=0,menubar=0,toolbar=0,location=0,resizable=1,scrollbars=0,status=0,directories=0"); }

//********「プレゼント宿泊」用subWin ********

//function presentWin(openMe) {
//    pop=window.open(openMe,"presentWin","width=420,height=370,left=0,top=0,menubar=0,toolbar=0,location=0,resizable=1,scrollbars=0,status=0,directories=0"); }

function tempPresentWin(openMe) {
	pop=window.open(openMe,"tempPresentWin","width=590,height=580,left=0,top=0,menubar=0,toolbar=0,location=0,resizable=1,scrollbars=0,status=0,directories=0");}


function subWinPresent(URL) {
	window.open(URL, '', "width=590,height=670,left=0,top=0,menubar=1,location=0,resizable=0,scrollbars=1,status=0,directories=0");
}


//********「ニユースレター」用subWin ********

function mailWin(openMe) {
    pop=window.open(openMe,"mailWin","width=620,height=530,left=0,top=0,menubar=0,toolbar=0,location=0,resizable=1,scrollbars=1,status=0,directories=0"); }


//********「クーポン」用subWin ********

function cpWin(openMe) {
    pop=window.open(openMe,"couponWin","width=600,height=670,left=0,top=0,menubar=1,toolbar=0,location=0,resizable=1,scrollbars=1,status=0,directories=0");
	}




/*画像のプリロード*/

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;
i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

MM_preloadImages('http://www.marubiru.com/img/bg-header.gif');

