/* ¡þ EC Navi - JavaScript - ¥Ý¥¤¥ó¥È¿ôÉ½¼¨ - 2009/09/29 - DA ¡þ */


// ¥Ý¥¤¥ó¥È¾ò·ï¤òÉ½¼¨
function acApDisplay(P){
	if(P['point'] == '' && P['condition'] == '') return;
	if(P['layout'] == undefined) P.layout = '';
	if(P['unit'] == undefined) P.unit = 'pts.';
	if(location.protocol != 'https:') var iconUrl = 'http://ecnavi.jp.eimg.jp/cimg/icon/coin/icon_12_coin.gif';
	else var iconUrl = 'https://ecnavi.jp/cimg/icon/coin/icon_12_coin.gif';
	if(String(P.point).indexOf(',') == -1 && typeof(commaNum) == 'function'){
		P.point = commaNum(P.point);
	}
	if(P.layout == 'center') document.write('<p style="text-align: center;">');
	if(P.layout == 'right') document.write('<p style="text-align: right;">');

	document.write('<span style="vertical-align: middle; margin-right: 3px;">');
	document.write('<img src="' + iconUrl + '" style="width: 12px; height: 12px;">');
	document.write('</span>');

	document.write('<span style="vertical-align: middle; font: 11px \'£Í£Ó £Ð¥´¥·¥Ã¥¯\', \'¥Ò¥é¥®¥Î³Ñ¥´ Pro W3\', \'Hiragino Kaku Gothic Pro\', \'Osaka\', sans-serif;">');
	if(P.condition) document.write(P.condition);
	if(P.point){
		document.write('<span style="color: #D10000; font-family: Verdana, Arial, Helvetica, sans-serif;">');
		document.write('<span>' + P.point + '</span>');
		document.write(P.unit + '</span>');
	}
	document.write('</span>');

	if(P.layout == 'center' || P.layout == 'right') document.write('</p>');
}


/* EOF */
