function chop(fullstring,stringend) {
	var stringsplit=fullstring.split(stringend)
	var stringpieces=stringsplit.length
	var returnvar=(stringpieces>1)? stringsplit[0]+stringend : fullstring
	return returnvar
}

function getroot() {
	var fullurl=window.location
	fullurl+=""
	fullurl=fullurl.toLowerCase()
	var filtered=chop(fullurl,"crazyu~1")
	filtered=chop(filtered,"crazy%20uncle%20george")
	filtered=chop(filtered,"crazyunclegeorge.com")
	filtered=chop(filtered,"crazyunclegeorges.com")
	filtered+="/"
	return filtered
	return fullurl
}

function menulink(linkarray) {
	var menulength=linkarray.length
	var rootpath=getroot()
	var foldername
	var linkname
	var linkstart
	var linkend
	for (var menuitem=0;menuitem<menulength;menuitem++) {
		foldername=linkarray[menuitem]
		foldername=foldername.toLowerCase()
		linkstart=foldername.slice(0,1)
		linkstart=linkstart.toUpperCase()
		linkend=foldername.slice(1)
		linkname=linkstart+linkend
		document.write("<a target='_top' href='",rootpath,foldername,"/'>",linkname,"</a>")
		if ((menulength-menuitem)>1) {document.write("&nbsp;&nbsp;")}
	}
}

var pathtoroot=getroot()
var letterarray=new Array("blog","rankings","links","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z")

document.write("<center><font face='Trebuchet MS'>")
document.write("<table cellpadding=5 cellspacing=0 width=450 border=0><tr><td>")
document.write("<img alt='Crazy Uncle George' src='"+pathtoroot+"me.gif' width=87 height=125 border=0>")
document.write("</td><td>")
document.write("<center><b>Crazy Uncle George's A to Z of Hotties</b><br>Home of the inaugural undress")
document.write("</td></tr></table><br>")

document.write("<b><a target='_top' href='"+pathtoroot+"'>Home</a>&nbsp;&nbsp;")
document.write("<a target='_top' href='"+pathtoroot+"contact.html'>Contact</a>&nbsp;&nbsp;");
menulink(letterarray)
document.write("</b></center><br>");
