/////////// Menu Declarations /////////////	var bMouseDown;	var bCursorSet;	var MenuType = "Main";/////////// END Menu Declarations //////////////////// UT Tab Menu Declarations /////////////	var bUTTabCursorSet;/////////// END UT Tab Menu Declarations //////////////////////// Catan Tab Menu Declarations /////////////	var bCatanTabCursorSet;/////////// END Catan Tab Menu Declarations //////////////////////// Window Status Scroll Declarations ////////////	// This is how fast the letters appear	var LetterSpeed = 25;	// This is the amount of time from one comment to another	var DivinationDeepBreath = 1500;	var TimerID;	var Bauble = new Array();	var TheDivination;	var MisconstruedDivination;	var BaubleCounter = 0;	var BaubleIndex = 0;/////////// END Window Status Scroll Declarations //////////////////// VERSIONING Constants used by me////////////////	var GlobalWin2000Version = "Windows NT 5.0";/////////// END VERSIONING Constants used //////////////////////////// Load the appropriate stylesheet ///////////////	// I had to split due to non-IE browsers inability to	// recognize colors such as WINDOW or MENUTEXT, etc.	var CurrentPath;	var bMembers;	CurrentPath = document.location;		// Make it a string so we can use the search method.	CurrentPath = CurrentPath.toString();	// the search method returns a -1 if no match was found.	bMembers = CurrentPath.search("members");		if(bMembers == -1)		bMembers = CurrentPath.search("/story/");	if(bMembers == -1)		bMembers = CurrentPath.search("/elena");	//if (navigator.appName == "Microsoft Internet Explorer")	//if (navigator.appName == "Microsoft Internet Explorer" || navigator.appName == "Netscape")		if(bMembers == -1)			document.write('<link REL="stylesheet" TYPE="text/css" HREF="./birdiestyle.css" TITLE="birdiestyle">');		else			document.write('<link REL="stylesheet" TYPE="text/css" HREF="./../birdiestyle.css" TITLE="birdiestyle">');	//else	//	if(bMembers == -1)	//		document.write('<link REL="stylesheet" TYPE="text/css" HREF="./birdiestyle_other.css" TITLE="birdiestyle">');	//	else	//		document.write('<link REL="stylesheet" TYPE="text/css" HREF="./../birdiestyle_other.css" TITLE="birdiestyle">');/////////// END Load the appropriate stylesheet ////////////////////// Get cursor name ////////////////	var aCursor;	if (navigator.appName == "Netscape")	{		aCursor = "pointer";	}	else	{		aCursor = "hand";	}/////////// END Get cursor name ////////////////function MainMenuMouseOut(aTD){	aTD.style.background = '';	aTD.style.color = '#FFFFFF';}function MainMenuMouseOver(aTD){	if (!bCursorSet)	{		// Normally i would do this on load but they are		// not recognized as objects at that point.		bCursorSet = true;		if(MenuType == "Members")		{			//document.all("DeepThunk").style.cursor = aCursor;			document.all("contribution").style.cursor = aCursor;			document.all("survivor").style.cursor = aCursor;/*			document.all("stalker").style.cursor = aCursor;			document.all("nooz").style.cursor = aCursor;*/		}		else		{			// called from main menu			//if (document.all("pi").style != null)			//	document.all("pi").style.cursor = aCursor;			if (document.all("mountsainthelen").style != null)				document.all("mountsainthelen").style.cursor = aCursor;			if (document.all("unreal").style != null)				document.all("unreal").style.cursor = aCursor;			if (document.all("ututility").style != null)				document.all("ututility").style.cursor = aCursor;			if (document.all("utfavorites").style != null)				document.all("utfavorites").style.cursor = aCursor;			if (document.all("catanboard").style != null)				document.all("catanboard").style.cursor = aCursor;			if (document.all("app").style != null)				document.all("app").style.cursor = aCursor;			if (document.all("bike").style != null)				document.all("bike").style.cursor = aCursor;			//if (document.all("blah").style != null)			//	document.all("blah").style.cursor = aCursor;			if (document.all("books").style != null)				document.all("books").style.cursor = aCursor;			if (document.all("downloads").style != null)				document.all("downloads").style.cursor = aCursor;			//if (document.all("main").style != null)			//	document.all("main").style.cursor = aCursor;			//if (document.all("house").style != null)			//	document.all("house").style.cursor = aCursor;			//if (document.all("news").style != null)			//	document.all("news").style.cursor = aCursor;			//if (document.all("DeepThunk").style != null)			//	document.all("DeepThunk").style.cursor = aCursor;			//document.all("feedback").style.cursor = aCursor;			//if (navigator.appName == "Microsoft Internet Explorer")			//	if (document.all("pics").style != null)			//		document.all("pics").style.cursor = aCursor;			//if (document.all("StoryMenu").style != null)			//	document.all("StoryMenu").style.cursor = aCursor;			//if (document.all("links").style != null)			//	document.all("links").style.cursor = aCursor;			//if (document.all("movies").style != null)			//	document.all("movies").style.cursor = aCursor;			//document.all("ResumeMenu").style.cursor = aCursor;			//document.all("imet").style.cursor = aCursor;			//document.all("dawson").style.cursor = aCursor;		}		//document.all("Mayne").style.cursor = aCursor;		//if (document.all("mainpage").style != null)		//	document.all("mainpage").style.cursor = aCursor;	}	aTD.style.background = '#003399';	// Only change the font color if the button    // does not correspond to the current page.    if(SamePage(aTD) == (-1) )	    aTD.style.color = '#FFFFFF';	else		aTD.style.color = '#FFFF99';}

function MainMenuMouseDown(aTD){	if(SamePage(aTD) == (-1) )	{		//aTD.style.background = '#993300';		aTD.style.background = '#660000';				aTD.style.color = '#FFFFFF';	}}function MainMenuMouseUp(aTD){    MainMenuMouseOver(aTD);
	// Don't move on if the same page was clicked	if(SamePage(aTD) == (-1) )	{		//if(aTD.id=="mainpage" && MenuType != "Main")		//{		//	MenuType="Main";		//	document.location= "./../" + aTD.id + ".shtml";		//}		//else		//{			//if (aTD.end != "html")			//	aTD.end="shtml";							if(aTD.id=="downloads")    			document.location= "./" + aTD.id + "/";			else    			document.location= "./" + aTD.id + ".htm";		//}	}}
function SamePage(aButton){	return SamePage(aButton, "false");}
function SamePage(aButton, AUseTitleAttribute){	var bFound;	var RequestedPage;	var CurrentLocation;
	if (AUseTitleAttribute == "true")	{		RequestedPage = aButton.title;	}	else	{		RequestedPage = aButton.id;	}
	CurrentLocation = document.location;
	// Make CurrentLocation a string so we can use the search method.	CurrentLocation = CurrentLocation.toString();
	// the search method returns a -1 if no match was found.	bFound = CurrentLocation.search(RequestedPage);
	//alert("document = " + CurrentLocation + ", page = " + RequestedPage);
	return bFound;}	
function FindString(aSourceString, aFindString){	var bFound;
	// Make sure both parameters are strings so we can use the search method.	aSourceString=aSourceString.toString();	aFindString=aFindString.toString();
	// the search method returns a -1 if no match was found.	bFound = aSourceString.search(aFindString);
	return bFound;}	
function StartWindowMarquee(){
	// Get all of the text of one of the messages.	TheDivination = Bauble[BaubleCounter];
	if ( BaubleIndex < TheDivination.length)	{		// It is ok to continue to work with the current message.	        MisconstruedDivination = TheDivination.substring(0, BaubleIndex + 1);        window.status = MisconstruedDivination;        BaubleIndex++;
		// Indicate the next time we wish to put out a letter		// (LetterSpeed is measured in milliseconds)		TimerID = setTimeout("StartWindowMarquee()", LetterSpeed);	}	else	{		BaubleCounter++;		BaubleIndex = 0;
		if (BaubleCounter == Bauble.length)		    BaubleCounter = 0;		// Here we can put a longer pause between comments		TimerID = setTimeout("StartWindowMarquee()", DivinationDeepBreath);		}}
// This is a specialized function created due to Win2K not allowing for// the comparison to undefined. it will take a value and compare it to// undefined, and if nBit = 1 it will also compare it to an empty string.function Defined(value, nBit){	var bDefined = false;		var nVersion = SearchAppVersion(GlobalWin2000Version);	if (nVersion != -1)	{		if (value != "")			bDefined = true;	}	else	{		if(nBit = 1)		{			if (value != undefined && value == "")				bDefined = true;    	}    	else    	{			if (value != undefined)				bDefined = true;    	}	}	return bDefined;}// This function will search for a string in the appVersion.// It returns a -1 if no match was found, otherwise// it returns the index where the text was found.function SearchAppVersion(SearchString){	/*	examples of navigator.appVersion	4.0 (compatible; MSIE 5.5; Window95)	4.0 (compatible; MSIE 5.01; Windows NT 5.0)	*/	var CurrentVersion;	CurrentVersion = navigator.appVersion;	// Make sure this variable is a string so we can use the search method.	CurrentVersion = CurrentVersion.toString();	var bFoundSpot = CurrentVersion.search(SearchString);	return bFoundSpot;}/////// drop-down menu functions //////////////function dropper(menu, bDrop){	if(bDrop)		menu.style.clip='rect(auto auto auto auto)';	else		menu.style.clip='rect(auto auto 24 auto)';}var MenuItemColor;var bGetMenuItemColor = true;function highlight(menuitem, bHighlight){	if(bHighlight)	{		if(bGetMenuItemColor)		{			MenuItemColor=menuitem.bgColor;			bGetMenuItemColor = false;		}		menuitem.bgColor="#6495ED"; //CORNFLOWER BLUE	}	else		menuitem.bgColor=MenuItemColor;}// Capture Hot Keysfunction HotKey(aMenu){	// don't use a,d,e,f,h,t,v	// ctrl = 17	// alt = 18	// left-arrow = 37	// a=65, b=66, c=67, d=68, e=69, f=70, g=71, h=72, i=73	// m = 77, n=78, o=79, p=80, q=81, r=82, s=83, t=84, u=85, w=87	// This if-statement basically asks: is the alt button down	// and is there another button down other than the alt key.	if(window.event.altKey && window.event.keyCode != 18)	{		switch(window.event.keyCode)		{			case 66: //b				document.location="./bike.htm";				break;						//case 69: //e			//	document.location="./feedback.shtml";			//	break;						//case 73: //i			//	switch(aMenu)			//	{			//		case 0:			//			document.location="./mainpage.shtml";			//			break;			//		case 1:			//			document.location="./../mainpage.shtml";			//	};			//	break;						case 75: //k				document.location="./books.htm";				break;						//case 76: //l			//	document.location="./links.shtml";			//  break;			    		case 77: //m				document.location="./mountsainthelen.htm";				//switch(aMenu)			    //{			    //	case 0:			    //		document.location="./members/Mayne.html";			    //		break;				//	case 1:				//		document.location="./contribution.html";				//};								break;
			//case 79: //o			//	document.location="./movies.shtml";			//	break;			//case 80: //p			//	switch(aMenu)			//	{			//		case 0:			//			document.location="./PicsFrame.html";			//			break;			//		case 1:			//			document.location="./Mayne.html";			//	};			//	break;			//case 83: //s			//	switch(aMenu)			//	{			//		case 0:			//			document.location="./StoryMenu.shtml";			//			break;			//		case 1:			//			document.location="./survivor.html";			//	};			//	break;			case 85: //u			//	switch(aMenu)			//	{			//		case 0:						document.location="./ututility.htm";						break;			//		case 1:			//			document.location="./DeepThunk.shtml";			//	};			//	break;			//case 87: //w			//	document.location="./downloads.htm";			//	break;			//case 88: //x			//	document.location="./pi.shtml";			//	break;			default:				var nDummy = 0;				//if(window.event.keyCode != 37)				//	alert(window.event.keyCode);		};	}}var msgwindow;function openwindow(){	//msgwindow = window.open("http://birdieman.com/1000.html","displaywindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=450,height=350,left=25,top=50");	msgwindow = window.open("http://birdieman.com/1000.html","displaywindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=245,height=200,left=25,top=50");	//msgwindow = window.open("./1000.html","displaywindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=245,height=200,left=25,top=50");}function startTest(){	setTimeout("openwindow()", 500);}function Relocate(NewLocation, LookFor){	var FilePath = document.location;	FilePath = FilePath.toString();	var nFoundSpot = FilePath.search(LookFor);	if (nFoundSpot != -1)	{		document.location = FilePath.substring(0, nFoundSpot) + NewLocation;	}	else		document.write('I have changed the extension of some pages. You can find them all <a href="http://www.birdieman.com">here</a>.');}function UTMenuMouseOver(aTD){	if (!bUTTabCursorSet)	{		// Normally i would do this on load but they are		// not recognized as objects at that point.		bUTTabCursorSet = true;				if (document.all("unrealTab").style != null)			document.all("unrealTab").style.cursor= aCursor;		if (document.all("ututilityTab").style != null)			document.all("ututilityTab").style.cursor= aCursor;		if (document.all("utfavoritesTab").style != null)			document.all("utfavoritesTab").style.cursor= aCursor;	}	if(SamePage(aTD, "true") == (-1) )	{		aTD.style.background = '#FFFFCC';		//aTD.style.background = '#993300';		//aTD.style.background = '#FFFF99';	}}function CatanMenuMouseOver(aTD){	if (!bCatanTabCursorSet)	{		// Normally i would do this on load but they are		// not recognized as objects at that point.		bCatanTabCursorSet = true;				if (document.all("catanFavesTab").style != null)			document.all("catanFavesTab").style.cursor= aCursor;		if (document.all("catanBoardTab").style != null)			document.all("catanBoardTab").style.cursor= aCursor;	}	if(SamePage(aTD, "true") == (-1) )	{		aTD.style.background = '#FFFFCC';	}}function UTMenuMouseOut(aTD){	if(SamePage(aTD, "true") == (-1) )		aTD.style.background = '#D0D0D0';}function UTMenuMouseDown(aTD){	if(SamePage(aTD, "true") == (-1) )		aTD.style.background = '#FF6633';}function UTMenuMouseUp(aTD){	UTMenuMouseOver(aTD);	if(SamePage(aTD, "true") == (-1) )	{		document.location='./' +  aTD.title + '.htm';	}}function CatanMenuMouseUp(aTD){	CatanMenuMouseOver(aTD);	if(SamePage(aTD, "true") == (-1) )	{		document.location='./' +  aTD.title + '.shtml';	}}