//sadkamney 
//изменено 17/03/2006
//изменено 19/01/2005
//изменено 30/07/2004
//изменено 15/07/2004
//изменено 07/01/2003
//

//--------------------
$WinBgColor="#E7D694";
//--------------------
if(navigator.appName == "Netscape"){
//d ocument.write('<table border="2" bgcolor="#B5A584" align="center"><tr><td align="center"><font color="#462100">Вы пользуетесь броузером Netscape, который не умеет правльно отображать многие теги! Если хотите увидеть как должен выглядеть этот сайт на самам деле, то поменяйте свой броузер!</font></td></tr></table><br>');
	PageSkin='skin0';ImgSize=8;TextColor='#806010';TextColor2='#462100';TextColorLight='#B5A584';
}else{
	PageSkin='skin1';ImgSize=8;TextColor='#806010';TextColor2='#462100';TextColorLight='#B5A584';
	//PageSkin='skin2';ImgSize=8;TextColor='#424242';TextColor2='#121212';TextColorLight='#C2C2C2';
}
//--------------------

function menuover(obj){
obj.style.cursor="hand";
obj.style.backgroundColor=TextColor;
obj.all.tags('A').item(0).style.color=TextColor2;
}
//--------------------

function menuout(obj){
obj.style.backgroundColor=TextColorLight;
obj.all.tags('A').item(0).style.color=TextColor;
}
//--------------------

function menuclick(obj){
window.location.href=obj.all.tags('A').item(0).href;
}
//--------------------

function ViewMenuItem(text,url){
document.write('',
'<table width="135" bgcolor="',TextColorLight,'" border="0" cellspacing="0" cellpadding="0" OnMouseOver="menuover(this);" OnMouseOut="menuout(this);" onClick="menuclick(this);"><tr><td align="center" valign="middle"><table width="100%" border="0" cellspacing="2" cellpadding="4"><tr><td background="',path,'img/',PageSkin,'/r_c.gif" align="center">',
'<a href="',url,'" class="SK_menu" style="text-decoration:none;">',text,'</a>',
'</TD></tr></table></td></tr></table>',
'<table border="0" cellspacing="0" cellpadding="0"><tr><td height="3"></td></tr></table>',
'');
} //ViewMenuItem
//--------------------

function ViewMenuSubItem(text,url){
document.write('',
'<table width="125" bgcolor="',TextColorLight,'" border="0" cellspacing="0" cellpadding="0" OnMouseOver="menuover(this);" OnMouseOut="menuout(this);" onClick="menuclick(this);"><tr><td align="center" valign="middle"><table width="100%" border="0" cellspacing="1" cellpadding="1"><tr><td background="',path,'img/',PageSkin,'/r_c.gif" align="center">',
'<a href="',url,'" class="SK_menu" style="text-decoration:none;"><font size=-2>',text,'</font></a>',
'</TD></tr></table></td></tr></table>',
'<table border="0" cellspacing="0" cellpadding="0"><tr><td height="3"></td></tr></table>',
'');
} //ViewMenuItem
//--------------------

function ViewMenu(PageLevel){
//1
ViewMenuItem('главная страница',path+'main.html');
//if(PageLevel=='1'){
 ViewMenuSubItem('о группе',path+'info.html');
//};
//2
if(path=='http://www.sadkamney.ru/'){a='http://www.sadkamney.ru';}else{a='';};
ViewMenuItem('новости',a+'/cgi-bin/news/nlist.pl?do=0');
//if(PageLevel=='news'){
 ViewMenuSubItem('архив новостей',a+'/cgi-bin/news/nlist.pl?do=1');
//};
//news
ViewMenuItem('история',path+'history.html');
//if(PageLevel=='3'){
 ViewMenuSubItem('состав группы',path+'history_peoples.html');
//};
//4
ViewMenuItem('альбомы',path+'albums.html');
//if(PageLevel=='4'){
// ViewMenuSubItem('список песен',path+'albums_songs.html');
 ViewMenuSubItem('видео',path+'albums_video.html');
//};
//5
ViewMenuItem('фотографии',path+'gallery.html');
//memo
ViewMenuItem('мемуары',path+'memo/index.html');
//6
ViewMenuItem('гостевая книга','http://www.guestbook.ru/book.cgi?user=SadKamney&action=sign');
//7
//ViewMenuItem('форум','http://www.musnews.ru/modules.php?name=Forums&file=viewforum&f=5');
//other
ViewMenuItem('разное',path+'other.html');
//if(PageLevel=='other'){
 ViewMenuSubItem('ссылки',path+'links.html');
 ViewMenuSubItem('проза',path+'other/prose/index.html');
 ViewMenuSubItem('поэзия',path+'other/poetry/index.html');
 ViewMenuSubItem('дружественная музыка',path+'other/fmusic/index.html');
//};
ViewMenuItem('карта сайта',path+'site_map.html');
} //ViewMenu
//--------------------

function ViewPageTop(title,PageLevel){
document.write('',
'<body background="',path,'img/',PageSkin,'/back.gif">',
'<a name="top">',
'<!-- Page start --><table cellspacing="0" cellpadding="0" border="0" width="100%"><tr>',
'<td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_lu.gif"></td>',
'<td height="',ImgSize,'" background="',path,'img/',PageSkin,'/r_u.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td height="',ImgSize,'" background="',path,'img/',PageSkin,'/r_u.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td height="',ImgSize,'" background="',path,'img/',PageSkin,'/r_u.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_ru.gif"></td>',
'</tr><tr>',
'<td width="',ImgSize,'" background="',path,'img/',PageSkin,'/r_l.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<!-- PageLogo start --><td background="',path,'img/',PageSkin,'/r_c.gif" align="center">',
'<a href="',path,'index.html"><img src="',path,'img/',PageSkin,'/logo.jpg" height="101" width="135" border="0"></a>',
'<!-- PageLogo end --></td>',
'<td background="',path,'img/',PageSkin,'/r_c.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<!-- PageTitle start --><td background="',path,'img/',PageSkin,'/r_c.gif" align="center" valign="top">',
'<table cellspacing="0" cellpadding="0" border="0" align="right"><tr><td>',
'<a href="',path,'main.html"><img src="',path,'img/',PageSkin,'/r_i_home.gif" border="0"></a>',
'</td></tr></table>',
'<br><img src="',path,'img/',PageSkin,'/title.gif" height="85" width="490" alt="Сад Камней">',
'<br><font face="Arial" size="-2" color="',TextColor,'">',title,'</font>',
'<!-- PageTitle end --></td>',
'<td width="',ImgSize,'" background="',path,'img/',PageSkin,'/r_r.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'</tr><tr>',
'<td width="',ImgSize,'" background="',path,'img/',PageSkin,'/r_l.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td background="',path,'img/',PageSkin,'/r_c.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_lu1.gif"></td>',
'<td height="',ImgSize,'" background="',path,'img/',PageSkin,'/r_d.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_rd.gif"></td>',
'</tr><tr>',
'<td width="',ImgSize,'" background="',path,'img/',PageSkin,'/r_l.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<!-- PageMenu start --><td background="',path,'img/',PageSkin,'/r_c.gif" width="150" align="center" valign="top">',
'');

ViewMenu(PageLevel);

document.write('<br>',

'<!--TopList COUNTER--><a target=_blank href="http://top.list.ru/jump?from=140138"><img src="http://top.list.ru/counter?id=140138;t=51" border=0 height=31 width=88 alt="TopList"></a><!--TopList COUNTER--><br>');
d=document;
u="u858.39.spylog.com";nv=navigator;na=nv.appName;p=1;
bv=Math.round(parseFloat(nv.appVersion)*100);
n=(na.substring(0,2)=="Mi")?0:1;rn=Math.random();z="p="+p+"&rn="+rn;y="";
y+="<a href='http://"+u+"/cnt?f=3&p="+p+"&rn="+rn+"' target=_blank>";
y+="<img src='http://"+u+"/cnt?"+z+"&r="+escape(d.referrer)+"&pg="+escape(window.location.href)+"' border=0 width=88 height=31 alt='SpyLOG'>"; 
y+="</a>";d.write(y);if(!n){d.write("<"+"!--");}
d.write("<a href='http://u858.39.spylog.com/cnt?f=3&p=1' target=_blank><img src='http://u858.39.spylog.com/cnt?p=1' alt='SpyLOG' border='0' width=88 height=31></a>");
if(!n) {d.write("--"+">");}

document.write('',
'<p><small><a href="http://top.mp3search.ru/cgi-bin/rankem.cgi?id=sadkamne" target=_blank>музыкальный рейтинг</a></small>',
'<!--Nigl all counter--><img src="http://top.list.ru/counter?id=11782;t=51" border=0 height=1 width=1 alt="TopList"><!--Nigl all counter-->',
'<p><a href="http://www.rock.ru/cgi-bin/topsites/topsites.cgi?action=in&language=Russian&id=1199" target=_blank><img src="http://www.rock.ru/cgi-bin/topsites/topsites.cgi?action=button&language=Russian&id=1199" border="0"></a>',
'<!-- PageMenu end --></td>',
'<td width="',ImgSize,'" background="',path,'img/',PageSkin,'/r_r.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<!-- PageText start --><td valign="top">',
'<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr><td height="10" width="10"></td><td></td></tr><tr><td></td><td>',
'');
} //ViewPageTop

function ViewPageBottom(){
document.write('',
'</td></tr><tr><td height="10" width="10"></td><td></td></tr></table>',
'<!-- PageText endt --></td>',
'<td></td>',
'</tr><tr>',
'<td width="',ImgSize,'" background="',path,'img/',PageSkin,'/r_l.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td background="',path,'img/',PageSkin,'/r_c.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_ld1.gif"></td>',
'<td height="',ImgSize,'" background="',path,'img/',PageSkin,'/r_u.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_ru.gif"></td>',
'</tr><tr>',
'<td width="',ImgSize,'" background="',path,'img/',PageSkin,'/r_l.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td background="',path,'img/',PageSkin,'/r_c.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td background="',path,'img/',PageSkin,'/r_c.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<!-- PageDownTitle start --><td background="',path,'img/',PageSkin,'/r_c.gif">',
'<table border="0" width="100%"><tr><td align="left">',
'<font face="Arial" size="-3" color="',TextColor,'">mailto:<a href="mailto:info@sadkamney.ru">info@sadkamney.ru</a></font>',
'</td><td align="right">',
'<font face="Arial" size="-3" color="',TextColor,'">(c)2000-2007 by Nigl</font>',
'</td></tr></table>',
'<!-- PageDownTitle end --></td>',
'<td width="',ImgSize,'" background="',path,'img/',PageSkin,'/r_r.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'</tr><tr>',
'<td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_ld.gif"></td>',
'<td height="',ImgSize,'" background="',path,'img/',PageSkin,'/r_d.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td height="',ImgSize,'" background="',path,'img/',PageSkin,'/r_d.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td height="',ImgSize,'" background="',path,'img/',PageSkin,'/r_d.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_rd.gif"></td>',
'<!-- Page end --></tr></table>',
'');
} //ViewPageBottom
//--------------------

function ViewWinTop(title,WinWidth){
document.write('',
'<!-- Win start --><table cellspacing="0" cellpadding="0" border="0" width="',WinWidth,'"><tr>',
'<td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_lu.gif"></td>',
'<td height="',ImgSize,'" background="',path,'img/',PageSkin,'/r_u.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td height="',ImgSize,'" background="',path,'img/',PageSkin,'/r_u.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_ru.gif"></td>',
'</tr><tr>',
'<td width="',ImgSize,'" background="',path,'img/',PageSkin,'/r_l.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<!-- WinTitle start --><td background="',path,'img/',PageSkin,'/r_c.gif" align="center">',
'<table cellspacing="0" cellpadding="0" border="0" align="right"><tr><td>',
'<a href="JavaScript:history.back();"><img src="',path,'img/',PageSkin,'/r_i_back.gif" border="0"></a><a href="#top"><img src="',path,'img/',PageSkin,'/r_i_up.gif" border="0"></a>',
'</td></tr></table>',
'<font face="Arial" size="+0" color="',TextColor,'">',title,'</font>',
'<!-- WinTitle end --></td>',
'<td background="',path,'img/',PageSkin,'/r_c.gif" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td width="',ImgSize,'" background="',path,'img/',PageSkin,'/r_r.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'</tr><tr>',
'<td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_ld.gif"></td>',
'<td height="',ImgSize,'" background="',path,'img/',PageSkin,'/r_d.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_ru1.gif"></td>',
'<td width="',ImgSize,'" background="',path,'img/',PageSkin,'/r_r.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'</tr><tr>',
'<td></td>',
'<!-- WinText start --><td valign="top">',
'');
}
//--------------------

function ViewWinBottom(){
document.write('',
'<!-- WinText end --></td>',
'<td width="',ImgSize,'" background="',path,'img/',PageSkin,'/r_l.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td width="',ImgSize,'" background="',path,'img/',PageSkin,'/r_r.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'</tr><tr>',
'<td></td>',
'<td align="right">',
'<!-- WinD1 start --><table cellspacing="0" cellpadding="0" border="0" width="65%"><tr>',
'<td><td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_lu.gif"></td></td>',
'<td height="',ImgSize,'" background="',path,'img/',PageSkin,'/r_u.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<!-- WinD1 end --></tr></table>',
'</td>',
'<td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_rd1.gif"></td>',
'<td width="',ImgSize,'" background="',path,'img/',PageSkin,'/r_r.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'</tr><tr>',
'<td></td>',
'<td align="right">',
'<!-- WinD2 start --><table cellspacing="0" cellpadding="0" border="0" width="65%"><tr>',
'<td><td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_ld.gif"></td></td>',
'<td height="',ImgSize,'" background="',path,'img/',PageSkin,'/r_d.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<!-- WinD2 end --></tr></table>',
'</td>',
'<td height="',ImgSize,'" background="',path,'img/',PageSkin,'/r_d.gif"><img src="',path,'img/',PageSkin,'/n.gif" height="0" width="0"></td>',
'<td height="',ImgSize,'" width="',ImgSize,'"><img src="',path,'img/',PageSkin,'/r_rd.gif"></td>',
'<!-- Win end --></tr></table>',
'');
}
//--------------------
function FindString(mainStr,subStr){
 for (var i=0; i<mainStr.length; i++){
  if (mainStr.substring(i,i+subStr.length) == subStr){
   return i;
  }
 }
 return (-1);
}
//--------------------

function GetParam(mainStr,VarID){
 ParamCount=FindString(mainStr,VarID);
 if(ParamCount == -1)return -1;
 ParamCount=ParamCount+VarID.length;
 for(i=ParamCount; i<mainStr.length && mainStr.substr(i,1)!='?'; i++){
 };
 return mainStr.substr(ParamCount,i-ParamCount);
}
//--------------------


