{* 
//////
//    @version [ Wainuiomata ]
//    @package hwdVideoShare
//    @copyright (C) 2007 - 2009 Highwood Design
//    @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
//////
//    hwdVideoShare Template System:::This template system uses the Smarty Template Engine. 
//    For full documentation, including syntax usage please refer to http://www.smarty.net 
//    or our website at http://www.hwdmediashare.co.uk   
//////
//    This file generates the header for the hwdVideoShare component and outputs the top navigation system.
//////
//    VARIABLES AVAILBLE IN THIS TEMPLATE FILE:                                        
//    -- $print_ads.......Only set if hwdRevenueManager is installed 
//    -- $advert1.........The code for Advert1 
//    -- $advert2.........The code for Advert2 
//    -- $print_nav.......Only set if any navigation buttons are enabled
//    -- $print_vlink.....Only set if "videos" link is enabled
//    -- $print_clink.....Only set if "categories" link is enabled
//    -- $print_glink.....Only set if "groups" link is enabled
//    -- $print_ulink.....Only set if "upload" link is enabled
//    -- $print_search....Only set if search function is enabled
//    -- $form_search.....The URL to post the search form
//    -- $searchinput.....The search text input code 
//    -- $print_usernav...Only set if any user navigation links are enabled
//    -- $yv..............The link to "your videos"
//    -- $yf..............The link to "your favourites"
//    -- $yg..............The link to "your groups"  
//    -- $ym..............The link to "your group memberships"
//    -- $cg..............The link to "create group" 
//////
*}

{if $print_ads}{if $advert1}<div id="hwdadverts-padding">{$advert1}</div>{/if}{/if}

<div id="community-wrap">

	<script type="text/javascript" src="{$JURL}/components/com_community/templates/blackout/js/script.js"></script>

	<div id="cToolbar">
	
		<ul class="toolbar-items">
			    
			{if $print_HomeButton eq 1}
			<li id="toolbar-item-frontpage" class="toolbar-item">
				<a href="{$HomeButtonLink}"><span>Home</span></a>
			</li>
			{/if}

			{if $print_vlink}
			<li id="toolbar-item-video" class="{if $vact}toolbar-active {/if}toolbar-item">
				<a href="{$js_v}"><span>{$smarty.const._HWDVIDS_NAV_VIDEOS}</span></a>
			</li>
			{/if}

			{if $print_clink}
			<li id="toolbar-item-category" class="{if $cact}toolbar-active {/if}toolbar-item">
				<a href="{$js_c}"><span>{$smarty.const._HWDVIDS_NAV_CATEGORIES}</span></a>
			</li>
			{/if}

			{if $print_glink}
			<li id="toolbar-item-group" class="{if $gact}toolbar-active {/if}toolbar-item">
				<a href="{$js_g}"><span>{$smarty.const._HWDVIDS_NAV_GROUPS}</span></a>
			</li>
			{/if}	        

			{if $print_ulink}
			<li id="toolbar-item-upload" class="{if $uact}toolbar-active {/if}toolbar-item">
				<a href="{$js_u}"><span>{$smarty.const._HWDVIDS_NAV_UPLOAD}</span></a>

			</li>
			{/if}
	        
			{if $print_usernav}
			<li id="toolbar-item-profile" class="toolbar-active toolbar-item">
				<a href="{$mosConfig_live_site}/index.php?option=com_hwdvideoshare&task=yourvideos&Itemid={$Itemid}" onmouseover="joms.toolbar.open('m1')" onmouseout="joms.toolbar.closetime()" class="has-submenu"><span>Users</span></a>
				<div id="m1" onmouseover="joms.toolbar.cancelclosetime()" onmouseout="joms.toolbar.closetime()" style="visibility: hidden;" class="toolbar-subitems toolbar-active">{$js_yv}{$js_yf}{$js_yg}{$js_ym}{$js_yp}{$js_cg}{$js_cp}{$js_yc}</div>
			</li>
			{/if}
			
		</ul>
			
		<div class="toolbar-myname">
			<a href="{$rss_recent}"><img src="{$URL_HWDVS_IMAGES}rss.png" border="0" alt="RSS" title="RSS" style="margin-top: -6px;" /></a>
		</div>

	</div>

	{if $print_ads}{if $advert2}<div id="hwdadverts-padding">{$advert2}</div>{/if}{/if}
