/* share42.com | 13.11.2011 | (c) Dimox */
function share42(f,u,t,m1,m2){if(!u)u=location.href;if(!t)t=document.title;u=encodeURIComponent(u);t=encodeURIComponent(t);if(!m1)m1=150;if(!m2)m2=20;document.write('<div id="share42" style="width:32px"><a href="#" id="s42t" style="outline:none"></a><div id="s42w" style="overflow:hidden;position:relative;margin:0 0 6px;"><div id="s42i" style="position:relative">');var s=new Array('"#" onclick="window.open(\'http://www.facebook.com/sharer.php?u='+u+'&t='+t+'\', \'_blank\', \'scrollbars=0, resizable=1, menubar=0, left=200, top=200, width=550, height=440, toolbar=0, status=0\');return false" title="Share to Facebook"','"#" onclick="window.open(\'http://vkontakte.ru/share.php?url='+u+'\', \'_blank\', \'scrollbars=0, resizable=1, menubar=0, left=200, top=200, width=554, height=421, toolbar=0, status=0\');return false" title="Share to Vkontakte"','"#" onclick="window.open(\'http://www.odnoklassniki.ru/dk?st.cmd=addShare&st._surl='+u+'&title='+t+'\', \'_blank\', \'scrollbars=0, resizable=1, menubar=0, left=200, top=200, width=550, height=440, toolbar=0, status=0\');return false" title="Share to Odnoklassniki.ru"','"http://connect.mail.ru/share?url='+u+'&title='+t+'" title="Share to Мой Мир@Mail.Ru"','"#" onclick="window.open(\'http://twitter.com/share?text='+t+'&url='+u+'\', \'_blank\', \'scrollbars=0, resizable=1, menubar=0, left=200, top=200, width=550, height=440, toolbar=0, status=0\');return false" title="Share to Twitter"','"http://www.myspace.com/Modules/PostTo/Pages/?u='+u+'&t='+t+'" title="Share to MySpace"','"http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+u+'&title='+t+'" title="Save to Google Bookmarks"','"http://zakladki.yandex.ru/newlink.xml?url='+u+'&name='+t+'" title="Save to Yandex Bookmarks"','"http://www.friendfeed.com/share?title='+t+' - '+u+'" title="Share to FriendFeed"','"http://www.feedburner.com/fb/a/emailFlare?loc=en_US&itemTitle='+t+'&uri='+u+'" title="Email This to a Friend"','"" onclick="return fav(this);" title="Save to Browser Favorites"');for(i=0;i<s.length;i++)document.write('<a rel="nofollow" style="display:block;width:32px;height:32px;margin:0 0 6px;outline:none;background:url('+f+'icons.png) -'+32*i+'px 0" href='+s[i]+' target="_blank"></a>');document.write('</div></div><a href="#" id="s42b" style="background-position:-'+32*12+'px 50%;outline:none;"></a><style>#s42t,#s42b{display:block;width:32px;height:0;background:url('+f+'icons.png) -'+32*11+'px 50%}</style></div>');var iNum=11;var c=0;var iShow=7;var iPages=Math.ceil(iNum/iShow)-1;var offset=2;var s42w=document.getElementById('s42w');var s42i=document.getElementById('s42i');var s42t=document.getElementById('s42t');var s42b=document.getElementById('s42b');function s42bCSS0(){with(s42b.style){height=0;margin=0}}function s42bCSS1(){with(s42b.style){height='6px';margin='6px 0'}}s42bCSS1();if(iPages==0)s42bCSS0();s42w.style.height=(32+6)*iShow-6+'px';s42t.onclick=function(){if(c!=0){var goal=(32+6)*iShow;var result=parseInt(s42i.style.top)+goal;var timer=setInterval(function(){s42i.style.top=parseInt(s42i.style.top)+offset+'px';if(parseInt(s42i.style.top)==result){clearInterval(timer);s42bCSS1();if(c<1){with(s42t.style){height=0;margin=0}}}},7);--c;}return false;};s42b.onclick=function(){if(c<iPages){c++;var goal=(32+6)*c*iShow;var timer=setInterval(function(){s42i.style.top=parseInt(s42i.style.top||0)-offset+'px';if(parseInt(s42i.style.top)==-goal){clearInterval(timer);with(s42t.style){height='6px';margin='0 0 6px'}if(c==iPages){with(s42b.style){height=0;margin=0}}}},7)}return false;}; window.onload=function(){var p=document.getElementById('share42');function m(){var top=Math.max(document.body.scrollTop,document.documentElement.scrollTop);if(top+m2<m1){p.style.top=m1-top+'px';}else{p.style.top=m2+'px';}}m();window.onscroll=m;}}function fav(a){title=document.title;url=document.location;try{window.external.AddFavorite(url,title);}catch(e){try{window.sidebar.addPanel(title,url,"");}catch(e){if(typeof(opera)=="object"){a.rel="sidebar";a.title=title;a.url=url;return true;}else{alert('Нажмите Ctrl-D, чтобы добавить страницу в закладки');}}}return false;};
