// JavaScript Document
jQuery().ready(function(){
					//	alert('test');
	jQuery('#AllWrap ul.s-cat-depth-2').hide();	
	jQuery('#AllWrap ul.s-cat-depth-1').children('li').mouseover(function(){
		jQuery(this).find('ul.s-cat-depth-2').show();
		jQuery(this).addClass('on');
		try{
			var height1=jQuery('ul.s-cat-depth-2').height();
			var height2=jQuery('.GoodsCategoryWrap').height();
			if(height1<height2){
				jQuery('ul.s-cat-depth-2').height(height2);
			}
		
		}catch(err){
		//jQuery('ul.s-cat-depth-2').html(err);	
		}
		});
	jQuery('#AllWrap ul.s-cat-depth-1').children('li').mouseout(function(){
		jQuery(this).find('ul.s-cat-depth-2').hide();		
		jQuery(this).removeClass('on');
		});
	var uu_receiver=jQuery('#receiver');
	if(uu_receiver.length>0){
		var uu_reinput=jQuery('#receiver .receivermore input[type=checkbox]');
		uu_reinput.click();
		uu_reinput.next('div').show();
	}
	//receivermore
	var uu_info=jQuery('.BrandDetailWrap .branddetail .brandtitle tr td .info');
	if(uu_info.length>0){
		uu_info.html('<h1>'+uu_info.find('h1').html()+'</h1>');
	}
	//给评论增加w1一样的图片
	var str='<div>\
	<img class="imgblock" src="themes/uufun/new/01.jpg">\
	<img class="imgblock" src="themes/uufun/new/02.jpg">\
	<img class="imgblock" src="themes/uufun/images/weyiipro_03.gif">\
	<img class="imgblock" src="themes/uufun/new/1.jpg">\
	<img class="imgblock" src="themes/uufun/new/2.jpg">\
	</div>';
	jQuery('#goods-viewer').append(str);
	//bottom内容
	var touchs=jQuery('#siderIMchat_main .bg ul.clearfix').html();
	var reg=/[\u4E00-\u9FA5\uf900-\ufa2d]+/g;
	var result=touchs.match(reg);
	for(i=0;i<result.length;i++){
 		//touchs=touchs.replace(result[i],"<span>"+result[i]+"</span>");
	}
	touchs=touchs.replace("width=\"30\"","width=\"23\"");
	touchs=touchs.replace("height=\"30\"","height=\"23\"");
	touchs=touchs.replace("http://im.live.com/Messenger/IM/Images/Icons/Messenger.Logo.gif","themes/uufun/new/msn.gif");
	touchs=touchs.replace("href=\"msnim:chat?contact=uufunservice@hotmail.com"," target=\"_blank\" href=\"http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=fdf39820e3c8ccf@apps.messenger.live.com&mkt=zh-CN");
	jQuery('#siderIMchat_main .bg ul.clearfix').html(touchs);
		var bottomstr='<ul class="uufun_bottom_tab"><li><a href="#">在线客服</a></li><li><a href="#">我的收藏</a></li><li><a href="/?cart.html">购物车</a></li></ul>'; 
	jQuery('#siderIMchat_main').append(bottomstr);
	
	//关闭底部条
	jQuery(".themefoot + div").css("visibility","hidden");
	
	jQuery("#siderIMchat").attr('id','uufun_siderIMchat');
	var ufd="<span id='siderIMchat'></span>";
	jQuery("#uufun_siderIMchat").append(ufd);
	var listimg=jQuery("#uufun_siderIMchat").find('img');
	for(var i=0;i<listimg.length;i++){
		if(listimg.eq(i).attr("width")==30){
			listimg.eq(i).attr("height",23);
			listimg.eq(i).attr("width",23);
		}
	}
	
	
	

});
