/*
	networkbar.js
	Copyright 2004 Christopher M. Ingram.
		There are no restrictions on the use of this file so long as
		copyright information and this notice is kept in tact.

/*
	Configuration
	asSites is a 2D array. Element[0] is the link text, Element[1] is the URL.
	sSeperator is placed between links. It's used twice after the first URL.
	
	asRandom is a 2D array similar to asSites. Only one item from asRandom will show.
	
	sMessage is a string displayed after the links. It may be set elsewhere.
*/
var asSites = [["AllYourTech.com","http://allyourtech.com/"],
	["TechDiscussions.com","http://techdiscussions.com/forums/"],
	["SECOM Group","http://secom.linemanhosting.com/"],
	["Mid Atl Gaming","http://magaming.com/"],
	["Hackr.org","http://hackr.org/"],
	["Souken Group","http://soukengroup.com/"],
	["BeginnersCode.com","http://www.beginnerscode.com/"]];
	
var asRandom = [["Lineman","http://rolliehawk.com/blog"],
	["Isreal","http://jasonbraggs.com/"],
	["Neur0","http://neur0.com/"],
	["G0es","http://g0es.net/"],
	["Refresh","http://technogeneric.org/"],
	["Mudcat","http://ccherry.typepad.com/tunnelvision/"],
	["Telemachus","http://artificialminds.net/"],
	["Muddymoose","http://www.jeremysell.com/"],
	["Cold Drink","http://blog.christopheringram.com/"]
];

var sMessage = "";

var sSeperator = "/";

/*
	The following code writes the network bar.
*/
document.write("<div id=\"networkbar\">");

for(iIndex = 0; iIndex < asSites.length; iIndex++){
	scURL = new String(document.URL);
	if(scURL.indexOf(asSites[iIndex][1]) == 0){
		document.write(" <a class=\"networkbar\" style=\"font-weight: bold;\" href=\"" + asSites[iIndex][1] + "\">" + asSites[iIndex][0] + "</a> ");
	} else {
		document.write(" <a class=\"networkbar\" href=\"" + asSites[iIndex][1] + "\">" + asSites[iIndex][0] + "</a> ");
	}
	if(iIndex < (asSites.length - 1)) document.write(sSeperator);
	if(iIndex == 0) document.write(sSeperator);
}

/*
document.write(sSeperator);
document.write(sSeperator);

var iRandomIndex = Math.round(Math.random() * (asRandom.length - 1));
document.write(" <a class=\"networkperson\" href=\"" + asRandom[iRandomIndex][1] + "\">" + asRandom[iRandomIndex][0] + "</a> ");
*/

if(sMessage) document.write(sMessage); 


document.write("</div>");

