var tempSpotLog="&c1=6&c2=258&c3=239&c4=364&c5=1&c6=0.04&c7=1&c8=null&c9=null&c10=null&c12=100&c11=1154&c13=2&c14=keywords&c16=3&c17=R"; var inu_refer_url=window.location; if(getInuRpixId(tempSpotLog)==1124 || getInuRpixId(tempSpotLog)==1030 || getInuRpixId(tempSpotLog)==1120 || getInuRpixId(tempSpotLog)==480 || getInuRpixId(tempSpotLog)==382){ logCall(1,tempSpotLog); } function getInuCurrentHrId() { var curr_date = ''; var currentDate = new Date(); var dd = currentDate.getDate(); var mm = (currentDate.getMonth() + 1); var yy = currentDate.getFullYear(); yy=yy-2000; var hh = currentDate.getHours(); if (dd.toString().length == 1) { dd = "0" + dd; } if (mm.toString().length == 1) { curr_date = yy + "0" + mm + "" + dd + "" + hh; } else { curr_date = yy + "" + mm + "" + dd + "" + hh; } return parseInt(curr_date); } function logCall(flag,spotUrl){ var inuLogParam=""; var inu_Ele=document.createElement("script"); document.body.appendChild(inu_Ele); inu_Ele.async=true; inuLogParam="p1="+flag+"&p2="+getInuCurrentHrId()+"&p3="+escape(spotUrl)+"&p4="+inu_refer_url; inu_Ele.src="http://inuxu.biz/Inuxu_RAMP/log?"+inuLogParam; } function getInuRpixId(tempSpotString){ return parseInt(tempSpotString.substring((tempSpotString.indexOf("c11")+4),(tempSpotString.indexOf("c13")-1))); } try { setTimeout(inusplash, 1500); } catch(err) { console.log("Exception in inusplash: "+err); logCall(7,tempSpotLog); } var inu_spot_par ; function inusplash() { var timestamp = new Date().getTime(); var temp = "&c1=6&c2=258&c3=239&c4=364&c5=1&c6=0.04&c7=1&c8=null&c9=null&c10=null&c12=100&c11=1154&c13=2&c14=keywords&c16=3&c17=R"; inu_spot_par = temp; var index=temp.indexOf("c13"); var nextIndex=temp.indexOf("&", index); var METAKEYWORD="c15"; var strategy=parseInt(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+"= "; } } var channelIndex=temp.indexOf("c16"); var nextChannelIndex=temp.indexOf("&", channelIndex); var channelIndex=parseInt(temp.substring(channelIndex+4, nextChannelIndex)); console.log("window_innerWidth" + window.innerWidth); if((channelIndex==3&&window.innerWidth>1325)||channelIndex!=3){ if(getInuRpixId(tempSpotLog)==1124 || getInuRpixId(tempSpotLog)==1030 || getInuRpixId(tempSpotLog)==1120 || getInuRpixId(tempSpotLog)==480 || getInuRpixId(tempSpotLog)==382){ logCall(2,tempSpotLog); } getScript("http://inuxu.biz/Inuxu_SPOT/Shs?ts=" + timestamp+ temp, fooScriptLoaded, fooScriptInitialized, null); }else{ if(getInuRpixId(tempSpotLog)==1124 || getInuRpixId(tempSpotLog)==1030 || getInuRpixId(tempSpotLog)==1120 || getInuRpixId(tempSpotLog)==480 || getInuRpixId(tempSpotLog)==382){ logCall(4,tempSpotLog); } } } function initScript(scriptString) { window.eval(scriptString); } function getScript(url, loadCallback, initCallback, callbackScope) { var req; if (typeof XMLHttpRequest !== 'undefined') { req= new XMLHttpRequest(); } else{ var versions = [ "MSXML2.XmlHttp.5.0", "MSXML2.XmlHttp.4.0", "MSXML2.XmlHttp.3.0", "MSXML2.XmlHttp.2.0", "Microsoft.XmlHttp" ]; for(var i = 0; i < versions.length; i++) { try { req = new ActiveXObject(versions[i]); break; } catch (e) { } } } if ("withCredentials" in req) try{ req.withCredentials=true; } catch (e) { } 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) { if(getInuRpixId(tempSpotLog)==1124 || getInuRpixId(tempSpotLog)==1030 || getInuRpixId(tempSpotLog)==1120 || getInuRpixId(tempSpotLog)==480 || getInuRpixId(tempSpotLog)==382){ logCall(3,tempSpotLog); } initScript.call(null, req.responseText); if (initCallback) initCallback.apply(callbackScope); }else{ if(getInuRpixId(tempSpotLog)==1124 || getInuRpixId(tempSpotLog)==1030 || getInuRpixId(tempSpotLog)==1120 || getInuRpixId(tempSpotLog)==480 || getInuRpixId(tempSpotLog)==382){ logCall(5,tempSpotLog); } } }else if(req.status==404){ if(getInuRpixId(tempSpotLog)==1124 || getInuRpixId(tempSpotLog)==1030 || getInuRpixId(tempSpotLog)==1120 || getInuRpixId(tempSpotLog)==480 || getInuRpixId(tempSpotLog)==382){ logCall(6,tempSpotLog); } } }; 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(); };