// Copyright (C) 2009 A K York. All rights reserved.

function addBookmark ( title, url )
{	if ( window.sidebar )
	{	// Firefox
		window.sidebar.addPanel ( title, url, "" );
	}
	else if ( window.opera && window.print )
	{	// Opera
		var elem = document.createElement ( 'a' );
		elem.setAttribute ( 'href', url );
		elem.setAttribute ( 'title', title );
		elem.setAttribute ( 'rel', 'sidebar' );
		elem.click();
	}
	else if ( window.external )
	{	// Internet Explorer
		window.external.AddFavorite ( url, title );
	}
}


if ( window.sidebar || window.opera && window.print || window.external )
{	document.write ( '<a href="#" onClick="addBookmark(' );
	document.write ( String.fromCharCode ( 39 ) );
	document.write ( 'Signal Strength - Escape into the music' );
	document.write ( String.fromCharCode ( 39, 44, 39 ) );
	document.write ( 'http://www.signal-strength.net' );
	document.write ( String.fromCharCode ( 39 ) );
	document.write ( '); return false;"><img src="assets/po2-bookmark.gif" width="100" height="25" border="0" alt="Bookmark this page" title="Bookmark this page" /></a>' );
}

if ( window.print )
{	document.write ( '<a href="#" onClick="window.print(); return false;"><img src="assets/po2-print.gif" width="70" height="25" border="0" alt="Print this page" title="Print this page" /></a>' );
}
