function bookmark(url,title){
  var userAgent=navigator.userAgent.toLowerCase();
  var isMac=(userAgent.indexOf('mac')!=-1);
  
	var d, dom, ie, ie4, ie5x, moz, mac, win, lin, old, ie5mac, ie5xwin, op;
	
	d = document;
	n = navigator;
	na = n.appVersion;
	nua = n.userAgent;
	win = ( na.indexOf( 'Win' ) != -1 );
	mac = ( na.indexOf( 'Mac' ) != -1 );
	lin = ( nua.indexOf( 'Linux' ) != -1 );
	
	if ( !d.layers ){
		dom = ( d.getElementById );
		op = ( nua.indexOf( 'Opera' ) != -1 );
		konq = ( nua.indexOf( 'Konqueror' ) != -1 );
		saf = ( nua.indexOf( 'Safari' ) != -1 );
		moz = ( nua.indexOf( 'Gecko' ) != -1 && !saf && !konq);
		ie = ( d.all && !op );
		ie4 = ( ie && !dom );
	
			
	if (ie){
		window.external.AddFavorite(url,title);
	} else if (moz){
		window.sidebar.addPanel(title,url,"");
	} else if (saf || !mac){
		alert('You need to press the Ctrl (Apple on Mac) key and the D key together on your keyboard to bookmark our site.');
	} else if (saf || mac){
		alert('You need to press Command/Cmd key and the D key together on your keyboard to bookmark our site.');
	} else{
		alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");	
	}
  }
 }
