function bookmark(title,url){
	if (window.sidebar) { 							// First check if its Firefox.
		window.sidebar.addPanel(title, url, "http://www.thinthreads.com");
	} else if(window.opera && window.print) {		// Next check if its Opera.
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',title);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} else if(document.all) { 						// Then check if its IE.
		window.external.AddFavorite(url, title);
	} else {										// And if its none of the above, determine what browser the user is using,
		var ua=navigator.userAgent.toLowerCase(); 	// then output the appropriate bookmark shortcut for their browser.
		var isKonq=(ua.indexOf('konqueror')!=-1);
		var isSafari=(ua.indexOf('webkit')!=-1);
		var isMac=(ua.indexOf('mac')!=-1);
		var buttonStr=isMac?'Command/Cmd':'CTRL';
		if(window.external && (!document.createTextNode || (typeof(window.external.AddFavorite)=='unknown'))) {
			// IE4/Win generates an error when you
			// execute "typeof(window.external.AddFavorite)"
			// In IE7 the page must be from a web server, not directly from a local 
			// file system, otherwise, you will get a permission denied error.
			window.external.AddFavorite(url, title); // IE/Win
		} else if(isKonq) {
			alert('You need to press CTRL + B to bookmark our site.');
		} else if(window.opera) {
			void(0); // do nothing here (Opera 7+)
		} else if(window.home || isSafari) { // Firefox, Netscape, Safari, iCab
			alert('You need to press '+buttonStr+' + D to bookmark our site.');
		} else if(!window.print || isMac) { // IE5/Mac and Safari 1.0
			alert('You need to press Command/Cmd + D to bookmark our site.');    
		} else {
			alert('In order to bookmark this site you need to do so manually through your browser.');
		}
	}
	return false; // Make sure the <a> tag doesnt submit.
}