//Add to favorites
if(document.images) { 

	toolbar1_off = new Image(); 
	toolbar1_off.src = 'graphics/toolbar1_off.gif'; 

	toolbar1_on = new Image(); 
	toolbar1_on.src = 'graphics/toolbar1_on.gif'; 

}

//Set as homepage
if(document.images) { 

	toolbar2_off = new Image(); 
	toolbar2_off.src = 'graphics/toolbar2_off.gif'; 

	toolbar2_on = new Image(); 
	toolbar2_on.src = 'graphics/toolbar2_on.gif'; 

}

function ToolbarIn(toolbar) {
	if (document.images) {
		document[toolbar].src=eval(toolbar + "_on.src");
	}
}
function ToolbarOut(toolbar) {
	if (document.images) {
		document[toolbar].src=eval(toolbar + "_off.src");
	}
}

//Favorites
function AddToFavorite(url, title) {
	if (document.all) {
		window.external.AddFavorite(url,title)
	}
}

//Homepage
function SetAsHomepage(obj, url) {
	obj.style.behavior='url(#default#homepage)';
	obj.setHomePage(url);
}
