
function PredictadWindowAddLoadEvent(func) {
	if (document.readyState=='loaded'||document.readyState=='complete'){
		func();
		return;
	}
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
		func();
      if (oldonload) {
        oldonload();
      }
      //func();
    }
  }
}

	 function predictad_loadjscssfile(filename, filetype, where){
                if (filetype=="js"){ //if filename is a external JavaScript file
                    var fileref=document.createElement("script");
                    fileref.setAttribute("type","text/javascript");
                    fileref.setAttribute("onload","");
                    fileref.setAttribute("onreadystatechange","");
                    fileref.setAttribute("src", filename);
               }
               if (typeof fileref!="undefined")
                    if (where=="head")
                    {
                        document.getElementsByTagName("head")[0].appendChild(fileref);
                    }
                    else
                    {
                        if (document.getElementsByTagName("body")!=null){
                            if (document.getElementsByTagName("body")[0]!=null){
                                document.getElementsByTagName("body")[0].appendChild(fileref);
                            }
                        }
                    }
              }
              

var alreadyrunflag=0 //flag to indicate whether target function has already been run
var mainInject=0 //flag to indicate whether target function has already been run

function injectMainJS(){
    if (mainInject==1) return;
    if (typeof predictad_array!="undefined") return;
        predictad_loadjscssfile('http://cdn1.predictad.com/scripts/publishers/babylon/suggesterms.js?si=6997','js','body')
        mainInject=1;
}


function acpro_detect() {
    return;
        acpro_https =  String(document.location);
        if (acpro_https.indexOf('https')==0){
        }
        if (window.top==window){
            if (typeof predictad_array!="undefined"){
                 var t=predictad_array[0];
                 t.disableShow=0;
            }else{
                PredictadWindowAddLoadEvent(function() {injectMainJS();});
            }
        }
}

function acpro_stop_detect(){
    if (window.top==window){
        if (typeof predictad_array!="undefined"){
             var t=predictad_array[0];
            t.disableShow=1;
        }
    }        

}
acpro_detect();
