
function getEl(el_name){if(document.getElementById)
return document.getElementById(el_name);if(document.all)
return document.all[el_name];}
function sh(){if((typeof window.sidebar=="object")&&(typeof window.sidebar.addPanel=="function")){window.sidebar.addPanel('Druzi.ru',document.location.href,"");}else{this.setHomePage('Druzi.ru');}}
function show(img){var click='pub/images/'+img;var winwidth=screen.availWidth;var winheight=screen.availHeight;var sizer;if(document.all)
sizer=window.open('','','left=0,top=0,width=winwidth,height=winheight,scrollbars=yes,fullscreen=yes');else
sizer=window.open(click,'img','width=winwidth,height=winheight,menubar=no,status=no,scrollbars=yes,location=no,fullscreen=yes,directories=no,resizable=yes');sizer.document.write('<html><body style="margin:0">');sizer.document.write('<img src="'+click+'" onClick="window.close();" style="cursor:pointer;">');sizer.document.write('<div style="position:absolute;top:10px;left:10px;background-color:white;border: solid 1px black;filter:Alpha(opacity=90);padding:10px;font-family:verdana;font-size:11px;width:200px;">');sizer.document.write('Нажмите левой кнопкой, чтобы закрыть картинку');sizer.document.write('</div>');sizer.document.write('</body></html>');sizer.document.close();}
function openContact(uid)
{var w=window.open('/?mod=messenger&act=popup&id='+uid,'messenger',"width=521,height=565,resizable=1,toolbar=0,location=0,status=0,menubar=0,directories=0,scrollbars=yes,top=0,left=0");w.focus();}
function openComments(id)
{var w=window.open('/?mod=gallery&act=comments&id='+id,'comments',"width=571,height=565,resizable=1,toolbar=0,location=0,status=0,menubar=0,directories=0,scrollbars=yes,top=0,left=0");w.focus();}
function showSubs(){var w=window.open('?mod=gallery&act=subs&cid='+cid,'subs',"width=321,height=515,resizable=1,toolbar=0,location=0,status=0,menubar=0,directories=0,scrollbars=yes,top=0,left=0");w.focus();}
function showNames(){var w=window.open('?mod=gallery&act=names&id='+id,'cmnts',"width=541,height=515,resizable=1,toolbar=0,location=0,status=0,menubar=0,directories=0,scrollbars=yes,top=0,left=0");w.focus();}
function ppA(obj){if(obj.href.indexOf('=view_cat')==-1){var url=obj.href+'&mod=gallery&act=view_pages';}else
var url=obj.href.replace('=view_cat','=view_pages');var w=window.open(url,'pages',"width=531,height=315,resizable=1,toolbar=0,location=0,status=0,menubar=0,directories=0,scrollbars=yes,top=0,left=0");w.focus();return false;}
var pageName="STOPME - Останови Меня!";function addFav(){if(window.external){window.external.AddFavorite(document.location.href,pageName)}else{window.sidebar.addPanel(pageName,document.location.href,"");}
return false;}
function showSubs(){var h='',f,im;for(i in _subs){im=_subs[i];if(im[0]){h+='<a href="pub/images/'+im[1]+'"><img src="pub/medium/'+im[1]+'"></a>\
<br /><a href="http://mobiletm.ru/?r=stopme.ru&url='+vRoot+'pub/images/'+im[1]+'" target="_blank">загрузить БЕСПЛАТНО в телефон</a><br />\
      <a href="javascript:show(\''+im[1]+'\')" style="float:right;margin-right:41px" title="Чтобы увеличить картинку до реального размера кликните ЗДЕСЬ"><img src="img/default/zoom.jpg" /></a>';}else
h+='<img src="pub/medium/'+im[1]+'">\
<br /><a href="http://mobiletm.ru/?r=stopme.ru&url='+vRoot+'pub/images/'+im[1]+'" target="_blank">загрузить БЕСПЛАТНО в телефон</a>';h+='<br /><br />';}
getEl('subsL').innerHTML=h;}
function vote(obj){obj.parentNode.submit();}
