function importObj(customer,title,url,image){
	this.customer = customer;
	this.title = title;
	this.url = url;
	this.image = image;
	this.toString = showImportCase;
}
function showImportCase(){
	htmlstr = '\t<TABLE width="170" border="0" cellspacing="0" cellpadding="0">\n' +
		  '\t <TR>\n' +
		  '\t  <TD align="center"><IMG src="img/top/case1.gif" width="170" height="31" alt="導入事例" border="0"></TD>\n' +
		  '\t </TR>\n' +
		  '\t <TR>\n' +
		  '\t  <TD align="center" bgcolor="#1061B7">\n' +
		  '\t   <!--導入事例　事例名テーブル--------->\n' +
		  '\t   <TABLE width="150" border="0" cellspacing="0" cellpadding="5" bgcolor="#F5F5F5">\n' +
		  '\t\t<TR>\n' +
		  '\t\t <TD><span class="font12a"><strong>' + this.customer + '</strong><BR>\n' +
		  '\t\t  ' + this.title + '</span></TD>\n' +
		  '\t\t</TR>\n' +
		  '\t   </TABLE>\n' +
		  '\t   <IMG src="img/com/space/w8-h8-space.gif" width="8" height="8" border="0"><TABLE width="150" border="0" cellspacing="0" cellpadding="0">\n' +
		  '\t\t<TR>\n' +
		  '\t\t <TD>\n' +
		  '\t\t  <!--導入事例　スクリーンショット サイズ1pxのライン(#000000)を周りに付けた状態ではW150 H110ピクセル　にして下さい。--------->\n' +
		  '\t\t  <A href="' + this.url + '"><IMG src="img/top/caseimg/' + this.image + '" width="150" height="110" border="0" alt="導入事例"></A></TD>\n' +
		  '\t\t</TR>\n' +
		  '\t   </TABLE>\n' +
		  '\t  </TD>\n' +
		  '\t </TR>\n' +
		  '\t <TR>\n' +
		  '\t  <TD align="center"><A href="' + this.url + '"><IMG src="img/top/case2.gif" width="170" height="25" alt="導入事例へ" border="0"></A></TD>\n' +
		  '\t </TR>\n' +
		  '\t</TABLE>\n';
	return htmlstr;
}

importAry =  new Array();
//importAry.push(new importObj("NTTドコモ九州様","バリアフリーマップとして<br>カスタマイズ","import/","docomok.gif"));
importAry.push(new importObj("静岡県様","高齢者あんしん窓口マップ<br>API利用","import/#shizuoka","shizuoka.gif"));
//importAry.push(new importObj("ロッテリア様","PCMAP・携帯MAPを<br>カスタマイズ","import/","lotteria.gif"));
importAry.push(new importObj("ドン・キホーテ様","店舗案内ページにて<br>PCMAP、携帯MAP","import/#donki","donki.gif"));
//importAry.push(new importObj("相模鉄道様","PCMAPのカスタマイズ","import/","sotetsu.gif"));
//importAry.push(new importObj("熊本市様","PCMAP、携帯MAP","import/","kumamoto.gif"));
//importAry.push(new importObj("高崎市様","PCMAPのカスタマイズ","import/","takasaki.gif"));
//importAry.push(new importObj("埼玉県警察様","カスタマイズ","import/","sp.gif"));
importAry.push(new importObj("JAF様","高速道路事故マップを<br>PCMAPで作成","import/#jaf","jaf.gif"));

// ２番目に表示するコンテンツをランダムで選ぶ
// １番目はindex.html内にimportAry[0]を設定しているので連続しないよう[0]を省く。
caseNo = Math.floor(Math.random() * (importAry.length -1));
caseNo += 1;

/* 導入事例動的表示 */
function load_import(){
	var nextNo;
	// 表示事例の決定
	caseData = importAry[caseNo];
	// 事例テーブルの表示
	if(document.getElementById){
		document.getElementById("import_case").innerHTML = caseData;
	} else if (document.all.item){
		document.all.item("import_case").innerHTML = caseData;
	}
	// 次もランダムだが、連続して同じコンテンツがこないように調整。
	nextNo = Math.floor(Math.random() * (importAry.length -1));
	if(nextNo >= caseNo){
		caseNo = nextNo + 1;
	} else {
		caseNo = nextNo;
	}
}
