
// \u041F\u0435\u0440\u0435\u0440\u0438\u0441\u043E\u0432\u043A\u0430 \u0442\u0435\u043D\u0435\u0439
function doresize(){
	for (countshadow=0; countshadow<shadowarray.length; countshadow=countshadow+1){
		$(shadowarray[countshadow]).redrawShadow();
	}
}

/*
// \u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 resize
var currheight;
var currwidth;
    $(window).bind('resize', function() {
	if(currheight != document.documentElement.clientHeight)
	{
		doresize();
	}
		currheight = document.documentElement.clientHeight;
	if(currwidth != document.documentElement.clientWidth)
	{
		doresize();
	}
		currheight = document.documentElement.clientWidth;

});
// \u041F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u043F\u043E\u043B\u043E\u0441\u044B \u043F\u0440\u043E\u043A\u0440\u0443\u0442\u043A\u0438
has_scrollbar();

function has_scrollbar() { 
if(document.documentElement.clientHeight < document.documentElement.scrollHeight) doresize();
}
*/


// \u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u0418\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435
function add_favorite(a) {
title=document.title;
url=document.location;
try {
     // Internet Explorer
     window.external.AddFavorite(url, title);
   }
   catch (e) {
     try {
       // Mozilla
       window.sidebar.addPanel(title, url, "");
     }
     catch (e) {
       // Opera
       if (typeof(opera)=="object") {
         a.rel="sidebar";
         a.title=title;
         a.url=url;
         return true;
       }
       else {
         // Unknown
         alert('\u041D\u0430\u0436\u043C\u0438\u0442\u0435 Ctrl-D \u0447\u0442\u043E\u0431\u044B \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443 \u0432 \u0437\u0430\u043A\u043B\u0430\u0434\u043A\u0438');
       }
     }
   }
   return false;
 }

