﻿if (document.images) {
	buttonName=Array(
		"download",
		"gallery",
		"features",
		"faq",
		"forum",
		"tut",
		"worlds",
		"av",
		"links",
		"thyme",
		"email",
		"home"
	)
	buttonHeight=Array(22,23,23,23,23,23,23,22,22,23,23,22);
    complexNum = 1024 / 16

	htmlUrls=Array(
		"download/index.html",
		"gallery/index.html",
		"features/index.html",
		"faq.html",
		"forum/viewforum.php?f=1",
		"tut/index.html",
		"wrl/index.html",
		"av/index.html",
		"links/index.html",
		"thyme/index.html",
		"mailto:thyme@seamless3d.com",
		"index.html"
	)
    email=Array(
        "thyme",
        "seamless3d.com",
        "&#" + complexNum
    )
	htmlAlt=Array(
		"Download",
		"See art work created by Seamless3d",
		"Seamless3d Features",
		"Frequently Asked Questions",
		"Get help from the Seamless3d Forum",
		"Tutorials showing how to make 3d content",
		"Chat in 3d",
		"Public avatars for Blaxxun-multi user worlds",
		"Links to Blaxxun multi-user worlds, avatars, 3d forums and other 3d related sites",
		"My home page :)",
		"Contact E-Mail address",
		"Seamless3d Home Page"
	)

	numOfButtons=buttonName.length


	buttonImage=Array()
	buttonImageOut=Array()
	buttonImageIn=Array()
	buttonImage.length=numOfButtons;
	buttonImageOut.length=numOfButtons;
	buttonImageIn.length=numOfButtons;
	for(i=numOfButtons; --i>=0;){
		buttonImage[i]=new Image()
		buttonImageOut[i]=new Image()
		buttonImageIn[i]=new Image()

		buttonImage[i].src=   buttonName[i] + ".png"
		buttonImageOut[i].src=buttonName[i] + "_out.png"
		buttonImageIn[i].src= buttonName[i] + "_in.png"
	}
}
function buttonNormal(i){
	if (document.images){
		document[buttonName[i]].src = buttonName[i] + ".png";
	}
}
function buttonOut(i) {
	if (document.images){
		document[buttonName[i]].src = buttonName[i] + "_out.png";
	}
}
function buttonIn(i) {
	if (document.images){
		document[buttonName[i]].src = buttonName[i] + "_in.png";
	}
}
function genButtons(){
	str="<img width=188 height=313 alt=Home hspace=0 src=\"hopzog.png\" border=0 vspace=0><br/>"
	for(i=0; i<numOfButtons; i++){
		str+="<a onMouseOver=\"buttonOut(";
		str+=i;
		str+=");\"onMouseUp=\"buttonOut(";
		str+=i;
		str+=");\"onMouseOut=\"buttonNormal(";
		str+=i;
		str+=");\"onMouseDown=\"buttonIn(";
		str+=i;
		str+=");\"\nhref=\"";
		str+=htmlUrls[i];
		str+="\">\n<img width=188 height=";
		str+=buttonHeight[i];
		str+=" alt=\"";
		str+=htmlAlt[i];
		str+="\" hspace=0 src=\"";
		str+=buttonName[i];
		str+=".png\" border=0 vspace=0 ";
		str+="name=";
		str+=buttonName[i];
		str+="></a><br/>\n";
	}
	str+="<img width=188  height=15 alt=\"\" hspace=0 src=\"base.png\" border=0><br/>"
	document.write(str)
}
function ecode(){
 document.write("<p style='font-size:10pt; color: #808080'>Copyright &copy; 2000-2009 Graham Perrett <a href='" + "mail" + "to:" + email[0] + email[2] + email[1] + "'>" + email[0] + email[2] + email[1] + "</a></p>");
}
