// COLLISONWEEK MAIN MENU SCRIPT
// modified 1/13/06
// Feb 5 09 for Mosso

var prefix,strOut,strFont,strArrow;
strFont="Verdana";
//for SSL Use Prefix
secureprefix="https://www.collisionweek.com";
//for no SSL erase Prefix
prefix="";

strArrow="<img border=\"0\" src=\"/site_images/greenarrow.gif\" width=\"7\" height=\"8\">";
strOut =  "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td>";

//--------------------------- NEWS LINKS
arNewsTXT = new Array(

  "Front Page",
  "Research",
  "Features",
  "Items of Note",
//  "Older Headlines",
//  "Industry Calendar",
//  "Letters",
  "Search News"
 )

arNewsURL = new Array(

  "/default.htm",
  "/pastResearch.htm",
  "/pastfeatures.htm",
  "/items.htm",
//  "/recentnews.asp",
//  "/eventscal.htm",
//  "/editors.htm#Letters",
  "/search"
)
strOut += "<p align=\"left\"><font face=\"" + strFont + "\" size=\"1\"><br><b>NEWS</b><font color=\"#FFFFFF\"><br>";

arNews = new Array();
for (i=0; i<arNewsURL.length ; i++) {
    arNews[i] = new Array();
    arNews[i][0] = prefix + arNewsURL[i];
    arNews[i][1] = arNewsTXT[i];
}

for (i=0; i<arNewsURL.length; i++) {
  strOut += "&nbsp;" + strArrow + "&nbsp;<a href=\"" + arNews[i][0] + "\" style=\"color: #FFFFFF\">" + arNews[i][1] + "</a><br>";
}
strOut += "</font></font></p>";

//---------------------------- USER LINKS
arUserTXT = new Array(
  "Log In",
  "Log Off",
  "Register",
  "Subscribe",
  "Renew Subscription",
  "My Account",
  "Request Password"
 )

arUserURL = new Array(
  "/ncw30/login.asp",
  "/ncw30/logoff.asp",
	secureprefix + "/ncw30/register.asp",
	secureprefix + "/ncw30/subInfo.asp",
	secureprefix + "/ncw30/subAccount.asp",
	secureprefix + "/ncw30/subAccount.asp",
  	"/ncw30/passrequest.asp"
)

strOut += "<p align=\"left\"><font face=\"" + strFont + "\" size=\"1\"><b>USER LINKS</b><font color=\"#FFFFFF\"><br>";
arUser = new Array();
for (i=0; i<arUserURL.length ; i++) {
    arUser[i] = new Array();
    arUser[i][0] = prefix + arUserURL[i];
    arUser[i][1] = arUserTXT[i];
}

for (i=0; i<arUserURL.length; i++) {
  strOut += "&nbsp;" + strArrow + "&nbsp;<a href=\"" + arUser[i][0] + "\"style=\"color: #FFFFFF\">" + arUser[i][1] + "</a><br>"  
}

strOut += "</font></font></p>";

//---------------------------- SITE LINKS

arSiteTXT = new Array(
  //"Feedback Form",
  "About",
  "Privacy",
  "Contact"
 )

arSiteURL = new Array(
 //"/feedback.htm",
  "/about.htm",
  "/cw/Privacy.asp",
  "/cw/Contact.asp"
)

strOut += "<p align=\"left\"><font face=\"" + strFont + "\" size=\"1\"><b>HELP & INFO</b><font color=\"#FFFFFF\"><br>";
arSite = new Array();
for (i=0; i<arSiteURL.length ; i++) {
    arSite[i] = new Array();
    arSite[i][0] = prefix + arSiteURL[i];
    arSite[i][1] = arSiteTXT[i];
}

for (i=0; i<arSiteURL.length; i++) {
  strOut += "&nbsp;" + strArrow + "&nbsp;<a href=\"" + arSite[i][0] + "\"style=\"color: #FFFFFF\">" + arSite[i][1] + "</a><br>"  
}
strOut += "</font></font></p>";

//---------------------------- Additional LINKS
// HELP
strOut += "<p align=\"left\"><font face=\"" +strFont+ "\" size=\"1\" color=\"#FFFFFF\">";
strOut += "<img border=\"0\" src=\"/site_images/qMark.GIF\" align=\"left\" width=\"14\" height=\"22\">";
strOut += "<a style=\"color: #FFFFFF\" href=\"" + prefix + "/faq.htm\"> HELP</a></font></p>";

//---------------------------- END
strOut += "</td></tr></table>"

document.write(strOut);

