 
 $(document).ready(function(){
	$('#register_form_buttons input,#page_checkin input.submit, #page_friend_details form .form_buttons input, #page_invite input[type="button"], #Eircom_Map_Checkin_form_Search, #page_wizzard_invite input[type="button"], #Eircom_SignupWizard_CheckIn_form_Search, #Eircom_SignupWizard_Status_cmdform_Submit').attr("value","");
	
	$('#page_inbox .friend:last hr, #page_friends .friend:last hr').css("borderBottom", "1px solid #fff");
	$('#page_friend_details form .smalltext, #page_wizzard_status form .smalltext').empty();
	$('#main_menu .whitebox_content a:last span').css("border-bottom","1px solid white");
	$('<div class="clear"></div>').insertAfter('#yokels .yokel:nth-child(3n)');	
 });

function addBookmark(url, title) {
	if (url == null || url.length == 0) url = window.location.href;
	if (title == null || title.length == 0 ) title = document.title;
	
	// user agent sniffing is bad in general, but this is one of the times 
	// when it's really necessary
	var ua = navigator.userAgent.toLowerCase();
	var isKonq = (ua.indexOf("konqueror") != -1);
	var isSafari = (ua.indexOf("webkit") != -1);
	var isMac = (ua.indexOf("mac") != -1);
	var buttonStr = isMac ? "Command/Cmd" : "CTRL";
	var startAdvice = "To bookmark this page, please press the ";
	var endAdvice = " keys at the same time.";

	try{
		if (navigator.appName == 'Microsoft Internet Explorer') {
			window.external.AddFavorite(url, title);
		} else {
			window.sidebar.addPanel(title, url, "");
		}
	} catch(e){
		if (isKonq) {
		  alert(startAdvice + "CTRL and B" + endAdvice);
		} else if (window.opera) {
		  void(0); // do nothing here (Opera 7+)
		} else if (window.home || isSafari) { // Firefox, Netscape, Safari, iCab
		  alert(startAdvice + buttonStr + " and D" + endAdvice);
		} else if (!window.print || isMac) { // IE5/Mac and Safari 1.0
		  alert(startAdvice + buttonStr + " and D" + endAdvice);    
		} else {
		  alert("Your browser does not allow automatic bookmarking,\nplease bookmark this page manually.");
		}
	}
}


