
// 覧覧覧覧覧覧覧 DATE AND TIME

today = new Date()
TimeHrs = today.getHours(); TimeMin = today.getMinutes()
DateMth = today.getMonth()+1; DateDate = today.getDate()
DateYear = today.getYear(); DateDy = today.getDay()

if (TimeHrs > 12) {
	TimeHrs = TimeHrs - 12; if (TimeHrs == 12) { AmPm = "am" } else { AmPm = "pm" }
} else {
	if (TimeHrs == 12) { AmPm = "pm" } else { AmPm = "am" }
}

if (TimeMin < 10) { TimeMin = "0" + TimeMin }

if (DateMth == 1) { DateMonth = "January "
} else if (DateMth == 2) { DateMonth = "February "
} else if (DateMth == 3) { DateMonth = "March "
} else if (DateMth == 4) { DateMonth = "April "
} else if (DateMth == 5) { DateMonth = "May "
} else if (DateMth == 6) { DateMonth = "June "
} else if (DateMth == 7) { DateMonth = "July "	
} else if (DateMth == 8) { DateMonth = "August "
} else if (DateMth == 9) { DateMonth = "September "
} else if (DateMth == 10) { DateMonth = "October "
} else if (DateMth == 11) { DateMonth = "November "
} else { DateMonth = "December " }

if (DateDy == 0) { DateDay = "Sunday, "
} else if (DateDy == 1) { DateDay = "Monday, "
} else if (DateDy == 2) { DateDay = "Tuesday, "
} else if (DateDy == 3) { DateDay = "Wednesday, "
} else if (DateDy == 4) { DateDay = "Thursday, "
} else if (DateDy == 5) { DateDay = "Friday, "
} else { DateDay = "Saturday, " }

brsr=navigator.appName
if (brsr=="Netscape") { if (DateYear < 99) { DateYear = DateYear + 2000 } else { DateYear = DateYear + 1900 } }


function TheDate() { document.write(DateMonth + DateDate + ", " + DateYear) }
function Year() { document.write(DateYear) }



// 覧覧覧覧覧覧覧 GOOGLE ADSENSE CODE

function GGsense() {
	a = location.href
	if (a.search(/http:\/\/creativity-portal/) != -1) {
		document.write("<div style=\"width: " + google_ad_width + "; height: " + google_ad_height +
		"; background-color: #fed; border: 1px solid #dcb; text-align: center; vertical-align: middle\">" +
		"<div style=\"position: relative; top: 30%\">Google AdSense</div></div>")
	} else {
		document.write("<script type=\"text/javascript\" " +
		"src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\"></script>")
	}
}



// 覧覧覧覧覧覧覧 JUMP MENU CODE

function JumpMenu(GoURL) {
	URL = GoURL.options[GoURL.selectedIndex].value
	if (URL != "") { location = URL }
}



// 覧覧覧覧覧覧覧 RSS FEED / NEWSLETTER SUBSCRIPTION CODE

function RSSNews() {
	document.write("<div class=\"menu f8\" style=\"background-color: #ffffff\">",
	"<p class=\"ctr\"><img src=\"/images/main/26waysth.gif\"\n",
	"alt=\"Inspiring Creativity Newsletter\" title=\"Inspiring Creativity Newsletter\"\n",
	"width=\"150\" height=\"132\" border=\"0\" /></p>",
	"Subscribe to our FREE twice-monthly Creativity <strong>NewZine</strong> ",
	"for creativity coaching tips, book excerpts, art projects, and more to jumpstart your creativity! ",
	"<form name=\"subscr\" method=\"post\" action=\"http://www.ymlp.com/subscribe.php?creativityportal\">\n",
	"<p class=\"ctr\"><input name=\"YMLP0\" type=\"text\" ",
	"value=\"primary e-mail\" size=\"20\" onFocus=\"subscr.YMLP0.value=''\" /><br />\n",
	"<input name=\"submit\" type=\"submit\" value=\"Yes, Subscribe Me!\" /></p>\n",
	"</form></div>")
}


// COUNTER SCRIPT

function RunCounter() {
//	randnum = Math.round(Math.random() * 10000)
//	document.write("<script type=\"text/JavaScript\" src=\"/cgi-bin/page.cntr/cntr.pl?type=script&no=", randnum, "\"></script>")

	// MAIL BACKUP COPY OF STATS
//	document.write("<script type=\"text/JavaScript\" src=\"/cgi-bin/page.cntr/send.backup.cntr.pl?no=", randnum, "\"></script>")
}

function PrintCounter() {
//	Box = document.getElementById("InvisiNumber")
//	Box.innerHTML = "<span style=\"font-size: 7pt; font-family: arial\">" + InvisiCnt + "</span>"
}





