<!-- Hide script

var g_szTabDefault;
var g_fLastTab;
var g_szWebRoot ="";

function WriteTabItem(szURL, szName, szTitle){
	if (szName.toUpperCase() == g_szTabDefault){
		document.write("<SPAN CLASS=\"hilight\">" + szName + "</span>");
		}
	else {
		document.write("<A HREF=\"" + g_szWebRoot + szURL + "\" TITLE=\"" + szTitle + "\">" + szName + "</A>");
		}
	if (g_fLastTab == false)
		document.write("&nbsp;|&nbsp;");
}

function WriteTabs(szTabDefault){
	g_fLastTab = false;

	szPath = location.pathname;
	
	if (szPath.substring(0, 3).toUpperCase() == "/20")
		g_szTabDefault = "ARCHIVES";
	else
		g_szTabDefault = szTabDefault.toUpperCase();


	document.write('<SPAN CLASS="menu">');
	document.write('&nbsp;&nbsp;&nbsp;');
	WriteTabItem("", "Home", "BushChang Family Home Page");
	WriteTabItem("categories/Family/", "Family", "Family of Steve and Christine");
	WriteTabItem("categories/Eton/", "Eton", "Eton School");
	WriteTabItem("categories/Friends/", "Friends", "Friends of Steve and Christine");
	WriteTabItem("categories/Hobbies/", "Hobbies", "Hobbies of Steve and Christine");
	WriteTabItem("categories/Career/", "Career", "Careers of Steve and Christine");
	WriteTabItem("categories/Travels/", "Travels", "Vacation and Travels");

	if (g_szTabDefault == "ARCHIVES"){
		WriteTabItem("categories/Game/", "Game", "The Game");
		g_fLastTab = true;
		WriteTabItem("", "Archives", "Weblog Archives");
		}
	else {
		g_fLastTab = true;
		WriteTabItem("categories/Game/", "Game", "The Game");
		}

	document.write("<BR>");
	document.write('</SPAN>');
}

function WritePic(szImage, szCaption){
	var szUrl = "<a href=\"/showpic.php?PicName=" + escape(szImage) + "&PicRes=High&PicCaption=" + escape(szCaption) + "\" target=_blank class=\"imgCaption\">";
	document.write(szUrl + "<IMG SRC=\"http://www.bushchang.com/photos/thumb/" + escape(szImage) + "\" border=0></A><BR>");
	document.write(szUrl + szCaption + "</A>");
}

function setWebRoot(szWebRoot){

	szPath = location.host;

	if (szPath.substring(0, 5).toUpperCase() == "RADIO")
		g_szWebRoot = "/";
	else
		g_szWebRoot = szWebRoot;
}


function WriteNavItem(szURL, szName, szTarget, szTitle) {
	document.write("&nbsp;&nbsp;<A HREF=\"" + szURL + "\" TARGET=\"" + szTarget + "\" TITLE=\"" + szTitle + "\">" + szName + "</A><BR>");
}

function WriteNavHeadingBegin(szHeading){
	document.write("<BR><div class='subhead1'>");
	document.write(szHeading + "<BR>");
	document.write("</div>");
	document.write("<div class='menu'>");
}

function WriteNavHeadingEnd(){
	document.write("</div>");
}

function WriteHomeNav(){
	WriteNavHeadingBegin("Current Events");
	WriteNavItem("http://newsroom.cisco.com/dlls/2008/corp_072308.html?POSITION=LINK&COUNTRY_SITE=us&CAMPAIGN=NewsAtCiscoLatestNewsfromCDCHP&CREATIVE=LINK1&REFERRING_SITE=CISCO.COMHOMEPAGE","Cisco Acquires Pure", "_blank", "Cisco Acquires Pure Networks!");
	WriteNavHeadingEnd();
	WriteNavHeadingBegin("Current Affliations");
	WriteNavItem("http://research.microsoft.com/", "Microsoft Research", "_blank", "Microsoft Research");
	WriteNavItem("http://www.stevebu.com/","SteveBu.com", "_blank", "My personal blog.");
	WriteNavItem("http://www.etonschool.com/","Eton School Parent", "_blank", "Eton School");
	WriteNavHeadingEnd();
	WriteNavHeadingBegin("Alumni of");
	WriteNavItem("http://www.networkgarage.com/", "NetworkGarage.com", "_blank", "NetworkGarage.com");
	WriteNavItem("http://www.networkmagic.com/", "Network Magic", "_blank", "Home Networking Help");
	WriteNavItem("http://www.purenetworks.com/", "Pure Networks", "_blank", "Making home networks work!");
	WriteNavItem("http://www.microsoft.com/", "Microsoft", "_blank", "To enable people and businesses throughout the world to realize their full potential.");	WriteNavItem("http://www.stanford.edu/", "Stanford University", "_blank", "Steve and Christine met at Stanford");
	WriteNavItem("http://news.com.com/2100-1023-251368.html?legacy=cnet", "OpenDesign", "_blank", "OpenDesign closed its door in June, 2002");
	WriteNavItem("http://www.bondurant.com/home.htm", "Bondurant Driving School", "_blank", "Graduates of High Performance Driving class");
	WriteNavHeadingEnd();
}


//End script hiding -->
