// Global Video Params var objVideoPopup; var nativeWin = null; // Writes query string for on demand video clip. If hostDomain is passed then it uses it as the players base domain function playVideoClip(objID) { if (document.getElementById) { var objElement = document.getElementById(objID); var strQuery = 'ClipID1=' + objElement.getAttribute('ClipID') + '&'; strQuery += 'h1=' + escape(objElement.getAttribute('headline')) + '&'; strQuery += 'vt1=' + objElement.getAttribute('videoType') + '&'; strQuery += 'at1=' + escape(objElement.getAttribute('adTag')) + '&'; strQuery += 'd1=' + (objElement.getAttribute('duration')!=''? objElement.getAttribute('duration'): '0') + '&'; strQuery += (objElement.getAttribute('launchPageAdTag')!='' ? 'LaunchPageAdTag=' + objElement.getAttribute('launchPageAdTag') : ''); strQuery += '&activePane=info'; var hostDomain = objElement.getAttribute('hostDomain')!='' ? objElement.getAttribute('hostDomain'): ''; objVideoPopup = selectVideoPlayer(strQuery, null, hostDomain); } else { //displayVideoHelp(); setVideoHelpPage(); } } // Writes query string for on demand video clip selected from featured video buckets function playVideoClips(formName) { if (document.getElementById) { var objElement; var strQuery = ''; var intCount = 1; var blnClipsSelected = false; var objForm = document.getElementById(formName); if (objForm.elements.length > 1) { strQuery += 'LaunchPageAdTag=' + objForm.LaunchPageAdTag.value + '&'; for (var i=0; i0) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return wmvideo_getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } } // wmvideo_getCookieVal: function to return the decoded value of a cookie function wmvideo_getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); }