// Scripted refresh, excludes article page due to reading duration

var timerId, refreshJSExists;

refreshJSExists = true

//exclude this subsection for refresh
if (JS_SUB_SECTIONID != 81478 && JS_SUB_SECTIONID != 81460 && JS_SUB_SECTIONID != 81488 && JS_SUB_SECTIONID != 3989 && JS_SUB_SECTIONID != 146341 && JS_SUB_SECTIONID != 146522 && JS_SUB_SECTIONID != 149679 && JS_SUB_SECTIONID != 152353 && JS_SUB_SECTIONID != 146340) {
    setRefresh(true);
}

function setRefresh(bVidFlag) {
     if(bVidFlag) {
          if (window.location.href.indexOf("rf=true") > 0){
               timerId = window.setTimeout("window.location.href=window.location.href", 480000);
          }
          else{
               if (window.location.href.indexOf("?") > 0){
                    timerId = window.setTimeout("window.location.href=window.location.href + '&rf=true';", 480000);
               }
                else{
                     timerId = window.setTimeout("window.location.href=window.location.href + '?rf=true';", 480000);
               }
         }
     } else {
        if(!isNaN(parseInt(timerId))) {window.clearTimeout(timerId);}
    }
}








