var isFF = -1 != navigator.appName.indexOf('Netscape');

function setFooter()
 {
 if (document.getElementById)
  {
  var adj = (isFF)?-5:0;
  var barHeight = document.getElementById('header-top').offsetHeight;
  var windowHeight = getWindowHeight();
  if (windowHeight > 0)
   {
   var contentHeight = document.getElementById('body').offsetHeight + barHeight;
   var footerElement = document.getElementById('footer');
   var footerHeight = footerElement.offsetHeight;
   if (windowHeight - (contentHeight+footerHeight)>=0)
    {
    footerElement.style.position='relative';
    footerElement.style.top = (windowHeight - (contentHeight+footerHeight) + adj)+'px';
    }
   else
    {
    footerElement.style.position='static';
    }
   }
  }
 }

function getWindowHeight()
 {
 var windowHeight = 0;
 if (typeof(window.innerHeight)=='number')
  {
  windowHeight=window.innerHeight;
  }
 else
  {
  if (document.documentElement && document.documentElement.clientHeight)
   {
   windowHeight = document.documentElement.clientHeight;
   }
  else
   {
   if (document.body && document.body.clientHeight)
    {
    windowHeight = document.body.clientHeight;
    }
   }
  }
 return windowHeight;
 }

var datArr = [
 ['Associates','Business','University-of-Phoenix'],
 ['Associates','Education','Kaplan-University'],
 ['Associates','Health &amp; Medical','American-InterContinental-University-Online'],
 ['Associates','Social Science','Kaplan-University'],
 ['Associates','Information Technology','Colorado-Technical-University-Online'],
 ['Associates','Criminal Justice and Law','Strayer-University'],
 ['Associates','Graphic Arts','Art-Institute-Online'],
 ['Bachelors','Business','DeVry-University'],
 ['Bachelors','Education','Walden-University-Online'],
 ['Bachelors','Health and Medical','Chamberlain-College-of-Nursing'],
 ['Bachelors','Social Science','University-of-Phoenix'],
 ['Bachelors','Information Technology','American-InterContinental-University-Online'],
 ['Bachelors','Criminal Justice and Law','University-of-Phoenix'],
 ['Bachelors','Graphic Arts','Art-Institute-Online'],
 ['Masters','Business','University-of-Phoenix'],
 ['Masters','Education','Walden-University-Online'],
 ['Masters','Health &amp; Medical','Walden-University-Online'],
 ['Masters','Information Technology','Capella-University'],
 ['Masters','Criminal Justice and Law','Kaplan-University'],
 ['Masters','Social Science','Capella-University'],
 ['Masters','Graphic Arts','University-of-Phoenix'],
 ['Doctoral','Business','Colorado-Technical-University-Online'],
 ['Doctoral','Education','Capella-University'],
 ['Doctoral','Health and Medical','Walden-University-Online'],
 ['Doctoral','Information Technology','Capella-University'],
 ['Doctoral','Criminal Justice and Law','Walden-University-Online'],
 ['Doctoral','Social Science','Capella-University'],
 ['Doctoral','Graphic Arts','University-of-Phoenix'],
 ['Certification','Business','Strayer-University'],
 ['Certification','Education','Kaplan-University'],
 ['Certification','Health and Medical','University-of-Phoenix'],
 ['Certification','Information Technology','Kaplan-University'],
 ['Certification','Criminal Justice and Law','Kaplan-University'],
 ['Certification','Social Science','Capella-University'],
 ['Certification','Graphic Arts','Art-Institute-Online']
];

function readyNow ()
 {
 if (document.getElementById('degree').value != '' && document.getElementById('program').value != '')
  {
  for (var i=0; i<datArr.length; i++)
   {
   if (document.getElementById('degree').value == datArr[i][0] && document.getElementById('program').value == datArr[i][1])
    {
    location.href = 'http://www.thedegree.com/form/'+datArr[i][2];
    return true;
    }
   }
  }
 return false;
 }

