<script type="text/javascript">
//<![CDATA[
    var ipb_var_blog_id = "{$blog['blog_id']}";
    var ipb_var_blog_url = "{$blog['blog_url']}";
	var ipb_lang_blog_sure_delcblock = "{$this->ipsclass->lang['blog_sure_delcblock']}";
	function delete_entry(theURL)
	{
		if (confirm( "{$this->ipsclass->lang['sure_delentry']}" ))
		{
			window.location.href=theURL;
		}
		else
		{
			alert ( "{$this->ipsclass->lang['del_no_action']}" );
		}
	}
	function delete_comment(theURL)
	{
		if (confirm( "{$this->ipsclass->lang['sure_delcomment']}" ))
		{
			window.location.href=theURL;
		}
		else
		{
			alert ( "{$this->ipsclass->lang['del_no_action']}" );
		}
	}
	function sendtrackback_pop(eid)
	{
		ShowHide("modmenuopen_"+eid, "modmenuclosed_"+eid);
		window.open("{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?automodule=blog&req=sendtrackback&eid="+eid+"&s={$this->ipsclass->session_id}","SendTrackback","width=600,height=300,resizable=yes,scrollbars=yes");
	}
	function permalink_to_entry(eid){
		temp = prompt( "{$this->ipsclass->lang['permalink_prompt']}", "{$this->ipsclass->base_url}automodule=blog&blogid={$blog['blog_id']}&showentry="+eid );
		return false;
	}
	function emo_pop( formobj )
	{
		emoticon = function( ecode, eobj, eurl ){
			document.getElementById( formobj ).value += ' ' + ecode + ' ';
		}
		window.open("{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?act=legends&CODE=emoticons&s={$this->ipsclass->session_id}","Legends","width=250,height=500,resizable=yes,scrollbars=yes");
	}
	function bbc_pop()
	{
		window.open("{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?act=legends&CODE=bbcode&s={$this->ipsclass->session_id}","Legends","width=700,height=500,resizable=yes,scrollbars=yes");
	}
//]]>
</script>
<if="$this->ipsclass->vars['blog_enable_dheader'] == 1">
	<div id="logostrip"><a href='{$this->ipsclass->vars['blog_url']}'><!--ipb.logo.start--><img src='{$blog['header_image']}' style='vertical-align:top' alt='{$blog['blog_name']}' border='0' /><!--ipb.logo.end--></a></div>
</if>
<if="$this->ipsclass->vars['blog_enable_dheader'] == 0">
	<div id="logostrip"><a href='{$this->ipsclass->vars['blog_url']}'><!--ipb.logo.start--><div style="float:left;"><img src='{$this->ipsclass->vars['img_url']}/logo_blog.gif' style='vertical-align:top' alt='{$blog['blog_name']}' border='0' /></div><!--ipb.logo.end--><div style="padding: 15px 0px 0px 0px; color:#FFFFFF; text-decoration:none; width:auto; position:absolute; left:70px; "><b><span style="font-size:24px;">{$blog['blog_name']}</span><br /><br />{$blog['blog_desc']}</b></div></a></div>
</if>
	<div id="submenu">
		
		<div id='submenu_left'>
		<!--ipb.leftlinks.start-->
			<a href="{$this->ipsclass->vars['blog_url']}">{$blog['blog_name']}</a>
		<!--ipb.leftlinks.end-->
		</div>
		
		<div id='submenu_right'>
		<!--ipb.rightlinks.start-->
			<a href="{$this->ipsclass->base_url}act=Help">{$this->ipsclass->lang['tb_help']}</a>
			<a href="{$this->ipsclass->base_url}act=Search&amp;f={$this->ipsclass->input['f']}" id="ipb-tl-search">{$this->ipsclass->lang['tb_search']}</a>
			<a href="{$this->ipsclass->base_url}act=Members">{$this->ipsclass->lang['tb_mlist']}</a>
			<a href="{$this->ipsclass->base_url}act=calendar">{$this->ipsclass->lang['tb_calendar']}</a>
			<if="$component_links != """>
				{$component_links}
			</if>
			<a href='{$this->ipsclass->base_url}'>{$this->ipsclass->lang['forums']}</a>
			<div class='popupmenu-new' id='ipb-tl-search_menu' style='display:none;width:210px'>
				<form action="{$this->ipsclass->base_url}act=Search&amp;CODE=01&amp;forums=all" method="post">
					<input type="text" size="20" name="keywords" id='ipb-tl-search-box' />
					<input class="button" type="image" style='border:0px' src="{$this->ipsclass->vars['img_url']}/login-button.gif" />
				</form>
				<div style='padding:4px'>
					<a href='{$this->ipsclass->base_url}act=Search'>{$this->ipsclass->lang['gbl_more_search']}</a>
				</div>
			</div>
			<script type="text/javascript">
				ipsmenu.register( "ipb-tl-search", 'document.getElementById("ipb-tl-search-box").focus();' );
			</script>
			<!--ipb.rightlinks.end-->
		</div>
	</div>
<!--BLOG.TEMPLATE.MEMBERBAR-->
<div id="ipbwrapper">
<table width="100%" cellspacing="2" cellpadding="0">
<tr><td width='99%'>
<!--BLOG.TEMPLATE.NAVIGATION-->
</td>
	<if="$this->ipsclass->member['id'] == $blog['member_id']">
		<td width='1%'>
			<div class='popmenubutton'><a href='javascript:blogsettings_pop();'>{$this->ipsclass->lang['blog_settings_link']}</a></div>
		</td>
		<td width='1%'>
			<div class='popmenubutton' id='cblock-options'><a href='#cblockoptions'>{$this->ipsclass->lang['cblocks_menu']}</a> <img src='{$this->ipsclass->vars['img_url']}/menu_action_down.gif' alt='V' title='{$this->ipsclass->lang['global_open_menu']}' border='0' /></div>
		</td>
<script type='text/javascript'>
//<![CDATA[
{$cblock_js}
//]]>
</script>
</if>
	<if="$blog['allow_entry']">
		<td width='1%'>
			<div class='popmenubutton' id='entry-menu'><a href='{$this->ipsclass->vars['blog_url']}req=postblog'>{$this->ipsclass->lang['entries_menu']}</a> <img src='{$this->ipsclass->vars['img_url']}/menu_action_down.gif' alt='V' title='{$this->ipsclass->lang['global_open_menu']}' border='0' /></div>
<script type='text/javascript'>
//<![CDATA[
menu_build_menu(
  "entry-menu",
  new Array( img_item + " <a href='{$this->ipsclass->vars['blog_url']}req=postblog'>{$this->ipsclass->lang['add_entry']}</a>",
             img_item + " {$toggle_draft}" ) );
//]]>
</script>
		</td>
	</if>
	<if="$this->ipsclass->vars['blog_enable_rating']">
		<td width='1%'>
		<if="$blog['_allow_rating']">
			<div class='popmenubutton' id='blog-rating'>
				<a href='#blograting'>{$this->ipsclass->lang['blog_rating']}</a>
				{$blog['_blog_rate_img']} <img src='{$this->ipsclass->vars['img_url']}/menu_action_down.gif' alt='V' title='{$this->ipsclass->lang['global_open_menu']}' border='0' />
			</div>
		<else />
			<div class='popmenubutton' id='blog-rating'>
				{$this->ipsclass->lang['blog_rating']} {$blog['_blog_rate_img']}
			</div>
		</if>
		<if="$blog['_allow_rating']">
			<div id='blog-rating_menu' class='popupmenu-new' style='display:none;width:140px'>
				<div class='popupmenu-item'>
					<div id='blog-rating-wrapper'></div>
				</div>
				<div class='popupmenu-item'>
					{$this->ipsclass->lang['you_have_rated_x']} <span id='blog-rating-my-rating'>{$blog['current_rating']}</span>
				</div>
				<div class='popupmenu-item-last'>
					{$this->ipsclass->lang['total_ratings']} <span id='blog-rating-hits'>{$blog['blog_rating_count']}</span>
					<if="$this->ipsclass->vars['blog_rating_treshhold'] > 0 AND $blog['blog_rating_count'] < $this->ipsclass->vars['blog_rating_treshhold']">
						<br />{$this->ipsclass->lang['blog_rating_treshhold']} {$this->ipsclass->vars['blog_rating_treshhold']}
					</if>
				</div>
			</div>
			<script type='text/javascript'>
				ipsmenu.register( "blog-rating" );
			</script>
		</if>
		</td>
	</if>
</tr>
</table>
<if="$this->ipsclass->member['id']">
<script type="text/javascript">
//<![CDATA[
blog_rate.settings['allow_rating']       = parseInt("{$blog['_allow_rating']}");
blog_rate.settings['default_rating']     = parseInt("{$blog['_rate_int']}");
blog_rate.settings['img_base_url']       = ipb_var_image_url + '/folder_topic_view';
blog_rate.settings['div_rating_wrapper'] = 'blog-rating-wrapper';
blog_rate.settings['text_rating_image']  = 'blog-rating-img-';
blog_rate.languages['img_alt_rate']      = "{$this->ipsclass->lang['blog_img_alt_rate']}";
blog_rate.languages['rate_me']           = "{$this->ipsclass->lang['blog_rate_me']}";
blog_rate.init_rating_images();
//]]>
</script>
</if>