var tag = new Array();
var wtag = new Array();
tag['search'] = new Array(
["0","每日一鮮","tag_searchdaily.gif"],					  
["1","找餐廳","tag_searchrest.gif"],					  
["2","找美酒","tag_searchwine.gif"],					  
["3","找食譜","tag_searchrecipe.gif"]
);
tag['rest'] = new Array (
["0","餐廳評鑑","tag_restguide.gif"],					  
["1","美食新聞","tag_restnews.gif"],					  
["2","餐廳優惠券","tag_coupon.gif"]				  
);
tag['wine'] = new Array (
["0","美酒評鑑","tag_wineguide.gif"],					  
["1","美酒新聞","tag_winenews.gif"],					  
["2","美酒優惠券","tag_coupon_w.gif"]				  
);
tag['learn'] = new Array (
["0","大廚食譜","tag_recipe.gif"],					  
["1","線上西餐禮儀課程","tag_tablemanner.gif"],					  
["2","線上葡萄酒課程","tag_winelesson.gif"],		  
["3","美食美酒字典","tag_dictionary.gif"]				  
);
tag['review'] = new Array (
["0","愛吃客評鑑",""],					  
["1","網友意見",""],					  
["2","我要評分",""],
["3","餐廳地圖",""]
);
wtag['wreview'] = new Array (
["0","愛吃客評鑑",""],					  
["1","酒款介紹",""]
);
var menu = new Array();
menu["0"] = new Array(
["1","餐廳",""],
["2","美酒",""],
["3","食譜",""],
["4","優惠券",""],
["5","美食特輯",""],
["","專欄","www.enjoycolumn.com"],
["","討論區","/forum/"],
["","ENJOY購物","www.enjoyeshop.com"],
["6","企業品酒活動",""],
["7","手機‧網站活動",""],
["8","廣告&其他服務",""],
["9","關於英卓",""],
["","聯絡我們","contactus"],
["","餐廳實力大考驗","restaurant-review"],
["","餐廳商家登錄","restaurant-subscribe"]
);
menu["0-1"] = new Array(
["1","&bull; 找餐廳",""],
["2","&bull; 美食新聞","news_list.php"],
["3","&bull; 餐廳優惠券","coupon_list.php"]
);
menu["0-2"] = new Array(
["1","&bull; 找美酒",""],
["2","&bull; 美酒新聞","news_list.php?t=winenews"],
["3","&bull; 美酒優惠券","coupon_list.php?t=3"]
);
menu["0-3"] = new Array(
["1","依食材分類",""],
["2","依料理分類",""],
["3","主題食譜",""]
);
menu["0-4"] = new Array(
["1","&bull; 餐廳優惠券","coupon_list.php"],
["2","&bull; 美酒優惠券","coupon_list.php?t=3"]
);
menu["0-5"] = new Array(
["","&bull; 豔陽下的智慧結晶 西西里佳釀","topic.php?topic=20090625-1"],
["","&bull; Best台灣250家餐廳美食評鑑委員會","topic.php?topic=20081111-1"]
);
menu["0-6"] = new Array(
["","&bull; 企業品酒活動剪影","com_wine_event.php"],
["","&bull; 企業品酒活動方案","com_wine_tasting.php"]
);
menu["0-7"] = new Array(
//["","&bull; 愛吃客手機服務","com_act_mobile.php"],
//["","&bull; 愛吃客手機簡訊下載","com_mt.php"],
["","&bull; 愛吃客平面系列","com_act_book.php"]
);
menu["0-8"] = new Array(
["","&bull; 網路廣告方案","com_ad_website.php"],
["","&bull; 網站建置方案",""],
["","&bull; 平面系列廣告方案","com_ad_print.php"]
);
menu["0-9"] = new Array(
["","&bull; 關於艾哲庸","about_john.php"],
["","&bull; 英卓簡介","about_enjoy.php"]
);
menu["0-1-1"] = new Array(
["1","台北","rest_list.php?l=1"],
["2","桃園","rest_list.php?l=2"],
["3","台中","rest_list.php?l=3"],
["4","台南","rest_list.php?l=4"],
["5","高雄","rest_list.php?l=5"],
["","新竹苗栗","rest_list.php?l=6"],
["","南投彰化","rest_list.php?l=7"],
["","雲林嘉義","rest_list.php?l=8"],
["","宜蘭花蓮","rest_list.php?l=9"],
["","台東屏東","rest_list.php?l=10"]
);
menu["0-1-1-1"] = new Array(
["","四川菜","rest_list.php?l=1&c=6"],
["","北京菜 ","rest_list.php?l=1&c=5"],
["","湘菜 ","rest_list.php?l=1&c=4"],
["","江浙/上海菜","rest_list.php?l=1&c=3"],
["","台菜","rest_list.php?l=1&c=2"],
["","廣東菜","rest_list.php?l=1&c=1"],
["","其他中式餐廳","rest_list.php?l=1&c=0"],
["","韓國料理","rest_list.php?l=1&c=13"],
["","泰國料理","rest_list.php?l=1&c=12"],
["","日本/鐵板燒 ","rest_list.php?l=1&c=11"],
["","其他亞洲餐廳","rest_list.php?l=1&c=10"],
["","歐陸料理","rest_list.php?l=1&c=23"],
["","義大利料理","rest_list.php?l=1&c=22"],
["","法國料理","rest_list.php?l=1&c=21"],
["","多國餐廳 ","rest_list.php?l=1&c=30"]
);
menu["0-1-1-2"] = new Array(
["","四川菜","rest_list.php?l=2&c=6"],
["","湘菜 ","rest_list.php?l=2&c=4"],
["","江浙/上海菜","rest_list.php?l=2&c=3"],
["","台菜","rest_list.php?l=2&c=2"],
["","廣東菜","rest_list.php?l=2&c=1"],
["","其他中式餐廳","rest_list.php?l=2&c=0"],
["","韓國料理","rest_list.php?l=2&c=13"],
["","泰國料理","rest_list.php?l=2&c=12"],
["","日本/鐵板燒 ","rest_list.php?l=2&c=11"],
["","其他亞洲餐廳","rest_list.php?l=2&c=10"],
["","歐陸料理","rest_list.php?l=2&c=23"],
["","義大利料理","rest_list.php?l=2&c=22"],
["","法國料理","rest_list.php?l=2&c=21"],
["","多國餐廳 ","rest_list.php?l=1&c=30"]
);
menu["0-1-1-3"] = new Array(
["","四川菜","rest_list.php?l=3&c=6"],
["","北京菜 ","rest_list.php?l=3&c=5"],
["","湘菜 ","rest_list.php?l=3&c=4"],
["","江浙/上海菜","rest_list.php?l=3&c=3"],
["","台菜","rest_list.php?l=3&c=2"],
["","廣東菜","rest_list.php?l=3&c=1"],
["","其他中式餐廳","rest_list.php?l=3&c=0"],
["","韓國料理","rest_list.php?l=3&c=13"],
["","泰國料理","rest_list.php?l=3&c=12"],
["","日本/鐵板燒 ","rest_list.php?l=3&c=11"],
["","其他亞洲餐廳","rest_list.php?l=3&c=10"],
["","歐陸料理","rest_list.php?l=3&c=23"],
["","義大利料理","rest_list.php?l=3&c=22"],
["","法國料理","rest_list.php?l=台中&c=21"],
["","多國餐廳 ","rest_list.php?l=台中&c=30"]
);
menu["0-1-1-4"] = new Array(
["","四川菜","rest_list.php?l=4&c=6"],
["","北京菜 ","rest_list.php?l=4&c=5"],
["","湘菜 ","rest_list.php?l=4&c=4"],
["","江浙/上海菜","rest_list.php?l=4&c=3"],
["","台菜","rest_list.php?l=4&c=2"],
["","廣東菜","rest_list.php?l=4&c=1"],
["","其他中式餐廳","rest_list.php?l=4&c=0"],
["","韓國料理","rest_list.php?l=4&c=13"],
["","泰國料理","rest_list.php?l=4&c=12"],
["","日本/鐵板燒 ","rest_list.php?l=4&c=11"],
["","其他亞洲餐廳","rest_list.php?l=4&c=10"],
["","歐陸料理","rest_list.php?l=4&c=23"],
["","義大利料理","rest_list.php?l=4&c=22"],
["","法國料理","rest_list.php?l=4&c=21"],
["","多國餐廳 ","rest_list.php?l=4&c=30"]
);
menu["0-1-1-5"] = new Array(
["","四川菜","rest_list.php?l=5&c=6"],
["","北京菜 ","rest_list.php?l=5&c=5"],
["","湘菜 ","rest_list.php?l=5&c=4"],
["","江浙/上海菜","rest_list.php?l=5&c=3"],
["","台菜","rest_list.php?l=5&c=2"],
["","廣東菜","rest_list.php?l=5&c=1"],
["","其他中式餐廳","rest_list.php?l=5&c=0"],
["","韓國料理","rest_list.php?l=5&c=13"],
["","泰國料理","rest_list.php?l=5&c=12"],
["","日本/鐵板燒 ","rest_list.php?l=5&c=11"],
["","其他亞洲餐廳","rest_list.php?l=5&c=10"],
["","歐陸料理","rest_list.php?l=5&c=23"],
["","義大利料理","rest_list.php?l=5&c=22"],
["","法國料理","rest_list.php?l=5&c=21"],
["","多國餐廳 ","rest_list.php?l=5&c=30"]
);
menu["0-2-1"] = new Array(
["","四月美酒推薦",""],
["14","葡萄酒","wine_list.php?t=Grape+Wine"],
["15","西方利口酒","wine_list.php?t=Western+Liquors"],
["","東方利口酒","wine_list.php?t=Eastern+Liquors"],
["","啤酒","wine_list.php?t=Beers"],
["","找美酒進階搜尋","more_search.php#search02"]
);
menu["0-2-1-1"] = new Array(
["","四月美酒推薦","wine_topic.php"]
);
menu["0-2-1-14"] = new Array(
["","紅酒","wine_list.php?t=Red"],
["","白酒","wine_list.php?t=White"],
["","紛紅酒","wine_list.php?t=Rose"],
["","香檳氣泡酒","wine_list.php?t=Champagne"],
["","加烈葡萄酒","wine_list.php?t=Fortified"]
);
menu["0-2-1-15"] = new Array(
["","威士忌","wine_list.php?t=Whiskey"],
["","白蘭地","wine_list.php?t=Brandy"],
["","伏特加","wine_list.php?t=Vodka"]
);
/*menu["0-2-1-14"] = new Array(
["","<b>舊世界產區</b>","wine_list.php?t=Red&l=Old+World"],
["","<font color=blue>法國 France</font>","wine_list.php?t=Red&l=France"],
["",'-- 波爾多 Bordeaux',"wine_list.php?t=Red&l=Bordeaux"],
["",'-- 布根地 Burgundy',"wine_list.php?t=Red&l=Burgundy"],
["",'-- 其他產區 Others',"wine_list.php?t=Red&l=Other+French+Regions"],
["",'<font color=blue>義大利 Italy</font>',"wine_list.php?t=Red&l=Italy"],
["",'-- 皮蒙 Piedmont',"wine_list.php?t=Red&l=Piedmont"],
["",'-- 塔斯卡尼 Tuscany',"wine_list.php?t=Red&l=Tuscany"],
["",'-- 其他產區 others',"wine_list.php?t=Red&l=Other+Italian+Regions"],
["",'<font color=blue>西班牙 Spain</font>',"wine_list.php?t=Red&l=Spain"],
["",'<b>新世界產區</b>',"wine_list.php?t=Red&l=New+World"],
["",'美國 United States',"wine_list.php?t=Red&l=United+States"],
["",'智利 Chile',"wine_list.php?t=Red&l=Chile"],
["",'阿根廷 Argentina',"wine_list.php?t=Red&l=Argentina"],
["",'澳洲 Australia',"wine_list.php?t=Red&l=Australia"],
["",'其他 Others Region',"wine_list.php?t=Red&l=Other+New+World+Regions"]
);*/
/*menu["0-2-1-15"] = new Array(
["","<b>舊世界產區Old World</b>","wine_list.php?t=White&l=Old World"],
["","法國 France","wine_list.php?t=White&l=France"],
["",'-- 波爾多 Bordeaux',"wine_list.php?t=White&l=Bordeaux"],
["",'-- 勃艮地 Burgundy',"wine_list.php?t=White&l=Burgundy"],
["",'-- 其他產區 Others',"wine_list.php?t=White&r=5"],
["",'義大利 Italy',"wine_list.php?t=White&l=Italy"],
["",'德國 Germany',"wine_list.php?t=White&l=Germany"],
["",'西班牙 Spain',"wine_list.php?t=White&l=Spain"],
["","<b>新世界產區New World</b>","wine_list.php?t=White&l=New World"],
["",'美國 United States',"wine_list.php?t=White&l=United States"],
["",'智利 Chile',"wine_list.php?t=White&l=Chile"],
["",'阿根廷 Argentina',"wine_list.php?t=White&l=Argentina"],
["",'澳洲 Australia, Oceana',"wine_list.php?t=White&l=Australia"],
["",'鈕西蘭 New Zealand, Oceana',"wine_list.php?t=White&l=New+Zealand"],
["",'其他 Others Region',"wine_list.php?t=White&l=Other+New+World+Regions"]
);*/

menu["0-2-1-17"] = new Array(
["","<b>舊世界產區Old World</b>","wine_list.php?t=Champagne&l=Old World"],
["","法國 France","wine_list.php?t=Champagne&l=France"],
["",'義大利 Italy',"wine_list.php?t=Champagne&l=Italy"],
["","<b>新世界產區New World</b>","wine_list.php?t=Champagne&l=New World"],
["",'美國 United States',"wine_list.php?t=Champagne&l=United States"],
["",'澳洲 Australia, Oceana',"wine_list.php?t=Champagne&l=Australia"]
);

menu["0-3-1"] = new Array(
["1","肉類","recipe_list.php?t=1,2,3,4,5,6"],
["2","海鮮","recipe_list.php?t=7,8,9"],
["3","澱粉","recipe_list.php?t=10,11,12,13,14"],
["4","蔬菜","recipe_list.php?t=15,16"],
["5","甜點","recipe_list.php?t=17,18,19,20"],
["6","飲料","recipe_list.php?t=21,22"],
["7","其他","recipe_list.php?t=23,24,25,26,27"]
);
menu["0-3-1-1"] = new Array(
["","豬肉","recipe_list.php?t=1"],
["","牛肉","recipe_list.php?t=3"],
["","羊肉","recipe_list.php?t=4"],
["","雞肉","recipe_list.php?t=2"],
["","鴨肉","recipe_list.php?t=5"],
["","其他 ","recipe_list.php?t=6"]
);
menu["0-3-1-2"] = new Array(
["","魚","recipe_list.php?t=7"],
["","貝類(有殼類)","recipe_list.php?t=8"],
["","其他","recipe_list.php?t=9"]
);
menu["0-3-1-3"] = new Array(
["","麵食","recipe_list.php?t=10"],
["","米飯","recipe_list.php?t=11"],
["","馬鈴薯","recipe_list.php?t=12"],
["","麵包","recipe_list.php?t=13"],
["","其他","recipe_list.php?t=14"]
);
menu["0-3-1-4"] = new Array(
["","烹調蔬菜","recipe_list.php?t=15"],
["","沙拉","recipe_list.php?t=16"]
);
menu["0-3-1-5"] = new Array(
["","水果","recipe_list.php?t=17"],
["","蛋糕","recipe_list.php?t=18"],
["","餅乾","recipe_list.php?t=19"],
["","其他","recipe_list.php?t=20"]
);
menu["0-3-1-6"] = new Array(
["","無酒精","recipe_list.php?t=21"],
["","含酒精","recipe_list.php?t=22"]
);
menu["0-3-1-7"] = new Array(
["","蛋/乳酪","recipe_list.php?t=23"],
["","三明治","recipe_list.php?t=24"],
["","羹/湯","recipe_list.php?t=25"],
["","調味醬","recipe_list.php?t=26"],
["","其他","recipe_list.php?t=27"]
);

menu["0-3-2"] = new Array(
["","中式料理","recipe_list.php?n=1"],
["","日式料理","recipe_list.php?n=2"],
["","泰緬料理","recipe_list.php?n=3"],
["","韓式料理","recipe_list.php?n=4"],
["","其他亞洲料理","recipe_list.php?n=5"],
["","法國料理","recipe_list.php?n=6"],
["","義大利料理","recipe_list.php?n=7"],
["","歐陸料理","recipe_list.php?n=8"],
["","其他西式料理","recipe_list.php?n=9"]
);
menu["0-3-3"] = new Array (
["1","大廚食譜",""],
["2","餐廳食譜",""],
["","養生食譜","recipe_list.php?s=2"],
["","素食食譜","recipe_list.php?s=4"]
);
menu["0-3-3-1"] = new Array (
["","柯德立 Claudio Cattarin","recipe_list.php?c=15"],
["","史迪克 Stig Drageide","recipe_list.php?c=16"],
["","Dani&egrave;le Raulet-Reynaud","recipe_list.php?c=12"],
["","松巴 Sombat","recipe_list.php?c=5"],
["","王泉益","recipe_list.php?c=10"],
["","李國森","recipe_list.php?c=11"],
["","吳烔沂","recipe_list.php?c=9"],
["","張基楚","recipe_list.php?c=6"],
["","郭月英","recipe_list.php?c=8"],
["","蔡季芳","recipe_list.php?c=17"]
);
menu["0-3-3-2"] = new Array (
["","漂亮中式海鮮餐廳(台北君悅大飯店)","recipe_list.php?r=2244"],
["","壹咖啡(台北遠東國際大飯店)","recipe_list.php?r=3883"],
["","馬可波羅(台北遠東國際大飯店)","recipe_list.php?r=214"],
["","醉月樓(遠東國際大飯店)","recipe_list.php?r=140"],
["","明宮(老爺大酒店)","recipe_list.php?r=376"],
["","福園(台北喜來登大飯店)","recipe_list.php?r=179"],
["","湘園(台北喜來登大飯店)","recipe_list.php?r=2868"],
["","泰廷泰式時尚料理(原泰軒)","recipe_list.php?r=79"],
["","張記小館","recipe_list.php?r=1730"]
);

function getCommendModule(){
	var sUrl = "ajax/home_tagcontent.php?divID=commend";
	document.getElementById('commendblock').innerHTML='<img src="images_icon/loading.gif" />';
	var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, { success:successCommendHandler, failure:failureHandler });
}
function successCommendHandler(o){
	document.getElementById('commendblock').innerHTML = o.responseText;
}


function getHotModule(){
	var sUrl = "ajax/home_tagcontent.php?divID=hotrecipe";
	if (document.getElementById('hotblock') != null) {
		document.getElementById('hotblock').innerHTML='<img src="images_icon/loading.gif" />';
	}
	var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, { success:successHotHandler, failure:failureHandler });
}

function getHotSelfAd(){
	var sUrl = "ajax/home_tagcontent.php?divID=hotselfad";
	if (document.getElementById('hotblock') != null) {
		document.getElementById('hotblock').innerHTML='<img src="images_icon/loading.gif" />';
	}
	var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, { success:successHotHandler, failure:failureHandler });
}

function successHotHandler(o){
	if (document.getElementById('hotblock') != null) {
		document.getElementById('hotblock').innerHTML = o.responseText;
	}
}