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.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

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_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 open_win(){
var w=500;
var h=380;
	winName='zoom_window';
	s=0;
	url='morning.html';
	winName=open(url,winName,"width="+w+",height="+h+",toolbar=0,location=0,directories=0,status=0,scrollbars="+s+",resizable=0,menubar=0");
}


/* フリーチョイスセット */
function open_win2(){
var w=500;
var h=380;
	winName='zoom_window';
	s=0;
	url='free.html';
	winName=open(url,winName,"width="+w+",height="+h+",toolbar=0,location=0,directories=0,status=0,scrollbars="+s+",resizable=0,menubar=0");
}


set_focus=function(n){
	document.f[n].focus();
}
go_back=function(){
	history.back();
}
function s_cart(str){

	if(!document.cookie){return;}

	var c=document.cookie.split(";");
	var f=0;
	for(var i=0;i<c.length;i++){
		c[i]=c[i].split("=");
		if(c[i][0].indexOf("c")!=-1){
			f=1;
			break;
		}
	}
	if(f){
		var st="";
		var l="<td width=\"21\" align=\"center\">";
		l+="<a href=\""+st+"https://www.e-organichouse.com/shopping/cart.php\">";
		l+="<img src=\""+st+"../cmn_img/head_icon05.gif\" alt=\""+str+"\" width=\"15\" height=\"15\" border=\"0\">";
		l+="</a>";
		l+="</td>";		
		l+="<td width=\"90\">";
		l+="<a class=\"ma\" href=\""+st+"https://www.e-organichouse.com/shopping/cart.php\">";
		l+=str;
		l+="</a>";
		l+="</td>";
		document.open();
		document.write(l);
		document.close();
	}
}

function s_contact(str){
	var l='<td width="21" align="center"><a href="https://www.e-organichouse.com/contact/index.php"><img src="../cmn_img/head_icon03.gif" alt="'+str+'" width="15" height="15" border="0"></a></td>';
	l+='<td width="90"><a class="ma" href="https://www.e-organichouse.com/contact/index.php">'+str+'</a></td>';
	document.open();
	document.write(l);
	document.close();
}

chkInfo=function(){
	this.a=navigator.platform;
	this.b=navigator.appName;
	this.pc=(this.a.indexOf("Win")!=-1)?0:(this.a.indexOf("Mac")!=-1)?1:"x";
	this.ly=(document.all)?0:(document.layers)?1:(document.getElementById)?2:"x";
}

$u=new chkInfo();

function wt(fs,fh){
	syl='<style type="text/css">\n<!--';
	if($u.ly!=1){
		syl+='.input{font-size:'+fs;
		syl+='px;height:'+fh;
		syl+='px;';
		syl+='background-color: #FFFFFF;border:solid 1px #999999;';
		syl+='}\n';
		syl+='li{margin-left:-15px;}\n';
	}else{
		syl+=".input{}\n";
	}
	syl+='.inputs{font-size:'+fs+'px;background-color:#FFFFFF;border:solid 1px #999999;width:400px;}\n';
	syl+='-->\n</style>';
	return syl;
}