var dD = [];
	  
function onResizeDoc()
{/*
    if( dD[0] == document.documentElement.offsetHeight && dD[1] == document.documentElement.offsetWidth ) return;
    dD[0] = document.documentElement.offsetHeight; dD[1] = document.documentElement.offsetWidth;
    var width = document.documentElement.offsetWidth;
    
    if( width > 1000 ) 
        document.getElementById("pagewrapper").style.width = "100%";
    else 
        document.getElementById("pagewrapper").style.width = "1000px";
        */
}

window.onresize = onResizeDoc;


function bookmark(title, url) 
{
	// ���� �������� �������� �� ���� ���� �������, ������ ��������� ������� ��������
	if (title == undefined)
		title = document.title;

	// �� �� ����� � � URL-��
	if (url == undefined)
		url = top.location.href;

	if ( window.sidebar ) {
		// Firefox
		window.sidebar.addPanel(title, url, '');
	} else if (window.opera && window.print) {
		// Opera
		var t = document.createElement('a');
		t.setAttribute('rel', 'sidebar');
		t.setAttribute('href', url);
		t.setAttribute('title', title);
		t.click();
	} else {
		// IE
		window.external.AddFavorite(url, title);
	}
	return false;
}

function setClassById( id , className )
{
    document.getElementById(id).className = className;
}
