function bookmarkPage() {
	var userAg = navigator.userAgent
	if (document.all && userAg.indexOf("MSIE") != -1 && userAg.indexOf("Windows") != -1) {
		window.external.AddFavorite(location,document.title);
	} else {
		if (userAg.indexOf("Windows") != -1) {
			if (userAg.indexOf("Opera") != -1) {
				alert('Use keyboard shortcut <ctrl>+T to bookmark Zipfires');
			} else {
				alert('Use keyboard shortcut <ctrl>+D to bookmark Zipfires');
			}
		} else if (userAg.indexOf("Macintosh") != -1) {
			alert('Use keyboard shortcut <command>+D or <Apple>+D to bookmark Zipfires');
		}
	}
	return false;
}

function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=400,height=400,left = 520,top = 250');");
}

function NewsletterSubmit(path){
	var email = $('#nEmail').val();
	var name = $('#mName').val();
	$.ajax({
		type : 'get',
		url : '/includes/newsletter.asp?sPath='+path+'&sEmail='+email+'&sName='+name,
		success : function(html){
			alert('Signup successful!');
			$('#newsletterdropdown').slideUp();
			$('#nEmail').val('');
		},
		error : function(XMLHttpRequest, textStatus, errorThrown) {
			alert(textStatus+'\n\n'+XMLHttpRequest.responseText);
		}
	});
}
