function ads()

{

  var numberofads = 4;

  var randnum=Math.floor(Math.random()*numberofads)+1;

  //var randnum = rand(numberofads);



  var header;

  var link;

  var linktitle;

  var img;

  var imgalt;

  var title;

  var text;



  if (randnum==1) {

  header="";

  link="http://www.ipadaccessories.com/ipad-cases/leather-ipad-cases/saddleback-premium-leather-ipad-sleeve";

  linktitle="Permanent link to Saddleback Premium Leather iPad Sleeve";

  img="http://www.ipadaccessories.com/wp-content/themes/eGamer/timthumb.php?src=http://www.ipadaccessories.com/wp-content/uploads/2010/05/Saddleback-Leather-Co-Gadget-Pouch-Large-iPad-Square.jpg&h=250&w=250&zc=1";

  imgalt="Saddleback Premium Leather iPad Sleeve";

  title="Saddleback Premium Leather iPad Sleeve";

  text='<p>Finally, a leather iPad sleeve that looks amazing, smells great, and is immensely durable! In fact, Saddleback Leather Co. is so confident in their products, they back everything they make with a 100 year warranty! Their slogan is “They’ll fight over it when you’re dead” and, while that’s not something to look forwards too... it certainly rings true with this iPad sleeve. This is the John Wayne of iPad sleeves, it’s what Marion Morrison would have used if he was still around, and it’s what you could be using for the next 100+ years. Read on for our review of Saddleback Leather Co. iPad Pouch. <strong><a href="http://www.ipadaccessories.com/ipad-cases/leather-ipad-cases/saddleback-premium-leather-ipad-sleeve" title="Permanent link to Saddleback Leather iPad Sleeve" class="more-link">Learn More...</a></strong></p>';
  }

  if (randnum==2) {

  header="";

  link="http://www.ipadaccessories.com/general/finding-used-ipads-discount-ipads-and-ipads-on-sale";

  linktitle="Permanent link to iPads In Stock";

  img="http://www.ipadaccessories.com/wp-content/themes/eGamer/timthumb.php?src=http://www.ipadaccessories.com/wp-content/uploads/2010/07/used-ipad.jpg&h=250&w=250&zc=1";

  imgalt="iPad in stock";

  title="New and Used iPads on Sale and In Stock";

  text='<p>The iPad has become such a huge hit, it’s sales continue to skyrocket despite it’s rather high price tag. For the penny pinched or more frugal gadget lover, buying a brand new iPad may seem like a pipe dream. Now that the iPad has been on the market for a while, we are starting to see used iPads and refurbished iPads on sale at large discounts. Often you can find a preowned iPad on sale for $100 or more below the retail price! Below, we’ve compiled a list of sources for you to find a discount iPad of your very own! <strong><a href="http://www.ipadaccessories.com/general/finding-used-ipads-discount-ipads-and-ipads-on-sale" class="more-link">More...</a></strong></p>';

  }

  if (randnum==3) {

  header="";

  link="http://www.ipadaccessories.com/ipad-covers/zagg-leatherskins-for-the-ipad";

  linktitle="Permanent link to Zagg LEATHERskins for the iPad";

  img="http://www.ipadaccessories.com/wp-content/themes/eGamer/timthumb.php?src=http://www.ipadaccessories.com/wp-content/uploads/2010/06/zagg-leatherskins-front.jpg&h=250&w=250&zc=1";

  imgalt="Zagg LEATHERskins for the iPad";

  title="Zagg LEATHERskins for the iPad";

  text='<p>It’s no secret that we are pretty big fans of Zagg’s iPad products. They already make one of the very best iPad screen covers on the market and we just recently discovered another awesome Zagg accessory for the iPad called Zagg LEATHERskins, and we are already in love with it! Zagg LEATHERskins are a made from genuine leather and add a touch of class and distinction to your iPad without the additional bulk. These protective skins preserve the original beauty and curves of the Apple iPad while throwing in just a dash of sophistication. Check out our review of the Zagg LEATHERskins for the iPad, and see what you think! <b><a href="http://www.ipadaccessories.com/ipad-covers/zagg-leatherskins-for-the-ipad" class="more-link">Read More...</a></b></p>';

  }

  if (randnum==4) {

  header="";

  link="http://www.ipadaccessories.com/ipad-cases/reviewing-case-mates-ipad-cases";

  linktitle="Permanent Link To The Case Mate iPad Case Lineup";

  img="http://www.ipadaccessories.com/wp-content/themes/eGamer/timthumb.php?src=http://www.ipadaccessories.com/wp-content/uploads/2010/04/case-mate-cases.jpg&h=250&w=250&zc=1";

  imgalt="The Case Mate iPad Case Lineup";

  title="The Case Mate iPad Case Lineup";

  text='<p>Case-mate, the makers of all sorts of skins and cases for the iPod touch, Blackberry, Zune and other popular hand helds now steps into the iPad case market with a similar set of fashionable and functional cases for Apples latest product. The iPad case lineup have released runs the full gamut from hard cases, sleeves, folio style cases, the all new Venture case stand, to a colorful rubber soft case as well. They are creative and attractive iPad cases that have a unique flair and style to each of them. These aren’t your run-of-the-mill iPad accessories! Check out our reviews… <strong><a href="http://www.ipadaccessories.com/ipad-cases/reviewing-case-mates-ipad-cases" class="more-link">Read More...</a></strong></p>';

  }

  document.write('<span class="single-entry-titles" style="margin-top: 18px;">'+header+'</span><div class="post-wrapper"><div style="clear: both;"></div><a href="'+link+'" title="'+linktitle+'"><img src="'+img+'" alt="'+imgalt+'" height="250" width="250" style="border: 10px solid #333E3C; float: left; display: inline; margin-right: 10px; margin-top: 15px;" /></a><h2 class="post-title"><a href="'+link+'" rel="bookmark" title="'+linktitle+'">'+title+'</a></h2><div class="post-info"></div>'+text+'</div>');

}
