') } } */ //getMarshals() //loadjs("scripts/homepage.js",true) function loadJS2(fil) { var myFile = fil; //alert(myFile.modified) var retval=is_script_already_included(fil) //alert(retval) if(retval!=true) { var subtxt=Date.now() var myFil= fil + "?" + subtxt //alert(myFil) var jsElm = document.createElement("script"); // DOM: Create the script element //alert(myFil) jsElm.type = "application/javascript"; // set the type attribute jsElm.src = myFil; // make the script element load file document.body.appendChild(jsElm); // finally insert the element to the body element in order to load the script retval=is_script_already_included(fil) //alert(retval) } } function is_script_already_included(src){ const found_in_resources = performance.getEntries() .filter(e => e.entryType === 'resource') .map(e => e.name) .indexOf(src) !== -1; const found_in_script_tags = document.querySelectorAll(`script[src*="${src}"]`).length > 0; return found_in_resources || found_in_script_tags; } var profileArray, visits = 0, voteVisits = 0, displayWarn = '', allowVote = false, voted = false var today = Today_nDate var today = Today var thisYear = Today.getFullYear() var cText='', val = GetCookie("profile") if (val == null) { val = "go, 0, no, no, 0, 0" } profileArray = val.split(',') noMove = (profileArray[0] == 'stop') // animation visits = parseInt(profileArray[1],10) // no of visits displayWarn = profileArray[2] // display size warning allowVote = (profileArray[3] == 'yes') // Voting state voteVisits = isNaN(profileArray[4]) ? 0 : parseInt(profileArray[4],10) // no of visits while !autoVote if (profileArray.length == 6) { voted = (profileArray[5] == today) } //alert('visits='+visits+' voteVisits='+voteVisits+' nM='+noMove+' dW='+displayWarn+' aV='+allowVote+' p3='+profileArray[3]) //allowVote = 'yes' noMove=true if (!is40 && !noMove) { cText = ' #img1 {position:absolute; top:6px; left:6%; width:100px; height:85px; z-Index:110; visibility:hidden; }\n' +' #img2 {position:absolute; top:6px; left:85%; width:100px; height:85px; z-Index:110; visibility:hidden; }\n' document.write('') } var altPage var original, items if (parent.logo.firstClick == undefined) { parent.logo.firstClick = 0 } //alert("firstClick="+parent.logo.firstClick) var parentName = eval(getParent()) function initPage2() { var fil = "nextevents22.js" loadJS2(fil); //addDivs() initPage() } function loadjs(fil,async) { ms=Date.now() //alert(ms) // ms="123456" myFile= fil + "?" + ms //alert(myFile) cText='' //alert(cText) self.document.write(cText) } window.onload = initPage2; -->