var rootwebdir = "/mtt/";
var rootimgdir = rootwebdir + "images/";
var rootcssdir = rootwebdir + "CSS/";
var rootcss = rootcssdir + "general.css";
function load_special(){
	var loc = document.location.href + "xx";
	var currdate = new Date();
	var curryear = currdate.getFullYear();
	// load copyright info  - reuse copytext var throughout as current string.
	var copytext='<div class="copyrt">For problems email: <a href="javascript:void(document.location=\'mail\'+\'to:walter\'+\'@\'+\'wmoore.ca\')" title="Send email to Walter Moore."><span class="copyrt"><span>Walter</span><span>@</span><span>WMoore.ca</span></span></a>'
	copytext+= '<br> @ Copyright WalterMoore.ca 1995-'+curryear+'. All rights reserved.</div>'
	document.getElementById("copyrt").innerHTML=copytext;
	// load logo. reset copytext
	copytext = '<div id="freesign"></div>';
//	copytext = '<img id="freesign" src="'+rootimgdir+'free-sign.gif" alt="It is FREE" width="300" height="240" />';
	if ((loc.indexOf(rootwebdir+"default.htm")!=-1) || (loc.indexOf(rootwebdir+"xx")!=-1)) {
		copytext += '<img alt="Return to the home page" src="'+rootimgdir+'mttlogo.jpg" align="absMiddle" border="0" width="411" height="69" />'
	} else {
		copytext += '<a href="'+rootwebdir+'"><img alt="Return to the home page" src="'+rootimgdir+'mttlogo.jpg" align="absMiddle" border="0" width="411" height="69" /></a>'
	}
	document.getElementById("logo").innerHTML = copytext;
	// load supportby section
//	copytext = '<img class="imgicons" src="'+rootimgdir+'nohtml.gif" title="NO HTML EMAIL PLEASE" alt="NoHtmlEmail" /> ';
//	copytext += '<a href="http://www.icra.org/sitelabel/" title="This sites content rated with ICRA"><img src="'+rootimgdir+'icra.gif" alt="Ratings" class="imgw3c" /></a>';	
//	copytext += '<img class="imgw3c" src="'+rootimgdir+'w3ccss.png" title="CSS Standardized" alt="CSS" />';	
//	copytext += '<img class="imgw3c" src="'+rootimgdir+'w3chtml401.png" title="HTML standardized" alt="Html401" />';	
	copytext = '<a href="http://validator.w3.org/check?uri=referer" title="XHTML 1.0 Strict compliance"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict" class="imgw3c" /></a>';	
//	copytext += '<a href="http://validator.w3.org/check?uri=referer" title="XHTML 1.0 Strict compliance"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Strict" class="imgw3c" /></a>';	
//	copytext += '<img class="imgmeta" src="'+rootimgdir+'metamedic.gif" title="MetaMedic certified" alt="Metamedic" />';	
	document.getElementById("supportedby").innerHTML = copytext;
	// Load Table of Contents. reset copytext
	copytext = '';
	if ((loc.indexOf(rootwebdir+"default.htm")!=-1) || (loc.indexOf(rootwebdir+"xx")!=-1)) {
		copytext += '<div class="HiRed">Home</div>';
	} else {
		copytext += '<div><a title="Back to Home Page" href="'+rootwebdir+'">Home</a></div>';
	}		
	if (loc.indexOf(rootwebdir+"features.htm")!=-1) {
		copytext += '<div class="HiRed">Features</div>';
	} else {
		copytext += '<div><a title="A few features of MTT" href="'+rootwebdir+'features.htm">Features</a></div>';
	}		
	if (loc.indexOf(rootwebdir+"supported_keys.htm")!=-1) {
		copytext += '<div class="HiRed">Supported Keys</div>';
	} else {
		copytext += '<div><a title="All the keys you cn use in comination " href="'+rootwebdir+'supported_keys.htm">Supported Keys</a></div>';
	}		
	if (loc.indexOf(rootwebdir+"screens.htm")!=-1) {
		copytext += '<div class="HiRed">Screen Shots</div>';
	} else {
		copytext += '<div><a title="See actual pictures of screens" href="'+rootwebdir+'screens.htm">Screen Shots</a></div>';
	}		
	if (loc.indexOf(rootwebdir+"free/")!=-1) {
		copytext += '<div class="HiRed">Download</div>';
	} else {
		copytext += '<div><a title="Get More Than Typing FREE now" href="'+rootwebdir+'free/">Download</a></div>';
	}		
	if (loc.indexOf(rootwebdir+"groups/")!=-1) {
		copytext += '<div class="HiRed">Options</div>';
	} else {
		copytext += '<div><a title="If you have MTT check for new group/picture downloads" href="'+rootwebdir+'groups/">Options</a></div>';
	}		
	copytext += '<div><a title="Various ways you can contact us" href="/basic/contact.htm">Contacts</a></div>';
	document.getElementById("TableofContents").innerHTML = copytext;
}
document.writeln('<link REL="STYLESHEET" HREF="'+rootcss+'" TYPE="text/css">')
window.onload=load_special;
