
var banners = [["/en/ProductList.asp", "../images/1a.gif"],
               ["/en/ProductList.asp", "../images/2a.gif"],
               ["/en/ProductList.asp", "../images/3a.gif"],
               ["/en/ProductList.asp", "../images/4a.gif"],
               ["/en/ProductList.asp", "../images/5a.gif"]
               ];
               //["/markets/broadband.html", "../images/broadband.gif"],

var factoids = [["../images/cod.gif", "The size of bearing products range from &oslash; 150mm to &oslash; 5000mm, widely used in radars, wind powers, solar energy, cranes..."]
               ];
                //["../images/broadband.jpg", "In one year, Amphenol Times Fiber Communications produces almost enough cable to reach from the earth to the moon and back."],
                //["../images/industrial.jpg", "Lighting the Eiffel Tower took 20 mountain climbers, 44,000 lbs of lights, and some seriously high performance Amphenol connectors."],
                //["../images/it.jpg", "Virtually all internet traffic passes through an Amphenol interconnect somewhere along its path."],
                //["../images/medical.jpg", "Working with leading medical device manufacturers, Amphenol provides interconnect solutions to prolong the lives of millions."],
                //["../images/milAero.jpg", "Amphenol's Zero-G series connectors tolerate temperature fluctuations between -170 and 280 degrees, and can withstand over 175,000 thermal cycles."],
                //["../images/mobileDevices.jpg", "In 2007 more than half of the world's 1.1 billion produced phones included at least one Amphenol component."],
                //["../images/mobileNetworks.jpg", "Amphenol is the only company that can support the entire interconnect requirements of a cellular infrastructure system."],
                //["../images/automotive.jpg", "One Amphenol hybrid car connector handles as much electrical power as a small town house complex."],

window.addEvent('domready', function() {
  // random factoid
  var fact_index = Math.floor(Math.random()*factoids.length);
  $('home_fact_pic').src = factoids[fact_index][0];
  $('home_fact_text').innerHTML = factoids[fact_index][1];

  // random banner
  var ban_index = Math.floor(Math.random()*banners.length);
  var banner = $('product_banner');
  banner.getElement('a').href = banners[ban_index][0];
  banner.getElement('img').src = banners[ban_index][1];
});




