<!--
var target="";
//最初に、どの対象から呼ばれたかを変数targetに格納
//p：個人向け、f：金融機関向け、c：事業会社向け、a：その他（TOPからと判断）
//alert(document.URL);
if (document.URL.indexOf("target=p") > 0){
	target="p";
} else if (document.URL.indexOf("target=f") > 0){
	target="f";
} else if (document.URL.indexOf("target=c") > 0){
	target="c";
} else {
	target="a";
}

//上部のタイトル表示
function writeTitle00(){
	switch(target){
		case "p":
			document.write('個人向けサービス');
			break;
		case "f":
			document.write('金融機関向けサービス');
			break;
		case "c":
			document.write('事業会社向けサービス');
			break;
		default:
			document.write('事業・サービス一覧');
			break;
	}
}

function writeTitle01(){
	switch(target){
		case "p":
			document.write('<img src="../images/s_kojin.gif" alt="アーティスの個人向け事業・サービス一覧" width="590" height="30">');
			document.write('<h2>個人向けサービス</h2>');
			break;
		case "f":
			document.write('<img src="../images/s_financial.gif" alt="アーティスの金融機関向け事業・サービス一覧" width="590" height="30">');
			document.write('<h2>金融機関向けサービス</h2>');
			break;
		case "c":
			document.write('<img src="../images/s_corporate.gif" alt="アーティスの事業会社向け事業・サービス一覧" width="590" height="30">');
			document.write('<h2>事業会社向けサービス</h2>');
			break;
		default:
			document.write('<img src="../images/s_service.gif" alt="アーティスの事業・サービス一覧" width="590" height="30">');
			document.write('<h2>事業・サービス一覧</h2>');
			break;
	}
}

function goLink(file, name){
	if (name == undefined) {
		name = "";
	}
	if (name == ""){
		document.location.href = file + "?target=" + target;
	} else {
		document.location.href = file + "?target=" + target + "&name=" + name + "#" + name;
	}
}

function goService(tgt){
	if (document.URL.indexOf("human") > 0){
		document.location.href = "../service/human.html?target=" + tgt;
	} else if (document.URL.indexOf("other") > 0){
		if (tgt == "f" || tgt == "c"){
			document.location.href = "../service/solution.html?target=" + tgt;
		} else {
			document.location.href = "../service/other.html?target=" + tgt;
		}
	} else {
		document.location.href = "../service/solution.html?target=" + tgt;
	}
}

function writeDiv(idname){
//	alert(document.URL);
	if (document.URL.indexOf("name=" + idname) > 0){
		document.write('<div id="w_' + idname + '">');
//		document.write('<div id="w_consal">');
	} else {
		document.write('<div>');
	}
}
//-->

