			$$(document).ready(function() {
			
				$$("li[id^='homepageLi']").attr("class", "select");
				$$("li[id^='homepageLi']").children("a").each(function(){
				$$(this).attr("class", "cWhite");
				});
			
				// 2010-5-28 13:56:02 主页独特样式
				$$("#mainSpeDiv").attr("class", "new-wrap-b");
				$$("#maiFooterDiv").attr("class", "new-footer-a cDGray");	//rhr-check 2010-06-13 端午样式
				//$$("#maiFooterDiv").attr("class", "cDGray");
				
				//$$("a[id^='keyword_']").bind("click", clickKeyword); // 点击“关键字”搜索
				//$$("a[id^='hotRestaurant_']").bind("click", clickHotRestaurant); // 点击“热门餐厅”
				//$$("a[id^='newPreference_']").bind("click", clickNewPreference); // 点击“最近优惠”
				//$$("a[id^='newestCorp_']").bind("click", clickNewestCorp); // 点击“最新餐厅” by zdd
				$$("a[id^='newestCorp_']").bind("mouseover", NewestmouseMove); // 鼠标滑过“显示隐藏最新餐厅” by zdd
				
				// 关键词  鼠标效果
				$$('.new-keywords dl').mouseover(function(){
					try 
					{
						$$(this).addClass('new_bg_e').siblings().removeClass('new_bg_e');
					} catch(err){}
				});
			});

			function clickKeyword(event) {
				var keyword = $$(this).attr("id").replace(/keyword_/, "");
				$$(this).attr("target","_blank");
				$$(this).attr("href",'/searching/'+keyword);
			}

			function clickHotRestaurant(event) {
				var corpId = $$(this).attr("id").replace(/hotRestaurant_/, "");
				if(ninfor.checkNotNull(corpId)){
					$$(this).attr("target","_blank");
					$$(this).attr("href", '/corp/'+corpId+'');
				}
			}

			function clickNewPreference(event) {
				var corpHomeSendId = $$(this).attr("id").replace(/newPreference_/, "");
				if(ninfor.checkNotNull(corpHomeSendId)){
					$$(this).attr("target","_blank");
					$$(this).attr("href",'/coupon/'+corpHomeSendId+'');
				}
			}
			
			// add by zdd
			function clickNewestCorp(event) {
				var corpId = $$(this).attr("id").replace(/newestCorp_/, "");
				if(ninfor.checkNotNull(corpId)){
					$$(this).attr("target","_blank");
					$$(this).attr("href",'/corp/'+corpId+'');
				}
			}
			
			function NewestmouseMove(event){
				$$(".newsdlshow").css("display","block");
				var corpId = $$(event.target).attr("id").replace(/newestCorp_/, "");
				var divname = "#newestdiv_"+corpId;
				var dlname = "#newestdl_"+corpId;
				$$(".new-yd-b").css("display","none");
				$$(divname).css("display","block");
				$$(dlname).css("display","none");
			}			

