function createMainLink (theName,theID,theWidth,theHeight,thebackground,theLink) {
	//if(document.layers) document.write('<td background="'+thebackground+'" align="center" valign="top" class="topNavNetscape"><ilayer id="'+theID+'ButtonParent" visibility="hide"><layer id="'+theID+'Button" width="'+theWidth+'" height="'+theHeight+'">');
	//else
	document.write('<td background="'+thebackground+'" valign="top" align="center" class="topNav" width="'+theWidth+'" height="'+theHeight+'" id="'+theID+'Button">');

	document.write('<img src="/images/spacer.gif" width="1" height="3" alt=""><br>');
	if(theLink) document.write('<a href="'+theLink+'" target="_blank">');
	document.write('<center>'+theName+'</center>');
	if(theLink) document.write('</a>');

	//if(document.layers) document.write('</layer></ilayer>');
	document.write('</td>');
}

function createSubLink (theSubName,theSubID,theSubWidth,theSubHeight,theSubLink,theParentID,hasChild) {
	var theOutput = "";
	theOutput += '<tr><td><img src="/images/spacer.gif" width="1" height="'+theSubHeight+'" alt=""></td>';
	if(document.layers) {
		theOutput += '<td valign="middle" class="dropdownNetscape"><ilayer id="'+theSubID+'ButtonParent"><layer id="'+theSubID+'Button" width="'+theSubWidth+'" height="'+theSubHeight+'">';
	} else {
		theOutput += '<td valign="top" class="dropdown" width="'+theSubWidth+'" height="'+theSubHeight+'" id="'+theSubID+'Button">';
	}
	if(document.layers) theOutput += '<img src="/images/spacer.gif" width="1" height="2" alt=""><br>';
	if(theSubLink && !hasChild) theOutput += '<a href="'+theSubLink+'" onmouseover="subRollover(\''+theSubID+'Button\',\''+theParentID+'\',\''+dropdownBGcolorOver+'\');" onmouseout="subRollover(\''+theSubID+'Button\',\''+theParentID+'\',\''+dropdownBGcolor+'\');">';
	else if(theSubLink && hasChild) theOutput += '<a href="'+theSubLink+'">';
	theOutput += "<div class='indent'><nobr>" + theSubName + "<img src='/images/nav_bullet.gif' width='15' height='14' alt='' border='0'></nobr></div>";
	if(theSubLink) theOutput += '</a>';
	if(document.layers) theOutput += '</layer></ilayer>';
	theOutput += '</td><td><img src="/images/spacer.gif" width="1" height="1" alt=""></td>';
	theOutput += '</tr>';
	return theOutput;
}

function mainRollover(theRollover,theState) {
	theImageName=document.images[theRollover].src;
	theImageName=theImageName.substr(0,theImageName.length-4);
	if (theImageName.indexOf("_over") != -1) theImageName = theImageName.substr(0,theImageName.length-5);
	theImageName = theImageName + theState + ".gif";
	document.images[theRollover].src = theImageName;
}


function subRollover(theRollover,theRolloverParent,theBackgroundColor) {
	if(ns4) document[theRolloverParent].document[theRollover + "Parent"].document[theRollover].bgColor = theBackgroundColor;
	else {
		var whichBackground = getReference(theRollover);
		whichBackground.backgroundColor = theBackgroundColor;
	}
}

// IE3 safe image switching code
var goodBrowser = 0;

if(document.images){
        // enable rollovers
        goodBrowser = 1;
        
        //image preloading stuff
        //put your images that will be used into a comma delimited
        //list on the next line... follow the example =)
        var preLoad = new Array('/images/nav_about_over.gif','/images/nav_industries_over.gif','/images/nav_principals_over.gif','/images/nav_professionalServices_over.gif','/images/nav_specialtyServices_over.gif');

        //don't touch this (it does the pre-loading for you)
        for(var i = 0; i < preLoad.length;i++){
                var k = new Image();
                k.src = preLoad[i];
        }
        
}

function flipper(){
        if(goodBrowser == 1){
                for(var i = 0; i < flipper.arguments.length; i += 2){
                document.images[flipper.arguments[i]].src = flipper.arguments[i+1];
                }
        }

}

function popWindow(theURL,theName,theOptions){
        var newWin = window.open(theURL,theName,theOptions);
        newWin.focus();
}