// Scripts used for bookmarking

// Adds the current page to bookmarks
// WARNING: before this function is called, the variable "bookmarkNetscape" should be defined
function addBookmark() 
{
	// The URL to bookmark - take the URL of the current page
	// Note that in read only, this should be the same as window.location.href
	var bookmarkURL = window.document.URL;
	// The title of the page
	var bookmarkTitle = 'Jetlo Travel Search - Flights , Hotels and Vacations';

	// Deal with the different browser versions...

	// IE Windows
	if (window.external)
	{
		window.external.AddFavorite(bookmarkURL, bookmarkTitle);
	}

	// Opera
	else if (navigator.userAgent.indexOf('Opera') != -1)
	{
		alert(bookmarkNetscape.replace(/\{0\}/, "CTRL + T"));
	}

	// IE Mac
	else if (document.all && (navigator.userAgent.indexOf('Win') < 0))
	{
		alert(bookmarkNetscape.replace(/\{0\}/, "COMMAND + B"));
	}

	// Netscape / Mozilla
	else
	{
		alert(bookmarkNetscape.replace(/\{0\}/, "CTRL + D"));
	}

}
