var strBaseUrl = "http://" + window.location.hostname//"http://scidotdeva";
var strAppsUrl = "http://" + window.location.hostname//"http://scidotdeva";


if (strBaseUrl == "http://www.makebizsimple.com")
	{
	strBaseUrl = "http://www.SterlingCommerce.com";
	document.location.href="http://www.sterlingcommerce.com/solutions/market_solutions/etn/community_mgmt/supplychain_enable/etm/index.html"
	}
if (strAppsUrl == "http://www.makebizsimple.com")
	{
	strAppsUrl = "http://www.SterlingCommerce.com";
	}

if (strBaseUrl == "http://www.sterlingcommerce.ru")
	{
	strBaseUrl = "http://www.SterlingCommerce.com";
	}
if (strAppsUrl == "http://www.sterlingcommerce.ru")
	{
	strAppsUrl = "http://www.SterlingCommerce.com";
	}
	
if (strBaseUrl == "http://www.cedex.com")
	{
	strBaseUrl = "http://www.SterlingCommerce.com";
	}
if (strAppsUrl == "http://www.cedex.com")
	{
	strAppsUrl = "http://www.SterlingCommerce.com";
	}


//var strBaseUrl = "http://www.sterlingcommerce.com";
//var strAppsUrl = "http://www.sterlingcommerce.com";

//////////////////////////////
//THIS IS THE BROWSER DETECTION FUNCTION. IT WILL PROBABLY BE IRRELEVENT IF I USE ONLY 1 STYLESHEET.
//////////////////////////////
function detectMe()
	{
	if (document.getElementById)
		{
		}
	else
		{
		}
	}	
	


if (document.images) {

			homeon = new Image();
            homeon.src = "/images/topmenu/home_on.gif";
			homeoff = new Image();
            homeoff.src = "/images/topmenu/home_off.gif";
			helpon = new Image();
            helpon.src = "/images/topmenu/help_on.gif";
			helpoff = new Image();
            helpoff.src = "/images/topmenu/help_off.gif";
			contacton = new Image();
            contacton.src = "/images/topmenu/contact_on.gif";
			contactoff = new Image();
            contactoff.src = "/images/topmenu/contact_off.gif";
			searchon = new Image();
            searchon.src = "/images/topmenu/search_on.gif";
			searchoff = new Image();
            searchoff.src = "/images/topmenu/search_off.gif";

			home2on = new Image();
            home2on.src = "/images/home/top/home_on.gif";
			home2off = new Image();
            home2off.src = "/images/home/top/home_off.gif";
			help2on = new Image();
            help2on.src = "/images/home/top/help_on.gif";
			help2off = new Image();
            help2off.src = "/images/home/top/help_off.gif";
			contact2on = new Image();
            contact2on.src = "/images/home/top/contact_on.gif";
			contact2off = new Image();
            contact2off.src = "/images/home/top/contact_off.gif";
			search2on = new Image();
            search2on.src = "/images/home/top/search_on.gif";
			search2off = new Image();
            search2off.src = "/images/home/top/search_off.gif";

			}

function img_act(imgName) {
	if (document.images){
    	imgOn = eval(imgName + "on.src");
        document [imgName].src = imgOn;
    }
}

function img_end(imgName) {
	if (document.images){
    	imgOff = eval(imgName + "off.src");
        document [imgName].src = imgOff;
    }
}





////////////////////////////////////////
//GENERIC WINDOW OPENER//////
////////////////////////////////////////

function openNewWindow(myURL, myTitle, myWidth, myHeight)
	{
	window.open(myURL,myTitle,'toolbar=no,width=' + myWidth + ',height=' + myHeight + ',directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no,location=no,copyhistory=no,alwaysraised=yes');
	}




////////////////////////////////////////
//THIS IS THE NETSCAPE TEXT ROLLOVER FUNCTION
////////////////////////////////////////

function nnWrite(what,text) {
  what.document.open();
  what.document.write(text);
  what.document.close();
}

function nnOver(what, href, linktext, align, style) {
    if (document.layers) {
	  if (align=="inflow")
	    var text = '<A HREF="' + href + '" class="' + style + '">' + linktext + '<\/A>';
	  else
        var text = '<div align="' + align + '" class="' + style + '"><A HREF="' + href + '" class="' + style + '">' + linktext + '<\/A></div>';
      nnWrite(what, text);
    }
}

function nnOut(what, href, linktext, align, style) {
    if (document.layers) {
	  if (align=="inflow")
	    var text = '<A HREF="' + href + '" class="' + style + '">' + linktext + '<\/A>';
	  else	
        var text = '<div align="' + align + '" class="' + style + '"><A HREF="' + href + '" class="' + style + '">' + linktext + '<\/A></div>';
      nnWrite(what, text);
    }
}





function makeFooter()
	{
	var text = "";
	text = "<td align=\"center\"><br><br><br><a href=\"http://www.sterlingcommerce.com/contact/Privacy_Usage.html\" target=\"new\" class=\"smallText\">Copyright 2003 Sterling Commerce, Inc., All Rights Reserved.  Privacy and Usage Policy.</a><br><br></td>"
	document.write (text)
	}



/////////////////////////////////////////////////
//WRITE OUT THE HEADER AND TOOLS////
/////////////////////////////////////////////////

function makeHeader2()
	{
	var Text = "";
	Text += "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">";
	Text += "<tr>";
	Text += "<!--BIG BLUE BANNER-->";
	Text += "<td valign=\"top\"><img src=\"/images/topbar_sub.gif\" width=\"590\" height=\"90\" alt=\"Sterling Commerce\" border=\"0\"></td>";
	Text += "<!--DIVIDING SPACE BETWEEN BANNER AND TOOLS-->";
	Text += "<td><img src=\"/images/dot_clear.gif\" width=\"10\" height=\"15\" alt border=\"0\"></td>";
	Text += "<!--BEGINNING OF TOOLS SECTION-->";
	Text += "<td>";
	Text += "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">";
	Text += "<tr>";
	Text += "<td><a href=\"/\" onmouseover=\"img_act('home')\" onmouseout=\"img_end('home')\"><img src=\"/images/topmenu/home_off.gif\" width=\"90\" height=\"22\" alt=\"Home\" border=\"0\" name=\"home\"></a></td>";
	Text += "</tr>";
	Text += "<tr>";
	Text += "<td><a href=\"javascript:openNewWindow('" + strBaseUrl + "/contact/index.asp','Contact',500,400);\" onmouseover=\"img_act('contact')\" onmouseout=\"img_end('contact')\"><img src=\"/images/topmenu/contact_off.gif\" width=\"90\" height=\"22\" alt=\"Contact\" border=\"0\" name=\"contact\"></a></td>";
	Text += "</tr>";
	Text += "<tr>";
//	Text += "<td><a href=\"" + strBaseUrl + "/Help/help.html\" onmouseover=\"img_act('help')\" onmouseout=\"img_end('help')\"><img src=\"/images/topmenu/help_off.gif\" width=\"90\" height=\"24\" alt=\"Help\" border=\"0\" name=\"help\"></a></td>";
	Text += "<td><a href=\"" + strBaseUrl + "/Help/help.html\" onmouseover=\"img_act('help')\" onmouseout=\"img_end('help')\"><img src=\"/images/topmenu/help_off.gif\" width=\"90\" height=\"24\" alt=\"Help\" border=\"0\" name=\"help\"></a></td>";
	Text += "</tr>";
	Text += "<tr>";
	Text += "<td><a href=\"javascript:openNewWindow('" + strBaseUrl + "/Search/index.html','Search',500,400)\" onmouseover=\"img_act('search')\" onmouseout=\"img_end('search')\"><img src=\"/images/topmenu/search_off.gif\" width=\"90\" height=\"22\" alt=\"Search\" border=\"0\" name=\"search\"></a></td>";
	Text += "</tr>";
	Text += "</table>";
	Text += "</td>";
	Text += "<!--END OF TOOLS SECTION-->";
	Text += "</tr>";
	Text += "</table>";
	document.write(Text)
	}


function makeHeader()
	{
	var Text = "";
	Text += "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\">";
	Text += "<tr>"
	Text += "<td align=\"left\"><img src=\"/images/home/top/topbartop.gif\" alt=\"Sterling Commerce\" border=\"0\">";
	Text += "<a href=\"javascript:openNewWindow('" + strBaseUrl + "/contact/index.asp','Contact',500,400);\" onmouseover=\"img_act('contact2')\" onmouseout=\"img_end('contact2')\"><img src=\"/images/home/top/contact_off.gif\" alt=\"Contact\" border=\"0\" name=\"contact2\"></a>";
	Text += "<a href=\"javascript:openNewWindow('" + strBaseUrl + "/Search/index.html','Search',500,400)\" onmouseover=\"img_act('search2')\" onmouseout=\"img_end('search2')\"><img src=\"/images/home/top/search_off.gif\" alt=\"Search\" border=\"0\" name=\"search2\"></a>";
//	Text += "<a href=\"" + strBaseUrl + "/Help/help.html\" onmouseover=\"img_act('help2')\" onmouseout=\"img_end('help2')\"><img src=\"/images/home/top/help_off.gif\" alt=\"Help\" border=\"0\" name=\"help2\"></a>";
	Text += "<a href=\"" + strBaseUrl + "/Help/help.html\" onmouseover=\"img_act('help2')\" onmouseout=\"img_end('help2')\"><img src=\"/images/home/top/help_off.gif\" alt=\"Help\" border=\"0\" name=\"help2\"></a>";
	Text += "<a href='" + strBaseUrl + "' onmouseover=\"img_act('home2')\" onmouseout=\"img_end('home2')\"><img src=\"/images/home/top/home_off.gif\" alt=\"Home\" border=\"0\" name=\"home2\"></a></td>"	
	Text += "</tr>";
	Text += "<tr>";
	Text += "<!--BIG BLUE BANNER-->";
	Text += "<td valign=\"top\" colspan=\"3\"><img src=\"/images/home/top/topbarsub.gif\" alt=\"Sterling Commerce\" border=\"0\"></td>";
	Text += "</tr>";
	Text += "</table>";
	document.write(Text)
	}


////////////////////////////////////////////////////
// Open the Contact window /////////////////////////
//////////////////////////////////////////////////
function openContactWindow() {
        var version = parseInt(navigator.appVersion);
        if (version >= 4)
        var openContactWindow = window.open('http://www.sterlingcommerce.com/contact/index.asp','Contact','width=500,height=400,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,menubars=no'); 
} 







////////////////////////////////////////
//THIS IS THE NETSCAPE MAINNAV ROLLOVER FUNCTION
////////////////////////////////////////

function nnWriteMain(what,text) {
  what.document.open();
  what.document.write(text);
  what.document.close();
}

function nnOverMain(what, href, linktext, align, style) {
    if (document.layers) {
	  if (align=="inflow")
	    var text = '<A HREF="' + href + '" class="' + style + '">' + linktext + '<\/A>';
	  else
        var text = '<div align="' + align + '" class="' + style + '"><A HREF="' + href + '" class="' + style + '">' + linktext + '<\/A></div>';
      nnWriteMain(what, text);
    }
}

function nnOutMain(what, href, linktext, align, style) {
    if (document.layers) {
	  if (align=="inflow")
	    var text = '<A HREF="' + href + '" class="' + style + '">' + linktext + '<\/A>';
	  else	
        var text = '<div align="' + align + '" class="' + style + '"><A HREF="' + href + '" class="' + style + '">' + linktext + '<\/A></div>';
      nnWriteMain(what, text);
    }
}











function menuRollOn(id)
	{
	if (id)
		{
		if (document.layers)
			{
			}
		else
			{
			document.getElementById(id).style.backgroundColor='#6F8DD9';
			}
		}
	}

function menuRollOff(id)
	{
	if (id)
		{
		if (document.layers)
			{
			}
		else
			{
			document.getElementById(id).style.backgroundColor='';
			}
		}
	}


if (document.layers) {	
	if (!window.saveInnerWidth) {
		window.onresize = resizeIt;
		window.saveInnerWidth = window.innerWidth;
		window.saveInnerHeight = window.innerHeight;
	}
	
	function resizeIt() {
		if (saveInnerWidth < window.innerWidth || saveInnerWidth > window.innerWidth || saveInnerHeight > window.innerHeight || saveInnerHeight < window.innerHeight ) {
			window.history.go(0);
		}
	}
}




///////////////////////////////////////
//THIS IS THE BEGINNING OF THE NAVIGATION CODE.
///////////////////////////////////////

function SideNav(primary, secondary, tertiary)
	{
	

	//Begin Sub Areas for About Us 	
	var About_Us		= new Array('About_Us', 'About Us', 'http://www.sterlingcommerce.com/about/','1');
	var Company_Info		= new Array('Company_Info','Company Info','http://www.sterlingcommerce.com/about/companyinfo/','2');
	var Fast_Facts		= new Array('Fast_Facts','Fast Facts', 'http://www.sterlingcommerce.com/about/companyinfo/fastfacts.html','3');
	var Exe_Profiles		= new Array('Exe_Profiles','Executive Profiles','http://www.sterlingcommerce.com/about/companyinfo/eprofiles.html','3');		
	var Clients		= new Array('Clients','Customer Case Studies', strBaseUrl + 'http://www.sterlingcommerce.com/apps/SuccessStories/','3');
	var Global_Locator		= new Array('Global_Locator','Office Locations', 'http://www.sterlingcommerce.com/about/companyinfo/global_locator.html','3');
	var Apparel_Store		= new Array('Apparel_Store','Apparel Store', 'http://www.kingpro.com/sterling/','3');
    var Testimonials			= new Array('Testimonials','Testimonials',strBaseUrl + 'http://www.sterlingcommerce.com/about/testimonials.html','2');
	var News			= new Array('News','News',strBaseUrl + '/apps/pressreleases/','2');
	var Press_Releases	= new Array('Press_Releases','Press Releases', strBaseUrl + '/apps/pressreleases/pressreleases.asp','3');
	var Recent_Coverage		= new Array('Recent_Coverage','Recent News Coverage', strBaseUrl + '/about/news/inthenews.html','3');
	var Media_Center		= new Array('Media_Center','Media Center', strBaseUrl + '/about/news/mediacenter.html','3');
	var Events		= new Array('Events','Events', strBaseUrl + '/apps/events/','2');
	var Partners		= new Array('Partners','Partners', strBaseUrl + '/about/partners/','2');
	var Partner_Showcase	= new Array('Partner_Showcase','Partner Spotlight', strBaseUrl + '/about/partners/showcase.html','3');
	var Partnership		= new Array('Partnership','Partnership With SC', strBaseUrl + '/about/partners/partnership.html','3');
	var Career		= new Array('Career','Career', strBaseUrl + '/apps/jobcenter/','2');
	var Overview		= new Array('Overview','Overview', strBaseUrl + '/about/career/overview.html','3');
	var Job_Search		= new Array('Job_Search','Job Search', strBaseUrl + '/apps/jobcenter/job_search.asp','3');
	var Job_Events		= new Array('Job_Events','Job Events', strBaseUrl + '/about/career/job_events.html','3');
	var Work_Benefits		= new Array('Work_Benefits','Work Benefits', strBaseUrl + '/about/career/benefits.html','3');
	var FAQ			= new Array('FAQ','FAQ', strBaseUrl + '/about/career/faq.html','3');
	var My_SC		= new Array('My_SC','My Career Profile', strAppsUrl + '/apps/JobCenter/mysc.asp','3');

	var subAbout		= new Array(
		About_Us,
		Company_Info,
		Fast_Facts,
		Exe_Profiles,
		Clients,
		Global_Locator,
		Apparel_Store,
		Testimonials,
		News,
		Press_Releases,
		Recent_Coverage,
		Media_Center,
		Events,
		Partners,
		Career,
		Overview,
		Job_Search,
		Work_Benefits,
		FAQ,
		My_SC
		);



//Begin Sub Areas for Customer Support
	var Customer_Support	= new Array('Customer_Support', 'Customer Support', strBaseUrl + '/customer/', '1');
	var Outsourcing_Center	= new Array('Outsourcing_Center', 'Outsourcing Center', strBaseUrl + '/Customer/outsourcing.html', '2');
	var Education		= new Array('Education','Educational Services', strBaseUrl + '/customer/education.html','2');
	var Training_Op		= new Array('Training_Op','Training Options','/customer/Training_Options.html','3');
	var TrainingTracks	= new Array('TrainingTracks','Training Tracks','/customer/training_tracks.html','3');
	var Calendar		= new Array('Calendar','Course Calendar','http://education.sterlingcommerce.com/Courses/CalendarShell.asp','3');
	var Search		= new Array('Search','Course Search','http://education.sterlingcommerce.com/Courses/CourseSearch.asp','3');
	var Training_Centers		= new Array('Training_Centers','Training Centers', strBaseUrl + '/customer/facilities.html','3');	
	var Special_Requests		= new Array('Special_Requests','Special Requests', strBaseUrl + '/customer/special.html','3');	
	var Testimonials = new Array('Testimonials','Testimonials','/customer/Success_Factors.html','3');
	var Technical_Support	= new Array('Technical_Support','Technical Support', strBaseUrl + '/customer/tech_support.html','3');
	var Support_on_Demand	= new Array('Support_on_Demand','Support on Demand','https://support.sterlingcommerce.com','2');		
	var Commerce		= new Array('Commerce','Commerce','https://support.sterlingcommerce.com','3');
	var Gentran		= new Array('Gentran','Gentran','https://support.sterlingcommerce.com','3');
	var Connect		= new Array('Connect','Connect','https://support.sterlingcommerce.com','3');
	var Vector		= new Array('Vector','Vector','http://www.scvector.com','3');

	var subCustomer		= new Array(
		Customer_Support,
		Support_on_Demand,
		Technical_Support,	
		Outsourcing_Center,
		Education,
		Training_Op,
		TrainingTracks,
		Search,
		Calendar,
		Training_Centers,
		Special_Requests,
		Testimonials
		);



//Begin Sub Areas for Solutions
	var Solutions		= new Array('Solutions', 'Solutions', strBaseUrl + '/solutions/', '1');
	var Industry_Solutions	= new Array('Industry_Solutions','Industry Solutions', strBaseUrl + '/apps/industry_solutions/','2');
	var Integration_Solutions	= new Array('Integration_Solutions','Integration Solutions', strBaseUrl + '/solutions/market_solutions/','2');
	var Partner_int		= new Array('Partner_int','Fax to EDI Integration', strBaseUrl + '/solutions/market_solutions/etn/index.html','3');
	var data_int		= new Array('data_int','EDI to Fax Integration', strBaseUrl + '/solutions/market_solutions/sdd.html','3');
	var enter_int		= new Array('enter_int','Enterprise Integration', strBaseUrl + '/solutions/market_solutions/e-biz_integration.html','3');
	var Trading_Networks	= new Array('Trading_Networks','', strBaseUrl + '/solutions/market_solutions/etn/index.html','3');
	var supply_chain	= new Array('supply_chain','', strBaseUrl + '/solutions/market_solutions/etn/community_mgmt/supplychain_enable/etm/index.html','3');
	var Professional_Services	= new Array('Professional_Services','Professional Services', strBaseUrl + '/solutions/professional_services/prof_services_overview.html','2');
	var Outsourcing		= new Array('Outsourcing','Outsourcing', strBaseUrl + '/solutions/outsourcing/index.html','2');
	var Products		= new Array('Products','Products&nbsp;&amp;&nbsp;Services', strBaseUrl + '/apps/products','2');
	var product_train		= new Array('product_train','Product Training', strBaseUrl + '/customer/education.html','3');
	var Solution_Finder	= new Array('Solution_Finder','Solution Finder', strBaseUrl + '/solutions/solution_finder/','2');

	var subSolutions		= new Array(
		Solutions,
		Industry_Solutions,		
		Integration_Solutions,
		Partner_int,
			data_int,
		enter_int,
		Trading_Networks,
	    supply_chain,			
		Professional_Services,
		Outsourcing,
		Products,
		product_train
		);



//Begin Sub Areas for Resource Center
	var Resource_Center	= new Array('Resource_Center', 'Resource Center', 'http://www.sterlingcommerce.com/resourcecenter/', '1');
	var Find_It_Fast  = new Array('Find_It_Fast','Find It Fast', strBaseUrl + '/resourcecenter/terms.html','2');
	var Reference_Desk   = new Array('Reference_Desk','Reference Desk', 'http://www.sterlingcommerce.com/resourcecenter/RefDesk.html','2');
	var Learning_Center	= new Array('Learning_Center', 'Learning Center', 'http://www.sterlingcommerce.com/resourcecenter/learning.html', '2');
	var Solution_Finder2	= new Array('Solution_Finder2','Solution Finder','http://www.sterlingcommerce.com/solutions/solution_finder/index.asp','2');
	
	var subResource		= new Array(
		Resource_Center,
		Find_It_Fast,
		Reference_Desk,
		Learning_Center
		);



//Begin Sub Areas for Software Shop
	var Software_Shop		= new Array('Software_Shop','Software Shop','http://www.releasesoftware.com/_sterlingcommercesoftwareshop/cgi-bin/pd.cgi','1');
	var shopping_cart		= new Array('shopping_cart','Shopping Cart','javascript:openShopClosed();','3');
	var shop_help		= new Array('shop_help','Shop Help','javascript:openShopClosed();','3');
	var shop_account		= new Array('shop_account','Shop Account','javascript:openShopClosed();','3');
	
	var subSoftware		= new Array(
		Software_Shop,
		shopping_cart,
		shop_help,
		shop_account
		);



//Begin Assembly of Main Section
	var mainMenu		= new Array(
		subAbout,
		subSolutions,
		subCustomer,
		subSoftware,
		subResource	
		);
		
		
	




////////////////////////////////////////////////////////////////////////////////////////////////////////////
//																																	//
//																																	//
//                                 DON'T TOUCH CODE BELOW HERE!!!			//
//																																	//
//																																	//
////////////////////////////////////////////////////////////////////////////////////////////////////////////



	var strCode = "";
	var navCode = "";
	var strMyCode = "";
	var strSubCode = "";
	var Boo = 0;
	strCode += "<span class=\"leftNavSubSection\" style=\"position:relative\" height=\"1px\"><layer name=\"mine\" height=\"0px\"></layer></span>";
	strCode += "<table width=\"190\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" bgcolor=\"#B0C0EA\">\n";
			strSubCode += "<table width=\"190\" height=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"#708dd9\">\n";
	for (var i = 0; i < mainMenu.length; i++)
		{
		Boo = eval(mainMenu[i].length)
//		alert(mainMenu[i][0][0]);
//		alert(mainMenu[i].length);
		if (mainMenu[i][0][0] == primary)
			{
			strCode += "<tr Id=\"line" + i + "\"><td bgcolor=\"#6F8DD9\">&nbsp;</td><td bgcolor=\"#6F8DD9\"><a href=\"" + mainMenu[i][0][2] + "\" class=\"leftNavMainOn\">" + mainMenu[i][0][1] + "</a></td></tr>\n";

			for (var j = 0; j < Boo; j++)
				{
				if (mainMenu[i][j][3] == '2')
					{
					if (mainMenu[i][j][0] == secondary)
						{
						strSubCode += "<tr><td><img src=\"/images/sm_arrow_right_blue.gif\" width=\"14\" height=\"14\" alt=\"\" border=\"0\"></td><td width=\"175\"><a href=\"" + mainMenu[i][j][2] + "\" class=\"leftNavSubToplevel\">" + mainMenu[i][j][1] + "</a></td></tr>\n";

						// this is the selected second level line
						}
					else
						{
						strSubCode += "<tr><td><img src=\"/images/dot_clear.gif\" width=\"14\" height=\"15\" alt=\"\" border=\"0\"></td><td width=\"175\"><span class=\"leftNavSubSection\" style=\"position:relative\"><layer width=\"175\" onMouseOver=\"nnOver(this, '" + mainMenu[i][j][2] + "', '" + mainMenu[i][j][1] + "', 'inflow', 'leftNavSubSectionOver')\" onMouseOut=\"nnOut(this,'" + mainMenu[i][j][2] + "','" + mainMenu[i][j][1] + "','inflow','leftNavSubSection')\"><a href=\"" + mainMenu[i][j][2] + "\" class=\"leftNavSubSection\">" + mainMenu[i][j][1] + "</a></layer></span></td></tr>\n";
						//this is the non selected second level line
						}
					}
				if (mainMenu[i][j][3] == '3')
					{
					if (mainMenu[i][j][0] == tertiary)
						{
						if (document.layers)
							{
							strSubCode += "<tr><td>&nbsp;</td><td width=\"175\"><a href=\"" + mainMenu[i][j][2] + "\" class=\"leftNavSubmenuOver\"><b>" + mainMenu[i][j][1] + "</b></a></td></tr>\n";
							//this is the selected third level line
							}
						else
							{
							strSubCode += "<tr><td>&nbsp;</td><td width=\"175\"><a href=\"" + mainMenu[i][j][2] + "\" class=\"leftNavSubmenu\"><b>" + mainMenu[i][j][1] + "</b></a></td></tr>\n";
							//this is the selected third level line
							}
						}
					else
						{
						strSubCode += "<tr><td>&nbsp;</td><td width=\"175\"><span class=\"leftNavSubmenu\" style=\"position:relative\"><layer width=\"175\" onMouseOver=\"nnOver(this, '" + mainMenu[i][j][2] + "', '" + mainMenu[i][j][1] + "', 'inflow', 'leftNavSubmenuOver')\" onMouseOut=\"nnOut(this,'hi.html','" + mainMenu[i][j][1] + "','inflow','leftNavSubmenu')\"><a href=\"" + mainMenu[i][j][2] + "\" class=\"leftNavSubmenu\">" + mainMenu[i][j][1] + "</a></layer></span></td></tr>\n";
						//this is the non selected third level line
						}
					}
				}
			}
		else
			{
			strCode += "<tr id=\"line" + i + "\"><td><img src=\"/images/dot_clear.gif\" width=\"14\" height=\"15\" alt=\"\" border=\"0\"></td><td ID=\"Cell1\" width=\"100%\" valign=\"middle\" width=\"175\"><span class=\"leftNavSubSection\" style=\"position:relative\"><layer width=\"140\" onMouseOver=\"nnOverMain(this, '" + mainMenu[i][0][2] + "', '" + mainMenu[i][0][1] + "', 'inflow', 'leftNavMainOffOver')\" onMouseOut=\"nnOutMain(this,'" + mainMenu[i][0][2] + "','" + mainMenu[i][0][1] + "','inflow','leftNavMainOff')\"><a href=\"" + mainMenu[i][0][2] + "\" class=\"leftNavMainOff\" onMouseOver=\"menuRollOn('line" + i + "');\" onMouseOut=\"menuRollOff('line" + i + "');\">" + mainMenu[i][0][1] + "</a></layer></span></td></tr>"
			}
			Boo = 0;
		}
	strSubCode += "<tr><td height=\"100%\" bgcolor=\"#6F8DD9\">&nbsp;</td><td class=\"TopLevelRolloverOnBG\">&nbsp;</td></tr>" + "</table>\n\n"	

	strCode += "</table>\n\n"

	strMyCode = strCode + "<table width=\"100%\" border=\"0\" cellpadding=0 cellspacing=0><tr><td bgcolor=white height=\"10\"><img src=\"/images/dot_clear.gif\" width=\"15\" height=\"10\" alt border=\"0\"></td></tr></table>"+ strSubCode

//alert(strCode);

document.write (strMyCode)
	}

