
/* urlparser class */

var urlparser = function(){


	this.url  = document.location.href;
	this.path = document.location.pathname;
	this.host = document.location.hostname;

	if(this.path == "/"){

		this.path_ary = {};
	}
	else {
		this.pathreg = this.path.replace(/^\//,"");
		this.pathreg = this.pathreg.replace(/(\..*$|\/$)/,"");
		this.path_ary = this.pathreg.split("/");
	}
	

	this.layer = this.path_ary.length;	
	this.current = this.path_ary[0];

	this.descend = function(){

		if (this.path_ary.length > 0){
			this.parent_dir = this.path_ary.shift();
			this.current = this.path_ary[0];
			this.layer = this.path_ary.length;
		}
	};

}

var dir = new urlparser();
var formname = "";

do{
	switch(dir.current){	
		case "services":	s.channel = "サービス";		break;
			case "tv": s.products = "1;s1,1;s2";	s.events="prodView";	s.channel = "J:COM TV";		break;
			case "hdr":	s.products = "1;s3,1;s4";	s.events="prodView";	s.channel = "J:COM TV (HDR)";	break;
			case "chideji_bs_ao":	s.products = "1;s17,1;s18,1;s19";	s.events="prodView";	s.channel = "J:COM TV (追加地デジ/BSデジコース)";	break;
			case "option":	if(dir.parent_dir == "tv"){	s.products = "1;o20,1;o22,1;o23,1;o24,1;o25,1;o26,1;o27,1;o28,1;o29,1;o30,1;o31,1;o33,1;o34,1;o35,1;o36,1;o37,1;o38,1;o39,1;o40,1;o41,1;o46,1;o51,1;o52,1;o53";	s.events="prodView";	break;}
							else if(dir.parent_dir == "net"){	s.products = "2;o2,2;o3,2;o45";	s.events = "prodView";	break;}
							else if(dir.parent_dir == "phone"){	s.products = "4;o8,4;o9,4;o10,4;o12,4;o13,4;o14,4;o15,4;o16,4;o17,4;o18,4;o21,4;o43,4;o44";	s.events = "prodView";	break;}
							else break;
			case "m_option":	s.products = "14;o19";	s.events = "prodView";	break;
			case "kantan_rimokon":	s.products = "1;o47";	s.events ="prodView";	break;
			case "net":	s.products = "2;s5,2;s6,2;s7,2;s8,2;s9,2;s10";	s.events="prodView";	s.channel = "J:COM NET";	break;
			case "phone":	s.products = "4;s13";	s.events="prodView";	s.channel  = "J:COM PHONE";	break;
			case "mobile":	s.products = "5;s14";	s.events="prodView";	s.channel  = "J:COM MOBILE";	break;
			case "secure":	s.products = "6;s15";	s.events="prodView";	s.channel  = "J:COM 緊急地震速報";	break;
			case "area":	if(dir.parent_dir == "services"){	s.channel = "サービスエリア検索";	s.pageName="サービスエリア検索";}	break;
		case "soho":	s.channel = "B2B: J:COM in the office";		break;
		case "campaign":	s.channel = "キャンペーン";		break;			
		case "mediaguide":	s.channel = "B2B: メディアガイド";		break;
		case "user":	s.channel = "加入者特典";		break;
		case "join":	s.channel = "お申込み・お手続き";		break;
		case "square":	s.channel = "J:COM SQUARE";		break;
		case "about":	s.channel = "カスタマーサポート";		break;
		case "customer":	s.channel = "カスタマーサポート";		break;
		case "popup_invoice":	s.channel = "カスタマーサポート";		break;
		case "pricing":	s.channel = "料金";		break;
		case "pay":	s.channel = "料金";		break;
		case "netprice":	s.channel = "料金";		break;
		case "area_select":	s.channel = "マイエリア設定";		break;
		case "contactus":	s.channel = "お問合せ";		break;
		case "program":	s.channel = "番組情報";	break;
		case "aboutjcom":	s.channel = "J:COMってなに？";		break;
		case "biz_devl":	s.channel = "B2B J:COM導入ガイド";		break;
		case "notice":	s.channel = "お知らせ";		break;
		case "shop":	s.channel = "ジェイコムショップ";		break;
		case "inmyroom":	s.channel = "J:COM in My Room";		break;
		case "brand":	s.channel = "ブランド";		break;
		case "contact":	s.channel = "お申込み・お手続き";	break;
		case "files":	s.channel = "files";	break;
		case "mail":	s.channel = "mail";	break;
		case "1Sriasd521Js":	s.channel = "BROOM";	break;

}
	dir.descend();


}while(dir.layer > 0);





<!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.15.1. -->

