// JavaScript Document

var homePage = 'http://www.alterwest.ru';

function setHomepage ()
{
	alert ("yapp");
	window.style.behavior = "url(#default#homepage)";
	window.external.setHomePage("http://www.alterwest.ru/");
}

function addBookmark (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 showMenuItem (obj) {
	document.getElementById(obj).style.display = "block";
}

function hideMenuItem (obj) {
	document.getElementById(obj).style.display = "none";
}