/* ___________________________________________________
   
            JS-XT-091211.js ~ rev. 2009.12.11
     XGB Web and Software Design ~ www.xgbdesign.com
   ___________________________________________________
*/
	

// Function called from every page: _______________________________________________________________

function PostRevisionTime() {
	var dayOfWeek = new Array("Sun", "Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur");
	var lm = new Date(Date.parse(document.lastModified));
	var dw = dayOfWeek[lm.getUTCDay()] + "day ";
	var yr = lm.getUTCFullYear() + ".";
	var um = lm.getUTCMonth();
	var mo = (++um < 10) ? "0" + um + "." : um + ".";
	var ud = lm.getUTCDate();
	var dy = (ud < 10) ? "0" + ud : "" + ud;
	var ix = (navigator.appName == "Microsoft Internet Explorer") ? 16 : 17;
	var ut = lm.toUTCString().slice(ix, 29);
	document.write("Revised " + dw + yr + mo + dy + "&nbsp;&nbsp;&nbsp;" + ut);   
}


// Functions called from every page with external links: __________________________________________

// Shameless workaround to hide the "target" attribute in XHTML 1.0 Strict. Author: Kevin Yank 
// (source: http://articles.sitepoint.com/article/standards-compliant-world/3 ).
// Modified by XGB Web and Software Design
function ExternalLinks() {
	if (!document.getElementsByTagName && document.getElementById) 
		return;

	var anchors = document.getElementsByTagName("a");
	for (var i = 0; i < anchors.length; ++i)
		if (anchors[i].getAttribute("href") && anchors[i].getAttribute("rel") == "external")
			anchors[i].target = "_blank";
}
window.onload = ExternalLinks;


// Function called from "Contact" page: ___________________________________________________________

function PostGoogleMap() {
	document.write("<iframe  src='http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=University+Ave+%26+30th+St,+San+Diego,+CA+92104&amp;sll=32.742411,-117.128529&amp;sspn=0.008591,0.01929&amp;ie=UTF8&amp;ll=32.758479,-117.125931&amp;spn=0.021654,0.034332&amp;z=14&amp;iwloc=A&amp;output=embed'></iframe>");
}


