<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
    <?php 
if (WoW_Account::IsLoggedIn()) {
    echo '<script>parent.postMessage("{\\"action\\":\\"success\\",\\"loginTicket\\":\\"' . WoW_Account::GetSessionInfo('wow_account_hash') . '\\"}", "http://' . $_SERVER['HTTP_HOST'] . WoW::GetWoWPath() . '/");</script>';
} else {
    WoW_Template::LoadTemplate('block_login_frag', true);
}
?>
</head>
</html>
			var textAreaFocused = false;
		//]]>
	</script>
    <form action="<?php 
echo WoW::GetWoWPath();
?>
/wow/discussion/blog.<?php 
echo WoW::GetBlogData('id');
?>
/comment?d_ref=%2Fwow%2Fblog%2F<?php 
echo WoW::GetBlogData('id');
?>
" method="post" onsubmit="return Cms.Comments.validateComment(this);" id="comment-form">
    	<fieldset>
            <input type="hidden" name="xstoken" value="<?php 
echo WoW_Account::GetSessionInfo('wow_sid');
?>
"/>
            <input type="hidden" name="sessionPersist" value="discussion.comment"/>
        </fieldset>
        <div class="new-post">
            <div class="comment">
					<div class="portrait-b ajax-update">
								<div class="avatar-interior">
									<?php 
echo sprintf('<a href="%s">
										<img height="64" src="%s/wow/static/images/2d/avatar/%d-%d.jpg" alt="" />
									</a>', WoW_Account::GetActiveCharacterInfo('url'), WoW::GetWoWPath(), WoW_Account::GetActiveCharacterInfo('race'), WoW_Account::GetActiveCharacterInfo('gender'));
?>
								</div>
					</div>