/******************************************	

	変数set

 ******************************************/
//var areajs = "mi" ;
var mdjs = "" ;
var smdjs = "" ;
/******************************************	

	navi jmp

 ******************************************/
function navijmp(loc){
	if ( loc == '' ){
		location.href='http://www.mitoyo-y.com/mnavim_mi.html';
	}else if (loc == 'g'){
		location.href='http://www.sanukids.com/mnavig_mi.html';
	}else if (loc == 's'){
		location.href='http://www.sanukids.com/mnavis_mi.html';
	}
}

/******************************************	

	swap

 ******************************************/
function swap(name,img){
	if(document.images){
		document.images[name].src = img;
	}
}
function aset(name){
	if(document.images){
//		top.com.document.images['atop'].src = './img/spa13x13.gif';
		top.com.document.images['advl'].src = './img/spa13x13.gif';
		top.com.document.images['coul'].src = './img/spa13x13.gif';
		top.com.document.images['grud'].src = './img/spa13x13.gif';
		top.com.document.images['dosd'].src = './img/spa13x13.gif';
		top.com.document.images['shpd'].src = './img/spa13x13.gif';
//		if(name ==	'atop'){
//			top.com.document.images['atop'].src = './img/arrow.gif';
		if(name ==	'advl'){
			top.com.document.images['advl'].src = './img/arrow.gif';
		}else if(name ==	'coul'){
			top.com.document.images['coul'].src = './img/arrow.gif';
		}else if(name ==	'shpd'){
			top.com.document.images['shpd'].src = './img/arrow.gif';
		}else if(name ==	'grud'){
			top.com.document.images['grud'].src = './img/arrow.gif';
		}else if(name ==	'dosd'){
			top.com.document.images['dosd'].src = './img/arrow.gif';
		}
	}
}
/******************************************	

	矢印セット

 ******************************************/
function arrowset(name){
	if(document.images){
		aclr();
//		if(name ==	'atop'){
//			top.com.document.images['atop'].src = './img/arrow.gif';
		if(name ==	'advl'){
			top.com.document.images['advl'].src = './img/arrow.gif';
		}else if(name ==	'coul'){
			top.com.document.images['coul'].src = './img/arrow.gif';
		}else if(name ==	'shpd'){
			top.com.document.images['shpd'].src = './img/arrow.gif';
		}else if(name ==	'grud'){
			top.com.document.images['grud'].src = './img/arrow.gif';
		}else if(name ==	'dosd'){
			top.com.document.images['dosd'].src = './img/arrow.gif';
		}
	}
}
/******************************************	

	矢印クリア

 ******************************************/
function aclr(){
	if(document.images){
//		top.com.document.images['atop'].src = './img/spa13x13.gif';
		top.com.document.images['advl'].src = './img/spa13x13.gif';
		top.com.document.images['coul'].src = './img/spa13x13.gif';
		top.com.document.images['grud'].src = './img/spa13x13.gif';
		top.com.document.images['dosd'].src = './img/spa13x13.gif';
		top.com.document.images['shpd'].src = './img/spa13x13.gif';
	}
}
/******************************************	

	ページ選択

 ******************************************/
function pagesel(area1){

//	if (mdjs == 'sall'){		/* 検索窓表示時 *//* navi側のみ変更 */
//		page='mnavi' + top.navi.fnavi.navijs.value + '_' + areajs + '.html';
//
//														/* knavig_mi.html */
//		top.navi.location.href=page;
//
	if (mdjs == 'l_qou'){	/* クーポン表示変更時 *//* main側のみ変更 */
		page='http://www.sanukids.com/ksea.cgi' + '?' + 'md=' + mdjs + '&area=' + areajs;
														/* ksea.cgi?md=l_qou&area=mi */
		top.main.location.href=page;
	}else if (mdjs == 'l_adv'){	/* お知らせ表示変更時 *//* main側のみ変更 */
		page='http://www.sanukids.com/ksea.cgi' + '?' + 'md=' + mdjs + '&area=' + areajs;
														/* ksea.cgi?md=l_adv&area=mi */
		top.main.location.href=page;
	}else if (mdjs == 'l_gru'){	/* グルメ／お買い物／お土産表示変更時 *//* main側のみ変更 */
		page='http://www.sanukids.com/kshop.cgi' + '?' + 'md=' + mdjs +  '&smd=' + smdjs + '&area=' + areajs;
														/* ksea.cgi?md=l_adv&smd=s&area=mi */
		top.main.location.href=page;
	}else if (mdjs == 'mitoyo'){	/* TOPへ *//* main側のみ変更 */
		page='http://www.sanukids.com/kindexmake.cgi' + '?' + 'area=' + areajs + '&md=mitoyo' ;
														/* kindexmake.cgi?area=mi */
		top.main.location.href=page;
	}
}
/******************************************	

 ******************************************/
function areaset(area){
	areajs=area;
}
/******************************************	

 ******************************************/
function mdset(md){
	mdjs=md;
}
/******************************************	

 ******************************************/
function smdset(smd){
	smdjs=smd;
}
/******************************************	

 ******************************************/
/*
function colset(this){
	this.style.color='red';
}
*/
/*
 onclick="javascript:this.style.color='red'"
*/
