/**************************************************************************
	Allow a JavaScript file to include another JavaScript file.
	Created to make it easier to use scripts written for ASOD with new poster contest.
	(9-13-08)
	Function copied off web.
**************************************************************************/
function include(filename){	var head = document.getElementsByTagName('head')[0];	
//	alert ("In scripts.js function include. Including file " + filename);	script = document.createElement('script');	script.src = filename;	script.type = 'text/javascript';		head.appendChild(script)}

/**************************************************************************
	Show or hide elements (new, for site map, 7-25-08)
**************************************************************************/
var SITEMAP_TIMEOUT = null;

function setDisplayTypeByName (name, display) {
	var elements=document.getElementsByName (name);
	if (display == null) {
		display="block";
	}
	for (var index=0, length=elements.length; index<length ; index++) {
		elements[index].style.display=display;
	}
}

function displayForTimeTypeByName (name, milliseconds, moveY) {
	setDisplayTypeByName (name);
	if (SITEMAP_TIMEOUT) {
		clearTimeout(SITEMAP_TIMEOUT);
	}
	SITEMAP_TIMEOUT = setTimeout ('hideElementsByName("' + name + '")', milliseconds);
	if (moveY != null) {
		scroll(0,0);
	}
}

function hideElementsByName (name) {
	var elements=document.getElementsByName (name);
	for (var index=0, length=elements.length; index<length ; index++) {
		elements[index].style.display="none";
	}
}

function loadSiteMap () {
	document.getElementById ("js flasher").style.display="block";
}

/* Name is given & an email address is written */
/**************************************************************************
 	Email addresses also used in:
	1) ASODWishList.php - because it uses PHP mail, so it can't use JavaScript 
			to get the email address.
**************************************************************************/

function Contact() { }

Contact.Delores = "" + "&#100;&#115;" + "&#97;&#114;&#x74;&#119;&#x6f;&#x72;&#x6b;s&#x40;" +  /*"&#109;&#x61;&#x73;&#116;&#101;&#x72;" +*/ "&#116;&#119;" + "&#x63;&#110;&#121;&#x2e;&#x72;&#x72;&#x2e;&#99;&#111;&#109;";

Contact.Barb = "&#x62;&#97;&#x72;&#98;&#64;&#111;" + /* bob@bob. bobberina. */ "&#112;&#x65;&#x6e;&#102;&#105;&#103;&#x75;&#114;&#101;&#100;&#x72;&#x61;&#119;&#x69;&#x6e;&#x67;&#x2e;&#x63;&#x6f;&#x6d;";

Contact.Bob = "&#x62;" +  /* "&#109;&#x61; &#x73; &#11" +*/ "&#x6f;&#x62;&#64;&#111;&#112;&#x65;&#110;&#102;&#105;&#x67;&#x75;&#114;&#101;&#100;&#114;&#x61;&#x77;&#x69;&#x6e;&#103;&#x2e;&#x63;&#111;&#x6d;";

Contact.Carmel = "&#99;&#x6e;&#x69;" + /* j fja ;ls f jsldk 8 */ "&#x63;" + "&#x6f;&#x6c;&#x65;&#x31;&#64;&#116;&#119;&#x63;&#110;&#121;&#46;" + "&#x72;&#114;&#46;&#99;&#x6f;&#109;"

Contact.CT = "&#x61;&#x71;&#117;&#97;" + /* @ */ "&#102;&#97;&#114;" + /* . */ "&#x62;&#x65;&#x40;&#121;&#x61;&#x68;&#x6f;&#x6f;&#x2e;&#99;&#111;&#109;";

Contact.Charlie = "&#x63;&#104;&#97;&#114;" + "&#x6c;" +  /* "&#109;&#x61; &#x73; &#11" +*/ "&#x69;&#x65;&#64;&#111;&#112;&#101;&#x6e;&#102;&#x69;&#x67;&#117;&#x72;&#101;&#x64;&#x72;&#x61;&#119;&#x69;&#110;&#103;&#46;&#99;&#x6f;&#x6d;";

Contact.Dan = "&#x64;&#x61;&#110;&#x40;&#111;&#112;" + "&#x65;&#x6e;&#102;&#105;&#x67;&#117;&#x72;&#101;&#100;&#114;&#x61;&#x77;&#x69;&#110;&#103;&#x2e;&#x63;" + "o" + "&#109;";

Contact.Gina = "&#103;&#105;" + /*  noggin@bob. */ "&#x6e;&#x61;&#x40;&#x6f;&#112;&#101;&#x6e;&#x66;&#x69;&#103;&#117;&#114;&#101;&#100;&#114;&#97;&#x77;&#x69;&#x6e;&#x67;&#46;&#99;&#x6f;&#109;";

Contact.Iver = "&#105;&#118;" + /* @bob. noggin */ "&#x65;&#114;&#x40;" + "&#x6f;&#x70;" + "&#x65;&#x6e;&#x66;&#105;&#103;&#117;&#x72;&#x65;&#x64;&#x72;&#x61;&#x77;&#x69;&#110;&#x67;&#46;" + "&#99;&#x6f;&#x6d;";

Contact.Jim = "&#106;&#x69;&#x6d;&#x40;" + "&#111;&#112;&#101;&#110;&#102;&#x69;&#103;&#117;&#x72;&#x65;&#100;&#114;&#x61;&#119;&#105;&#x6e;&#x67;" + /* bow AT bob */ "&#46;" + "&#x63;&#111;&#109;";

/* Depricated June 8, 2008. Delete when possible */
Contact.JimEmmmons = "&#106;&#x69;&#x6d;&#x40;" + "&#111;&#112;&#101;&#110;&#102;&#x69;&#103;&#117;&#x72;&#x65;&#100;&#114;&#x61;&#119;&#105;&#x6e;&#x67;" + /* bow AT bob */ "&#46;" + "&#x63;&#111;&#109;";

/* Contact.Karen = "&#107;&#101;&#103;&#95;&#x6d;&#97;&#x6e;&#x67;&#111;&#x40;&#104;&#x6f;&#x74;&#109;&#97;&#105;&#x6c;&#46;&#99;&#x6f;&#x6d;" */

Contact.Karen = "&#107;&#101;&#103;&#95;" + "&#x6d;&#97;&#x6e;&#x67;&#111;&#x40;&#104;&#x6f;&#x74;&#109;&#97;&#105;&#x6c;&#46;&#99;" + /* kjhfabn.dsafsd */ "&#x6f;&#x6d;";

Contact.Lucie = "&#108;&#x75;" + "&#x63;" + /*y@+*/"&#105;"  + /*  noggin@bob. */ "&#x65;&#64;&#x6f;&#x70;&#101;&#110;&#x66;&#x69;&#x67;&#117;&#x72;&#x65;&#x64;&#x72;&#x61;&#119;&#x69;&#x6e;&#x67;&#x2e;&#x63;&#111;&#x6d;";

Contact.Matt = "&#109;" + /* asdkl */ "&#x77;&#99;" /* alskd asfklu akl */ + "&#x69;&#110;&#x63;&#x6f;&#116;&#x74;&#x61;&#64;&#121;&#97;&#x68;&#111;&#111;&#x2e;&#x63;&#x6f;&#109;";

Contact.ModelCoordinator = "&#x6d;&#99;" + "&#64;&#111;" + "&#x70;&#101;&#x6e;" + "&#102;" + /*"&#109;&#x61;&#x73;&#116;&#101;&#x72;" +*/ "&#105;&#103;&#x75;&#x72;&#101;&#100;&#x72;&#x61;&#119;&#105;&#x6e;&#x67;&#46;&#99;&#111;&#x6d;"

Contact.Scott = "&#x73;" + /*"&#109;&#x61;&#x73;&#116;&#101;&#x72;" +*/ "&#99;&#111;&#x74;&#116;" + "&#104;&#101;&#114;&#x72;&#109;&#97;&#110;&#x6e;" + /* AT aol */ "&#55;&#x37;&#64;&#x67;&#109;&#x61;&#105;&#108;&#46;&#x63;&#x6f;&#x6d;";

Contact.Suzette = "&#115;" + "&#x75;&#122;" + "&#101;&#x74;&#x74;&#x65;&#64;" + /*"&#109;&#x61;&#x73;&#116;&#101;&#x72;" +*/ "&#111;&#x70;&#x65;" + "&#110;" + "&#102;" + "&#x69;&#x67;&#x75;&#x72;&#101;&#x64;&#x72;&#x61;&#x77;&#x69;&#x6e;&#103;&#46;&#99;&#111;&#x6d;";

Contact.web = "&#119;&#101;&#98;" + /*"&#109;&#x61;&#x73;&#116;&#101;&#x72;" +*/ "&#x40;&#111;&#112;&#101;&#110;&#102;&#x69;&#103;&#117;&#x72;&#x65;&#100;&#114;&#x61;&#119;&#105;&#x6e;&#x67;" + "&#46;" + /* AT aol */ "&#x63;&#111;&#109;";

// 1-2-08 DEPRICATED. Delete in a month or so
// set static method who()
Contact.who = function(contact, more, print_text, options) {
	document.write("<a href='&#x6d;&#97;&#105;&#108;&#116;&#x6f;&#58;" + contact + more + "' " + options + ">" + print_text + "</a>" );
};

// 1-2-08 Replace 'who' method with this 'mailtoLink' function
Contact.mailtoLink = function(contact, more, print_text, options) {
	document.write("<a href='&#x6d;&#97;&#105;&#108;&#116;&#x6f;&#58;" + contact + more + "' " + options + ">" + print_text + "</a>" );
};
