<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" [not-logged] class="body"[/not-logged]>
<head>
{header}
<noscript>
<meta http-equiv="refresh" content="0; URL=/badbrowser.php">
</noscript>
<link media="screen" href="{theme}/style/style.css" type="text/css" rel="stylesheet" />
{js}[not-logged]<script type="text/javascript" src="{theme}/js/reg.js"></script>[/not-logged]
</head>
<body onResize="onBodyResize()"[not-logged] class="body"[/not-logged]>
<div class="scroll_fix_bg no_display" onMouseDown="myhtml.scrollTop()">
  <div class="scroll_fix_page_top">{translate=lang_114}</div>
</div>
<div class="top_header">
  <div class="size"> [logged]
    <a onclick="$('.logo_menu').fadeIn('slow');" class="logo"></a>
    <div class="logo_menu" style="display:none" >
      <div style="height:50px; padding:0px; width:190px; background:#39a90b">
        <a onclick="$('.logo_menu').fadeOut('slow');" class="logo" style="margin-left:0px;"></a>
      </div>
      [group=1]
       <a href="/controlpanel.php">
      <div id="cp_admin_ic">{translate=top_admincp}</div>
      </a>[/group]
      <a href="{my-page-link}">
      <div id="profile_ic">{translate=lang_myprof}</div>
      </a>
      <a href="/editmypage">
      <div id="edit_profile_ic">{translate=lang_819}</div>
      </a>
      <a href="/settings">
      <div id="acc_settings_ic">{translate=lang_820}</div>
      </a>
      <a href="/balance?act=invite">
      <div id="invite_fr_ic">{translate=lang_821}</div>
      </a>
      <a href="/gifts{my-id}">
      <div id="gifts_ic">{translate=lang_822}</div>
      </a>
      <a href="/docs">
      <div id="docs_ic">{translate=lang_823}</div>
      </a>
      <a href="/notes">
      <div id="notes_ic">{translate=lang_824}</div>
      </a>
      <a href="/history">
      <div id="history_ic">{translate=lang_825}</div>
      </a>
      <a href="/support">
      <div id="support_ic">{translate=lang_826}</div>
      </a>
    </div>
    <div class="top_head_menu">
      <a href="/messages" onclick="Page.Go(this.href); return false;">
      <div class="top_head_menu_div">
        <div class="newac_bg" id="new_msg">{msg}</div>
        <img src="/templates/Default/images/spacer.gif" class="headm_ic_mess">
        <br>
        {translate=lang_769} </div>
      </a>
      <a href="/friends" onclick="Page.Go(this.href); return false;" id="requests_link">
      <div class="top_head_menu_div">
        <div class="newac_bg" id="new_requests" style="margin-left:25px;">{demands}</div>
        <img src="/templates/Default/images/spacer.gif" class="headm_ic_friend"><br/>
        {translate=lang_770} </div>
      </a>
      <a href="/albums/{my-id}" onclick="Page.Go(this.href); return false;" id="requests_link_new_photos">
      <div class="top_head_menu_div">
        <div id="new_photos"></div>
        <img src="/templates/Default/images/spacer.gif" class="headm_ic_photo">
        <br>
        {translate=lang_771} </div>
      </a>
      <a href="/videos" onclick="Page.Go(this.href); return false;">
      <div class="top_head_menu_div">
        <img src="/templates/Default/images/spacer.gif" class="headm_ic_videos">
        <br>
        {translate=lang_772} </div>
      </a>
      <a href="/audio" onclick="doLoad.js(0); player.open(); return false;">
      <div class="top_head_menu_div">
        <img src="/templates/Default/images/spacer.gif" class="headm_ic_music" id="fplayer_pos">
        <br>
        {translate=lang_773} </div>
      </a>
      <a href="/groups" onclick="Page.Go(this.href); return false;">
      <div class="top_head_menu_div">
        <img src="/templates/Default/images/spacer.gif" class="headm_ic_groups">
        <br>
        {translate=lang_774} </div>
      </a>
      <a href="/news" onclick="Page.Go(this.href); return false;" id="news_link">
      <div class="top_head_menu_div">
        <div id="new_news"></div>
        <img src="/templates/Default/images/spacer.gif" class="headm_ic_news">
        <br>
        {translate=lang_775} </div>
      </a>
      <a href="/guests" onclick="Page.Go(this.href); return false;">
      <div class="top_head_menu_div">
        <img src="/templates/Default/images/spacer.gif" class="headm_ic_guests">
        <br>
        {translate=lang_776} </div>
      </a>
      <a href="/miss" onclick="Page.Go(this.href); return false;" >
      <div class="top_head_menu_div">
        <img src="/templates/Default/images/spacer.gif" class="headm_ic_miss">
        <br>
        {translate=lang_777} </div>
      </a>
      <a href="/?go=search&query=&type=1&user_photo=1" onclick="Page.Go(this.href); return false;" id="se_link">
      <div class="top_head_menu_div">
        <img src="/templates/Default/images/spacer.gif" class="headm_ic_se">
        <br>
        {translate=lang_778} </div>
      </a>
      <a href="/balance" onclick="Page.Go(this.href); return false;" id="ubm_link">
      <div class="top_head_menu_div">
        <div id="new_ubm"></div>
        <img src="/templates/Default/images/spacer.gif" class="headm_ic_balance">
        <br>
        {translate=lang_779} </div>
      </a>
      <a href="/?act=logout">
      <div class="top_head_menu_div" >
        <img src="/templates/Default/images/spacer.gif" class="headm_ic_logout">
        <br>
        {translate=lang_780} </div>
      </a>
    </div>
    [/logged]
    [not-logged]
    <a href="/">
    <div style=" width:190px; margin:auto">
      <div class="logo"></div>
    </div>
    </a>
    <div class="fl_r">
      <div class="top_lang_menu">
        <div class="fl_l">{translate=top_header_language}
          <a style="cursor:pointer" onClick="trsn.box()" onMouseOver="myhtml.title('1', '{translate=lang_145}', 'langTitle', 1)" id="langTitle1">{lang}</a>
        </div>
      </div>
    </div>
    [/not-logged] </div>
</div>
<div class="clear" style="margin-top:50px;"></div>
<div class="size" >
  <div class="content" [not-logged] style="background:none; border:0px;"[/not-logged]>
    <div id="page">{info}{content}</div>
    <div class="clear" ></div>
  </div>
  <div class="clear" style="padding-top:10px;"></div>
  <div class="footer">
    <a href="/about" [not-logged]class="f_text" [/not-logged] onClick="Page.Go(this.href); return false">{translate=lang_795}</a>
    <a href="/terms" [not-logged]class="f_text" [/not-logged] onClick="Page.Go(this.href); return false">{translate=lang_796}</a>
    <a href="/jobs" [not-logged]class="f_text" [/not-logged] onClick="Page.Go(this.href); return false">{translate=lang_797}</a>
    [logged]<a href="/support" [not-logged]class="f_text" [/not-logged] onClick="Page.Go(this.href); return false">{translate=lang_798}</a>[/logged]
    <div class="clear" style="padding-top:10px;"></div>
    <span [logged]class="foot_pad"[/logged] [not-logged]style=" padding:5px;" class="f_text"[/not-logged]>{translate=lang_794}</span> 
    [logged]<a class="cursor_pointer"  onClick="trsn.box()" onMouseOver="myhtml.title('1', '{translate=lang_145}', 'langTitle', 1)" id="langTitle1">{lang}</a>[/logged]
    [logged]<div class="clear" style="padding-top:10px;"></div><a href="/u1" onClick="Page.Go(this.href); return false">Kamran Madatov</a>[/logged] 
   </div>
</div>
<div class="clear" style="padding-top:10px;"></div>
[logged]<script type="text/javascript">
function upClose(xnid){
	$('#event'+xnid).remove();
	$('#updates').css('height', $('.update_box').size()*123+'px');
}
function GoPage(event, p){
	var oi = (event.target) ? event.target.id: ((event.srcElement) ? event.srcElement.id : null);
	if(oi == 'no_ev' || oi == 'update_close' || oi == 'update_close2') return false;
	else {
		pattern = new RegExp(/photo[0-9]/i);
		pattern2 = new RegExp(/video[0-9]/i);
		if(pattern.test(p))
			Photo.Show(p);
		else if(pattern2.test(p)){
			vid = p.replace('/video', '');
			vid = vid.split('_');
			videos.show(vid[1], p, location.href);
		} else
			Page.Go(p);
	}
}
$(document).ready(function(){
	setInterval(function(){
		$.post('/index.php?go=updates', function(d){
			row = d.split('|');
			if(d && row[1]){
				if(row[0] == 1) uTitle = '{translate=lang_146}';
				else if(row[0] == 2) uTitle = '{translate=lang_147}';
				else if(row[0] == 3) uTitle = '{translate=lang_148}';
				else if(row[0] == 4) uTitle = '{translate=lang_149}';
				else if(row[0] == 5) uTitle = '{translate=lang_150}';
				else if(row[0] == 6) uTitle = '{translate=lang_151}';
				else if(row[0] == 7) uTitle = '{translate=lang_152}';
				else if(row[0] == 8) uTitle = '{translate=lang_153}';
				else if(row[0] == 10) uTitle = '{translate=lang_748}';
				else if(row[0] == 11) uTitle = '{translate=lang_539}';
				else if(row[0] == 12) uTitle = '{translate=lang_749}'; 
				else if(row[0] == 13) uTitle = '{translate=lang_574}';
				else uTitle = '{translate=lang_154}';
				if(row[0] == 8){
					sli = row[6].split('/');
					tURL = (location.href).replace('http://'+location.host, '').replace('/', '').split('#');
					if(!sli[2] && tURL[0] == 'messages') return false;
					if($('#new_msg').text()) msg_num = parseInt($('#new_msg').text().replace(')', '').replace('(', ''))+1;
					else msg_num = 1;
					$('#new_msg').html(msg_num);
				}
				temp = '<div class="update_box cursor_pointer" id="event'+row[4]+'" onClick="GoPage(event, \''+row[6]+'\'); upClose('+row[4]+')"><div class="update_box_margin"><div style="height:19px"><span>'+uTitle+'</span><div class="update_close fl_r no_display" id="update_close" onMouseDown="upClose('+row[4]+')"><div class="update_close_ic" id="update_close2"></div></div></div><div class="clear"></div><div class="update_inpad"><a href="/u'+row[2]+'" onClick="Page.Go(this.href); return false"><div class="update_box_marginimg"><img src="'+row[5]+'" id="no_ev" /></div></a><div class="update_data"><a id="no_ev" href="/u'+row[2]+'" onClick="Page.Go(this.href); return false">'+row[1]+'</a>&nbsp;&nbsp;'+row[3]+'</div></div><div class="clear"></div></div></div>';
				$('#updates').html($('#updates').html()+temp);
				var beepThree = $("#beep-three")[0];
				beepThree.play();
				if($('.update_box').size() <= 5) $('#updates').animate({'height': (123*$('.update_box').size())+'px'});
				if($('.update_box').size() > 5){
					evFirst = $('.update_box:first').attr('id');
					$('#'+evFirst).animate({'margin-top': '-123px'}, 400, function(){
						$('#'+evFirst).fadeOut('fast', function(){
							$('#'+evFirst).remove();
						});
					});
				}
			}
		});
	}, 2000);
});
</script>
<div class="no_display">
  <audio id="beep-three" controls preload="auto">
    <source src="{theme}/images/soundact.ogg"></source>
  </audio>
</div>
[/logged]
<div id="updates"></div>
<div class="clear"></div>
</body>
</html>