//---------------------------- Set Base href
ServerName = "https://asp1.prohouse.co.jp";

function SetBaseHref(SubDirectory) {
   document.write('<base href="' + ServerName + SubDirectory + '">');
}

//---------------------------- Rollover Image Change
var img = new Array();
//--------------------共通
img[0] = new Image();  img[0].src = "./img/btn_dress.gif";
img[1] = new Image();  img[1].src = "./img/btn_dress_on.gif";
img[2] = new Image();  img[2].src = "./img/btn_card.gif";
img[3] = new Image();  img[3].src = "./img/btn_card_on.gif";
img[4] = new Image();  img[4].src = "./img/btn_present.gif";
img[5] = new Image();  img[5].src = "./img/btn_present_on.gif";
img[6] = new Image();  img[6].src = "./img/btn_icn.gif";
img[7] = new Image();  img[7].src = "./img/btn_icn_on.gif";
img[8] = new Image();  img[8].src = "./img/btn_icn.gif";
img[9] = new Image();  img[9].src = "./img/btn_icn_on.gif";
img[10] = new Image();  img[10].src = "./img/btn_enter.gif";
img[11] = new Image();  img[11].src = "./img/btn_enter_on.gif";
img[12] = new Image();  img[12].src = "./img/btn_regist.gif";
img[13] = new Image();  img[13].src = "./img/btn_regist_on.gif";
img[14] = new Image();  img[14].src = "./img/btn_first.gif";
img[15] = new Image();  img[15].src = "./img/btn_first_on.gif";
img[16] = new Image();  img[16].src = "./img/btn_plugin.gif";
img[17] = new Image();  img[17].src = "./img/btn_plugin_on.gif";
//------------------
img[22] = new Image();  img[22].src = "./img/common/btn_close.gif";
img[23] = new Image();  img[23].src = "./img/common/btn_close_on.gif";

//--------------------PRO*Land対策
img[30] = new Image();  img[30].src = "./img/common/btn_back.gif";
img[31] = new Image();  img[31].src = "./img/common/btn_back_on.gif";
img[32] = new Image();  img[32].src = "./img/common/towntop.gif";
img[33] = new Image();  img[33].src = "./img/common/towntop_on.gif";


function Mover(nam,num) {
	if(navigator.appVersion.charAt(0) >= "3") {
		document.images[nam].src = img[num].src;
	}else{}
}

function Mout(nam,num) {
		document.images[nam].src = img[num].src;
}


//---------------------------- Sub Window Open無料ページ用
function subWin(path) {
	var msie4 = navigator.appVersion.indexOf('MSIE 4') != -1;
	url = path;
	window_option = "resizable=1,directories=1,menubar=0,status=1,location=0,scrollbars=1,toolbar=1,height=600,width=660";
	if(msie4){
		// for IE 4.*
		sublicca = window.open(url, "_blank", window_option);
	}
	else{
		sublicca = window.open(url, "sublicca", window_option);
	}
}

//---------------------------- go to サンプル Page
function sampleWin(A) {
     url = "../html/sample.html?" + A;
    liccaWin = window.open(url, 'sWin','width=680,height=600,status=no,scrollbars=yes,directories=no,menubar=1,resizable=1,toolbar=1');
   liccaWin.focus();
}

//---------------------------- go to サンプル Page
function sampleIMG() {
    get = location.search;	
	img = get.substr(5,11);
//	alert(img);
	regiIMG = "sam_" + img; 
	
	image = "../img/sample/" + regiIMG + ".jpg";
	document.write('<img src=' + image + ' alt="SAMPLE">');
}

//---------------------------- go to Registration Page
function goRegist() {
	 get = location.search;
	 isp = get.substr(5,7);
	 isp2 = get.substr(10,13);
//	alert(isp);
//	alert(isp2);
	if(isp == "nif"){regiURL = "regist_nif.html"}
	else if(isp == "big"){regiURL = "regist_big.html"}
	else if(isp == "dio"){regiURL = "regist_dio.html"}
	else if(isp == "ffn"){regiURL = "regist_ffn.html"}
	else if(isp == "odn"){regiURL = "http://www.odn.ne.jp/contents/close/"}
	else if(isp == "ocn"){regiURL = "regist_ocn.html"}
	else if(isp == "hub"){regiURL = "regist_hub.html"}
	else if(isp == "sbb"){regiURL = "regist_sbb.html"}
	else {regiURL = "/proyaex/ticket/default.asp?I=" + isp2 + "&F=licca_ticket"}
	location.href = regiURL;
}

//---------------------------- go to Top Page
function gotop() {
	 get = location.search;
	 isp = get.substr(5,7);
	 isp2 = get.substr(10,13);
//	alert(isp);
	if(isp == "nif"){regiURL = "index_nif.html"}
	else if(isp == "big"){regiURL = "index_big.html"}
	else if(isp == "dio"){regiURL = "http://www.dion.ne.jp/contents/study/prh/licca/"}
	else if(isp == "ffn"){regiURL = "http://media.pmall.ne.jp/licca/"}
	else if(isp == "odn"){regiURL = "http://charge.odn.ne.jp/licca/"}
	else if(isp == "ocn"){regiURL = "http://asp1.prohouse.co.jp/licca/index_ocn.html"}
	else if(isp == "hub"){regiURL = "http://liccachan.net/index2.html"}
	else if(isp == "sbb"){regiURL = "index_sbb.html"}
	else {regiURL = "/proyaex/ticket/default.asp?I=" + isp2 + "&F=licca_index"}

	location.href = regiURL;
}

//---------------------------- 会員トップサブウィンドウ
function topWin(path){
	url = path;
	topWin =window.open (url,'topWin','resizable=1,directories=1,menubar=1,status=1,location=0,scrollbars=1,toolbar=0,height=600,width=820');
	
	window.self.close();
	}