var agt = navigator.userAgent.toLowerCase();
var vrMajor = parseInt(navigator.appVersion);
var vrMinor = parseFloat(navigator.appVersion);
var isIE = (agt.indexOf("msie") != -1);
var isNN  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1)
                && (agt.indexOf('compatible') == -1)));
var isOpera = this.opera = (agt.indexOf("opera") != -1);

var pageParams = document.location.search.substring(1).split(",");

//----------

function langJ()
{
document.location.href = (new String(document.location.href).replace(".org",".jp"));
}

function langE()
{
document.location.href = (new String(document.location.href).replace(".jp",".org"));
}

//----------

var rColors = ["purple","blue","green","orange","red"];
function writeRainbow(word)
{
wl = word.length;
rl = rColors.length;
for (var i=0; i<wl; i++)
  document.write("<span style='color:"+rColors[i%rl]+"'>"+word.substr(i,1)+"</span>");
}

//----------

function writeEmailLink(s1,s2,s3,s4,s5)
{
  s0 = s1+"@"+s2+"."+s3;
  if (!s4)
    s4 = s0;
  if (s5)
    s0 += "?"+s5
  document.write("<a class='expb' href='mailto:"+s0+"'>"+s4+"</a>");
}

function writeSWEmailLink(s1,s4,s5)
{
  writeEmailLink(s1,"spaceward","org",s4,s5);
}

function writeInfoEmailLink(s4,s5)
{
  writeEmailLink('inbox','spaceward','org',s4,s5);
}

function writePPEmailField()
{
  document.write("<input type='hidden' name='business' value='ben"+"@"+"spaceward.org'>");
}


//-----------------------  SPONSORS
var sponsors = [

["NASA Centennial Challenges","centennialchallenges.nasa.gov","sponsors/NASA/nasa.100h.jpg","nasaCC",
 "In mid-2004, we attended NASA <a href='http://centennialchallenges.nasa.gov' target='exLinkWin' class='expb'>Centennial Challenge Program</a>'s\
 opening workshop, and discovered that we share a common passion for efficient power beaming and super-strong tether material.\
 A collaboration was thus only a matter of time, and we are excited to have NASA CC's sponsorship of a $4,000,000 prize purse for our competitions through the year 2010.<p>\
 In addition to providing the prize purse, NASA Centennial Challenge Program is providing invaluable help with administration, public relations, and technical details."],

 ["SPIE","spie.org","sponsors/SPIE/SPIElogostandard.200w.jpg","SPIE",
 "SPIE is an international membership society, serving scientists and engineers in industry, academia, and government, as well as companies producing leading-edge products. \
 SPIE constituents work in a wide variety of fields that utilize some aspect of optics and photonics, which is the science and application of light. \
 More specifically, optics is a branch of physics that examines the behavior and properties of light and the interaction of light with matter. \
 Photonics is the science and technology of generating, controlling, and detecting photons, which are particles of light.<p>SPIE assumed a natural leadership role and is assisting us with access to the optical industry, without which the games would not have been possible."],
 
["g2-engineering","www.g2-engineering.com","sponsors/g2/g2-100h.jpg","g2",
 "<b><a class='expb' target='exLinkWin' href='http://www.g2-engineering.com'>g2 Engineering</a> - Precision engineering products - <i>by engineers, for engineers.</i>.</b><p>\
 g2 Engineering manufactures and sells ruggedized precision kinematic couplings, capable of supporting ton-class loads, and able to operate in field conditions.<p>\
 Kinematic couplings are used in precision mechanical assemblies, in scientific, aerospace, and manufacturing applications."],

["TRUMPF Inc.","www.trumpf-laser.com","sponsors/Trumpf/logo-trumpf.129h.jpg","trumpf",
 "<b><a class='expb' target='exLinkWin' href='http://www.trumpf-laser.com'>TRUMPF</a> - Industrial Laser Technology.</b><p>\
 The TRUMPF Group is one of the world's leaders in the field of production technology. TRUMPF innovations set the pace - in machine tools for sheetmetal and material processing,\
 in laser technology, electronics and in medical technology. They set technical standards and open up new and more productive options to users.<p>\
 TRUMPF is distinctive for its development of new technologies and high-performance laser systems and beam sources, swift translation of technological concepts into user-oriented innovations, high standards of quality and reliable customer service.<p>\
 TRUMPF took a natural interest in the Power Beaming challenge, and they are providing their top-of-the-line laser system for use by the team."],

["Bosch-Rexroth","www.boschrexroth-us.com/framingshop","sponsors/Bosch_Rexroth/logo.80h.jpg","bosch",
 "<b><a class='expb' target='exLinkWin' href='http://www.boschrexroth-us.com/framingshop'>Bosch-Rexroth</a> - High-precision industrial strength framing.</b><p>\
 Bosch-Rexroth are the manufacturers of high-precision industrial strength framing and actuation systems - anything and everything you\
 need to build a complete factory floor system from modular components.  Automation controls are their bay area distributors.\
 A large portion of our setup has been built from their components, and their level of service and ability to turn around rush order in less\
 than 24 hours was a life saver."],

["Strong Entertainment Lighting","www.strongint.com","sponsors/strong-100h.jpg","strong",
 "<b><a class='expb' target='exLinkWin' href='http://www.strongint.com'>Strong Entertainment Lighting</a> - Advanced Lighting Products.</b><p>\
 Strong Entertainment Lighting Products are recognized the world over for their dependability and unequalled performance.\
 Special thanks to Paul Rabinovitz, whose presence at the competition made it all possible.<p>\
 Strong Follow Spots, SkyTrackerﾮ Searchlights, Strong Britelights, Nocturn Ultraviolet Lighting Fixtures and Paints -\
 Everything you need to bring excitement to your entertainment venue.<p>\
 From The Three Tenors to Billy Joel, from the Luxor to the Space Shuttle, you'll witness the power and predictability of\
 Strong Entertainment Lighting products.  Strong is a division of Ballantyne of Omaha."],

["Axis Communications","www.axis.com","sponsors/Axis/Axis.200w.jpg","axis",
 "<b><a class='expb' target='exLinkWin' href='http://www.axis.com'>Axis Communications</a> <a class='expb' target='exLinkWin' href='http://www.axis.com/products/cam_214/index.htm'>PTZ-214</a> - The Cadillac of Pan-Tilt-Zooms.</b><p>\
 Actually, all of the choices on Axis Communication product line are Cadillacs. With non-compromising quality, an Axis product was the natural choice for our Vantage-Point multipurpose camera located on the crane."],

["Oregon Scientific","www.atc2k.com","sponsors/OregonScientific/atc2k.200w.jpg","oregon",
 "<b><a class='expb' target='exLinkWin' href='http://www.oregonscientific.com'>Oregon Scientific</a> <a class='expb' target='exLinkWin' href='http://www.atc2k.com'>ATC2K</a> - Waterproof Helmet Cam.</b>\
 If you're going to take one thing with you when spear hunting sharks, the ATC2K is it. And a spear, of course. Helmet-mounted, water-proof, solid-state video camera, records directly to an SD card. Weighs less than a pound.\
 1001 uses, as documented on their web site.  Use 1002: get in close to the moving climbers."],

["Omega Engineering","www.omega.com","sponsors/Omega/Omega.200w.gif","omega",
 "<b><a class='expb' target='exLinkWin' href='http://www.omega.com'>Omega Engineering</a>'s <a class='expb' target='exLinkWin' href='http://www.omega.com/iseries/iLD/iLD.htm'>iLD</a> - Large color Displays.</b>\
 Like all iSeries meters, the new BIG Display can be programmed to change colors between RED, AMBER, and GREEN at any set point or alarm point. For example, the instrument can be programmed to display the process value in GREEN during warm-up, switching to AMBER to signal the normal operating range, and in RED to signal an alarm condition. The changes in color are quickly seen from a distance, and equipment operators can intuitively react to changing conditions."],
 
["AccesIO","www.accesio.com","sponsors/AccesIO/ACCESLogo.180w.jpg","accesIO",
 "<b><a class='expb' target='exLinkWin' href='http://www.accesio.com'>AccesIO</a> - I/O Data and Control products.</b><p>\
 AccesIO supplies an extensive range of analog input, analog output, digital, serial communication, and isolated I/O boards and solutions.\
 ACCES also offers complete systems, integration services and enclosures with a quick turn around on custom projects, including software.<p>\
 AccesIO products and custom software are used to monitor and control the Power Beaming competition, the Strong Tether challenge, and the race track of the Great Light Racer Championship."],

["Firestone","www.firestone.com","sponsors/Firestone/Firestone.200w.jpg","firestone",
 "<b><a class='expb' target='exLinkWin' href='http://www.firestone.com'>Firestone</a>'s <a class='expb' target='exLinkWin' href='http://www.firestoneindustrial.com/north_america'>industrial air springs</a></b> - Firestone Industrial Products has the largest North American infrastructure of any air spring manufacturer. Our experience and technical innovation dates to 1938 with a patent for a pneumatic suspension device to be trademarked the Airide spring. We continue to expand and innovate for our customers."],

["Nanotech Now","www.nanotech-now.com","sponsors/nanotech-now/logo.200w.gif","nanotech-now",
 "<b><a class='expb' target='exLinkWin' href='http://www.nanotech-now.com'>Nanotech Now</a> is a premier online resource for Nano technology related information."]

];


var partners = [

["ASM","www.asminternational.org","sponsors/asm-100h.jpg","asm",
 "Founded in 1913, <a target='exLinkWin' class='expb' href='http://www.asminternational.org'>ASM International</a> has existed to provide a means for exchanging information and facilitating professional interaction\
 between materials professionals all over the world. Given our strong emphasis on materials technology, ASM is a natural partner in any Space Elevator activity."],
 
["NSS","www.nss.org","sponsors/nss-60h.jpg","nss",
 "The <a target='exLinkWin' class='expb' href='http://www.nss.org'>National Space Society</a> (NSS) is an independent, international, educational, grassroots nonprofit 501(c)3 organization dedicated to the creation of a spacefaring civilization.\
 The NSS has more than 22,000 members, and 75 chapters in the United States, Canada, Mexico, Australia, Germany, Ireland, and the United Kingdom.\
 The NSS, founded in 1974 by Wernher von Braun, is widely acknowledged as the preeminent citizenﾒs voice on space."],

["AIAA","www.aiaa.org","sponsors/aiaa-80h.jpg","aiaa",
 "The <a target='exLinkWin' class='expb' href='http://www.aiaa.org'>American Institute of Aeronautics and Astronautics</a> (AIAA) is the premier aerospace professional organization in the US,\
 and we intend to use this collaboration to make our competition more robust.\
 AIAA representatives will be a part of all design groups dealing with rules, engineering and judging, and eventually peer-review the rules and design of the competition."]

];


function writeSponsorRowFull(list,n)
{
document.write("<tr><td align='center' valign='top' width=200>");
document.write("<a name='"+list[n][3]+"'>");
document.write("<a target='exLinkWin' href='http://" + list[n][1] + "'>");
document.write("<img border=0 src='images/" + list[n][2] + "' alt='" + list[n][0] + "'></a>");
document.write("</td><td align='left' valign='top' class='grayBox'>");
document.write(list[n][4]);
document.write("</td></tr>");
}

function writeSponsorTableFull(list)
{
document.write("<table align='center' cellspacing=20 border=0 width=900>");
for (var i=0; i<list.length; i++)
  writeSponsorRowFull(list,i);
document.write("</table>");
}

function writeSponsorLogo(list,n)
{
document.write("<a target='exLinkWin' href='http://" + list[n][1] + "'>");
document.write("<img border=0 src='images/" + list[n][2] + "' alt='" + list[n][0] + "'></a>");
}

function writeSponsorLogos(list)
{
document.write("<div style='text-align:center'>");
for (var i=0; i<list.length; i++)
  {
  writeSponsorLogo(list,i);
  document.write("<p>");
  }
document.write("</div>");
}


