// Bookmark
// ---------------------------------------------
url = 'http://www.11foods.com/restaurant/';
name = '調理師・栄養士の食べ歩き体験談　家庭料理向上.com';
bmTitle = name + 'をお気に入りに登録';
function internetExplorer(){
	//ie向けのブックマーク登録
    window.external.addFavorite(url, name);
}
function fireFox(){
	//firefox向けのブックマーク登録
    window.sidebar.addPanel(name, url, "");
}
function bookmark(okini){//判定したブラウザ毎にリンク表示を切り替えて変更する
    if (navigator.userAgent.indexOf("Opera") > -1) {
        //Operaなら表示
        operaRel = 'rel="sidebar"';
        document.write('<a href="' + url + '" ' + operaRel + 'title="' + name + '">' + okini + '</a>');
    }
    else 
        if (navigator.userAgent.indexOf("Firefox") > -1) {
            //FireFoxなら表示
            document.write('<a href="javascript:fireFox()' + '" ' + 'title="' + bmTitle + '">' + okini + '</a>')
        }
        else {
            //該当無しなら表示（IE用）
            document.write('<a href="javascript:internetExplorer()' + '" ' + 'title="' + bmTitle + '">' + okini + '</a>')
        }
}




// Star of Average
// ---------------------------------------------
var ave=0;
var star=0;
var cnt=0;
var aveimg;

function average(){
	ave = star/cnt;
	ave = (ave * 10);
	ave = Math.round(ave);
	ave = (ave / 10);
	
	if(ave == 5){ aveimg = 50; }
	if(ave < 5){ aveimg = 45; }
	if(ave < 4.5){ aveimg = 40; }
	if(ave < 4){	aveimg = 35; }
	if(ave < 3.5){	aveimg = 30; }
	if(ave < 3){	aveimg = 25; }
	if(ave < 2.5){	aveimg = 20; }
	if(ave < 2){	aveimg = 15; }
	if(ave < 1.5){	aveimg = 10; }
	if(ave < 1){	aveimg = 5; }
	else{}
		
	ave = '<img src="http://www.11foods.com/restaurant/image/star' + aveimg + '.gif" alt="星' + ave + 'つ" title="星' + ave + 'つ" border="0" />(' + ave + ')';
	document.getElementById("star-ave").innerHTML = ave;
}


// Star of Average(Category)
// ---------------------------------------------
var ave000061=0;
var star000061=0;
var cnt000061=0;
var aveimg;

function average000061(){
	var ave;
	ave = star000061/cnt000061;
	ave = (ave * 10);
	ave = Math.round(ave);
	ave = (ave / 10);
	
	if(ave == 5){ aveimg = 50; }
	if(ave < 5){ aveimg = 45; }
	if(ave < 4.5){ aveimg = 40; }
	if(ave < 4){	aveimg = 35; }
	if(ave < 3.5){	aveimg = 30; }
	if(ave < 3){	aveimg = 25; }
	if(ave < 2.5){	aveimg = 20; }
	if(ave < 2){	aveimg = 15; }
	if(ave < 1.5){	aveimg = 10; }
	if(ave < 1){	aveimg = 5; }
	else{}
	
	ave000061 = '<img src="http://www.11foods.com/restaurant/image/star' + aveimg + '.gif" alt="星' + ave + 'つ" title="星' + ave + 'つ" border="0" />(' + ave + ')';
	document.getElementById("star-ave000061").innerHTML = ave000061;
}
var ave000060=0;
var star000060=0;
var cnt000060=0;
var aveimg;

function average000060(){
	var ave;
	ave = star000060/cnt000060;
	ave = (ave * 10);
	ave = Math.round(ave);
	ave = (ave / 10);
	
	if(ave == 5){ aveimg = 50; }
	if(ave < 5){ aveimg = 45; }
	if(ave < 4.5){ aveimg = 40; }
	if(ave < 4){	aveimg = 35; }
	if(ave < 3.5){	aveimg = 30; }
	if(ave < 3){	aveimg = 25; }
	if(ave < 2.5){	aveimg = 20; }
	if(ave < 2){	aveimg = 15; }
	if(ave < 1.5){	aveimg = 10; }
	if(ave < 1){	aveimg = 5; }
	else{}
	
	ave000060 = '<img src="http://www.11foods.com/restaurant/image/star' + aveimg + '.gif" alt="星' + ave + 'つ" title="星' + ave + 'つ" border="0" />(' + ave + ')';
	document.getElementById("star-ave000060").innerHTML = ave000060;
}
var ave000059=0;
var star000059=0;
var cnt000059=0;
var aveimg;

function average000059(){
	var ave;
	ave = star000059/cnt000059;
	ave = (ave * 10);
	ave = Math.round(ave);
	ave = (ave / 10);
	
	if(ave == 5){ aveimg = 50; }
	if(ave < 5){ aveimg = 45; }
	if(ave < 4.5){ aveimg = 40; }
	if(ave < 4){	aveimg = 35; }
	if(ave < 3.5){	aveimg = 30; }
	if(ave < 3){	aveimg = 25; }
	if(ave < 2.5){	aveimg = 20; }
	if(ave < 2){	aveimg = 15; }
	if(ave < 1.5){	aveimg = 10; }
	if(ave < 1){	aveimg = 5; }
	else{}
	
	ave000059 = '<img src="http://www.11foods.com/restaurant/image/star' + aveimg + '.gif" alt="星' + ave + 'つ" title="星' + ave + 'つ" border="0" />(' + ave + ')';
	document.getElementById("star-ave000059").innerHTML = ave000059;
}
var ave000058=0;
var star000058=0;
var cnt000058=0;
var aveimg;

function average000058(){
	var ave;
	ave = star000058/cnt000058;
	ave = (ave * 10);
	ave = Math.round(ave);
	ave = (ave / 10);
	
	if(ave == 5){ aveimg = 50; }
	if(ave < 5){ aveimg = 45; }
	if(ave < 4.5){ aveimg = 40; }
	if(ave < 4){	aveimg = 35; }
	if(ave < 3.5){	aveimg = 30; }
	if(ave < 3){	aveimg = 25; }
	if(ave < 2.5){	aveimg = 20; }
	if(ave < 2){	aveimg = 15; }
	if(ave < 1.5){	aveimg = 10; }
	if(ave < 1){	aveimg = 5; }
	else{}
	
	ave000058 = '<img src="http://www.11foods.com/restaurant/image/star' + aveimg + '.gif" alt="星' + ave + 'つ" title="星' + ave + 'つ" border="0" />(' + ave + ')';
	document.getElementById("star-ave000058").innerHTML = ave000058;
}
var ave000056=0;
var star000056=0;
var cnt000056=0;
var aveimg;

function average000056(){
	var ave;
	ave = star000056/cnt000056;
	ave = (ave * 10);
	ave = Math.round(ave);
	ave = (ave / 10);
	
	if(ave == 5){ aveimg = 50; }
	if(ave < 5){ aveimg = 45; }
	if(ave < 4.5){ aveimg = 40; }
	if(ave < 4){	aveimg = 35; }
	if(ave < 3.5){	aveimg = 30; }
	if(ave < 3){	aveimg = 25; }
	if(ave < 2.5){	aveimg = 20; }
	if(ave < 2){	aveimg = 15; }
	if(ave < 1.5){	aveimg = 10; }
	if(ave < 1){	aveimg = 5; }
	else{}
	
	ave000056 = '<img src="http://www.11foods.com/restaurant/image/star' + aveimg + '.gif" alt="星' + ave + 'つ" title="星' + ave + 'つ" border="0" />(' + ave + ')';
	document.getElementById("star-ave000056").innerHTML = ave000056;
}
var ave000057=0;
var star000057=0;
var cnt000057=0;
var aveimg;

function average000057(){
	var ave;
	ave = star000057/cnt000057;
	ave = (ave * 10);
	ave = Math.round(ave);
	ave = (ave / 10);
	
	if(ave == 5){ aveimg = 50; }
	if(ave < 5){ aveimg = 45; }
	if(ave < 4.5){ aveimg = 40; }
	if(ave < 4){	aveimg = 35; }
	if(ave < 3.5){	aveimg = 30; }
	if(ave < 3){	aveimg = 25; }
	if(ave < 2.5){	aveimg = 20; }
	if(ave < 2){	aveimg = 15; }
	if(ave < 1.5){	aveimg = 10; }
	if(ave < 1){	aveimg = 5; }
	else{}
	
	ave000057 = '<img src="http://www.11foods.com/restaurant/image/star' + aveimg + '.gif" alt="星' + ave + 'つ" title="星' + ave + 'つ" border="0" />(' + ave + ')';
	document.getElementById("star-ave000057").innerHTML = ave000057;
}
var ave000055=0;
var star000055=0;
var cnt000055=0;
var aveimg;

function average000055(){
	var ave;
	ave = star000055/cnt000055;
	ave = (ave * 10);
	ave = Math.round(ave);
	ave = (ave / 10);
	
	if(ave == 5){ aveimg = 50; }
	if(ave < 5){ aveimg = 45; }
	if(ave < 4.5){ aveimg = 40; }
	if(ave < 4){	aveimg = 35; }
	if(ave < 3.5){	aveimg = 30; }
	if(ave < 3){	aveimg = 25; }
	if(ave < 2.5){	aveimg = 20; }
	if(ave < 2){	aveimg = 15; }
	if(ave < 1.5){	aveimg = 10; }
	if(ave < 1){	aveimg = 5; }
	else{}
	
	ave000055 = '<img src="http://www.11foods.com/restaurant/image/star' + aveimg + '.gif" alt="星' + ave + 'つ" title="星' + ave + 'つ" border="0" />(' + ave + ')';
	document.getElementById("star-ave000055").innerHTML = ave000055;
}
var ave000054=0;
var star000054=0;
var cnt000054=0;
var aveimg;

function average000054(){
	var ave;
	ave = star000054/cnt000054;
	ave = (ave * 10);
	ave = Math.round(ave);
	ave = (ave / 10);
	
	if(ave == 5){ aveimg = 50; }
	if(ave < 5){ aveimg = 45; }
	if(ave < 4.5){ aveimg = 40; }
	if(ave < 4){	aveimg = 35; }
	if(ave < 3.5){	aveimg = 30; }
	if(ave < 3){	aveimg = 25; }
	if(ave < 2.5){	aveimg = 20; }
	if(ave < 2){	aveimg = 15; }
	if(ave < 1.5){	aveimg = 10; }
	if(ave < 1){	aveimg = 5; }
	else{}
	
	ave000054 = '<img src="http://www.11foods.com/restaurant/image/star' + aveimg + '.gif" alt="星' + ave + 'つ" title="星' + ave + 'つ" border="0" />(' + ave + ')';
	document.getElementById("star-ave000054").innerHTML = ave000054;
}
var ave000051=0;
var star000051=0;
var cnt000051=0;
var aveimg;

function average000051(){
	var ave;
	ave = star000051/cnt000051;
	ave = (ave * 10);
	ave = Math.round(ave);
	ave = (ave / 10);
	
	if(ave == 5){ aveimg = 50; }
	if(ave < 5){ aveimg = 45; }
	if(ave < 4.5){ aveimg = 40; }
	if(ave < 4){	aveimg = 35; }
	if(ave < 3.5){	aveimg = 30; }
	if(ave < 3){	aveimg = 25; }
	if(ave < 2.5){	aveimg = 20; }
	if(ave < 2){	aveimg = 15; }
	if(ave < 1.5){	aveimg = 10; }
	if(ave < 1){	aveimg = 5; }
	else{}
	
	ave000051 = '<img src="http://www.11foods.com/restaurant/image/star' + aveimg + '.gif" alt="星' + ave + 'つ" title="星' + ave + 'つ" border="0" />(' + ave + ')';
	document.getElementById("star-ave000051").innerHTML = ave000051;
}
var ave000047=0;
var star000047=0;
var cnt000047=0;
var aveimg;

function average000047(){
	var ave;
	ave = star000047/cnt000047;
	ave = (ave * 10);
	ave = Math.round(ave);
	ave = (ave / 10);
	
	if(ave == 5){ aveimg = 50; }
	if(ave < 5){ aveimg = 45; }
	if(ave < 4.5){ aveimg = 40; }
	if(ave < 4){	aveimg = 35; }
	if(ave < 3.5){	aveimg = 30; }
	if(ave < 3){	aveimg = 25; }
	if(ave < 2.5){	aveimg = 20; }
	if(ave < 2){	aveimg = 15; }
	if(ave < 1.5){	aveimg = 10; }
	if(ave < 1){	aveimg = 5; }
	else{}
	
	ave000047 = '<img src="http://www.11foods.com/restaurant/image/star' + aveimg + '.gif" alt="星' + ave + 'つ" title="星' + ave + 'つ" border="0" />(' + ave + ')';
	document.getElementById("star-ave000047").innerHTML = ave000047;
}


// Bookmark
// ---------------------------------------------

url = 'http://www.11foods.com/restaurant/';
name = '調理師・栄養士の食べ歩き体験談　家庭料理向上.com';
function bookMark() {
	window.external.addFavorite(url,name);
}



// Table col3
// ---------------------------------------------


function col3(tableId){
	var oTable = document.getElementById(tableId);
	var workTable = oTable.cloneNode(1);
	var cellArr = workTable.getElementsByTagName('td');
	for(var i=oTable.tBodies[0].childNodes.length-1;i>=0;i--)
	oTable.tBodies[0].removeChild(oTable.tBodies[0].childNodes[i]);
	
	var c=0;
	var line = 0;
	while(cellArr[c]){
		var TR = oTable.tBodies[0].insertRow(line++);
		for(var i=0;i<3;i++,c++){
		if(cellArr[c]) TR.appendChild(cellArr[c].cloneNode(1));
		else TR.insertCell(i);
		}
	}
}




// Entry more
// ---------------------------------------------

function eMore(){
	var kensaku = document.getElementById("entry-more");
	jouken = new RegExp("href=\"(.*?)\"");
	kekka = kensaku.innerHTML.match(jouken);
	document.write("<a "+kekka[0]+">");
	document.write("<img border='0' alt='この商品の詳細・購入' src='http://www.11foods.com/restaurant/image/purchase.png' /></a>");
}




// Copyright (c) 1996-1997 Athenia Associates.
// http://www.webreference.com/js/
// License is granted if and only if this entire
// copyright notice is included. By Tomer Shiran.

function setCookie (name, value, expires, path, domain, secure) {
    var curCookie = name + "=" + escape(value) + (expires ? "; expires=" + expires : "") +
        (path ? "; path=" + path : "") + (domain ? "; domain=" + domain : "") + (secure ? "secure" : "");
    document.cookie = curCookie;
}

function getCookie (name) {
    var prefix = name + '=';
    var c = document.cookie;
    var nullstring = '';
    var cookieStartIndex = c.indexOf(prefix);
    if (cookieStartIndex == -1)
        return nullstring;
    var cookieEndIndex = c.indexOf(";", cookieStartIndex + prefix.length);
    if (cookieEndIndex == -1)
        cookieEndIndex = c.length;
    return unescape(c.substring(cookieStartIndex + prefix.length, cookieEndIndex));
}

function deleteCookie (name, path, domain) {
    if (getCookie(name))
        document.cookie = name + "=" + ((path) ? "; path=" + path : "") +
            ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}

function fixDate (date) {
    var base = new Date(0);
    var skew = base.getTime();
    if (skew > 0)
        date.setTime(date.getTime() - skew);
}

function rememberMe (f) {
    var now = new Date();
    fixDate(now);
    now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
    now = now.toGMTString();
    if (f.author != undefined)
       setCookie('mtcmtauth', f.author.value, now, '/', '', '');
    if (f.email != undefined)
       setCookie('mtcmtmail', f.email.value, now, '/', '', '');
    if (f.url != undefined)
       setCookie('mtcmthome', f.url.value, now, '/', '', '');
}

function forgetMe (f) {
    deleteCookie('mtcmtmail', '/', '');
    deleteCookie('mtcmthome', '/', '');
    deleteCookie('mtcmtauth', '/', '');
    f.email.value = '';
    f.author.value = '';
    f.url.value = '';
}

function hideDocumentElement(id) {
    var el = document.getElementById(id);
    if (el) el.style.display = 'none';
}

function showDocumentElement(id) {
    var el = document.getElementById(id);
    if (el) el.style.display = 'block';
}

var commenter_name;

function individualArchivesOnLoad(commenter_name) {

    hideDocumentElement('trackbacks-info');



    if (document.comments_form) {
        if (!commenter_name && (document.comments_form.email != undefined) &&
            (mtcmtmail = getCookie("mtcmtmail")))
            document.comments_form.email.value = mtcmtmail;
        if (!commenter_name && (document.comments_form.author != undefined) &&
            (mtcmtauth = getCookie("mtcmtauth")))
            document.comments_form.author.value = mtcmtauth;
        if (document.comments_form.url != undefined && 
            (mtcmthome = getCookie("mtcmthome")))
            document.comments_form.url.value = mtcmthome;
        if (document.comments_form["bakecookie"]) {
            if (mtcmtauth || mtcmthome) {
                document.comments_form.bakecookie.checked = true;
            } else {
                document.comments_form.bakecookie.checked = false;
            }
        }
    }
}

function writeTypeKeyGreeting(commenter_name, entry_id) {

}


