// お問い合わせページ リンク
function focusColor(i){
	i.style.borderColor='#D1CEBD';
	i.style.backgroundColor='#F2F1E5';
	i.style.color='#666666';
}
function blurColor(i){
	i.style.borderColor='#D7D5CA';
	i.style.backgroundColor='#ffffff';
	i.style.color='#666666';
}



function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features).focus();
}



//印刷
function pagePrint(){
	m = escape("このページを印刷します。よろしいですか？");
	r = confirm(unescape(m));
	if (r) self.print();
}



//  newIcon表示(入手可能店舗)
kikan = 30;      // 日数を変更する場合はこの値を適当に
icon = "<span><img src='../../images/common/new_icon.gif' width='21' height='12' /'></span>";  // 適宜、サイズやalt属性を指定
today = new Date();
upday = new Date();
function koushin(y, m, d) {
   upday.setFullYear(y);
   m = m - 1;
   upday.setMonth(m);
   upday.setDate(d);
   difference = today.getTime() - upday.getTime();
   difference = Math.floor(difference / (1000 * 60 * 60 * 24));
   if (difference < kikan) {
      document.write(icon);
   }
}



//  newIcon表示(レシピ)
kikan2 = 30;      // 日数を変更する場合はこの値を適当に
icon2 = "<span><img src='images/recipe_icon_new.png' alt='new' width='25' height='27' /></span>";  // 適宜、サイズやalt属性を指定
today = new Date();
upday = new Date();
function koushin2(y, m, d) {
   upday.setFullYear(y);
   m = m - 1;
   upday.setMonth(m);
   upday.setDate(d);
   difference = today.getTime() - upday.getTime();
   difference = Math.floor(difference / (1000 * 60 * 60 * 24));
   if (difference < kikan2) {
      document.write(icon2);
   }
} 



//03入手可能店舗
function gazou(mySrc){
document.myimg.src=mySrc;
}



//ブログIDアイコン変換

function class_season(){
var icon;
if (1==category) {
	icon = 'pdf';
}
else if (2==category) {
	icon = 'news';
}
else if (4==category) {
	icon = 'recipe';
}
	document.write('<span class="' + icon + '">');
}


