﻿EMAIL = {

    onDOMReady: function() {
		// Place holder for later improvement
	},

	emailPage: {
		mailWindow: null,
		RootPath: '/Content/EmailPage/',
				
		emailPage: function() {
			var sURL   = this.RootPath + 'EmailPage.asp?URL=' + encodeURIComponent(document.location.href) + '&Title=' + encodeURIComponent(document.title);
						
			this.mailWindow = window.open(sURL, 'EmailPage', 'height=575,width=500,toolbar=no,scrollbars=yes,resizable=yes');
			if (YAHOO.lang.isNull(this.mailWindow) === false) {
				this.mailWindow.Scope = this;
			} else {
				alert('Your popup blocker has prevented us from opening a new window.\nPlease disable your popup blocker and try again.');
			}
		},
		closeEmail: function() {
			if (YAHOO.lang.isNull(this.mailWindow) === false) { this.mailWindow.close(); }
		}

	}


};
Event.onDOMReady(EMAIL.onDOMReady, EMAIL, true);

