function lastmod(){
    var z = new Date(Date.parse(document.lastModified));
    z = z.toLocaleString();
    document.write(z);
    }
	

function Style() 
{	netscape = false;
	ie = false;
	
var css1 = '<link rel="stylesheet" href="extras/debstyle.css" type="text/css" />'
var css2 = '<link rel="stylesheet" href="extras/netstyle.css" type="text/css" />'
	
	if (parseInt(navigator.appVersion) >= 4) {
		if (navigator.appName == "Microsoft Internet Explorer"){
		ie = true;
		document.write(css1);
		}
		else if (navigator.appName == "Netscape"){
			netscape = true;
				if (parseInt(navigator.appVersion) > 4) {
				document.write(css1);
				}
				else {
				document.write(css2);
				}
		}		
	}
}












	function writeSearch() 
{	netscape = false;
	ie = false;
	
var search = '<form method="get" action="http://search.atomz.com/search/" style="margin-bottom:0px;margin-bottom:0px;"><table border="0" cellspacing="0" align="center" cellpadding="0" width="145" style="padding-left:7px"><tr><td height="25" valign="top"><div style="position:absolute"><input type="hidden" name="sp-a" value="sp1001ec22"><input type="text" name="sp-q" size="20" accesskey="S" style="width:120px;" /><input type="image" name="search" src="im/go1.jpg" onfocus="this.blur()"  value="Search" vspace="0" hspace="0" border="0" alt="Search this site" style="position:absolute;left:90;top:-2" /><input type="hidden" name="sp-f" value="iso-8859-1" /></div></td></tr></table></form>'
	
	if (parseInt(navigator.appVersion) >= 4) {
		if (navigator.appName == "Microsoft Internet Explorer"){
		ie = true;
		document.write(search);
		}
		else if (navigator.appName == "Netscape"){
			netscape = true;
				if (parseInt(navigator.appVersion) > 4) {
				document.write(search);
				}
				else {
				document.write(" ");
				}
		}		
	}
}



function nf() {
if (self.parent.frames.length != 0)	self.parent.location=document.location;	}

	
function starsign() {
var cap ="<img name='logo' src='im/logos/capricorn.jpg' width='199' height='209' alt='Capricorn'>"
var aqu = "<img name='logo' src='im/logos/aquarius.jpg' width='199' height='209' alt='Aquarius'>"
var pis = "<img name='logo' src='im/logos/pisces.jpg' width='199' height='209' alt='Pisces'>"
var ari = "<img name='logo' src='im/logos/aries.jpg' width='199' height='209' alt='Aries'>"

var tau = "<img name='logo' src='im/logos/taurus.jpg' width='199' height='209' alt='Taurus'>"
var gem = "<img name='logo' src='im/logos/gemini.jpg' width='199' height='209' alt='Gemini'>"
var can = "<img name='logo' src='im/logos/cancer.jpg' width='199' height='209' alt='Cancer'>"
var leo = "<img name='logo' src='im/logos/leo.jpg' width='199' height='209' alt='Leo'>"
var vir = "<img name='logo' src='im/logos/virgo.jpg' width='199' height='209' alt='Virgo'>"
var lib = "<img name='logo' src='im/logos/libra.jpg' width='199' height='209' alt='Libra'>"
var sco = "<img name='logo' src='im/logos/scorpio.jpg' width='199' height='209' alt='Scorpio'>"
var sag = "<img name='logo' src='im/logos/sagittarius.jpg' width='199' height='209' alt='Sagittarius'>"

var ari1 = "<img name='logo' src='im/signs/aries.jpg' width='199' height='209' alt='Aries'>"
var tau1 = "<img name='logo' src='im/signs/taurus.jpg' width='199' height='209' alt='Taurus'>"
var gem1 = "<img name='logo' src='im/signs/gemini.jpg' width='199' height='209' alt='Gemini'>"
var can1 = "<img name='logo' src='im/signs/cancer.jpg' width='199' height='209' alt='Cancer'>"
var leo1 = "<img name='logo' src='im/signs/leo.jpg' width='199' height='209' alt='Leo'>"
var vir1 = "<img name='logo' src='im/signs/virgo.jpg' width='199' height='209' alt='Virgo'>"
var lib1 = "<img name='logo' src='im/signs/libra.jpg' width='199' height='209' alt='Libra'>"
var sco1 = "<img name='logo' src='im/signs/scorpio.jpg' width='199' height='209' alt='Scorpio'>"
var sag1 = "<img name='logo' src='im/signs/sagittarius.jpg' width='199' height='209' alt='Sagittarius'>"
var cap1 = "<img name='logo' src='im/signs/capricorn.jpg' width='199' height='209' alt='Capricorn'>"
var aqu1 = "<img name='logo' src='im/signs/aquarius.jpg' width='199' height='209' alt='Aquarius'>"
var pis1 = "<img name='logo' src='im/signs/pisces.jpg' width='199' height='209' alt='Pisces'>"

var moon = "<img src='im/moon2.jpg' width='199' height='209' border='0' alt='The Moon'>"
var serv = "<img src='im/logo_services.gif' width='199' height='209' border='0' alt='services'>"
var books = "<img src='im/logo_books.gif' width='199' height='209' border='0' alt='Books and Articles'>"
var courses = "<img src='im/logo_courses.gif' width='199' height='209' border='0' alt='Courses and Tuition'>"
var contact = "<img src='im/logo_contact.jpg' width='199' height='209' border='0' alt='Contact Details'>"
var begin = "<img src='im/logo_begin.jpg' width='199' height='209' border='0' alt='Beginners'>"
var gal = "<img src='im/galileo.jpg' width='199' height='209' border='0' alt='Galileo'>"
var cob = "<img src='im/coberlogo.jpg' width='199' height='209' border='0' alt='Cober Hill'>"
var lreid = '<img src="im/astrologers/lreid.jpg" width="199" height="209" border="0" alt="Linda Reid" />'
var house = "<img src='im/houses.jpg' width='199' height='209' border='0' alt='The Astrological Houses'>"
var crane = "<img src='im/jcrane.gif' width='199' height='209' border='0' alt='Joseph Crane'>"
var comet ="<img src='im/comet.gif' width='199' height='209' border='0' alt='Halleys comet seen as precursor to the fall of William the Conqueror'>"
today = new Date()
day = today.getDate()
month = today.getMonth()+1
year = today.getYear();

if (document.title == 'Comets') document.write(comet);
if (document.title == 'Astrology Services') document.write(serv);
if (document.title == 'Books & Articles') document.write(books);
if (document.title == 'Courses & Tuition') document.write(courses);
if (document.title == 'Contact Deborah Houlding') document.write(contact);
if (document.title == 'For Beginners') document.write(begin);
if (document.title == 'Linda Reid') document.write(lreid);
if (document.title == 'The Life & Work of Galileo (1564-1642)') document.write(gal);
if (document.title == 'Joseph Crane') document.write(crane);
if (document.title == 'The Astrological Houses') document.write(house);
if (document.title == 'The Moon') document.write(moon);
if (document.title == 'Cober Hill') document.write(cob);


if ((document.title == 'About Aries')  || (document.title == 'The Stars This Month: Aries')) document.write(ari1);
if ((document.title == 'About Taurus')  || (document.title == 'The Stars This Month: Taurus')) document.write(tau1);
if ((document.title == 'About Gemini')  || (document.title == 'The Stars This Month: Gemini')) document.write(gem1);
if ((document.title == 'About Cancer')  || (document.title == 'The Stars This Month: Cancer')) document.write(can1);
if ((document.title == 'About Leo')  || (document.title == 'The Stars This Month: Leo')) document.write(leo1);
if ((document.title == 'About Virgo')  || (document.title == 'The Stars This Month: Virgo')) document.write(vir1);
if ((document.title == 'About Libra')  || (document.title == 'The Stars This Month: Libra')) document.write(lib1);
if ((document.title == 'About Scorpio')  || (document.title == 'The Stars This Month: Scorpio')) document.write(sco1);
if ((document.title == 'About Sagittarius')  || (document.title == 'The Stars This Month: Sagittarius')) document.write(sag1);
if ((document.title == 'About Capricorn')  || (document.title == 'The Stars This Month: Capricorn')) document.write(cap1);
if ((document.title == 'About Aquarius')  || (document.title == 'The Stars This Month: Aquarius')) document.write(aqu1);
if ((document.title == 'About Pisces') || (document.title == 'The Stars This Month: Pisces')) document.write(pis1);




if (document.title == "Deborah Houlding's Astrology Pages")
{
if (month == 1) {
if (day < 22) document.write(cap);
if (day >= 22) document.write(aqu);}

if (month == 2) {
if (day < 20) document.write(aqu);
if (day >= 20) document.write(pis);}
	
if (month == 3) {
if (day < 21) document.write(pis);
if (day >= 21) document.write(ari);}

if (month == 4) {
if (day < 21) document.write(ari);
if (day >= 21) document.write(tau);}
	
if (month == 5) {
if (day < 21) document.write(tau);
if (day >= 21) document.write(gem);}
	
if (month == 6) {
if (day < 22) document.write(gem);
if (day >= 22) document.write(can);}
	
if (month == 7) {
if (day < 23) document.write(can);
if (day >= 23) document.write(leo);}
	
if (month == 8) {
if (day < 24) document.write(leo);
if (day >= 24) document.write(vir);}
	
if (month == 9) {
if (day < 23) document.write(vir);
if (day >= 23) document.write(lib);}
	
if (month == 10) {
if (day < 23) document.write(lib);
if (day >= 23) document.write(sco);}
	
if (month == 11) {
if (day < 23) document.write(sco);
if (day >= 23) document.write(sag);}
	
if (month == 12) {
if (day < 22) document.write(sag);
if (day >= 22) document.write(cap);}
}

}



function stars() {
var cap = " Capricorn</b><br />What does <a href='capricorn.html' onfocus='this.blur()'>this mean</a></td>"
var aqu = " Aquarius</b><br />What does <a href='aquarius.html' onfocus='this.blur()'>this mean</a></td>"
var pis = " Pisces</b><br />What does <a href='pisces.html' onfocus='this.blur()'>this mean</a></td>"
var ari = " Aries</b><br />What does <a href='aries.html' onfocus='this.blur()'>this mean</a></td>"
var tau = " Taurus</b><br />What does <a href='taurus.html' onfocus='this.blur()'>this mean</a></td>"
var gem = " Gemini</b><br />What does <a href='gemini.html' onfocus='this.blur()'>this mean</a></td>"
var can = " Cancer</b><br />What does <a href='cancer.html' onfocus='this.blur()'>this mean</a></td>"
var leo = " Leo</b><br />What does <a href='leo.html' onfocus='this.blur()'>this mean</a></td>"
var vir = " Virgo</b><br />What does <a href='virgo.html' onfocus='this.blur()'>this mean</a></td>"
var lib = " Libra</b><br />What does <a href='libra.html' onfocus='this.blur()'>this mean</a></td>"
var sco = " Scorpio</b><br />What does <a href='scorpio.html' onfocus='this.blur()'>this mean</a></td>"
var sag = " Sagittarius</b><br />What does <a href='sagittarius.html' onfocus='this.blur()'>this mean</a></td>"

today = new Date()
day = today.getDate()
month = today.getMonth()+1
year = today.getYear();


if (month == 1) {
if (day < 22) document.write(cap);
if (day >= 22) document.write(aqu);}

if (month == 2) {
if (day < 20) document.write(aqu);
if (day >= 20) document.write(pis);}
	
if (month == 3) {
if (day < 21) document.write(pis);
if (day >= 21) document.write(ari);}

if (month == 4) {
if (day < 21) document.write(ari);
if (day >= 21) document.write(tau);}
	
if (month == 5) {
if (day < 21) document.write(tau);
if (day >= 21) document.write(gem);}
	
if (month == 6) {
if (day < 22) document.write(gem);
if (day >= 22) document.write(can);}
	
if (month == 7) {
if (day < 23) document.write(can);
if (day >= 23) document.write(leo);}
	
if (month == 8) {
if (day < 24) document.write(leo);
if (day >= 24) document.write(vir);}
	
if (month == 9) {
if (day < 23) document.write(vir);
if (day >= 23) document.write(lib);}
	
if (month == 10) {
if (day < 23) document.write(lib);
if (day >= 23) document.write(sco);}
	
if (month == 11) {
if (day < 23) document.write(sco);
if (day >= 23) document.write(sag);}
	
if (month == 12) {
if (day < 22) document.write(sag);
if (day >= 22) document.write(cap);
}

}

function starsnow() {
var ari = " <a href='arimonth.html' onfocus='this.blur()'>"
var tau = " <a href='taumonth.html' onfocus='this.blur()'>"
var gem = " <a href='gemmonth.html' onfocus='this.blur()'>"
var can = " <a href='canmonth.html' onfocus='this.blur()'>"
var leo = " <a href='leomonth.html' onfocus='this.blur()'>"
var vir = " <a href='virmonth.html' onfocus='this.blur()'>"
var lib = " <a href='libmonth.html' onfocus='this.blur()'>"
var sco = " <a href='scomonth.html' onfocus='this.blur()'>"
var sag = " <a href='sagmonth.html' onfocus='this.blur()'>"
var cap = " <a href='capmonth.html' onfocus='this.blur()'>"
var aqu = " <a href='aqumonth.html' onfocus='this.blur()'>"
var pis = " <a href='pismonth.html' onfocus='this.blur()'>"
today = new Date()
day = today.getDate()
month = today.getMonth()+1
year = today.getYear();


if (month == 1) {
if (day < 22) document.write(cap);
if (day >= 22) document.write(aqu);}

if (month == 2) {
if (day < 20) document.write(aqu);
if (day >= 20) document.write(pis);}
	
if (month == 3) {
if (day < 21) document.write(pis);
if (day >= 21) document.write(ari);}

if (month == 4) {
if (day < 22) document.write(ari);
if (day >= 22) document.write(tau);}
	
if (month == 5) {
if (day < 22) document.write(tau);
if (day >= 22) document.write(gem);}
	
if (month == 6) {
if (day < 22) document.write(gem);
if (day >= 22) document.write(can);}
	
if (month == 7) {
if (day < 23) document.write(can);
if (day >= 23) document.write(leo);}
	
if (month == 8) {
if (day < 24) document.write(leo);
if (day >= 24) document.write(vir);}
	
if (month == 9) {
if (day < 23) document.write(vir);
if (day >= 23) document.write(lib);}
	
if (month == 10) {
if (day < 23) document.write(lib);
if (day >= 23) document.write(sco);}
	
if (month == 11) {
if (day < 23) document.write(sco);
if (day >= 23) document.write(sag);}
	
if (month == 12) {
if (day < 22) document.write(sag);
if (day >= 22) document.write(cap);
}

}





function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function moon() {
var black = "dark.gif";
var white = "light.gif";
var height=10;
var size = 10;
var i;
var currentDate  = new Date();
var x = currentDate;
currentDate.setTime(currentDate.getTime() + (currentDate.getTimezoneOffset()*60000));
var blueMoonDate = new Date(96, 1, 3, 16, 15, 0);
var lunarPeriod  = 29*(24*3600*1000) + 12*(3600*1000) + 44.05*(60*1000);
var moonPhaseTime = (currentDate.getTime() - blueMoonDate.getTime()) % lunarPeriod;
var percentRaw = (moonPhaseTime / lunarPeriod);
var percent    = Math.round(100*percentRaw) / 100;
var percentBy2 = Math.round(200*percentRaw);
var left  = (percentRaw >= 0.5) ? black : white;
var right = (percentRaw >= 0.5) ? white : black;
var time = Math.round((lunarPeriod-moonPhaseTime)/(24*3600*1000));
var newmoongone = 28-time;

if (percentBy2 > 100) {
percentBy2 = percentBy2 - 100;}
for (i = -(size-1); i < size; ++i) {
var wid=2*parseFloat(Math.sqrt((size*size)-(i*i)));
if (percentBy2 != 100)
document.write ("");
if (percentBy2 != 0)
document.write("");
}
if (time==27) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/15.jpg' width='140' height='28' border='0' alt='New Moon'></a>" );}
if (time==25) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/18.jpg'width='140' height='28'  border='0' alt='New Moon'></a>" );}
if (time==24) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/19.jpg' width='140' height='28'  border='0' alt='Waning Moon'></a> " );}
if (time==23) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/20.jpg' width='140' height='28'  border='0' alt='Waning Moon'></a>" );}
if (time==22) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/21.jpg' width='140' height='28' border='0' alt='Waning Moon'></a> ");}
if (time==21) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/22.jpg' width='140' height='28'  border='0' alt='Quarter Moon'></a>" );}
if (time==20) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/23.jpg' width='140' height='28'  border='0' alt='Quarter Moon '></a> " );}
if (time==19) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/23.jpg' width='140' height='28'  border='0' alt='Gibbous Moon'></a>" );}
if (time==18) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/24.jpg' width='140' height='28'  border='0' alt='Waning Moon'></a>" );}
if (time==17) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/25.jpg' width='140' height='28'  border='0' alt='Waning Moon'></a>" );}
if (time==16) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/26.jpg' width='140' height='28'  border='0' alt='Waning Moon'></a>" );}
if (time==15) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/27.jpg' width='140' height='28'  border='0' alt='New Moon'></a>" );}
if (time==14) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/28.jpg' width='140' height='28'  border='0' alt='New Moon'></a>" );}

if (time==10) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/4.jpg' width='140' height='28'  border='0' alt='Waxing Moon'></a> " );}
if (time==9) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/5.jpg' width='140' height='28'  border='0' alt='Gibbous Moon'></a>" );}
if (time==8) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/6.jpg' width='140' height='28'  border='0' alt='Waxing Moon'></a> " );}
if (time==7) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/7.jpg' width='140' height='28'  border='0' alt='Quarter Moon'></a>" );}
if (time==6) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/8.jpg' width='140' height='28'  border='0' alt='Waxing Moon'></a> " );}
if (time==5) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/9.jpg' width='140' height='28'  border='0' alt='Waxing Moon'></a>" );}
if (time==4) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/10.jpg' width='140' height='28'  border='0' alt='Waxing Moon'></a>" );}
if (time==3) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/11.jpg' width='140' height='28'  border='0' alt='Full Moon'></a>" );}
if (time==2) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/12.jpg' width='140' height='28'  border='0' alt='Full Moon'></a>" );}
if (time==1) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/13.jpg' width='140' height='28'  border='0' alt='Full Moon tomorrow'></a>" );}
if (time==0) {document.write
("<a href='moon.html' onfocus='this.blur()'><img src='im/moon/14.jpg' width='140' height='28'  border='0' alt='Full Moon'></a>" );}
}



function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		homeo = newImage("im/homeb.gif");
		hmsqo = newImage("im/sqo.gif");
		servo = newImage("im/servo.gif");
		bookso = newImage("im/bookso.gif");
		sesqo = newImage("im/sqo.gif");
		courseso = newImage("im/courseso.gif");
		begino = newImage("im/beginb.gif");
		besqo = newImage("im/sqo.gif");
		contacto = newImage("im/contactb.gif");
		preloadFlag = true;
	}
}




