//---------------- Feature Area ----------------
lnkBig  = new Array();		// フィーチャーエリア（大）リンク先
imgBig  = new Array();		// フィーチャーエリア（大）画像　【拡張子不要：JPEG限定】
lnkMin1 = new Array();		// フィーチャーエリア（小：上）リンク先
imgMin1 = new Array();		// フィーチャーエリア（小：上）画像　【拡張子不要：JPEG限定】
lnkMin2 = new Array();		// フィーチャーエリア（小：中）リンク先
imgMin2 = new Array();		// フィーチャーエリア（小：中）画像　【拡張子不要：JPEG限定】
lnkMin3 = new Array();		// フィーチャーエリア（小：下）リンク先
imgMin3 = new Array();		// フィーチャーエリア（小：下）画像　【拡張子不要：JPEG限定】

// 平日の9:00-19:00 に表示する要素
lnkBig[0]  = "/ec/campaign/offirio/otoku10/";
imgBig[0]  = "offirio";
lnkMin1[0] = "/products/colorio/printer/multi/";
imgMin1[0] = "ep802a";
lnkMin2[0] = "/products/offirio/emp/";
imgMin2[0] = "emp";
lnkMin3[0] = "http://shop.epson.jp/redirect/iltoshop/index-mk.asp?urlid=1fa00011";
imgMin3[0] = "endeavor";

// 上記以外
lnkBig[1]  = "/products/colorio/printer/multi/";
imgBig[1]  = "ep802a";
lnkMin1[1] = "/products/colorio/printer/me/";
imgMin1[1] = "e600";
lnkMin2[1] = "/products/colorio/printer/pro/index.htm";
imgMin2[1] = "px5002";
lnkMin3[1] = "/products/dreamio/";
imgMin3[1] = "dreamio_dm3s";




//070801- 世界陸上対応
//lnkBig[2]  = "/osirase/iaaf/";
//imgBig[2]  = "sekai02";
//lnkMin1[2] = "/products/offirio/kaikae0706/";
//imgMin1[2] = "s6000";
//lnkMin2[2] = "/products/colorio/printer/";
//imgMin2[2] = "e520";
//lnkMin3[2] = "/products/dreamio/";
//imgMin3[2] = "dreamio";

// 平日、曜日の判定
dt = new Date();
w  = dt.getDay();		// 曜日を取得（日=0,月=1,金=5,土=6）
h  = dt.getHours();		// 時刻を取得

//表示の制御
if((w>=1)&&(w<=5)&&(h>=9)&&(h<=18)){
	m = 0;			// 平日の9:00-19:00の場合
//} else if((w>=1)&&(w<=5)&&(h>=16)&&(h<=19)){
//	m = 2;			// 平日の16:00-20:00の場合
} else if((w==0)||(w==6)) {
	m = 1;			// 土日終日
} else {
	m = 1;			// 上記以外
}


function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

document.write('<div id="topFeature">');
document.write('<div class="tfList">');
document.write('<ul class="tfTop">');
document.write('<li><a href="'+lnkMin1[m]+'" title="おすすめボタン" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'top_ad_space\',\'\',\'/img_feature/'+imgMin1[m]+'_big.jpg\',\'top_ad_button01\',\'\',\'/img_feature/'+imgMin1[m]+'_f2.jpg\',1)"><img src="/img_feature/'+imgMin1[m]+'.jpg" alt="おすすめボタン" width="178" height="60" name="top_ad_button01" id="top_ad_button01" /></a></li>');
document.write('<li><a href="'+lnkMin2[m]+'" title="おすすめボタン" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'top_ad_space\',\'\',\'/img_feature/'+imgMin2[m]+'_big.jpg\',\'top_ad_button02\',\'\',\'/img_feature/'+imgMin2[m]+'_f2.jpg\',1)"><img src="/img_feature/'+imgMin2[m]+'.jpg" alt="おすすめボタン" width="178" height="60" name="top_ad_button02" id="top_ad_button02" /></a></li>');
document.write('<li><a href="'+lnkMin3[m]+'" title="おすすめボタン" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'top_ad_space\',\'\',\'/img_feature/'+imgMin3[m]+'_big.jpg\',\'top_ad_button03\',\'\',\'/img_feature/'+imgMin3[m]+'_f2.jpg\',1)"><img src="/img_feature/'+imgMin3[m]+'.jpg" alt="おすすめボタン" width="178" height="60" name="top_ad_button03" id="top_ad_button03" /></a></li>');
document.write('</ul>');
document.write('<ul class="tfBottom">');
document.write('<li><a href="/fa/" title="FA製品"><img src="/img_fresh/top_b_18.gif" alt="FA製品" width="169" height="19" /></a></li>');
document.write('<li><a href="/device/?1" title="電子デバイス製品"><img src="/img_fresh/top_b_19.gif" alt="電子デバイス製品" width="169" height="19" /></a></li>');
document.write('</ul>');
document.write('</div>');
document.write('<div class="tfPict"><a href="'+lnkBig[m]+'"><img src="/img_feature/'+imgBig[m]+'_big.jpg" alt="おすすめ情報" width="539" height="240" name="top_ad_space" id="top_ad_space" oncontextmenu="return false;" /></a></div>');
document.write('<div class="clear clearWH1"><img src="/common/img/spacer.gif" alt="" width="1" height="1" /></div>');
document.write('</div>');





