
function init() {

preloadImg('graphics/about_terry_over.gif', 'graphics/articles_over.gif', 'graphics/astrology_over.gif', 'graphics/classes_over.gif', 'graphics/events_over.gif', 'graphics/healing_over.gif', 'graphics/iching_over.gif', 'graphics/latest_forecast_over.gif', 'graphics/links_over.gif', 'graphics/seminar_topics_over.gif', 'graphics/services_over.gif', 'graphics/whats_new_over.gif');

} // end init()


function preloadImg() {
  var imgArray = new Array();
  
  for (var i = 0; i < arguments.length; i++) {
    imgArray[i] = new Image();
    imgArray[i].src = arguments[i];
  }
} // end preloadImg()


function imgSrc() {
var imgObj;

	for (var i = 0; i < arguments.length; i += 2) {
		imgObj = arguments[i];
		imgObj.src = arguments[i+1];
	}
} // end imgSrc()

// this function obsolete as of 9/27/01. I had to use standard href's in the a tags because Windows 2000 and IE5.0 choked on seeing href="#". Now any menu changes have to be made in EVERY page rather than just here in this function.
function page(pageName) {
	switch ( pageName ) {
		case "home" :
			document.location = "index.htm";
			break;
		case "latest_forecast" :
			document.location = pageName + ".htm";
			break;
		case "articles" :
			document.location = pageName + ".htm";
			break;
		case "astrology" :
			document.location = "astrotoc.htm";
			break;
		case "healing" :
			document.location = pageName + ".htm";
			break;
		case "iching" :
			document.location = pageName + ".htm";
			break;
		case "classes" :
			document.location = "new_classes.htm";
			break;
		case "events" :
			document.location = pageName + ".htm";
			break;
		case "seminar_topics" :
			document.location = pageName + ".htm";
			break;
		case "services" :
			document.location = pageName + ".htm";
			break;
		case "links" :
			document.location = pageName + ".htm";
			break;
		case "about_terry" :
			document.location = pageName + ".htm";
			break;
	}
} // end page()
