
var Win = navigator.appVersion.indexOf('Win',0) != -1;
var Mac = navigator.appVersion.indexOf('Mac',0) != -1;

if(Mac){
	document.writeln('<link rel="stylesheet" type="text/css" href="styles/mac.css" title="fontPROPERTY">');
}
	else if(Win){
	document.writeln('<link rel="stylesheet" type="text/css" href="styles/win.css" title="fontPROPERTY">');
}


function fwLoadMenus() {
  if (window.fw_menu_0) return;
  window.fw_menu_0 = new Menu("root",124,19,"Osaka, MS UI Gothic",12,"#313c19","#313c19","#bbc196","#ffffff");
  fw_menu_0.addMenuItem("どんなせっけん？","location='http://www.oliple.com/soap_1.html'");
  fw_menu_0.addMenuItem("製法","location='http://www.oliple.com/soap_2.html'");
  fw_menu_0.addMenuItem("商品と選び方","location='http://www.oliple.com/soap_3.html'");
   fw_menu_0.hideOnMouseOut=true;
  window.fw_menu_1 = new Menu("root",112,19,"Osaka, MS UI Gothic",12,"#313c19","#313c19","#bbc196","#ffffff");
  fw_menu_1.addMenuItem("どんなオイル？","location='http://www.oliple.com/oil_1.html'");
  fw_menu_1.addMenuItem("レシピ集","location='http://www.oliple.com/oil_2.html'");
   fw_menu_1.hideOnMouseOut=true;
  window.fw_menu_2 = new Menu("root",100,19,"Osaka, MS UI Gothic",12,"#313c19","#313c19","#bbc196","#ffffff");
  fw_menu_2.addMenuItem("会社概要","location='http://www.oliple.com/company_1.html'");
  fw_menu_2.addMenuItem("店長の肌遍歴","location='http://www.oliple.com/company_2.html'");
   fw_menu_2.hideOnMouseOut=true;

  fw_menu_2.writeMenus();
} // fwLoadMenus()

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i>d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}





function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function openwin(url){
navi_win = window.open( url,"windows","toolbar=no,location=no,dircrmtories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=400,height=500,top=0,left=0")
navi_win.focus();}

function openwin2(url){
navi_win = window.open( url,"windows2","toolbar=no,location=no,dircrmtories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=700,height=650,top=0,left=0")
navi_win.focus();}



function navi_win() {
        self.window.name="main"
        w = window.open('', 'Remocon', 'width=410,height=410,status=yes,scrollbars=auto,directories=no,menubar=no,resizable=yes,toolbar=no');
        if (w != null) {
                if (w.opener == null) {w.opener = self;}
                w.location.href = 'dog.html';
        }
}



//画像プリロード　共通ヘッダー

var image0=new Image();
image0.src="img/tuhanhou_f2.gif";

var image1=new Image();
image1.src="img/kojinhogo_f2.gif";

var image2=new Image();
image2.src="img/shopping_f2.gif";

var image3=new Image();
image3.src="img/qa_f2.gif";

var image4=new Image();
image4.src="img/voice_f2.gif";

var image5=new Image();
image5.src="img/bbs_f2.gif";

var image6=new Image();
image6.src="img/news_f2.gif";

var image7=new Image();
image7.src="img/company_f2.gif";





function ctrl_wind(url) {
        opener.location.href = url;
}




