function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = func;
    } else {
        window.onload = function() {
            oldonload();
            func();
        }
    }
}

addLoadEvent(function() {

  var productinfo = new Array();

  productinfo [1] = new Array();
  productinfo [1] [0] = '<a href="detail.aspx?ID=85"><img src="images/content_right_bear.jpg" border="0" alt="" width="214" height="186"></a>';
  productinfo [1] [1] = '<font color="#0099CC"><b><i><a href="detail.aspx?ID=85">Bear Lovie</a></i></b></font>';
  productinfo [1] [2] = '<font color="#66CC66" size="1">This irresistible lovie contains bright patchwork colors and a soft plush backing. His warm personality and fun-loving face is sure to win the hearts of children. Small in size, lovies are the perfect take-along friend. Comes packed in adorable toy box.</font>';

  productinfo [2] = new Array();
  productinfo [2] [0] = '<a href="detail.aspx?ID=21"><img src="images/content_right_babystarter.jpg" border="0" alt="" width="214" height="186"></a>';
  productinfo [2] [1] = '<font color="#0099CC"><b><i><a href="detail.aspx?ID=21">Baby Starter Set</a></i></b></font>';
  productinfo [2] [2] = '<font color="#66CC66" size="1">The perfect gift for a new baby, this starter set will help Mom keep baby clean and dry! Select a design and all three items in this cute set will match. Call for monogramming options.</font>';


  productinfo [3] = new Array();
  productinfo [3] [0] = '<a href="detail.aspx?ID=94"><img src="images/content_right_bips.jpg" border="0" alt="" width="214" height="186"></a>';
  productinfo [3] [1] = '<font color="#0099CC"><b><i><a href="detail.aspx?ID=94">Trimmed Blankets</a></i></b></font>';
  productinfo [3] [2] = '<font color="#66CC66" size="1">100% cotton blankets are the perfect cover for infants and newborns. Monogram these blankets for a great gift.</font>';

  productinfo [4] = new Array();
  productinfo [4] [0] = '<a href="detail.aspx?ID=90"><img src="images/content_right_cars.jpg" border="0" alt="" width="214" height="186"></a>';
  productinfo [4] [1] = '<font color="#0099CC"><b><i><a href="detail.aspx?ID=90">Vehicles Set</a></i></b></font>';
  productinfo [4] [2] = '<font color="#66CC66" size="1">Beep Beep! Children will love using these wooden vehicles and traffic signs to create their own imaginary town.</font>';

  productinfo [5] = new Array();
  productinfo [5] [0] = '<a href="detail.aspx?ID=172"><img src="images/content_right_cookies.jpg" border="0" alt="" width="214" height="186"></a>';
  productinfo [5] [1] = '<font color="#0099CC"><b><i><a href="detail.aspx?ID=172">Cookies</a></i></b></font>';
  productinfo [5] [2] = '<font color="#66CC66" size="1">Delicious homemade chocolate chip cookie bits - a tasty treat for new parents!</font>';

  productinfo [6] = new Array();
  productinfo [6] [0] = '<a href="detail.aspx?ID=25"><img src="images/content_right_cross.jpg" border="0" alt="" width="214" height="186"></a>';
  productinfo [6] [1] = '<font color="#0099CC"><b><i><a href="detail.aspx?ID=25">Cross</a></i></b></font>';
  productinfo [6] [2] = '<font color="#66CC66" size="1">Customizable hand-painted ceramic crosses by Atlanta artist make the perfect baby or Baptism gift.</font>';

  productinfo [7] = new Array();
  productinfo [7] [0] = '<a href="detail.aspx?ID=155"><img src="images/content_right_diaperbag.jpg" border="0" alt="" width="214" height="186"></a>';
  productinfo [7] [1] = '<font color="#0099CC"><b><i><a href="detail.aspx?ID=155">Bag Set</a></i></b></font>';
  productinfo [7] [2] = '<font color="#66CC66" size="1">As seen in Pregnancy Magazine! Fashionable 5 piece diaper tote set is a must-have for all mothers.</font>';

  productinfo [8] = new Array();
  productinfo [8] [0] = '<a href="detail.aspx?ID=116"><img src="images/content_right_fireengine.jpg" border="0" alt="" width="214" height="186"></a>';
  productinfo [8] [1] = '<font color="#0099CC"><b><i><a href="detail.aspx?ID=116">Firetruck Puzzle</a></i></b></font>';
  productinfo [8] [2] = '<font color="#66CC66" size="1">Children will delight in placing the puzzle pieces on the board as they listen to the sounds of the firetruck racing off to help fight another fire.</font>';

  productinfo [9] = new Array();
  productinfo [9] [0] = '<a href="detail.aspx?ID=136"><img src="images/content_right_giraffe.jpg" border="0" alt="" width="214" height="186"></a>';
  productinfo [9] [1] = '<font color="#0099CC"><b><i><a href="detail.aspx?ID=136">Calling Cards</a></i></b></font>';
  productinfo [9] [2] = '<font color="#66CC66" size="1">Adorable calling cards complete with whimsical design and child&#39;s name.</font>';

  productinfo [10] = new Array();
  productinfo [10] [0] = '<a href="detail.aspx?ID=171"><img src="images/content_right_hoopiecow.jpg" border="0" alt="" width="214" height="186"></a>';
  productinfo [10] [1] = '<font color="#0099CC"><b><i><a href="detail.aspx?ID=171">Hoopie Cow</a></i></b></font>';
  productinfo [10] [2] = '<font color="#66CC66" size="1">Hoopy Loopys are fun, interactive toys for baby!</font>';

  productinfo [11] = new Array();
  productinfo [11] [0] = '<a href="detail.aspx?ID=167"><img src="images/content_right_lion.jpg" border="0" alt="" width="214" height="186"></a>';
  productinfo [11] [1] = '<font color="#0099CC"><b><i><a href="detail.aspx?ID=167">Lion</a></i></b></font>';
  productinfo [11] [2] = '<font color="#66CC66" size="1">In the jungle, the lion sleeps tonight! Soft plush lion will delight any child. Measures approximately 15 inches.</font>';

  productinfo [12] = new Array();
  productinfo [12] [0] = '<a href="detail.aspx?ID=165"><img src="images/content_right_stamps.jpg" border="0" alt="" width="214" height="186"></a>';
  productinfo [12] [1] = '<font color="#0099CC"><b><i><a href="detail.aspx?ID=165">Stamp Set</a></i></b></font>';
  productinfo [12] [2] = '<font color="#66CC66" size="1">Alphabet stamps will encourage creativity as well as develop language skills.</font>';

  var productnum = Math.round(Math.random() * 5 + 1);

  product1.innerHTML = productinfo [productnum] [0];
  producttitle1.innerHTML = productinfo [productnum] [1];
  producttext1.innerHTML = productinfo [productnum] [2];

  productnum = Math.round(Math.random() * 5 + 7);

  product2.innerHTML = productinfo [productnum] [0];
  producttitle2.innerHTML = productinfo [productnum] [1];
  producttext2.innerHTML = productinfo [productnum] [2];

    
})