% unless ( $state->development ) {
<!--#include virtual="/rl0/init.html" wait="yes" -->
% }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title><% $profile->name %></title>
% if ( ref $favicon && exists $favicon->{filename} ) {
<link rel="SHORTCUT ICON" href="<% $favicon->{filename} %>">
% }
<script language="JavaScript">
<!--
function openWin(popup_name,popup_url,popup_with,popup_height)
{
if(!popup_with) {popup_with = 500;}
if(!popup_height) {popup_height = 500;}
var popup_left = (window.screen.width/2) - (popup_with/2 + 10);
var popup_top = (window.screen.height/2) - (popup_height/2 + 40);
var fenster = window.open(popup_url,popup_name,"toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=" + popup_with + ",height=" + popup_height + ",left=" + popup_left + ",top=" + popup_top + ",screenX=" + popup_left + ",screenY=" + popup_top);
fenster.focus();
}
-->
</script>
% if ($state->development) {
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
% }
% if ( $profile->head_html ) {
<% $profile->head_html %>
% }
% if ( $state->development ) {
<link rel="stylesheet" type="text/css" href="http://pv.rl0.dev.rambler.ru/css/grid.css?rv=294">
% } else {
<link rel="stylesheet" type="text/css" href='http://css.rl0.ru/grid.css?rv=<!--#echo var="rl0_revision" -->'>
% }
<link href="/<% $prj %>/css/styles.css" rel="stylesheet" type="text/css">
</head>
<body>
% if ( $profile->top100 ) {
<a href="http://top100.rambler.ru/top100/"><img src="http://counter.rambler.ru/top100.cnt?<% $profile->top100 %>" alt="Rambler's Top100" width=1 height=1 border=0></a><br>
% }
%
<table class="r--main" cellpadding="0" cellspacing="0">
<tr>
<td>
% if ( $state->development ) {
<div class="b_toplinemobile r--webtoolbar"><table cellspacing="0"><tr><td class="r--lft r--small" style="position:relative;z-index:2;">
<div>
<a class="b_www" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://www.rambler.ru/">Рамблер</a><b>:</b>Мобильный Рамблер<b> </b>
</div>
<div class="r--projectsList">
<ul class="b_toplinemobilemenu">
<li class="r--first"><script type="text/javascript">document.write('<' + 'a class="r--arrow">ещё<' + '/a>');</script>
<noscript><a href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://www.rambler.ru/all.shtml">ещё</a></noscript>
</li>
<li class="r--line"><!----></li>
<li><a class="b_mail" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://mail.rambler.ru/mail/startpage">Почта</a></li>
<li><a class="b_news" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://news.rambler.ru/">Новости</a></li>
<li><a class="b_planet" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://planeta.rambler.ru/">Блоги</a></li>
<li><a class="b_foto" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://foto.rambler.ru/">Фото</a></li>
<li><a class="b_video" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://vision.rambler.ru/">Видео</a></li>
<li><a class="b_audio" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://audio.rambler.ru/">Аудио</a></li>
<li><a class="b_love" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://love.rambler.ru/">Знакомства</a></li>
<li><a class="b_horoscopes" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://horoscopes.rambler.ru/">Гороскопы</a></li>
<li><a class="b_sport" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://sport.rambler.ru/">Спорт</a></li>
<li><a class="b_games" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://games.rambler.ru/">Игры</a></li>
<li><a class="b_cards" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://cards.rambler.ru/">Открытки</a></li>
<li><a class="b_weather" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://weather.rambler.ru/">Погода</a></li>
<li><a class="b_icq" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://icq.rambler.ru/">Rambler ICQ</a></li>
<li><a class="b_nakarte" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://nakarte.rambler.ru/">Карты</a></li>
<li><a class="b_price" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://www.price.ru/">Price.ru</a></li>
<li><a class="b_friends" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://friends.rambler.ru/">Друзья</a></li>
<li><a class="b_pictures" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://nova.rambler.ru/pictures">Картинки</a></li>
<li><a class="b_top100" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://top100.rambler.ru/">Top100</a></li>
<li><a class="b_dict" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://www.rambler.ru/dict/">Словари</a></li>
<li><a class="b_vacancy" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://job.rambler.ru/">Вакансии</a></li>
<li><a class="b_web" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://web.rambler.ru/">Сайты дня</a></li>
<li><a class="b_afisha" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://afisha.rambler.ru">Афиша</a></li>
<li class="r--all b_all"><a href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://www.rambler.ru/all.shtml">Все проекты</a></li>
</ul>
</div>
</td><td class="r--mdl r--small"><div>
<a class="b_mobile" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://mobile.rambler.ru/">Мобильный Рамблер</a>
<b>•</b>
<a class="b_myrambler" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://myrambler.ru/">Мой Рамблер</a>
</div></td><td class="r--rgt r--small"><div>
<a class="b_help" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://help.rambler.ru">Помощь</a>
<b>•</b>
<a class="b_mail" href="http://www.rambler.ru/click?from=mobiletopline&_URL=http://mail.rambler.ru/mail/startpage">Почта</a>
<b>•</b>
<a href="http://login.rambler.ru?http://mobile.rambler.ru/" class="b_login">Войти в Рамблер</a>
</div></td></tr></table></div>
<script type="text/javascript">
Ra={
'Ev':function(v,eWps,c,d,k){
this.mIEP(v,k||document,eWps,c,d)
}
};
Ra.Ev.prototype={
'eP':function(a,b,c,d,e){
var k=0,nod=a;
do{
if(b[k](a,e)){
!k&&(nod=a);
if((++k)==b.length){
if(c){return c(a,nod,e,this)}else{return};
}
}
}while(a=a.parentNode);
if(d){return d(nod,e)}else{return}
},
'mIEP':document.addEventListener?function(c,d,f,g,q){
var h=(function(a,b){
return function(e){
a.eP(e.target,b,g,q,e)===false&&e.preventDefault()
}
})(this,f);
d.addEventListener(c,h,false)
}:function(c,d,f,g,q){
var h=(function(a,b){
return function(){
var e=window.event;
a.eP(e.srcElement||document,b,g,q,e)===false&&(e.returnValue=false)
}
})(this,f);
d.attachEvent('on'+c,h)
}
};
new function(){
var s='className',
o={
toggle:function(a,k){
var i;
typeof o.timer!='undefined'&&clearTimeout(o.timer);
for (i in o.n){
if(a!=o.n[i]) {
o.n[i][s]=o.n[i][s].replace(
/(^|\s)(r--projectsList)V(\s|$)/,
'$1$2$3'
);
delete o.n[i];
}
}
if (a&&!k) {
a[s] = a[s].replace(
/(^|\s)(r--projectsList)(V?)(\s|$)/,
function(e,f,b,c,d){
if (!c) o.n[getUniqueId(a)]=a;
return f+b+(c||k?'':'V')+d
}
)
}
},
n:{},
hidde:function(a){
typeof o.timer!='undefined'&&clearTimeout(o.timer);
o.timer=setTimeout(function(){o.toggle(a,1)},500)
}
};
function getUniqueId(nod){
return nod.uniqueID||(nod.uniqueID=getUniqueId.k++)
}
getUniqueId.k=1;
new Ra.Ev(
'click',
[
function(n){return n.nodeName=='A'&&/(?:^|)r--arrow(?:|$)/.test(n[s])},
function(n){return /(?:^|\s)r--projectsList(?:V?)(?:\s|$)/.test(n[s])}
],
function(a,b){b.blur();o.toggle(a); return !1},
function(){o.toggle(0,1)}
);
new Ra.Ev(
'mouseover',
[
function(n){return /(?:^|\s)r--projectsListV(?:\s|$)/.test(n[s])}
],
function(a){o.hidde(a)},
function(){o.hidde()}
);
};
</script>
% } else {
<!--#include virtual="/rl0/webtoolbar3/?id=<% $prj %>&rv=${rl0_revision}"-->
% }
% ### Верстка головы
% #########################################################
% if ( $m->comp_exists ("/comps/$prj/block_header.msn") ) {
<& "/comps/$prj/block_header.msn", alias => $alias &>
% } else {
<& /comps/block_header.msn, alias => $alias &>
% }
% ### /Верстка головы
% ### Главное меню
% #########################################################
% if ( $m->comp_exists ("/comps/$prj/block_mainmenu.msn") ) {
<& "/comps/$prj/block_mainmenu.msn", alias => $alias &>
% } else {
<& /comps/block_mainmenu.msn, alias => $alias &>
% }
% ### /Главное меню
<div class="r--LCR"><!-- --></div>
</td></tr>
</table><br>
<%args>
$alias => undef
</%args>
<%init>
my $prj = $request->{project};
my $profile = $request->{project_profile};
my $favicon = $profile->get_image('favicon');
</%init>