//トピックのメッセージ

function mesg(){

var Tdate = new Date();
var dath=Tdate.getHours();
var months=Tdate.getMonth() + 1;
var days=Tdate.getDate();
var dmesg=new Array(24);

dmesg[0] ="こんばんは！"
dmesg[1] ="こんばんは！"
dmesg[2] ="こんばんは！"
dmesg[3] ="こんばんは！"
dmesg[4] ="こんばんは！"
dmesg[5] ="こんばんは！"
dmesg[6] ="おはようございます！"
dmesg[7] ="おはようございます！"
dmesg[8] ="おはようございます！"
dmesg[9] ="おはようございます！"
dmesg[10] ="おはようございます！"
dmesg[11] ="おはようございます！"
dmesg[12] ="こんにちは！"
dmesg[13] ="こんにちは！"
dmesg[14] ="こんにちは！"
dmesg[15] ="こんにちは！"
dmesg[16] ="こんにちは！"
dmesg[17] ="こんにちは！"
dmesg[18] ="こんばんは！"
dmesg[19] ="こんばんは！"
dmesg[20] ="こんばんは！"
dmesg[21] ="こんばんは！"
dmesg[22] ="こんばんは！"
dmesg[23] ="こんばんは！"

//document.write('<a href="http://www.bedroom.co.jp/whatsnew/shift.html" target="_top">');
//document.write(dmesg[dath]);
//document.write('【お知らせ】お盆期間中の営業につきまして');
//document.write("(" + months + "/" + days + ")");
//document.write('</a>');


}



//カレンダー下のメッセージ

function calendermesg(){

//document.write('<br /><br /><strong><a href="http://www.bedroom.co.jp/whatsnew/shift.html" target="_top">');
//document.write('お盆期間中の営業につきまして');
//document.write('</a></strong>');


}



//お気に入りに追加ボタン

function favorite(){

if(navigator.userAgent.indexOf("MSIE") > -1){
document.write(' │ ');
document.write('<!-'+'-[if IE]>');
document.write('<a href="#" onclick="window.external.AddFavorite(\'http://www.bedroom.co.jp/\',\'ベッド専門店 − THE BED ROOM\')">');
document.write('お気に入りに追加');
document.write('</a>');
document.write('<![endif]-'+'->');
}

else if(navigator.userAgent.indexOf("Firefox") > -1){
document.write(' │ ');
document.write('<a href="#" onclick="window.sidebar.addPanel(\'ベッド専門店 − THE BED ROOM\',\'http://www.bedroom.co.jp/\',\'\');">');
document.write('ブックマーク');
document.write('</a>');
}

else{
void(0);
}

}



//トップページの表示

function toppage(){

if((top.location.href == 'http://www.bedroom.co.jp/')||(top.location.href == 'http://www.bedroom.co.jp/index.html')){
void(0);
}

else{
document.write('<a href="http://www.bedroom.co.jp/" target="_top"><img src="/shop/item/bedroom/design/img01/head_i01.gif" width="18" height="14" border="0"><b>トップページはこちら</b></a>');
}

}




//ログインの表示

function ShowLogin(){

if(top.location.href.indexOf('fs/bedroom',0) >= 0){
document.write('<table border="0" cellpadding="0" cellspacing="0">');
document.write('<tr>');
document.write('<td><a href="http://www.bedroom.co.jp/jump/rakuten.html" target="_blank"><img src="/shop/item/bedroom/design/img01/head_to-raku.gif" width="95" height="20" border="0"></a></td>');
document.write('<td width="10"></td>');
document.write('<td><a href="http://www.bedroom.co.jp/jump/yahoo.html" target="_blank"><img src="/shop/item/bedroom/design/img01/head_to-yaho.gif" width="101" height="20" border="0"></a></td>');
document.write('</tr>');
document.write('</table>');
}

else {
document.write('<table border="0" cellpadding="0" cellspacing="0">');
document.write('<tr>');
document.write('<td><a href="https://c10.future-shop.jp/fs/bedroom/Login.html" target="_top"><img src="/shop/item/bedroom/design/img01/head_i01.gif" width="18" height="14" border="0">会員ログイン</a></td>');
document.write('<td width="10"></td>');
document.write('<td><a href="http://www.bedroom.co.jp/contents/club/club.html" target="_top"><img src="/shop/item/bedroom/design/img01/head_i01.gif" width="18" height="14" border="0">お得で便利な会員登録（無料）</a></td>');
document.write('<td width="10"></td>');
document.write('</tr>');
document.write('</table>');
}

}
