
function get_homepage_ad(size_1,category_1) {
  <!-- Hide from old browsers
  //Cache-busting and pageid value
  var aamRnd = Math.round(Math.random() * 100000000);

  //Adserver URL
  adserver = "http://atlas.monkeysee.com/bserver";

  //Ad tag targeting values which will be appended to each ad request section in the bserver ad call
  allAdTags = "/AAMALL/SITE=MONKEYSEE/acc_random=" + aamRnd + "/pageid=" + aamRnd;

  //Individual tags for each ad request 
  ad1 = "/AAMB1/AAMSZ=" + size_1; 
  if (category_1.length > 0) {
    ad1 = ad1 + "/AREA=" + category_1;
  }

  //bserver ad call 
  document.write('<scr' + 'ipt src="' + adserver + allAdTags + ad1 + '?" type="text/javascript">');
document.write('</scr' + 'ipt>');
  // End Hide -->
}         

function get_channel_ad(size_1,category_1) {
  <!-- Hide from old browsers
  //Cache-busting and pageid value
  var aamRnd = Math.round(Math.random() * 100000000);

  //Adserver URL
  adserver = "http://atlas.monkeysee.com/jserver";

  //Ad tag targeting values which will be appended to each ad request section in the bserver ad call
  allAdTags = "/SITE=MONKEYSEE"; //" /acc_random=" + aamRnd + "/pageid=" + aamRnd;

  //Individual tags for each ad request 
  ad1 = "/AAMSZ=" + size_1; 
  if (category_1.length > 0) {
    ad1 = ad1 + "/AREA=" + category_1;
  }

  //bserver ad call 
  document.write('<scr' + 'ipt src="' + adserver + allAdTags + ad1 + '?" type="text/javascript">');
  document.write('</scr' + 'ipt>');
  // End Hide -->
}

function get_ugc_ad(size_1,category_1) {
  <!-- Hide from old browsers
  //Cache-busting and pageid value
  var aamRnd = Math.round(Math.random() * 100000000);

  //Adserver URL
  adserver = "http://atlas.monkeysee.com/jserver";

  //Ad tag targeting values which will be appended to each ad request section in the bserver ad call
  allAdTags = "/SITE=MONKEYSEE"; //" /acc_random=" + aamRnd + "/pageid=" + aamRnd;

  //Individual tags for each ad request 
  ad1 = "/AAMSZ=" + size_1; 
  if (category_1.length > 0) {
    ad1 = ad1 + "/AREA=" + category_1;
  }
  ad1 = ad1 + "/VIDEO=UGC";

  //bserver ad call 
  document.write('<scr' + 'ipt src="' + adserver + allAdTags + ad1 + '?" type="text/javascript">');
  document.write('</scr' + 'ipt>');
  // End Hide -->
}

function get_video_ad(size_1, category_1, size_2, type_1) {
  <!-- Hide from old browsers
  //Cache-busting and pageid value
  var aamRnd = Math.round(Math.random() * 100000000);

  //Adserver URL
  adserver = "http://atlas.monkeysee.com/bserver";

  //Ad tag targeting values which will be appended to each ad request section in the bserver ad call
  allAdTags = "/AAMALL/SITE=MONKEYSEE/AREA=" + category_1 + "/acc_random=" + aamRnd + "/pageid=" + aamRnd;

  //Individual tags for each ad request 
  ad1 = "/AAMB1/AAMSZ=" + size_1; 
  ad2 = "/AAMB2/AAMSZ=" + size_2; 
  if (type_1.length > 0) {
    ad2 = ad2 + "/VIDEO=" + type_1;
  }

  //bserver ad call 
  document.write('<scr' + 'ipt src="' + adserver + allAdTags + ad1 + ad2 + '?" type="text/javascript">');
  document.write('</scr' + 'ipt>');
  // End Hide -->
}

