$(document).ready(function() {

	$('.login_btn img').imghover();


	// show hide and hover the sub-menus
	var t = "";
	$("#loginPriNav img").hover(function(){
		t = $(this).attr("title"); // was causing safari probs
		$(this).attr("title", ""); // was causing safari probs
	}, function(){
		$(this).attr("title", t); // restore the title
	});
	$("#loginPriNav div.ul div.ul").hide().css("top", "29px");
	$("#loginPriNav div.ul div.li").hover( function () {
		$(this).find("div.ul").show();
	}, function () {
		$(this).find("div.ul").hide();
	} );

	$("#loginPriNav div.ul div.ul div.li").hover( function () {
		$(this).addClass("hover");
	}, function () {
		$(this).removeClass("hover");
	} );

});

function verifyReminder() {

	var onErrorAlert		= true;
	var errorMessages		= new Array();
	var focused					= false;
	var formObj					= document.reminderForm;

	if (formObj.websiteUrl.value == '') {
		errorMessages.push('Please enter a valid website address');
		if(!focused){
			formObj.websiteUrl.focus();
			focused = true;
		}
	}

	if(errorMessages.length != 0){
		if(onErrorAlert){
				alert(errorMessages[0]);
		}
		return false;

	} else {
		formObj.action = "reminder.asp";
		return true;
	}
}
