var
	pfrLen = 0;
	pfrBackup = "";
	
function setBackupSegment(){
	bix=0;
	eix=0;
	while(eix>-1){
		eix=pathFromRoot.indexOf("/",bix);
		bix=eix+1;
		if(eix>-1)
			pfrBackup = pfrBackup + "../";
	}
}

function getAppropriatePath(path){
	if( document.URL.indexOf("https")==0)
		return getSSLPath(path);
	else
		return getPath(path);
}

function getPath(path){
	if(pathFromRoot.indexOf("http")==0)
		return pathFromRoot+path;
	else if(path.indexOf(pathFromRoot)==0)
		return path.substring(pfrLen);
	else
		return pfrBackup+path;
}

function getSSLPath(path){
	p = getPath(path);
	var hix = p.indexOf("http");
	if( hix != 0 ) {
		var p = document.URL;
		var bix = p.indexOf("http://");
		if( bix == -1 )
			bix = p.indexOf("https://");
		if( bix == -1 )
			return getPath(path);
		var eix = p.indexOf("/",bix+7);
		if( eix > bix )
			p = p.substring(0,eix+1) + path;
	}
	if(p.indexOf("http:")==0)
		p = p.substring(0,4) + "s" + p.substring(4);
	if(p.indexOf("https:")==0 && p.indexOf("www")==-1)
		p = p.substring(0,8) + "www." + p.substring(8);
	return p;
}

pfrLen = pathFromRoot.length;
setBackupSegment();

document.writeln('<TABLE WIDTH="144" CELLSPACING="2" CELLPADDING="0">');
document.writeln('<TR><TD ALIGN="CENTER">');
document.writeln('<IMG SRC=' + getAppropriatePath("tilogo.gif") + ' WIDTH=140 HEIGHT=120>');
document.writeln('</TD></TR>');
document.writeln('<TR><TD>');
document.writeln('<FONT SIZE=2>');
document.writeln('<A HREF=' + getPath("index.html") + '>Home</A>');
document.writeln('<BR><A HREF=' + getPath("index.html") + '>What\'s New</A>');
document.writeln('<BR><A HREF=' + getSSLPath("members/signupform.html") + '>Join</A>');
document.writeln('<BR><A HREF=' + getSSLPath("members/login.html") + '>Member Center</A>');
document.writeln('<br><A HREF=' + getPath("mb/index.html") + '>Forums</A>');
document.writeln('<BR><A HREF=' + getPath("forum/classics/index.html") + '>Forum Classics</A>');
document.writeln('</FONT>');
document.writeln('</TD></TR>');
document.writeln('<TR><TD>');
document.writeln('<CENTER><IMG SRC=' + getAppropriatePath("space.gif") + ' WIDTH=142 HEIGHT=5></CENTER>');
document.writeln('<FONT SIZE=3>Football</FONT>');
document.writeln('<CENTER><IMG SRC=' + getAppropriatePath("hbar.gif") + ' WIDTH=142 HEIGHT=2></CENTER>');
document.writeln('</TD></TR>');
document.writeln('<TR><TD>');
document.writeln('<FONT SIZE=2>');
document.writeln('<A HREF=' + getPath("inside/football/news/index.html") + '>News</A>');
document.writeln('<BR><A HREF=' + getPath("inside/football/games/schedule.html") + '>Schedule</A>');
document.writeln('<BR><A HREF=' + getPath("inside/football/games/roster.html") + '>Roster</A>');
document.writeln('<BR><A HREF=' + getPath("predictions/football/game/index.html") + '>Predictions Contests</A>');
document.writeln('<BR><A HREF=' + getPath("inside/football/spring/index.html") + '>Spring News</A>');
//document.writeln('<BR><A HREF=' + getPath("inside/football/spring/depthchart.html") + '>Spring Depth Chart</A>');
document.writeln('<BR><A HREF=' + getPath("inside/football/spring/rosterbynumber.html") + '>Spring Roster</A>');
document.writeln('</FONT>');
document.writeln('</TD></TR>');
document.writeln('<TR><TD>');
document.writeln('<CENTER><IMG SRC=' + getAppropriatePath("space.gif") + ' WIDTH=142 HEIGHT=5></CENTER>');
document.writeln('<FONT SIZE=2><B>Recruiting</B>');
document.writeln('<BR><A HREF=' + getPath("inside/football/recruiting/profiles/index.html") + '>Recap</A>');
document.writeln('<BR><A HREF=' + getPath("inside/football/recruiting/profiles/newtiders.html") + '>New Tiders</A>');
document.writeln('<BR><A HREF=' + getPath("inside/football/recruiting/updates/index.html") + '>Updates</A>');
document.writeln('</FONT>');
document.writeln('</TD></TR>');
document.writeln('<TR><TD>');
document.writeln('<CENTER><IMG SRC=' + getAppropriatePath("space.gif") + ' WIDTH=142 HEIGHT=5></CENTER>');
document.writeln('<FONT SIZE=3>Men\'s Basketball</FONT>');
document.writeln('<CENTER><IMG SRC=' + getAppropriatePath("hbar.gif") + ' WIDTH=142 HEIGHT=2></CENTER>');
document.writeln('</TD></TR>');
document.writeln('<TR><TD>');
document.writeln('<FONT SIZE=2>');
document.writeln('<A HREF=' + getPath("inside/basketball/men/news/index.html") + '>News</A>');
document.writeln('<BR><A HREF=' + getPath("inside/basketball/men/games/roster.html") + '>Roster</A>');
document.writeln('<BR><A HREF=' + getPath("inside/basketball/men/games/schedule.html") + '>Schedule</A>');
document.writeln('<BR><A HREF=' + getPath("inside/basketball/men/news/newtiders.html") + '>New Tiders</A>');
document.writeln('</FONT>');
document.writeln('</TD></TR>');
document.writeln('<TR><TD>');
document.writeln('<CENTER><IMG SRC=' + getAppropriatePath("space.gif") + ' WIDTH=142 HEIGHT=5></CENTER>');
document.writeln('<FONT SIZE=3>Baseball</FONT>');
document.writeln('<CENTER><IMG SRC=' + getAppropriatePath("hbar.gif") + ' WIDTH=142 HEIGHT=2></CENTER>');
document.writeln('</TD></TR>');
document.writeln('<TR><TD>');
document.writeln('<FONT SIZE=2>');
document.writeln('<A HREF=' + getPath("inside/baseball/index.html") + '>News</A>');
document.writeln('<BR><A HREF=' + getPath("inside/baseball/roster.html") + '>Roster</A>');
document.writeln('<BR><A HREF=' + getPath("inside/baseball/schedule.html") + '>Schedule</A>');
document.writeln('</FONT>');
document.writeln('</TD></TR>');
document.writeln('<TR><TD>');
document.writeln('<CENTER><IMG SRC=' + getAppropriatePath("space.gif") + ' WIDTH=142 HEIGHT=5></CENTER>');
document.writeln('<FONT SIZE=3>Other</FONT>');
document.writeln('<CENTER><IMG SRC=' + getAppropriatePath("hbar.gif") + ' WIDTH=142 HEIGHT=2></CENTER>');
document.writeln('</TD></TR>');
document.writeln('<TR><TD>');
document.writeln('<FONT SIZE=2>');
document.writeln('<A HREF=' + getPath("links.html") + '>Links</A>');
document.writeln('<BR><A HREF=' + getPath("privacy.html") + '>Privacy Policy</A>');
document.writeln('<BR><A HREF=' + getPath("contact.html") + '>Contact TI</A>');
document.writeln('<BR><A HREF=' + getPath("rodney.html") + '>Meet Rodney</A>');
document.writeln('<BR><A HREF=' + getPath("announce/jaylisby.html") + '>Jay Lisby Scholarship</A>');
document.writeln('</FONT>');
document.writeln('</TD></TR>');
document.writeln('<TR><TD ALIGN="CENTER">');
document.writeln('<CENTER><IMG SRC=' + getAppropriatePath("hbar.gif") + ' WIDTH=142 HEIGHT=2></CENTER>');
document.writeln('</TD></TR>');
document.writeln('<TR><TD>');
document.writeln('<FONT SIZE=2>');
document.writeln('Copyright 1996-2007');
document.writeln('<BR>Tider Insider Inc');
document.writeln('<BR>All Rights Reserved');
document.writeln('</FONT>');
document.writeln('</TD></TR>');
document.writeln('</TABLE>');
