

// ---------- script properties ----------

var include_num = 1;
var bold = 0;

// ---------- sites ----------


var s = new Array();

s[0] = "A Matter of Time - Home^index.html^Welcome to A Matter of Time.^home, front, page, index";

s[1] = "The Ever-Elusive Path of Time^timeContinuity.html^Check out the two perspectives given here, on the continuity of time.^relative time, absolute time, circular time, linear time, arrow of time, Immanuel Kant";

s[2] = "Calendars through the ages - Ancient calendars^ancientCalendars.html^This is the story of the origins of the calendar.^Kalends, celestial bodies, sun, Babylonians, lunar month, Egyptians, stars, Sirius, Rome, Martius, Aprilis, Maius, Quintilis, Sixtilis, September-  October, November, December- Julius Caesar, Julius, Julian Calendar, Caesar Augustus";

s[3] = "Time in Art^art.html^This article describes how time is portrayed in different types of visual art.^artists, painting, clocks, watches, seasons, Salvador Dali, The Persistence of Memory, surrealist, paranoaic-critical method, Ren&eacute; Magritte, Time Transfixed, La Dure&eacute; Poignard&eacute;, Prachuap Chaikham-udom, Time of a Rose, Mauricio Matta, Time Guardian, physicist, psychologist, philosopher";

s[4] = "Keeping Us Amused - Time in Entertainment^entertainment.html^This is about how time is integrated into the world of entertainment.^films, television, songs, books, entertainment, Time in a Bottle, Jim Croce, As Time Goes By, Herman Hupfield, Frank Sinatra, Louis Armstrong, Time, Lionel Richie, Dr. Who, TARDIS, Time Lords, Star Trek, trekkies, Enterprise, J.K. Rowling, Harry Potter and the Prisoner of Azkaban, time turner, Back to the Future, Marty McFly, flux capacitor, The Matrix, Rip Van Winkle, Washington Irving, The Time Machine, H. G. Wells";

s[5] = "The Time Is Now^presentExistence.html^Today is the yesterday of tomorrow.^present, presentism, eternalism, fourth dimension, Block Universe, St.Augustine";

s[6] = "Lagging Behind: The Effects of Jet Lag^jetLag.html^Learn about jet lag and its effects on travelers.^darkness, light, alteration, circadian rhythm, biological clock, jet lag, plane, travel, travelers, trip, time zones, asleep";

s[7] = "The Inner \"Tick-Tock\"^bioClocks.html^Check out the biological clock - how it works and how it affects us.^biological clock, circadian rhythm, light, dark, twenty-four hour cycle, sleep patterns, illnesses, melatonin, pineal gland, biology, humans, animals, jet lag";

s[8] = "On Our Own Time: Time's Impact on Human Biology^bioAspect.html^This article briefly introduces the biological aspect of time.^cultures, measure time, sun, clock, biological clock, biological effects, time zones, schedule, tired";

s[9] = "A Matter of What Matters: Saving Time^savingTime.html^Find out about the importance of saving time to make room for those things in life which are meaningful.^saving time, resource, productivity, time management, overtime, homework, housework, societies, rushing, insight, important things in life, well-being";

s[10] = "Time is money - A costly concept^savingTime.html^Check out a great  synopsis of  technical and conceptual perspectives concerning the common phrase and thought that \"Time is money\".^time is money, Benjamin Franklin, formula, working, wages, overtime, monetary, productive, phrase, greed, economist";

s[11] = "How we spend our time - a global perspective^globalPerspective.html^This article describes how people around the world spend their time.^busy, make a living, survive, cultures, time, time management, stress, transportation, workday, rushed, rushing, hectic";

s[12] = "How time is managed globally^managedGlobally.html^Learn how people around the world use time management in their everyday lives.^time management, time management seminars, guide, For Dummies, books, television, self-improvement, advice, schedule, activities, procrastination, overtime, developing countries.";

s[13] = "Cultural Aspects of Time^culturalAspects.html^An introduction to the cultural influences of time.^Perception, culture, time, Piraha, Amazon, society, lifestyle";

s[14] = "Calendars in use today^calendarsToday.html^Even though the Gregorian calendar is currently the global standard, some cultures, like the ones here, still use their own individual calendars.^Pope Gregory XIII, Gregorian Calendar, Hebrew Calendar, Islamic Calendar, Indian Calendar, Chinese Calendar";

s[15] = "Calendars of tomorrow^calendarsFuture.html^There have been so many modifications to calendars in the past, who knows what the future will bring?^Caesar, Parliament, future reform, Gregorian calendar, sidereal year, tropical year 0 vernal equinox, June solstice, September equinox, December solstice, atomic clock, oscillations, Cesium";

s[16] = "The History of Time^history.html^To prepare for the future, we should learn from the past, and figure out how time has changed over time.^Big Bang, Big Crunch";

s[17] = "Measuring Time^measuringTime.html^An introduction to the way we have come to measure time.^time units, time zones, time standards, exceptions to time measurement, daylight savings time, leap year, leap seconds";

s[18] = "The Beginning Of Time^beginning.html^A look at how and when time began, in an attempt to figure out why.^Aristotle, Big Bang Theory, Einstein, Cosmological Principle, General Relativity, Georges Lemaitre, Hubble, radiation, Robert Wilson, Arno Penzias, Inflation Theory, Creationism, Planck Time, quantum";

s[19] = "The End Of Time^endOfTime.html^The question of if the world will end (and when, and how) comes up often but still goes unanswered, despite multiple theories like these.^endless expansion, Big Crunch, Hubble Constant, Cosmological Constant, Critical Density, Star-Filled Era, Degenerate Era, Greg Laughlin";

s[20] = "Keeping Time - Calendars^calendars.html^Celestial calendars of the past, developed calendars of the present, and unknown calendars of the future.^calendars, celestial bodies, moon, sun- stars, month, year, day, earth, week, reform, Gregorian calendar, Hebrew calendar, Islamic calendar, Indian calendar, Chinese calendar, Julian calendar, year of confusion";

s[21] = "Early Clocks^earlyTime.html^Early clocks: the domination of the sundial.^sun, night- Egyptians, gnomon, shadow, Sundials, water clocks, sandglasses, candles";

s[22] = "Common Units of Time^commonUnits.html^A summary of the units, big and small, that we’ve assigned to tell us how much time is passing by.^generation, second, minute, hour, day, fortnight, week, quarter, month, lustrum, score, millennium, century, decade, year, International System of Units";

s[23] = "Time Zones^timeZone.html^The need to have a unified sense of time locally and globally finally arises, and the concept of time zones has provided a solution.^sun time, railroads, Britain, London Time, GMT, Prime Meridian, Greenwich, time zone ";

s[24] = "Exceptions to Time Measurement^exceptions.html^The search for perfection continues: a look into the ways we keep an imperfect time system on time.^leap years, daylight saving time";

s[25] = "Animal Sense Of Time^animalSense.html^Everything on earth experiences time in its own way: a look at the world of various night creatures.^light, fear, advancements in technology, sound recording equipment, ultrasonic communication, echolocation, diurnal, nocturnal, crepuscular, woodlands, deciduous forests, coniferous forests, open land, cities, fresh water, sea, circadian rhythms, metabolism, hormones, jet lag, photoperiodic response, annual rhythms, continuously consulted clock, internal timer";

s[26] = "Biorhythms: The Facts and the Doubts^bioRythms.html^This article gives a quick explanation of biorhythms and provides the reader with a link to biorhythm calculators.^biorhythm, Dr. William Fliess, cycle, mental, physical, emotional, chart, midpoint, high, low, critical";

s[27] = "Keeping Time - Clocks - The ticking of the clock^mechClocks.html^Clocks become machines.^mechanical clock, hour, minute, second, Mesopotamia, 60, French Revolution, decimal system, pendulum clocks, quartz clocks, J W Horton, Warren A Marrison, Galileo, Christian Huygens";

s[28] = "Measuring time - Time Standards^timeStandards.html^To help make order from all the chaos, time standards such as these have been created.^sidereal time, solar time, Greenwich Mean Time, Universal Time, Coordinated Universal Time, Ephemeris Time, Barycentric, Terrestrial Dynamical Time, International Atomic Time, International Earth Rotation Service.";

s[29] = "A Trip through Time^timeTrip.html^An introduction to the way our view of time has evolved.^trip, time, questions";

s[30] = "Keeping Time^keepingTime.html^An introduction to the parallel stories of the evolution of man and the way that he keeps time. ^calendars, Vikings, Sumerians, Egyptians, sun dials, water clocks, clocks, Stonehenge, digital watches";

s[31] = "Clocks^clocks.html^The rise of the clock, from sundials to digital watches.^Egyptians, sundials, water clocks, sand clocks, mechanical clocks, Galileo Galilei, John Harrison, pendulums, longitude, hairspring, watches";

s[32] = "The Atomic Clock^atomicClocks.html^The Age of The Atom: reaching perfect time.^atomic time, US Naval Observatory, GPS Systems, Department of Defense, Precise Time, Cesium, oscillations, Bureau Internation des Poids et Measures, SI, International Atomic Time, Universal Time, leap seconds, NIST, NIST-F1, Fountain principle";


// ---------- end of script properties and sites ----------


var cookies = document.cookie;
var p = cookies.indexOf("d=");

if (p != -1) {
	var st = p + 2;
	var en = cookies.indexOf(";", st);
	if (en == -1) {
		en = cookies.length;
	}
	var d = cookies.substring(st, en);
	d = unescape(d);
}
var od = d;
var m = 0;
if (d.charAt(0) == '"' && d.charAt(d.length - 1) == '"') {
	m = 1;
}

var r = new Array();
var co = 0;

if (m == 0) {
	var woin = new Array();
	var w = d.split(" ");
	for (var a = 0; a < w.length; a++) {
		woin[a] = 0;
		if (w[a].charAt(0) == '-') {
			woin[a] = 1;
		}
	}
	for (var a = 0; a < w.length; a++) {
		w[a] = w[a].replace(/^\-|^\+/gi, "");
	}
	a = 0;
	for (var c = 0; c < s.length; c++) {
		pa = 0;
		nh = 0;
		for (var i = 0; i < woin.length; i++) {
			if (woin[i] == 0) {
				nh++;
				var pat = new RegExp(w[i], "i");
				var rn = s[c].search(pat);
				if (rn >= 0) {
					pa++;
				} else {
					pa = 0;
				}
			}
			if (woin[i] == 1) {
				var pat = new RegExp(w[i], "i");
				var rn = s[c].search(pat);
				if (rn >= 0) {
					pa = 0;
				}
			}
		}
		if (pa == nh) {
			r[a] = s[c];
			a++;
		}
	}
	co = a;
}

if (m == 1) {
	d = d.replace(/"/gi, "");
	var a = 0;
	var pat = new RegExp(d, "i");
	for (var c = 0; c < s.length; c++) {
		var rn = s[c].search(pat);
		if (rn >= 0) {
			r[a] = s[c];
			a++;
		}
	}
	co = a;

}


function return_query() {
	var term = document.getElementById("term");
	term.value = od;
}

function num_jse() {
	document.write(co);
}

function out_jse() {
	if (co == 0) {
		document.write('Your search did not match any documents.<p>Make sure all keywords are spelt correctly.<br>Try different or more general keywords.');
		return;
	}
	for (var a = 0; a < r.length; a++) {
		var os = r[a].split("^");
		if (bold == 1 && m == 1) {
			var br = "<b>" + d + "</b>";
			os[2] = os[2].replace(pat, br);
		}
		if (include_num == 1) {
			document.write(a + 1, '. <a href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
		} else {
			document.write('<a href="', os[1], '">', os[0], '</a><br>', os[2], '<p>');
		}
	}

}

