// ▼ IWAKO Footer
function footer(){
	document.write('<div class="footer">(C)2008 Copyright IWAKO Co.,Ltd. All rights reserved.');
}

// ▼▼▼ アイテム表を自動作成するJAVAプログラム ▼▼▼
// 関数内の変数表示順ガイド
// ● 基本情報関数 [ item_base(); ] 内で記述する代入値
// タイトル(t),読込み画像(p1),読込み画像-拡大(p2),Itemコード(c),サイズ(s),重さ(w),証明書の読込みフォルダ名[cate1など](fo),
//　ASTMの有無[astm_on 又は astm_off](as),CPSIAの有無[cpsia_on 又は cpsia_off](cp),CEの有無[ce_on 又は ce_off](ce)
// 
// ● 内訳アイテムの詳細関数 [ item_list(); ] 内で記述する代入値
// アイテム１の名前(n1),アイテム１の個数(p1),アイテム２の名前(n2),アイテム２の個数(p2),
// アイテム３の名前(n3),アイテム３の個数(p3),アイテム４の名前(n4),アイテム４の個数(p4),
// アイテム５の名前(n5),アイテム５の個数(p5),アイテム６の名前(n6),アイテム６の個数(p6),
// アイテム７の名前(n7),アイテム７の個数(p7),アイテム８の名前(n8),アイテム８の個数(p8),
// アイテム９の名前(n9),アイテム９の個数(p9),アイテム10の名前(n10),アイテム10の個数(p10),
// アイテム11の名前(n11),アイテム11の個数(p11),アイテム12の名前(n12),アイテム10の個数(p12),
// アイテム13の名前(n13),アイテム11の個数(p13),アイテム14の名前(n14),アイテム10の個数(p14)
// ※ 最大アイテム数は14個まで
//
// 【記述例】
// <script type="text/JavaScript">
// <!--
//  item_base("Sea Animals","cate1/photo1.jpg","ER-961136","255×130×77mm","600g","cate1","astm_on","cpsia_on","ce_off");
//  item_list("Dolphin(B)","10","Dolphin(G)","10","Whale","10","Penguin","10","Sunfish","10","Seal(P)","5","Seal(Y)","5");
// -->
// </script>
// 

function item_base(t,pic1,pic2,c,s,w,fo,as,cp,ce){ // CONTENTS の表示版
	document.write('<table class="item"><tr>');
	document.write('<td class="bar" colspan="3"><p class="name">' + t + '</p></td></tr>');
	document.write('<tr><td class="gray2" colspan="3">' + c + '</td></tr>');
	document.write('<tr><td colspan="3">');
	document.write('<img class="app" src="' + pic1 + '"><br>');


	document.write('</TD></TR><TR><TD class="gray3_1" >');

	if(as == "astm_on" || as == "ASTM_on"){
		document.write('<a href="astm/'+fo+'/'+c+'_ASTM.pdf" target="_blank" class="app">ASTM</a>');
	} else {
		document.write('<span class="non">ASTM</span>');
	}
	document.write('</TD><TD class="gray3_2" >');
	if(cp == "cpsia_on" || cp == "CPSIA_on"){
		document.write('<a href="cpsia/'+fo+'/'+c+'_CPSIA.pdf" target="_blank" class="app">CPSIA</a>');
	} else {
		document.write('<span class="non">CPSIA</span>');
	}
	document.write('</TD><TD class="gray3_3" >');
	if(ce == "ce_on" || ce == "CE_on"){
		document.write('<a href="ce/'+fo+'/'+c+'_CE.pdf" target="_blank" class="app">&nbsp;EN71&nbsp;</a>');
	} else {
		document.write('<span class="non">&nbsp;EN71&nbsp;</span>');
	}
	document.write('</td></tr></TABLE>');


}


function item_base2(t,pic1,pic2,c,s,w,fo,as,cp,ce){ // CONTENTS の表示版
	document.write('<table class="item"><tr>');
	document.write('<td class="bar" colspan="3"><p class="name">' + t + '</p></td></tr>');
	document.write('<tr><td class="gray2" colspan="3">' + c + '</td></tr>');
	document.write('<tr><td colspan="3">');
	document.write('<img class="app" src="' + pic1 + '"><br>');


	document.write('</TD></TR><TR><TD class="gray3_1" >');

	if(as == "astm_on" || as == "ASTM_on"){
		document.write('<a href="astm/'+fo+'/'+c+'_ASTM.pdf" target="_blank" class="app">ASTM</a>');
	} else {
		document.write('<span class="non">ASTM</span>');
	}
	document.write('</TD><TD class="gray3_2" >');
	if(cp == "cpsia_on" || cp == "CPSIA_on"){
		document.write('<a href="cpsia/'+fo+'/'+c+'_CPSIA.pdf" target="_blank" class="app">CPSIA</a>');
	} else {
		document.write('<span class="non">CPSIA</span>');
	}
	document.write('</TD><TD class="gray3_3" >');
	if(ce == "ce_on" || ce == "CE_on"){
		document.write('<a href="ce/'+fo+'/'+c+'_CE.pdf" target="_blank" class="app">&nbsp;EN71&nbsp;</a>');
	} else {
		document.write('<span class="non">&nbsp;EN71&nbsp;</span>');
	}
	document.write('</td></tr></TABLE>');


}

// ▼ 拡大画像表示JAVA ▼
i=0;
function zoom(p) {
	if(i>0 && win2.closed==false){
		win2.close();
	}
	var newwin2;
	win2 = window.open(p, newwin2, 'width=640, height=490, scrollbars=no, resizable=yes ');
	i++;
}


