					<img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="__" align="absbottom" />
<?php if ($this->_vars['base']['account']['id'] == $this->_vars['base']['member']['id']): ?>
					<div class="listrow">
						<div class="right"><img src="<?php e(BASE_URL); ?>resource/img/icons/vcard_edit.gif" width="16" height="16" align="absmiddle" alt="&gt;" />&nbsp;<a href="<?php e(HTTP_ACTION); ?>private/personal/profile/"><?php _e('Edit Profile'); ?></a>&nbsp;&nbsp;&nbsp;&nbsp;</div>
					</div>
<?php endif; ?>
<?php if ($this->_vars['profile']['name_flag'] & $this->_vars['base']['visible']): ?>
					<div class="listrow">
						<label class="column"><?php _e('Name'); ?>:</label>
						<div class="fdata"><?php e(RKT_Crypt::getDecrypted($this->_vars['profile']['last_name'])); ?><?php e(RKT_Crypt::getDecrypted($this->_vars['profile']['first_name'])); ?></div>
					</div>
<?php endif; ?>
					<div class="listrow">
						<label class="column"><?php _e('Nickname'); ?>:</label>
						<div class="fdata"><?php e($this->_vars['profile']['nickname']); ?></div>
					</div>
<?php if ($this->_vars['profile']['region_flag'] & $this->_vars['base']['visible']): ?>
					<div class="listrow">
						<label class="column"><?php _e('Present address'); ?>:</label>
						<div class="fdata"><?php HTML::reference('ara_region', $this->_vars['profile']['ref_region']); ?><?php HTML::reference('ara_city', $this->_vars['profile']['ref_city']); ?></div>
					</div>
<?php endif; ?>
<?php if ($this->_vars['profile']['gender_flag'] & $this->_vars['base']['visible']): ?>
					<div class="listrow">
						<label class="column"><?php _e('Gender'); ?>:</label>
						<div class="fdata"><?php HTML::reference('act_gender', $this->_vars['profile']['ref_gender']); ?></div>
					</div>
<?php endif; ?>
<?php if ($this->_vars['profile']['blood_flag'] & $this->_vars['base']['visible']): ?>
					<div class="listrow">
						<label class="column"><?php _e('Blood Type'); ?>:</label>
						<div class="fdata"><?php HTML::reference('act_blood', $this->_vars['profile']['ref_blood']); ?></div>
					</div>
<?php endif; ?>
<?php if ($this->_vars['profile']['age_flag'] & $this->_vars['base']['visible']): ?>
					<div class="listrow">
						<label class="column"><?php _e('Age'); ?>:</label>
						<div class="fdata"><?php printf(_('%s years old'), fAge($this->_vars['profile']['birthday'])); ?></div>
					</div>
<?php endif; ?>
<?php if ($this->_vars['profile']['birthday_flag'] & $this->_vars['base']['visible']): ?>
					<div class="listrow">
						<label class="column"><?php _e('Birthday'); ?>:</label>
						<div class="fdata"><?php eDate($this->_vars['profile']['birthday'], _('m-d')); ?></div>
					</div>
<?php endif; ?>
<?php if ($this->_vars['profile']['married_flag'] & $this->_vars['base']['visible']): ?>
					<div class="listrow">
						<label class="column"><?php _e('Marital Status'); ?>:</label>
						<div class="fdata"><?php HTML::reference('act_married', $this->_vars['profile']['ref_married']); ?></div>
					</div>
<?php endif; ?>
<?php if ($this->_vars['profile']['hometown_flag'] & $this->_vars['base']['visible']): ?>
					<div class="listrow">
						<label class="column"><?php _e('Hometown'); ?>:</label>
						<div class="fdata"><?php HTML::reference('ara_region', $this->_vars['profile']['ref_hometown']); ?><?php HTML::reference('ara_city', $this->_vars['profile']['ref_homecity']); ?></div>
					</div>
<?php endif; ?>
<?php /* プロフィール追加項目 */
    if (!empty($this->_vars['items'])): ?>
<?php foreach ($this->_vars['items'] as $_row): ?>
<?php if ($_row['visibility'] & $this->_vars['base']['visible']): ?>
					<div class="listrow">
						<label class="column"><?php e($_row['item']); ?>:</label>
						<div class="fdata">
							<input name="personals[<?php e($_row['ref_item']); ?>][ref_item]" type="hidden" value="<?php e($_row['ref_item']); ?>" />
							<input name="personals[<?php e($_row['ref_item']); ?>][personal]" type="hidden" value="<?php e($_row['personal']); ?>" />
							<input name="personals[<?php e($_row['ref_item']); ?>][visibility]" type="hidden" value="<?php e($_row['visibility']); ?>" />
<?php if ($_row['type'] == FORM_TYPE_TEXT): ?>
							<?php e($_row['personal']); ?>
<?php elseif ($_row['type'] == FORM_TYPE_TEXTAREA): ?>
							<?php nl2br($_row['personal']); ?>
<?php elseif ($_row['type'] == FORM_TYPE_SELECT || $_row['type'] == FORM_TYPE_RADIO): ?>
							<?php e($_row['answers'][$_row['personal']]); ?>
<?php elseif ($_row['type'] == FORM_TYPE_CHECKBOX): ?>
							<?php HTML::checkedList($_row['answers'], $_row['personal'], 2); ?>
<?php elseif ($_row['type'] == FORM_TYPE_DATE): ?>
							<?php eDate($_row['personal'], _('Y-m-d')); ?>
<?php endif; ?>
						</div>
					</div>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
					<div class="listplain">
						<label class="column"><?php _e('Comment'); ?>:</label>
						<div class="fdata"><?php HTML::htmlBody($this->_vars['profile']['comment']); ?></div>
					</div><img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="__" align="top" />

					<?php loadPlugin::callFunc('hitsuji_summary', $this->_vars['base']['member']['id'], 'blg_entry'); ?>


					<div id="frm_comments" style="display:none;"><img src="<?php Theme::Path(); ?>itemTop.png" width="530" height="10" alt="__" align="absbottom" />
					<div class="listrow">
						<img src="<?php e(BASE_URL); ?>resource/img/icons/comment.gif" width="16" height="16" align="absmiddle" />&nbsp;<strong><?php _e('Comments'); ?></strong>
					</div>
					<div id="fri_comments"></div>
					<div class="listing">
						<div class="right"><a href="<?php e(HTTP_ACTION); ?>member/personal/comment/<?php e($this->_vars['base']['member']['id']); ?>/"><?php _e('View Comments'); ?></a>&nbsp;&nbsp;&nbsp;&nbsp;</div>
					</div>
					<img src="<?php Theme::Path(); ?>itemBottom.png" width="530" height="10" alt="__" align="top" /></div>

<script type="text/javascript">
YAHOO.util.Event.onDOMReady(function() {
	var callback =
	{
		success: function(o) {
			var summary = eval (o.responseText);

			var div = YAHOO.util.Dom.get('fri_comments');
			var drow  = null;
			var label = null;
			var fdata = null;
			var anc   = null;
			var img   = null;
			var br    = null;
			
			if (summary.length != 0){
				YAHOO.util.Dom.setStyle('frm_comments', "display", "block");
			}
			for (row=0; row<summary.length; row++){
				drow  = document.createElement('div');
				label = document.createElement('label');
				fdata = document.createElement('div');
				anc   = document.createElement('a');
				img   = document.createElement('img');
				br    = document.createElement('br');

				drow.setAttribute('class',  'listrow');
				label.setAttribute('class', 'column');
				fdata.setAttribute('class', 'fdata');
				drow.setAttribute('className',  'listrow');
				label.setAttribute('className', 'column');
				fdata.setAttribute('className', 'fdata');

				label.style.textAlign = 'center';

				img.src = '<?php e(BASE_URL); ?>' + summary[row].src;
				img.setAttribute('align', 'absbottom');
				anc.setAttribute('href', '<?php e(HTTP_ACTION); ?>member/personal/profile/'+ summary[row].id +'/');
				anc.appendChild(img);

				label.appendChild(anc);
				label.appendChild(br);
				label.appendChild(document.createTextNode(summary[row].nickname));

				fdata.innerHTML = summary[row].comment;

				drow.appendChild(label);
				drow.appendChild(fdata);

				div.appendChild(drow);
			}
		},
		failure: function(o) {
			YAHOO.util.Dom.setStyle('frm_comments', "display", "none");
		},
		argument: []
	}
	YAHOO.util.Connect.initHeader('Cookie', document.cookie);
	YAHOO.util.Connect.asyncRequest('GET',  '<?php e(HTTP_ACTION); ?>member/personal/comment/<?php e($this->_vars['base']['member']['id']); ?>/json/', callback);
});
</script>
