<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>{if isset($self_title) && $self_title != ''}{$self_title|escape:'html'}{else}{$site_name}{/if}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="robots" content="index, follow" />
    <meta name="revisit-after" content="1 days" />
    <meta name="keywords" content="{if isset($self_keywords) && $self_keywords != ''}{$self_keywords|escape:'html'}{else}{$meta_keywords}{/if}" />
    <meta name="description" content="{if isset($self_description) && $self_description != ''}{$self_description|escape:'html'}{else}{$meta_description}{/if}" />
    <link rel = "stylesheet" href = "{$relative_tpl}/css/style.css" type = "text/css" />
    <link rel = "stylesheet" href = "{$relative_tpl}/css/style_menu.css" type = "text/css" />
	<link rel="Shortcut Icon" type="image/ico" href="/favicon.ico" />
    <!--[if IE 7]><link rel="stylesheet" type="text/css"href="{$relative_tpl}/css/style_ie7.css" /><![endif]-->
    <!--[if IE 6]><link rel="stylesheet" type="text/css"href="{$relative_tpl}/css/style_ie6.css" /><![endif]-->
    <script type="text/javascript">
    var base_url = "{$baseurl}";
    var tpl_url = "{$relative_tpl}";
    {if isset($upload_video)}var video_allowed_extensions = /{$allowed_video_extensions}$/i;{/if}
    {if isset($upload_game)}var game_allowed_extensions = /{$upload_allowed_extensions}$/i;
    var image_allowed_extensions = /{$image_allowed_extensions}$/i;{/if}
{if isset($video.VID)}var video_id = "{$video.VID}";{/if}
</script>
	<script type="text/javascript" src="{$relative_tpl}/js/cookie.js"></script>
    <script type="text/javascript" src="{$relative_tpl}/js/jquery-1.2.6.pack.js"></script>
    <!--[if IE 6]><script type="text/javascript" src="{$relative_tpl}/js/jquery.ifixpng.js"></script><![endif]-->
    <script type="text/javascript" src="{$relative_tpl}/js/jquery.livequery.pack.js"></script>
    <script type="text/javascript" src="{$relative_tpl}/js/jquery.rotator-0.1.js"></script>
    <script type="text/javascript" src="{$relative_tpl}/js/jquery.avs-0.1.js"></script>
    {if $submenu_tag_scroller == '1'}<script type="text/javascript" src="{$relative_tpl}/js/jscroller2-1.5.js"></script>{/if}
    {if isset($notice_js)}<script type="text/javascript" src="{$relative_tpl}/js/jquery.notice-0.1.js"></script>{/if}
    {if isset($index)}<script type="text/javascript" src="{$relative_tpl}/js/jquery.swap-0.1.js"></script>{/if}
    {if isset($play)}<script type="text/javascript" src="{$relative_tpl}/js/jquery.game-0.1.js"></script>{/if}
    {if isset($view)}<script type="text/javascript" src="{$relative_tpl}/js/jquery.jtruncate.js"></script>
    <script type="text/javascript" src="{$relative_tpl}/js/jquery.video-0.1.js"></script>{/if}
    {if isset($slider)}<script type="text/javascript" src="{$relative_tpl}/js/jquery.photoslider-1.1.js"></script>
    <script type="text/javascript" src="{$relative_tpl}/js/jquery.slider-1.5.2.min.js"></script>{/if}
    {if isset($profile)}<script type="text/javascript" src="{$relative_tpl}/js/jquery.profile-0.1.js"></script>{/if}
    {if isset($crop)}<script type="text/javascript" src="{$relative_tpl}/js/jquery.imgareaselect-0.6.1.min.js"></script>{/if}
    {if isset($upload_video) or isset($upload_game) or isset($upload_photo)}<script type="text/javascript" src="{$relative_tpl}/js/jquery.upload-0.1.js"></script>{/if}
    {if isset($photo)}<script type="text/javascript" src="{$relative_tpl}/js/jquery.photo-0.1.js"></script>{/if}
    {if isset($blog)}<script type="text/javascript" src="{$relative_tpl}/js/jquery.blog-0.1.js"></script>{/if}
    {if isset($catgy)}<script type="text/javascript" src="{$relative_tpl}/js/jquery.categories-0.1.js"></script>{/if}
    {if isset($editor)}
    <script type="text/javascript" src="{$relative}/addons/markitup/jquery.markitup.js"></script>
    <script type="text/javascript" src="{$relative}/addons/markitup/sets/bbcode/set.js"></script>
    <link rel="stylesheet" type="text/css" href="{$relative}/addons/markitup/skins/jtageditor/style.css" />
    <link rel="stylesheet" type="text/css" href="{$relative}/addons/markitup/sets/bbcode/style.css" />{/if}{if isset($community)}
    <script type="text/javascript" src="{$relative_tpl}/js/jquery.community-0.1.js"></script>{/if}
</head>
<body>
<div id="container">
    <div id="header">
        <div id="logo">
           <a href="{$baseurl}" title="{$site_name}"><img src="{$relative_tpl}/images/logo.png" alt="{$site_name} Logo" /></a>
        </div>
        <div id="right">
            {if isset($smarty.session.uid)}
            <div id="userlinks">
            <ul>
                <li><a href="{$relative}/logout">Sign Out</a></li>
                <li id="my_feeds"><a href="{$relative}/feeds" class="icon">My Feeds</a></li>
                <li id="new_requests"><a href="{$relative}/requests" class="icon">Requests ({$requests_count})</a></li>
                <li id="new_mail"><a href="{$relative}/mail/inbox" class="icon">Inbox ({$mails_count})</a></li>
                <li>Welcome: <a href="{$relative}/user">{$smarty.session.username}</a>!</li>
            </ul>
            </div>
            <div class="clear_right"></div>
            {else}
            <div id="nologinlinks">
                <a href="{$relative}/signup" rel="nofollow">&nbsp;Sign Up</a> <strong>&middot;</strong>
                <a href="{$relative}/login" rel = "nofollow">Login</a>
            </div>
            {/if}
            <div id="toplinks" class="grey small">
                <a href="{$relative}/invite" rel="nofollow">Invite Friends</a> <strong>&middot;</strong> 
                <a href="{$relative}/feedback" rel="nofollow">Support / Feedback</a> <strong>&middot;</strong> 
                <a href="{$relative}/notices">{$site_name} Notice</a>
            </div>
			<div id="slidetabsmenu">
			<ul>
                <li{if $menu == 'community'} id="current"{/if}><a href="{$relative}/community"><span>Community</span></a></li>
                <li{if $menu == 'categories'} id="current"{/if}><a href="{$relative}/categories"><span>Categories</span></a></li>
                {if $blog_module == '1'}<li{if $menu == 'blogs'} id="current"{/if}><a href="{$relative}/blogs"><span>Blogs</span></a></li>{/if}
                {if $game_module == '1'}<li{if $menu == 'games'} id="current"{/if}><a href="{$relative}/games"><span>Games</span></a></li>{/if}
                {if $photo_module == '1'}<li{if $menu == 'albums'} id="current"{/if}><a href="{$relative}/albums"><span>Photos</span></a></li>{/if}
                <li{if $menu == 'videos'} id="current"{/if}><a href="{$relative}/videos"><span>Videos</span></a></li>
                <li{if $menu == 'home'} id="current"{/if}><a href="{$relative}/"><span>Home</span></a></li>				
			</ul>
			</div>
			<div class="clear_left"></div>
        </div>
        <div class="clear"></div>
        <div id="submenu">
            <div id="upload">
                <a href="{$relative}/upload">UPLOAD</a>
            </div>
            <div id="search">
                <form name="search" id="search_form" method="get" action="{$relative}/search">
                    <input name="search_query" type="text" id="search_query" value="{if isset($search_query)}{$search_query}{/if}" />
                    <select name="search_type" id="search_type">
                        <option value="videos"{if isset($search_type) && $search_type == 'videos'} selected="yes"{/if}>Videos</option>
                        {if $photo_module == '1'}<option value="photos"{if isset($search_type) && $search_type == 'photos'} selected="yes"{/if}>Photos</option>{/if}
                        {if $game_module == '1'}<option value="games"{if isset($search_type) && $search_type == 'games'} selected="yes"{/if}>Games</option>{/if}
                        <option value="users"{if isset($search_type) && $search_type == 'users'} selected="yes"{/if}>Users</option>
                    </select>
                    <input type="submit" value="Search" class="button" maxlength="50" />
                    <span class="span_search">[ <a href="{$relative}/search" rel="nofollow" id="advanced_search" class="submenulink">advanced search</a> ]</span>
                </form>
            </div>
            {if $submenu_tag_scroller == '1'}
            <div id="scroller">
                <div id="scroller_title">
                Tags:
                </div>
                <div id="scroller_container">
                    <div class="jscroller2_left" style="font-size: 13px; line-height:15px; white-space:nowrap; margin: 0;">
                    {section name=i loop=$scroller_content}
                        <a class="submenulink" href="{$relative}/search?search_query={$scroller_content[i]}&amp;search_type=videos">{$scroller_content[i]|escape:'html'}</a>
                    {/section}
                    </div>
                </div>
                <div class="clear"></div>
            </div>
            {/if}
            <div class="clear"></div>
        </div>
        <div id="loading_advanced_search" class="response_full" style="display: none;">Loading...</div>
        <div id="search_advanced" style="margin-top: 5px; display: none;">
            <div class="box" id="advanced_search_container"></div>
        </div>
    </div>
                  <!-- end of header -->
