function checkautonext( ) {
var ccc = document.getElementById(‘auto-continue-checkbox’);
if (ccc !== null && ccc != undefined) {
if(readCookie(“autonext")=="1″){
ccc.checked=true;
} else if(readCookie(“autonext")=="0″){
ccc.checked=false;
} else {
ccc.checked=true;
}
}
}
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = “; expires="+date.toGMTString();
}
else var expires = “";
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + “=";
var ca = document.cookie.split(‘;’);
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function eraseCookie(name) {
createCookie(name,"",-1);
}
document.cookie="jwplayer.mute=false;expires=Thu, 18 Dec 2000 12:00:00 GMT; path=/";
document.cookie="jwplayer.volume=50;expires=Thu, 18 Dec 2000 12:00:00 GMT; path=/";
var _sf_startpt=(new Date()).getTime()
var _sf_async_config = _sf_async_config || {};
/** CONFIGURATION START **/
_sf_async_config.uid = 57227;
_sf_async_config.domain = ‘ntdtv.com’;
_sf_async_config.useCanonical = true;
_sf_async_config.sections = ‘306’; //CHANGE THIS
_sf_async_config.authors = ‘mysql’; //CHANGE THIS
/** CONFIGURATION END **/
(function() {
function loadChartbeat() {
window._sf_endpt = (new Date()).getTime();
var e = document.createElement(‘script’);
e.setAttribute(‘language’, ‘javascript’);
e.setAttribute(‘type’, ‘text/javascript’);
e.setAttribute(‘src’, ‘//static.chartbeat.com/js/chartbeat.js’);
document.body.appendChild(e);
}
var oldonload = window.onload;
window.onload = (typeof window.onload != ‘function’) ?
loadChartbeat : function() {
oldonload();
loadChartbeat();
};
})();