var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var projX = {}; projX.displayEventPre = function(){ return true;}; projX.displayEventPost = function(){}; projX.closeEvent = function(){}; projX.layerindex = 9998; projX.init = function(){ try{ var hz = projX.util.getNextHighestZindex(); if(hz > projX.layerindex) projX.layerindex = hz } catch(e){} var projXcookie = projX.cookie.get('projxcookie'); if(projXcookie == undefined){ // alert('display'); var expir = projX.cookie.getExpDate(0,0,1); if(projX.cookie.set('projxcookie','yes',false,'/')){ } } }; projX.close = function(){ document.getElementById('projxalert').style.display = 'none'; try{ document.getElementById('searchmtv-select').style.visibility = 'visible'; } catch(e){} projX.closeEvent(); }; projX.displayAlert = function(postBlock, operatorName, phoneMessage){ var eventcall = projX.displayEventPre(); if(!eventcall) return; // MTV needs to hide an element id searchmtv-select try{ document.getElementById('searchmtv-select').style.visibility = 'hidden'; } catch(e){} // create a modal pane in front of the entire window var alertwidth = 400; var alertheight = 250; var pageSize = projX.util.getPageSize(); var winSize = projX.util.getWindowSize(); var scrDiv = document.createElement('div'); scrDiv.setAttribute("id", "projxalert"); scrDiv.setAttribute("class", "projxalert"); scrDiv.setAttribute("style","position:absolute;top:0px; left:0px; text-align: center; z-index:"+projX.layerindex+"; width:"+pageSize[0]+"px; height:"+pageSize[1]+"px;"); var alertleft = (pageSize[0]/2)-(alertwidth/2); var winH = projX.util.getWindowSize(); var alerttop = (winSize[1]/2)-200; if(alerttop < 0) alerttop = 0; var htmlout = ''; htmlout += '
 
'; htmlout += '
'; if (postBlock) htmlout += projX.message_post(operatorName, phoneMessage); else htmlout += projX.message_pre(operatorName, phoneMessage); htmlout += '

'; htmlout += 'CLOSE'; htmlout += '
' scrDiv.innerHTML = htmlout; var alert_div = document.getElementsByTagName('body')[0].appendChild(scrDiv); projX.displayEventPost(); }; projX.message_pre = function(operatorName, phoneMessage){ var html = ''; html += 'ATTENTION '; html += operatorName; html += ' CUSTOMERS:

'; html += ''; html += 'Starting tonight, you will lose 16 of your favorite channels including '; html += 'Comedy Central '; html += 'because of a dispute with '; html += operatorName; html += '. You can stop this!

'; html += phoneMessage; html += ' AND DEMAND THEY KEEP YOUR CHANNEL! YOU MUST BE AT LEAST 18 YEARS OLD TO CALL.'; html += '
'; return html; }; projX.message_post = function(operatorName, phoneMessage){ var html = ''; html += 'ATTENTION '; html += operatorName; html += ' CUSTOMERS:

'; html += ''; html += 'You have lost 16 of your favorite channels including '; html += 'Comedy Central '; html += 'because of a dispute with '; html += operatorName; html += '. You can stop this!

'; html += phoneMessage; html += ' AND DEMAND YOUR CHANNEL BACK! YOU MUST BE AT LEAST 18 YEARS OLD TO CALL.'; html += '
'; return html; }; projX.util = { trimString : function(str){ if(typeof str != 'string') return str; var retString = str; // check begining of string for white spaces var character = retString.substring(0,1); while(character.charCodeAt(0) == 9 || character.charCodeAt(0) == 32 || character.charCodeAt(0) == 10){ retString = retString.substring(1,retString.length); character = retString.substring(0,1); } // check end of string for white spaces character = retString.substring(retString.length-1,retString.length); while(character.charCodeAt(0) == 9 || character.charCodeAt(0) == 32 || character.charCodeAt(0) == 10){ retString = retString.substring(0,retString.length-1); character = retString.substring(retString.length-1,retString.length); } return retString; },// end trimString stripWhitespace : function(str){ var result = str; result = result.split("\t").join(" "); result = result.split("\r").join(" "); result = result.split("\n").join(" "); return result; }, getPageSize : function(){ if (window.innerHeight && window.scrollMaxY) {// Firefox yWithScroll = window.innerHeight + window.scrollMaxY; xWithScroll = window.innerWidth + window.scrollMaxX; yWithoutScroll = window.innerHeight; } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac yWithScroll = document.body.scrollHeight; xWithScroll = document.body.scrollWidth; yWithoutScroll = document.body.clientHeight; } else if(window.innerHeight){ // ff3 yWithScroll = document.body.offsetHeight; if(window.innerHeight > document.body.offsetHeight); yWithScroll = window.innerHeight xWithScroll = document.body.offsetWidth; yWithoutScroll = document.body.clientHeight; }else { // works in Explorer 6 Strict, Mozilla (not FF) and Safari yWithScroll = document.body.offsetHeight; xWithScroll = document.body.offsetWidth; yWithoutScroll = document.body.clientHeight; } var tempArray = new Array(xWithScroll,yWithScroll,yWithoutScroll); return tempArray; }, getWindowSize : function() { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } var tempArray = new Array(myWidth,myHeight); //window.alert( 'Width = ' + myWidth ); //window.alert( 'Height = ' + myHeight ); return tempArray; }, getNextHighestZindex : function(){ var els = document.getElementsByTagName('DIV'); var elslen = els.length; var highestZ = 0; for(var i = 0; i < elslen; i++){ try{ var level = parseFloat(els[i].currentStyle['zIndex']); if(level){ if(level > highestZ) highestZ = level; } }catch(e){}; } return (highestZ+1); } }; projX.cookie = { // projX.cookie.set('mynewcookie','test'); cookieArray : [], set : function(name,value,expires,path,domain) { document.cookie = name + "=" + value +((path) ? ";path=" + path : "") +((domain) ? ";domain=" + domain : "") + ((expires) ? ";expires="+ expires : ""); var cookietest = projX.cookie.get(name); if(cookietest == value){ return true; } else{ return false; } }, get : function(name) { this.parsecookies(); return this.cookieArray[name]; }, del : function(name, path, domain) { if (this.cookieArray[name]) { document.cookie = name + "=" +((path) ? ";path=" + path : "") +((domain) ? ";domain=" + domain : "") +";expires=Thu, 01-Jan-1970 00:00:01 GMT"; } }, parsecookies : function() { this.cookieArray.length = 0; var cookies = document.cookie; var namevalues = cookies.split(';'); for(i=0; i < namevalues.length; i++){ // the cookieParams will have multiple = signs if(namevalues[i].indexOf('cookieParams')>-1){ var splitAt = namevalues[i].indexOf('='); var pairs = new Array(); pairs[0] = namevalues[i].substring(0,splitAt); pairs[1] = namevalues[i].substring(splitAt+1); } else{ var pairs = namevalues[i].split('='); } this.cookieArray[projX.util.trimString(pairs[0])] = pairs[1]; } }, getExpDate : function(days, hours, minutes) { // expires format "Thu, 01-Jan-1970 00:00:01 GMT" var expDate = new Date(); if (typeof days == "number" && typeof hours == "number" && typeof hours == "number") { expDate.setDate(expDate.getDate() + parseInt(days)); expDate.setHours(expDate.getHours() + parseInt(hours)); expDate.setMinutes(expDate.getMinutes() + parseInt(minutes)); return expDate.toGMTString(); } } };// end projX.cookie if(window.attachEvent){ window.attachEvent('onload',projX.init); } else if(document.addEventListener){ // safari if (/WebKit/i.test(navigator.userAgent)) { var projx_safari_timer = setInterval(function() { if (/loaded|complete/.test(document.readyState)) { clearInterval(projx_safari_timer); projX.init(); } }, 10); } else // not safari document.addEventListener('DOMContentLoaded',projX.init,null); } } /* FILE ARCHIVED ON 15:17:16 Mar 05, 2009 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 14:25:39 Apr 30, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.688 exclusion.robots: 0.075 exclusion.robots.policy: 0.064 cdx.remote: 0.058 esindex: 0.009 LoadShardBlock: 97.649 (3) PetaboxLoader3.datanode: 205.913 (4) load_resource: 248.147 PetaboxLoader3.resolve: 100.71 */