/*
 *	コンストラクタ。
 *	ジュニア受講クラス画像クラス。
 *
 *	@param	infoImg	ジュニア受講クラス画像情報文字列。
 */
function JuniorClassCategoryImage( infoImg ) {
	var		data ;

	data = infoImg.split( "," ) ;
	this.source	= data[0] ;	/*	画像ソース	*/
	this.width	= data[1] ;	/*	画像幅(px)	*/
	this.height	= data[2] ;	/*	画像高さ(px)	*/

	this.dirImage = "./images/jr_category" ;	/*	画像格納ディレクトリ	*/

	this.alt = "ジュニア受講クラスカテゴリー" ;
}


/**
 *	
 *
 *	@param	name	。
 */
JuniorClassCategoryImage.prototype.putImage = function  ( name ) {
	var		msg="" ;
	msg += sprintf(
		"<img src='%s/%s' width='%d' height='%d' alt='%s' />"
		, this.dirImage, this.source, this.width, this.height, this.alt
	) ;
	document.write( msg ) ;
}



JrCategoryImage = new Array() ;
JrCategoryImage['E1'] = "e1.gif,76,42" ;
JrCategoryImage['E2'] = "e2.gif,79,42" ;
JrCategoryImage['A1'] = "a1.gif,83,42" ;
JrCategoryImage['A2'] = "a2.gif,86,42" ;
JrCategoryImage['B1'] = "b1.gif,77,42" ;
JrCategoryImage['B2'] = "b2.gif,80,42" ;
JrCategoryImage['C1'] = "c1.gif,76,44" ;
JrCategoryImage['C2'] = "c2.gif,79,44" ;
JrCategoryImage['D1'] = "d1.gif,79,42" ;
JrCategoryImage['D2'] = "d2.gif,82,42" ;
JrCategoryImage['K1'] = "k1.gif,79,42" ;
JrCategoryImage['K2'] = "k2.gif,82,42" ;

JrCategoryImage['E1S'] = "e1s.gif,40,21" ;
JrCategoryImage['E2S'] = "e2s.gif,39,21" ;
JrCategoryImage['A1S'] = "a1s.gif,43,21" ;
JrCategoryImage['A2S'] = "a2s.gif,44,21" ;
JrCategoryImage['B1S'] = "b1s.gif,40,21" ;
JrCategoryImage['B2S'] = "b2s.gif,41,21" ;
JrCategoryImage['C1S'] = "c1s.gif,39,22" ;
JrCategoryImage['C2S'] = "c2s.gif,41,22" ;
JrCategoryImage['D1S'] = "d1s.gif,41,21" ;
JrCategoryImage['D2S'] = "d2s.gif,42,21" ;
JrCategoryImage['K1S'] = "k1s.gif,41,21" ;
JrCategoryImage['K2S'] = "k2s.gif,42,21" ;



function putImage( name ) {
	( new JuniorClassCategoryImage( JrCategoryImage[name] ) ).putImage() ;
}
function putImageSmall( name ) {
	( new JuniorClassCategoryImage( JrCategoryImage[name+"S"] ) ).putImage() ;
}

