// This JS function is called by the Video Cloud Player when // it encounters Companion Ads in a VAST 2.0 response function bcsyncroadblock(adXML){ var companionAds = getXMLDoc(adXML); //Get the Companion snippet var expandedBannerAd = companionAds.getElementsByTagName('Companion')[0]; var collapsedBannerAd = companionAds.getElementsByTagName('Companion')[1]; // Get the banner creative URL var expandedBannerAdSnippet = expandedBannerAd.getElementsByTagName('StaticResource')[0].firstChild.nodeValue; var collapsedBannerAdSnippet = collapsedBannerAd.getElementsByTagName('StaticResource')[0].firstChild.nodeValue; // Get clickthrough information for the banners from the StaticResource node var expandedBannerClickURL = expandedBannerAd.getElementsByTagName('CompanionClickThrough')[0].firstChild.nodeValue; var collapsedBannerClickURL = collapsedBannerAd.getElementsByTagName('CompanionClickThrough')[0].firstChild.nodeValue; // Display banners. var companionAdDiv = document.getElementById("companionBanner"); // Add the expanded banner to the page companionAdDiv.innerHTML = " "; var collapsedAdDiv = document.getElementById("collapsedBanner"); // Add the collapsed banner to the page collapsedAdDiv.innerHTML = " "; } // Loads adXML as XML. function getXMLDoc(pXML){ var adXML; if (window.ActiveXObject) { //parses the XML for IE browsers adXML = new ActiveXObject("Microsoft.XMLDOM"); adXML.async = false; adXML.loadXML(pXML); } else //parses the XML for Mozilla browsers if (window.XMLHttpRequest) { adXML = (new DOMParser()).parseFromString(pXML, "text/xml"); } return adXML; }

Big Bowl Blowout Blastoff

What’s up, football fanatics? Are you ready for a day of mud, blood and nonstop, bone-crunching hits? Well, it would be advisable to prepare yourself accordingly, because today is a colorful buffet of college bowl appearances: You got the New Mexico Bowl today at 2:30, pitting 7-5 Fresno State against 6-6 Colorado State; You got 6-6 Memphis takin’ on the South Florida squad at 4:30; and you can’t forget about the august December classic known as the Las Vegas Bowl startin’ at 8, where 10-2 Brigham Young wants to continue its rampage all over 7-5 Arizona’s head. And, oh by the way — as we say in the Pentagon — even as I write this the Naval Academy Midshipmen are getting set for a rematch against the Wake Forest Demon Deacons today at 11. We’ll have total, wall-to-wall coverage here on the blog, skippered by Military Times Senior Sportswriter Mike Hoffman and ably supported by ace shooter Amy McCullough and your humble correspondent. Let’s get to it!

Leave a Reply

You must be logged in to post a comment.