
var detect = navigator.userAgent.toLowerCase();
var browser,thestring;

function bookmarksite(title, url){
	if(checkIt('msie'))
	{
		window.external.AddFavorite(url, title);
	}
	else if(checkIt('firefox'))
	{
		alert('Press CTRL + D to bookmark this page.');
	}
	else if(checkIt('netscape'))
	{
		alert('You need to press CTRL + D to bookmark our site.');
	}
	else if(checkIt('opera'))
	{
		alert('You need to press CTRL + T to bookmark our site.');
	}
	else 
	{
		alert('In order to bookmark this site you need to do so manually through your browser.');
	}
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
} 