if(typeof(DMP) === 'undefined') {
	window.DMP = {};
}
if(typeof(DMP.onetag) === 'undefined') {
	DMP.onetag = {};
}

if(typeof(DMP.onetag.system) === 'undefined') {
	DMP.onetag.system = {};

	DMP.onetag.system.pageName = function(){
		var pageName = (location.hostname + location.pathname).replace(/\//g, ':');
		var addPageName = (typeof(window.s_AddPageName) === 'undefined') ? '' : '_' + window.s_AddPageName;
		return pageName + addPageName;
	};

}

if(typeof(DMP.onetag.site) === 'undefined') {
	DMP.onetag.site = {};
}

DMP.onetag.error = [];
try {
function SCoutput(){
//Override
if(typeof(SCprop6)!="undefined"){s_sc_cd.prop6=SCprop6}
if(typeof(SCprop16)!="undefined"){s_sc_cd.prop16=SCprop16}
if(typeof(SCprop17)!="undefined"){s_sc_cd.prop17=SCprop17}
if(typeof(SCprop18)!="undefined"){s_sc_cd.prop18=SCprop18}
if(typeof(SCprop19)!="undefined"){s_sc_cd.prop19=SCprop19}
if(typeof(SCprop21)!="undefined"){s_sc_cd.prop21=SCprop21}
if(typeof(SCprop23)!="undefined"){s_sc_cd.prop23=SCprop23}
if(typeof(SCprop27)!="undefined"){s_sc_cd.prop27=SCprop27}
if(typeof(SCprop31)!="undefined"){s_sc_cd.prop31=SCprop31}
if(typeof(SCprop32)!="undefined"){s_sc_cd.prop32=SCprop32}
if(typeof(SCprop34)!="undefined"){s_sc_cd.prop34=SCprop34}
if(typeof(SCprop35)!="undefined"){s_sc_cd.prop35=SCprop35}
if(typeof(SCprop36)!="undefined"){s_sc_cd.prop36=SCprop36}
if(typeof(SCprop37)!="undefined"){s_sc_cd.prop37=SCprop37}
if(typeof(SCprop38)!="undefined"){s_sc_cd.prop38=SCprop38}
if(typeof(SCprop44)!="undefined"){s_sc_cd.prop44=SCprop44}
if(typeof(SCprop45)!="undefined"){s_sc_cd.prop45=SCprop45}
if(typeof(SCprop46)!="undefined"){s_sc_cd.prop46=SCprop46}
if(typeof(SCprop49)!="undefined"){s_sc_cd.prop49=SCprop49}
if(typeof(SCprop50)!="undefined"){s_sc_cd.prop50=SCprop50}
if(typeof(SCprop67)!="undefined"){s_sc_cd.prop67=SCprop67}
if(typeof(SCprop68)!="undefined"){s_sc_cd.prop68=SCprop68}
if(typeof(SCprop70)!="undefined"){s_sc_cd.prop70=SCprop70}
if(typeof(SCprop71)!="undefined"){s_sc_cd.prop71=SCprop71}
if(typeof(SCprop72)!="undefined"){s_sc_cd.prop72=SCprop72}
if(typeof(SCprop74)!="undefined"){s_sc_cd.prop74=SCprop74}
if(typeof(SCprop75)!="undefined"){s_sc_cd.prop75=SCprop75}
if(typeof(SCeVar1)!="undefined"){s_sc_cd.eVar1=SCeVar1}
if(typeof(SCeVar3)!="undefined"){s_sc_cd.eVar3=SCeVar3}
if(typeof(SCeVar4)!="undefined"){s_sc_cd.eVar4=SCeVar4}
if(typeof(SCeVar5)!="undefined"){s_sc_cd.eVar5=SCeVar5}
if(typeof(SCeVar6)!="undefined"){s_sc_cd.eVar6=SCeVar6}
if(typeof(SCeVar7)!="undefined"){s_sc_cd.eVar7=SCeVar7}
if(typeof(SCeVar8)!="undefined"){s_sc_cd.eVar8=SCeVar8}
if(typeof(SCeVar9)!="undefined"){s_sc_cd.eVar9=SCeVar9}
if(typeof(SCeVar10)!="undefined"){s_sc_cd.eVar10=SCeVar10}
if(typeof(SCeVar11)!="undefined"){s_sc_cd.eVar11=SCeVar11}
if(typeof(SCeVar12)!="undefined"){s_sc_cd.eVar12=SCeVar12}
if(typeof(SCeVar17)!="undefined"){s_sc_cd.eVar17=SCeVar17}
if(typeof(SCeVar18)!="undefined"){s_sc_cd.eVar18=SCeVar18}
if(typeof(SCeVar19)!="undefined"){s_sc_cd.eVar19=SCeVar19}
if(typeof(SCeVar20)!="undefined"){s_sc_cd.eVar20=SCeVar20}
if(typeof(SCeVar21)!="undefined"){s_sc_cd.eVar21=SCeVar21}
if(typeof(SCeVar24)!="undefined"){s_sc_cd.eVar24=SCeVar24}
if(typeof(SCeVar25)!="undefined"){s_sc_cd.eVar25=SCeVar25}
if(typeof(SCeVar26)!="undefined"){s_sc_cd.eVar26=SCeVar26}
if(typeof(SCeVar27)!="undefined"){s_sc_cd.eVar27=SCeVar27}
if(typeof(SCeVar31)!="undefined"){s_sc_cd.eVar31=SCeVar31}
if(typeof(SCeVar32)!="undefined"){s_sc_cd.eVar32=SCeVar32}
if(typeof(SCeVar33)!="undefined"){s_sc_cd.eVar33=SCeVar33}
if(typeof(SCeVar34)!="undefined"){s_sc_cd.eVar34=SCeVar34}
if(typeof(SCeVar35)!="undefined"){s_sc_cd.eVar35=SCeVar35}
if(typeof(SCeVar37)!="undefined"){s_sc_cd.eVar37=SCeVar37}
if(typeof(SCeVar38)!="undefined"){s_sc_cd.eVar38=SCeVar38}
if(typeof(SCeVar39)!="undefined"){s_sc_cd.eVar39=SCeVar39}
if(typeof(SCeVar41)!="undefined"){s_sc_cd.eVar41=SCeVar41}
if(typeof(SCeVar42)!="undefined"){s_sc_cd.eVar42=SCeVar42}
if(typeof(SCeVar44)!="undefined"){s_sc_cd.eVar44=SCeVar44}
if(typeof(SCeVar45)!="undefined"){s_sc_cd.eVar45=SCeVar45}
if(typeof(SCeVar50)!="undefined"){s_sc_cd.eVar50=SCeVar50}
if(typeof(SCeVar58)!="undefined"){s_sc_cd.eVar58=SCeVar58}
if(typeof(SCeVar59)!="undefined"){s_sc_cd.eVar59=SCeVar59}
if(typeof(SCeVar67)!="undefined"){s_sc_cd.eVar67=SCeVar67}
if(typeof(SCeVar68)!="undefined"){s_sc_cd.eVar68=SCeVar68}
if(typeof(SCeVar75)!="undefined"){s_sc_cd.eVar75=SCeVar75}
if(typeof(SCevents)!="undefined"){s_sc_cd.events=SCevents}
if(typeof(SCpageType)!="undefined"){
	s_sc_cd.pageType=SCpageType
	s_sc_cd.pageName="404:<" + location.href + ">"
}
if(typeof(SCproducts)!="undefined"){s_sc_cd.products=SCproducts}
if(typeof(SCcampaign)!="undefined"){s_sc_cd.campaign=SCcampaign}

s_sc_cd.t();
var dt={'event':'SCpageview',currentUrl:window.location.href};
window.DMP.onetag.custom.aa2gtm(dt,s_sc_cd);
window.dataLayer.push(dt);
}

var s_account="toyotamotoreohpdev,toyotamotoreohpallprd"

if(typeof(SCdevflag)!="undefined"){
	s_account="toyotamotoreohpdev," + "toyotamotoreohp" + SCdevflag + "allprd"
}

var AjaxBaseName

/****************************************
* RS & Page Naming Config
*****************************************/

SCBasePageName = location.href.replace("https://","http://");
location.search.match(/[?&]code=([^&#]+)/);
var SCDealerCode=RegExp.$1;

for(var i=0;i<SCSiteBaseData.length;i++){
	if(SCBasePageName.indexOf(SCSiteBaseData[i][0])>-1){
		s_account= "toyotamotoreohp" + SCSiteBaseData[i][1] + "prd,toyotamotoreohpallprd"
		// 検証環境にデータを送信
//		s_account= "toyotamotoreohp" + SCSiteBaseData[i][1] + "prd,toyotamotoreohpdev"
		if(typeof(SCdevflag)!="undefined"){
			s_account="toyotamotoreohp" + SCSiteBaseData[i][1] + SCdevflag + "prd," + "toyotamotoreohp" + SCdevflag + "allprd"
		}
		if(SCSiteBaseData[i][1]=="99101") s_account+=",toyotamotorlexusprd";
		break;
	}
}

var s_sc_cd=s_gi(s_account)
SCGetQueryString = SCBasePageName.split('?')[1];
if(undefined != SCGetQueryString){
	if(SCGetQueryString.indexOf("Preview")>-1){
		s_sc_cd.t = function(){return "";}
	}
}

/************************** CONFIG SECTION **************************/
/* You may add or alter any code config here. */
//s_sc_cd.charSet="Auto"
s_sc_cd.cookieDomainPeriods=location.host.match(/\.(co|ne|or)\.jp$/)?"3":"2"
/* Conversion Config */
s_sc_cd.currencyCode="JPY"
/* Link Tracking Config */
s_sc_cd.trackDownloadLinks=true
s_sc_cd.trackExternalLinks=false
s_sc_cd.trackInlineStats=true
s_sc_cd.linkDownloadFileTypes="pdf"
s_sc_cd.linkLeaveQueryString=false
s_sc_cd.linkTrackVars="None"
s_sc_cd.linkTrackEvents="None"

/* Plugin Config */
s_sc_cd.usePlugins=true

/****************************************
* RS & Page Naming Config
*****************************************/
DefSCSiteID = "toyotatest";
s_sc_cd.siteID = DefSCSiteID;

s_sc_cd.queryVarsList=""	// query parameters to keep
s_sc_cd.defaultPage="index"	// filename to add when none exists
s_sc_cd.pathExcludeDelim=""	// portion of the path to exclude
s_sc_cd.pathConcatDelim=":"	// page name component separator
s_sc_cd.pathExcludeList=""	// elements to exclude from the path

/****************************************
* PageName
*****************************************/
function SCpageNameSetUp(BaseName,BaseURL){
	BaseName	= BaseName.replace("https://","http://");
	if(BaseURL!=""){
		BaseName	= BaseName.replace(BaseURL,"http://domain/");
	}
	BaseName		= s_sc_cd.getPageName(BaseName);
	BaseName		= BaseName.toLowerCase();
	BaseName		= BaseName.replace(".html","");
	BaseName		= BaseName.replace(".aspx","");
	BaseName		= BaseName.replace(".asp","");

	if(typeof(s_AddPageName)!="undefined"){
		if(s_AddPageName){
			BaseName = BaseName + ":" + s_AddPageName;
		}
	}
	return BaseName;
}


function s_sc_cd_doPlugins(s_sc_cd){
	/****************************************
	* Set server
	*****************************************/
	s_sc_cd.server	= document.domain;
	/****************************************
	* Set PageName
	*****************************************/
	var SCBaseURL	= "";
	var SCChannel	= "";
	var SCStatus	= "";
	var SCSiteID	= "Ohters";
	for(var i=0;i<SCSiteBaseData.length;i++){
		if(SCBasePageName.indexOf(SCSiteBaseData[i][0])>-1){
			SCBaseURL		= SCSiteBaseData[i][0];
			SCSiteID		= SCSiteBaseData[i][1];
			SCChannel		= SCSiteBaseData[i][2];
			SCStatus		= SCSiteBaseData[i][3];
			s_sc_cd.siteID	= "dms" + SCSiteBaseData[i][1];
			break;
		}
	}

	if(!s_sc_cd.pageName&&!s_sc_cd.pageType){
		s_sc_cd.pageName	= SCpageNameSetUp(SCBasePageName,SCBaseURL);
		s_sc_cd.hier1		= s_sc_cd.pageName;
	}

	/****************************************
	* Set Section
	*****************************************/
	if(typeof(SCdevflag)!="undefined"){
		var SCprechannel	=s_sc_cd.URLsplit(s_sc_cd.pageName,':',3);
		s_sc_cd.channel	=SCprechannel.replace(":sm:",":");
	}else{
		s_sc_cd.channel	=s_sc_cd.URLsplit(s_sc_cd.pageName,':',2);
	}
	s_sc_cd.prop1	=s_sc_cd.URLsplit(s_sc_cd.pageName,':',3);
	s_sc_cd.prop2	=s_sc_cd.URLsplit(s_sc_cd.pageName,':',4);
	s_sc_cd.prop3	=SCChannel;
	s_sc_cd.prop4	=SCStatus;
	var SCpathName	=s_sc_cd.pageName;

	AjaxBaseName = s_sc_cd.pageName;
	if(s_sc_cd.siteID == "toyotatest"){
		SCpathName	=SCpathName.substring(11);

	}else{
		SCpathName	=SCpathName.substring(9);
		if(SCpathName.substring(0,1) == ":"){
			SCpathName	=SCpathName.substring(1);
		}
	}
	s_sc_cd.prop5	=SCpathName;
	s_sc_cd.prop9	=SCSiteID;


	/****************************************
	* Set Document Title/URL/Get Pram
	*****************************************/
	s_sc_cd.prop7	=document.title;
	s_sc_cd.prop8	=location.host + location.pathname;


	/****************************************
	* New/Repeat
	*****************************************/
	s_sc_cd.prop13=s_sc_cd.getNewRepeat(60);

	/****************************************
	* Get Pram
	*****************************************/
	SCGetQueryString	=SCBasePageName.split('?')[1];
	if(SCGetQueryString){
		s_sc_cd.prop26	=textSlice(SCGetQueryString,100);
		(function(s_sc_cd, query_string) {
			if (s_sc_cd.pageName.indexOf("tjp:service:estimate_simulation:dc:estimate_result:mkessm_simresult") < 0
			 && s_sc_cd.pageName.indexOf("tjp:service:dealer_estimate:dc:estimate_result:dlessm_simresult") < 0) return;
			var qs1 = textSlice(query_string, 255);
			s_sc_cd.eVar22 = qs1;
			if (query_string.length <= qs1.length) return;
			var qs2 = query_string.slice(qs1.length);
			s_sc_cd.eVar23 = textSlice(qs2, 255);
		})(s_sc_cd, SCGetQueryString);
	}


	/****************************************
	* getPercentPageViewed
	*****************************************/
	var prevName=s_sc_cd.getPreviousValue(s_sc_cd.pageName,"s_pv");
	s_sc_cd.prop25=prevName;
	if (s_sc_cd.prop25){
		s_sc_cd.prop24=s_sc_cd.getPercentPageViewed();
	}

	/****************************************
	* Campaign
	*****************************************/
	var s_sc_tmpData=s_sc_cd.getQueryParam('adid');
	s_sc_cd.campaign=textSlice(s_sc_tmpData,255);

	if(s_sc_cd.campaign){
		s_sc_cd.prop15=s_sc_cd.eVar15='D=v0';
	}

	/****************************************
	* Campaign Path
	*****************************************/
	var pathParm = s_sc_cd.getQueryParam('padid');
	if(pathParm){
		s_sc_tmpData=pathParm + ":" + s_sc_cd.pageName;
		s_sc_cd.prop14=textSlice(s_sc_tmpData,100);
	}else{
		s_sc_cd.prop14="D=pageName";
	}



	/****************************************
	* dmp key
	*****************************************/
	(function(s_sc_cd, cookie) {
		var dmpkey = (function getCookie(cookie, name) {
			if (!name || !cookie) return;
			var cookies = cookie.split("; ");
			for (var i = 0; i < cookies.length; i++) {
				var str = cookies[i].split("=");
				if (str[0] != name) continue;
				return unescape(str[1]);
			}
			return;
		})(cookie, '_dmpuniquekey');
		if (dmpkey) s_sc_cd.prop73 = dmpkey;
	})(s_sc_cd, document.cookie);




}
s_sc_cd.doPlugins=s_sc_cd_doPlugins

/************************** PLUGINS SECTION *************************/
/* You may insert any plugins you wish to use here.                 */

/*
 * Plugin:  Ajax
 */
function SCoutput_bc_aj(addname, opt_p) {
	var k, m, o={};
	if (typeof addname !== "undefined") {
		s_sc_cd.pageName = AjaxBaseName + ":" + addname;
	} else {
		s_sc_cd.pageName = AjaxBaseName + ":noname";
	}
	if (opt_p) {
		for (k in opt_p) {
			m = k.match(/^SC((prop|eVar)[0-9]+|events|products)$/);
			if (m) o[m[1]] = opt_p[k];
		}
	}
	s_sc_cd.usePlugins = false;
	void(s_sc_cd.t(o));
	var dt={'event':'SCvirtualpv',currentUrl:window.location.href};
	window.DMP.onetag.custom.aa2gtm(dt,s_sc_cd);
	window.DMP.onetag.custom.aa2gtm(dt,o);
	window.dataLayer.push(dt);
}

s_sc_cd.isExistEvents = function (ev) {
	var s_sc_cd = this;
	if (!s_sc_cd.events) {return false; }
	if (s_sc_cd.events.match(new RegExp(ev + "($|\,|\=|\:)"))) {return true; }
	return false;
};

/*
 * slice 100byte
 */
function textSlice(strSrc,size){
	if(typeof strSrc == 'undefined' || typeof strSrc == 'object'){
		return strSrc;
	}else{
		var byte=0;
		var cntbyte ="";
		var cutstring = strSrc.substring(0, size);
		for (j=0; j < cutstring.length; j++) {
			strSrc.charCodeAt(j) < 0x100 ? byte++ : byte += 2;
			if(byte > size){
				cntbyte = j;
				break;
			}
		}
		if(cntbyte)
		{
			cntbyte = cntbyte + 5;
			cutstring = strSrc.substring(0, cntbyte);
		}
		return cutstring;
	}
}

/*********************** CORECODE SECTION START **********************/
/************** DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
s_sc_cd.URLsplit=function(c,b,e){var a="";c=c?c:document.location;c=c.split("?")[0];c=c.replace("https://","");c=c.replace("http://","");b=b?b:"/";e=e?e:"2";var f=c.split(b);if(f.length<e){e=f.length}var d=0;for(var d=0;d<e;d++){if(d==0){a=f[d]}else{a=a+b+f[d]}}return a};s_sc_cd.getPageName=function(b){var a=this;pageName=a.siteID?a.siteID:"";separator=a.pathConcatDelim;exclude=a.pathExcludeDelim;keepList=a.queryVarsList;url=b?b:""+a.wd.location;query=url.indexOf("?")<0?"":url.substring(url.indexOf("?")+1);path_index=url.indexOf("/",url.indexOf(":")+4);exclude_index=exclude?path.indexOf(exclude):-1;path=url.substring(path_index+1,query?url.indexOf("?"):url.length);path=path.indexOf("#")<0?path:a.exist_substring(path,path.indexOf("#"));path=exclude_index<0?path:a.exist_substring(path,exclude_index);path+=!path||path.charAt(path.length-1)=="/"?a.defaultPage:"";slash_convert=separator?separator:"/";while(path){slash_index=path.indexOf("/");slash_index=slash_index<0?path.length:slash_index;cutted=a.exist_substring(path,slash_index);if(!a.cut_refunc(a.pathExcludeList,",","compare",cutted)){pageName+=pageName?slash_convert+cutted:cutted}path=path.substring(slash_index+1)}keep_convert=separator?separator:"?";while(keepList){connma_index=keepList.indexOf(",");connma_index=connma_index<0?keepList.length:connma_index;keep_cutted=a.exist_substring(keepList,connma_index);keep_cutted=a.cut_refunc(query,"&","compare",keep_cutted);if(keep_cutted){pageName+=pageName?keep_convert+keep_cutted:keep_cutted;keep_convert=separator?separator:"&"}keepList=keepList.substring(connma_index+1)}return pageName};s_sc_cd.compare=function(c,b){var a=c.indexOf("=");return b.toLowerCase()==c.substring(0,a<0?c.length:a).toLowerCase()?c:0};s_sc_cd.getQueryParam=function(c,f,a){var h=this,b="",d,j;f=f?f:"";a=a?a:(h.pageURL?h.pageURL:h.wd.location);a+="";while(c){d=c.indexOf(",");d=d<0?c.length:d;var g=a.indexOf("?"),e;if(c.substring(0,d)&&g>-1){e=a.substring(g+1);j=h.cut_refunc(e,"&","getQueryParamVal",c.substring(0,d))}if(j){j=j.indexOf("#")>-1?j.substring(0,j.indexOf("#")):j;b+=b?f+j:j}c=c.substring(d==c.length?d:d+1)}return b};s_sc_cd.getQueryParamVal=function(n,c){if(n){var o=this,f=n.indexOf("="),a=f<0?n:n.substring(0,f),k=f<0?"True":n.substring(f+1);if(a.toLowerCase()==c.toLowerCase()){var q;if(k){k=""+k;var g=new Array,m=0,l,b="",d;if(k){if(k.split){g=k.split("+")}else{while(m>=0){l=k.indexOf("+",m);g[g.length]=k.substring(m,l<0?k.length:l);m=l;if(m>=0){m+=1}}}}if(g&&g.length>0){b=g[0];if(g.length>1){if(g.join){b=g.join(" ")}else{for(d=1;d<g.length;d++){b+=" "+g[d]}}}}if(o.em==3){var h;try{q=decodeURIComponent(b)}catch(h){q=unescape(b)}}else{q=unescape(b)}}return q}}return""};s_sc_cd.getNewRepeat=function(){return""};s_sc_cd.getPreviousValue=function(){return""};s_sc_cd.getPercentPageViewed=function(){return""};s_sc_cd.getPageNum=function(){return""};function s_gi(a,c,b){s=new Object;s.wd=window;s.t=function(d){var e=this;if(e.usePlugins){e.doPlugins(e)}return};if(s.wd.s_sc_cd&&typeof s.wd.s_sc_cd.tl=="function"){s.tl=function(l,g,m,e,k){var h=this,d;window.dataLayer=window.dataLayer||[];d=function(o,n){for(var f in n){if(typeof n[f]==="undefined"){continue}if(f.lastIndexOf("prop",0)===0||f.lastIndexOf("eVar",0)===0){o["SC"+f]=n[f]}else{if(f==="events"&&typeof n[f]==="string"){n[f].split(",").forEach(function(q){var p=q.trim();o[p]=p})}else{if(f.lastIndexOf("event",0)===0||f.lastIndexOf("list",0)===0||f==="pageName"||f==="pagetype"||f==="products"||f==="campaign"){o[f]=n[f]}}}}};var j={event:"SCcustomlink",SCcustomlink:m,currentUrl:window.location.href};d(j,h);if(e){d(j,e)}window.dataLayer.push(j);return}}else{s.tl=function(h,e,j,d,g){return}}s.exist_substring=function(e,d){return e?(""+e).substring(0,d):e};s.cut_refunc=function(e,j,f,h){var m=this,d=e,g,k=0,l;while(d){g=d.indexOf(j);g=g<0?d.length:g;d=d.substring(0,g);l=m[f](d,h);if(l){return l}k+=g+j.length;d=e.substring(k,e.length);d=k<e.length?d:""}return""};s.em=0;if(s.em.toPrecision){s.em=3}else{if(String.fromCharCode){i=escape(String.fromCharCode(256)).toUpperCase();s.em=(i=="%C4%80"?2:(i=="%U0100"?1:0))}}return s};
/************************* UPDATED IN 2020/06 ************************/
/************************ CORECODE SECTION END ***********************/

(function(w,s){
	var tl=s.tl,a;
	w.dataLayer=w.dataLayer||[];
	w.DMP.onetag.custom=w.DMP.onetag.custom||{};
	a=w.DMP.onetag.custom.aa2gtm=function(dt,vo){
		for(var k in vo){
			if(typeof vo[k]==='undefined') continue;
			if(k.lastIndexOf('prop',0)===0||k.lastIndexOf('eVar',0)===0){
				dt['SC'+k]=vo[k];
			}else if(k==='events'&&typeof vo[k]==='string'){
				vo[k].split(',').forEach(function(key){var ci=key.trim();dt[ci]=ci});
			}else if(k.lastIndexOf('event',0)===0||k.lastIndexOf('list',0)===0||k==='pageName'||k==='pagetype'||k==='products'||k==='campaign'){
				dt[k]=vo[k];
			}
		}
	};
	s.tl=function(o,t,n,vo,f){
		var r=tl.apply(this, arguments),dt={event:"SCcustomlink",SCcustomlink:n,currentUrl:w.location.href};
		a(dt,s);
		if(vo) a(dt,vo);
		w.dataLayer.push(dt);
		return r;
	};
})(window,s_sc_cd);
if(document.addEventListener){
	document.addEventListener("DOMContentLoaded", function(event) {
		var sc_doing=SCoutput();
	});
}else if(window.attachEvent){
	window.attachEvent( 'onload', function(event) {
		var sc_doing=SCoutput();
	});
}
} catch(e) {
DMP.onetag.error.push(982);
}
try {
/* DMP Beacon*/
document.write('<script type="text/javascript" language="javascript" src="//beacon.tws.toyota.jp/dmp/beacon.js?v=20150406-01"></script>');
document.write('<script type="text/javascript" language="javascript">'
    + 'function execDMP(){'
    + '  if ( typeof(DMP) === "object" && typeof(DMP.accessLog) === "function" ) {'
    + '    DMP.accessLog();'
    + '  } else {'
    + '   setTimeout(execDMP,100);'
    + '  }'
    + '}'
    + 'execDMP();'
    + '</script>');
/* DMP Beacon*/
} catch(e) {
DMP.onetag.error.push(51);
}
