/*
   New Perspectives on JavaScript
   Tutorial 1
   Case Problem 2

   Function List:
   adsDescription
      Used to return a description for ad "n"

   adsLink
      Used to return the URL for ad "n"
*/


function adDescription(n) {
   var descrip = new Array();
   descrip[1]="[AD] Tartan House Canada - every body looks good in tartan!";
   descrip[2]="[AD] Phyllis Chant Photography - specializing in children's portraits";
   descrip[3]="[AD] Freddys.ca - where you're only a stranger once!";
   descrip[4]="[AD] Welcome to Deb's Place in Windsor Ontario";
   descrip[5]="[AD] Friends of Willistead, Windsor, Ontario";
   descrip[6]="[AD] Test drive a website for your business for 30 days!";
   descrip[7]="[AD] John Martel Photography - Wildlife & Nature";
   descrip[8]="[AD] (the original) Edmonton venting.ca";


   return descrip[n];
}

function adLink(n) {
   var link = new Array();
   link[1]="http://www.tartanhousecanada.com";
   link[2]="http://www.phyllischant.com";
   link[3]="http://www.freddys.ca";
   link[4]="http://www.debsplace.ca";
   link[5]="http://friendsofwillistead.com/";
   link[6]="http://www.getwindsoressex.info";
   link[7]="http://www.johnmartelphotography.com";
   link[8]="http://edmonton.venting.ca/";

   return link[n];
}
