//ƒƒjƒ…[‚Ì“®ìƒXƒs[ƒh‚Æ‘ÎÛul‚Ìid‚ðÝ’è
	window.addEvent('domready', function() {
		new Rokmoomenu($E('#headernavi ul'), {
			bgiframe: false,
			delay: 500,
			animate: {
				props: ['opacity', 'width', 'height'],
				opts: {
					duration:400,
					fps: 100,
					transition: Fx.Transitions.Expo.easeOut
				}
			}
		});
	});


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_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_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_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 getBrowserName()
{
    var aName  = navigator.appName.toUpperCase();
    if (aName.indexOf("NETSCAPE") >= 0)       return "Netscape";
}

function getBrowserVersion()
{
	var browser = getBrowserName();
	var version = 0;
	var s = 0;
	var appVer  = navigator.appVersion;
	if (browser == "Netscape")
	{
		s = appVer.indexOf(" ",0);
		version = eval(appVer.substring(0,s));
	}
	return version;
}

appName = getBrowserName();
version = getBrowserVersion();
if((appName == "Netscape")&&(version >= 3)&&(version < 5))document.write('<style>body{background-color:#FFFFFF;}</style>');

function ttlValue(){

// Ý’èŠJŽn

// ¤•i1
var price1 = document.orderform.prd1.selectedIndex * 170; // ’P‰¿‚ðÝ’è
document.orderform.subtotal1.value = price1; // ¬Œv‚ð•\Ž¦

// ¤•i2
var price2 = document.orderform.prd2.selectedIndex * 950; // ’P‰¿‚ðÝ’è
document.orderform.subtotal2.value = price2; // ¬Œv‚ð•\Ž¦

// ¤•i3
var price3 = document.orderform.prd3.selectedIndex * 1800; // ’P‰¿‚ðÝ’è
document.orderform.subtotal3.value = price3; // ¬Œv‚ð•\Ž¦

// ¤•i4
var price4 = document.orderform.prd4.selectedIndex * 380; // ’P‰¿‚ðÝ’è
document.orderform.subtotal4.value = price4; // ¬Œv‚ð•\Ž¦

// ¤•i5
var price5 = document.orderform.prd5.selectedIndex * 250; // ’P‰¿‚ðÝ’è
document.orderform.subtotal5.value = price5; // ¬Œv‚ð•\Ž¦

// “s“¹•{Œ§
var prefec = document.orderform.pref.value;
if(prefec =="•Ÿ‰ªŒ§"){document.orderform.postage.value = "0";}
else if(prefec =="²‰êŒ§"||prefec =="’·èŒ§"||prefec =="ŒF–{Œ§"||prefec =="‘å•ªŒ§"||prefec =="‹{èŒ§"||prefec =="Ž­Ž™“‡Œ§"){document.orderform.postage.value = "300";}
else if(prefec =="–kŠC“¹"||prefec =="ÂXŒ§"||prefec =="ŠâŽèŒ§"||prefec =="‹{éŒ§"||prefec =="H“cŒ§"||prefec =="ŽRŒ`Œ§"||prefec =="•Ÿ“‡Œ§"||prefec =="‰«“êŒ§"){document.orderform.postage.value = "1200";}
else {document.orderform.postage.value = "600";}


// ‘——¿
var postage = document.orderform.postage.value;
document.orderform.postage.value = postage; // ‘——¿‚ð•\Ž¦
postageNum = eval(postage);

// ¤•i‡Œv‚ðŒvŽZ
var prdtotal = price1 + price2 + price3 + price4 + price5;
//5000‰~ˆÈãw“ü
if(prdtotal >= 5000){document.orderform.postage.value = "0"; postageNum = 0;}
// Žx•¥•û–@‚Æ‹àŠz
var paymeth = document.orderform.pay.value;
if(paymeth =="‘ã‹àˆøŠ·"&&prdtotal >= 1&&prdtotal < 10000){document.orderform.daibiki.value = 315;}
else if(paymeth =="‘ã‹àˆøŠ·"&&prdtotal >= 10000&&prdtotal < 30000){document.orderform.daibiki.value = 420;}
else if(paymeth =="‘ã‹àˆøŠ·"&&prdtotal >= 30000&&prdtotal < 100000){document.orderform.daibiki.value = 630;}
else if(paymeth =="‘ã‹àˆøŠ·"&&prdtotal >= 100000&&prdtotal <= 300000){document.orderform.daibiki.value = 1050;}
else {document.orderform.daibiki.value = 0;}
var daibiki = document.orderform.daibiki.value;
daibikiNum = eval(daibiki);


// ‘‡Œv‚ðŒvŽZ
var total = price1 + price2 + price3 + price4 + price5 + postageNum + daibikiNum;

// Ý’èI—¹

document.orderform.prd_total.value = prdtotal; // ‡Œv‚ð•\Ž¦
document.orderform.field_total.value = total; // ‘‡Œv‚ð•\Ž¦

}