src="cubstyles.js"

// Date
var weekDay = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];
var monthofYear = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];

today=new Date();
thisDay=today.getDay();
thisDay=weekDay[thisDay];
thisMonth=today.getMonth();
thisMonth=monthofYear[thisMonth];
thisDate=today.getDate();

// Set Ordinal
if (thisDate == 1) {
	var ord = "st";
	}
else if (thisDate == 2) {
	var ord = "nd";
	}
else if (thisDate == 3) {
	var ord = "rd";
	}
else if (4 >= thisDate || thisDate <= 20) {
	var ord = "th";
	}
else if (thisDate == 21) {
	var ord = "st";
	}
else if (thisDate == 22) {
	var ord = "nd";
	}
else if (thisDate == 23) {
	var ord = "rd";
	}
else if (24 >= thisDate || thisDate <= 30) {
	var ord = "th";
	}
else if (thisDate == 31) {
	var ord = "st";
}

// Variables
titlebeg = "<font size=";
	titlebeg += titlesize;
	titlebeg += " face=";
	titlebeg += titlefont;
	titlebeg += " color=";
	titlebeg += titlecolor;
	titlebeg += ">";
	titlebeg += tstylebeg;
titleend = tstylend;
	titleend += "</font>";
datebeg = "<font size=";
	datebeg += datesize;
	datebeg += " face=";
	datebeg += datefont;
	datebeg += " color=";
	datebeg += datecolor;
	datebeg += ">";
	datebeg += dstylebeg;
dateend = dstylend;
	dateend += "</font>";
comicbeg = "<font size=";
	comicbeg += comicsize;
	comicbeg += " face=";
	comicbeg += comicfont;
	comicbeg += ">";
	comicbeg += comstylebeg;
comicend = comstylend;
	comicend += "</font>";
comlinkcolor = "<font color=";
	comlinkcolor += comicolor;
	comlinkcolor += ">";
authbeg = "<font size=";
	authbeg += authsize;
	authbeg += " face=";
	authbeg += authfont;
	authbeg += " color=";
	authbeg += authcolor;
	authbeg += ">";
	authbeg += astylebeg;
authend = astylend;
	authend += "</font>";
copybeg = "<font size=";
	copybeg += copysize;
	copybeg += " face=";
	copybeg += copyfont;
	copybeg += " color=";
	copybeg += copycolor;
	copybeg += ">";
	copybeg += copstylebeg;
copyend = copstylend;
	copyend += "</font>";
copyinfo = "CUB &copy; <a class=cub href=\"http://www.comicupdate.com\"><font color=";
	copyinfo += clinkcolor + ">CRMorrison<\/font><\/a>, 2002";
styleop = '<style>';
stylecl = '</style>';
unvisstyle = styleop;
unvisstyle += "a.cub:link {color: ";
unvisstyle += novisit;
unvisstyle += "; text-decoration: ";
unvisstyle += linkdec;
unvisstyle += "}";
unvisstyle += stylecl;
visstyle = styleop;
visstyle += "a.cub:visited {color: ";
visstyle += visited;
visstyle += "; text-decoration: ";
visstyle += visdec;
visstyle += "}";
visstyle += stylecl;
hovstyle = styleop;
hovstyle += "a.cub:hover {color: ";
hovstyle += hover;
hovstyle += "; text-decoration: ";
hovstyle += hoverdec;
hovstyle += "}";
hovstyle += stylecl;

// Comic Database
arggh = ["http://www.arggh.com", "The ARGGH!! Chronicles", "Al Nickerson"]; // Sunday
jun = ["http://www.junipercrescent.com", "Juniper Crescent", "Steve Ince"]; // Sunday
mpulp = ["http://www.modernpulp.com", "Modern Pulp", "Brian Meredith"]; // Sunday

aiml = ["http://www.gamecreature.com/toonzone/tzrant", "Aimless", "Kyle Miller"]; // Monday, Wednesday, Friday
cityb = ["http://www.timewarpstudios.com", "City Benches", "Luhmann, Drake<br>& Caulfield"]; // Monday
ku2 = ["http://www.ku-2.com", "KU-2", "Logan DeAngelis"]; // Monday
monkey = ["http://www.moviepoopshoot.com/monkeyman/index.html", "Monkey Man", "Coffman & Lynch"]; // Monday
quantum = ["http://www.q-balls.com", "Quantum", "Chuck Morrison"]; // Monday
tdm = ["http://www.onelesssock.net/tdm/index.html", "Those Darn Mormons", "Mike Paglia"]; // Monday, Friday

crater = ["http://www.cratercity.net", "Crater City", "Kidd & Carr"]; // Tuesday
firef = ["http://www.electric-chicken.com", "Firefly", "Seth Teter"]; // Tuesday
sap = ["http://www.junipercrescent.com/sapphire/sapphire.htm", "The Sapphire Claw", "Steve Ince"]; // Tuesday

cart = ["http://www.cartoonin.com", "Cartoonin", "Mr. E"]; // Wednesday
qf = ["http://www.q-balls.com", "Quantum Foamies/<br>Megaball", "Mike Paglia/<br>Justin Morrison"]; // Wednesday

miss = ["http://www.electric-chicken.com", "Miss Switch", "Seth Teter"]; // Thursday

inviso = ["http://www.invisoblaster.com", "Invisoblaster", "Will Morrison"]; // Friday
migrayn = ["http://www.migrayn.com", "Migrayn", "Jay Mcleod"]; // Friday
zombie = ["http://www.moviepoopshoot.com/zombie", "Zombieopolis", "Coffman & McDeavitt"] // Friday

java = ["http://www.enloopious.com/comics.php", "JavaCat", "Thomas Roberts"]; // Saturday
kit = ["http://kittensoft.junipercrescent.com/", "Kittensoft", "Steve Ince"]; // Saturday

function cub() {
if (thisDay == weekDay[0]) { // Sunday
	document.write (comicbeg + "<a class=cub href=" + arggh[0] + ">" + comlinkcolor + arggh[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + arggh[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + jun[0] + ">" + comlinkcolor + jun[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + jun[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + mpulp[0] + ">" + comlinkcolor + mpulp[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + mpulp[2] + authend);
}
else if (thisDay == weekDay[1]) { // Monday
	document.write (comicbeg + "<a class=cub href=" + aiml[0] + ">" + comlinkcolor + aiml[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + aiml[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + cityb[0] + ">" + comlinkcolor + cityb[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + cityb[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + ku2[0] + ">" + comlinkcolor + ku2[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + ku2[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + monkey[0] + ">" + comlinkcolor + monkey[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + monkey[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + quantum[0] + ">" + comlinkcolor + quantum[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + quantum[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + tdm[0] + ">" + comlinkcolor + tdm[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + tdm[2] + authend);
	}
else if (thisDay == weekDay[2]) { // Tuesday
	document.write (comicbeg + "<a class=cub href=" + crater[0] + ">" + comlinkcolor + crater[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + crater[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + firef[0] + ">" + comlinkcolor + firef[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + firef[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + sap[0] + ">" + comlinkcolor + sap[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + sap[2] + authend);
	}
else if (thisDay == weekDay[3]) { // Wednesday
	document.write (comicbeg + "<a class=cub href=" + aiml[0] + ">" + comlinkcolor + aiml[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + aiml[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + cart[0] + ">" + comlinkcolor + cart[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + cart[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + qf[0] + ">" + comlinkcolor + qf[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + qf[2] + authend);
	}
else if (thisDay == weekDay[4]) { // Thursday
	document.write (comicbeg + "<a class=cub href=" + miss[0] + ">" + comlinkcolor + miss[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + miss[2] + authend);
	}
else if (thisDay == weekDay[5]) { // Friday
	document.write (comicbeg + "<a class=cub href=" + aiml[0] + ">" + comlinkcolor + aiml[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + aiml[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + inviso[0] + ">" + comlinkcolor + inviso[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + inviso[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + migrayn[0] + ">" + comlinkcolor + migrayn[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + migrayn[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + tdm[0] + ">" + comlinkcolor + tdm[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + tdm[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + zombie[0] + ">" + comlinkcolor + zombie[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + zombie[2] + authend);
	}
else { // Saturday
	document.write (comicbeg + "<a class=cub href=" + kit[0] + ">" + comlinkcolor + kit[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + kit[2] + authend);
	document.write ("<hr width=100% color=" + hrcolor +" size=" + hrsize + " noshade>");
	document.write (comicbeg + "<a class=cub href=" + java[0] + ">" + comlinkcolor + java[1] + "</font></a>"
					+ "<br>" + authbeg + "by&nbsp;" + java[2] + authend);
	}
}