<!-- Hide
function killErrors() {
return true;
}
window.onerror = killErrors;
// -->

//menu js
$(document).ready(function(e) {
    var menuli=$(".menu>.center>ul>li");
    var liwidth=menuli.width();
    var now=$(".menu .hover").parent("li").index();
    var distance=0;
    menuli.hover(function(){
        var index=$(this).index();
        menumove(index);
        $(this).children("ul").stop(true,true).delay(200).slideDown("fast");
        $(this).children("a").addClass("over");
    }, function(){
        menumove();
        $(this).children("ul").stop(true,true).slideUp("fast");
        $(this).children("a").removeClass("over");
    })
    function menumove(index){
        var index=arguments.length>0?index:now;
        $(".menulihover").css("left",index*liwidth+distance);
    }
   menumove();
   $(".menulihover").css("display","block");
})

$(function(){
	$(".mobile_nav ul li").hover(function(){
	$(this).children("div").stop(true,true).slideDown(300);
	$(this).addClass('hover')
	},function(){
	$(this).children("div").stop(true,true).slideUp(1);
	$(this).removeClass('hover')
	}) 	  
});	

//分类选择固定
$(function(){
	var nav=$(".header_module"); //得到导航对象
	var win=$(window); //得到窗口对象
	var sc=$(document);//得到document文档对象。
	win.scroll(function(){
		if(sc.scrollTop()>= 40){
			$(".header_module").addClass("tpfix");
		}else{
			$(".header_module").removeClass("tpfix");
		}
	});
});


//联系我们页面
// $(function(){
// 	var $div_li = $("div.lxwmym_module_module ul li")
// 	$div_li.mouseover(function(){
// 		$(this).addClass("lx_selected")
// 		.siblings().removeClass("lx_selected");
// 	})
// })
// 
// jQuery(function($){
// 	$(".lxwmym_module_module").find("ul li").each(function(){
// 		$(this).hover(function(){
// 			$(this).addClass("lx_selected");
// 			},function(){
// 				$(this).removeClass("lx_selected");
// 				})
// 		});
// 	})
// 	
// jQuery(function($){
// 	$(".lxwmym_module_module").find("ul li").each(function(){
// 		$(this).hover(function(){
// 			$(this).show('300');
// 			},function(){
// 				$(this).find(".ctlxwm_module").hide('300');
// 				})
// 		});
// 	})
$(document).ready(function(){
   var i = 0 ;
   var timer; 
  //用jquery方法设置第一张图片显示，其余隐藏
  $('.lxwmym_module_module ul li').eq(0).show().siblings('.lxwmym_module_module ul li').hide();   
  //调用showTime()函数（轮播函数）
  showTime();
   
  //当鼠标经过下面的数字时，触发两个事件（鼠标悬停和鼠标离开）
  // $('.div_tb dl dd').hover(function(){
  //   //获取当前i的值，并显示，同时还要清除定时器
  //   i = $(this).index();
  //   $('.lxwmym_module_module ul li').Show();
  //   clearInterval(timer);
  //   alert(22);
  // },function(){
  //   //
  //   showTime();
  // }); 
//创建一个showTime函数
function showTime(){
  //定时器
  timer = setInterval(function(){
    //调用一个Show()函数
    Show();
    i++;
    //当图片是最后一张的后面时，设置图片为第一张
    if(i==5){
      i=0;
    }
  },4000);
}
//创建一个Show函数
function Show(){
  //在这里可以用其他jquery的动画
  $('.lxwmym_module_module ul li').eq(i).fadeIn(300).siblings('.lxwmym_module_module ul li').fadeOut(300);
  //给.tab创建一个新的Class为其添加一个新的样式，并且要在css代码中设置该样式
  //$('.tab').eq(i).addClass('active').siblings('.tab').removeClass('active');
   
}
  
});


//报告类型
$(function(){
	$("div.cpxxym_fl").find("ul li").last().css("background","none");
	$("div.qbcpbk_content").find("ul li").first().css("margin-left","0px");
	var $div_li = $("div.bglx_ct3_l .icr3-label")
	$div_li.click(function(){
		$(this).addClass("checked")
		.siblings().removeClass("checked");
	})
})


//性别
$(function(){
	$("div.hzxxbk_xb").find(".hzxxbk_xb_title").first().addClass("sxactive");
	var $div_li = $("div.hzxxbk_xb .hzxxbk_xb_title")
	$div_li.click(function(){
		$(this).addClass("sxactive")
		.siblings().removeClass("sxactive");
	})
})

//相关重要信息
$(function(){
	//$("div.xgzyxxbk_module_module").find(".xgzyxxbk_content dl dd").first().addClass("xgzyactive");
	var $div_li = $("div.xgzyxxbk_content dl dd")
	$div_li.click(function(){
		$(this).addClass("xgzyactive")
		.siblings().removeClass("xgzyactive");
	})
})


//饮酒史板块
$(function(){
	//$(".yjsbk_content").find("dl dd").first().addClass("yjsactive");
	var $div_li = $("div.yjsbk_content dl dd")
	$div_li.click(function(){
		$(this).addClass("yjsactive")
		.siblings().removeClass("yjsactive");
	})
})

//过敏史
$(function(){
	//$(".gmsbk_content").find("dl dd").first().addClass("gmsactive");
	var $div_li = $("div.gmsbk_content dl dd")
	$div_li.click(function(){
		$(this).addClass("gmsactive")
		.siblings().removeClass("gmsactive");
	})
})

//其他（如肝病史，肾病史，家族史）
$(function(){
	//$(".qtjbbk_content").find("dl dd").first().addClass("qtjbactive");
	var $div_li = $("div.qtjbbk_content dl dd")
	$div_li.click(function(){
		$(this).addClass("qtjbactive")
		.siblings().removeClass("qtjbactive");
	})
})


//既往药品不良反应/事件
$(function(){
	//$(".ypblfybk_content").find("dl dd").first().addClass("ypblfyactive");
	var $div_li = $("div.ypblfybk_content dl dd")
	$div_li.click(function(){
		$(this).addClass("ypblfyactive")
		.siblings().removeClass("ypblfyactive");
	})
})

//漂浮窗口
$(function(){
	//获取要定位元素距离浏览器顶部的距离
	var navH = $(window).width()/2;
	//滚动条事件
	$(window).scroll(function(){
		//获取滚动条的滑动距离
		var scroH = $(this).scrollTop();
		//滚动条的滑动距离大于等于定位元素距离浏览器顶部的距离，就固定，反之就不固定
		if(scroH>=navH){
		$(".bodyright dt").show();
		}else if(scroH<navH){
		$(".bodyright dt").hide();
		}
	})

//新闻中心页面
$(function(){
	$("div.ctnews_module_module ul").each(function(){
		i=0;
		$(this).find("li").each(function(){
		if(i % 3== 0){
			$(this).css("margin-left","0px");
		}
		i++;
	})
	})
})


//营销招商页面
// $(function(){
// 	$("div.yxzsym_module_module ul").each(function(){
// 		i=0;
// 		$(this).find("li").each(function(){
// 		if(i % 3== 0){
// 			$(this).addClass("yxzsym_active");
// 		}
// 		i++;
// 	})
// 	})
// })

//资质荣誉
// $(function(){
// 	var $div_li = $("div.inzzry_item ul li")
// 	$div_li.mouseover(function(){
// 		$(this).addClass("aa")
// 		.siblings().removeClass("aa");
// 		var index = $div_li.index(this);
// 		$("div.inzzry_module_module > div.tempWrap")
// 			.eq(index).show()
// 			.siblings().hide();
// 	})
// })

$(function(){
	$(".bt_nav").find("ul li").last().css("background","none");
	$(".inxwzx_r").find("ul li:odd").css("float","right");
	$(".inzzry_module_module").find("ul li").eq(0).css("margin-left","0");
	$("div.zscp_module_module ul").each(function(){
		i=0;
		$(this).find("li").each(function(){
		if(i % 4 == 0){
			$(this).addClass("cpzs_eq0");
		}
		i++;
	})
	})
})

$(function(){
	$(".xwdt_module_module").find("ul li").eq(0).addClass("xwdt_module_module_eq0");
	$(".in_news li a").hover(
		function(){
			$(".in_news li a .box_1").show();	
			$(".in_news li a .box_2").hide();	
			$(this).find(".box_1").hide();
			$(this).find(".box_2").show();
		},
		function(){}
	);
});

//公司实力
jQuery(function($){
	$(".Box .Box_con .conbox ul li").hover(function(){
		$(this).find(".scsl_title").css("display", "block ");
	$(this).find(".scsl_title").stop(true, false).animate({ bottom: 0 })
	},function(){
		$(this).find(".scsl_title").css("display", "none");
		$(this).find(".scsl_title").stop(true, false).animate({ bottom: -45 })
	});
})


//头部二维码
jQuery(function($){
	$(".hd_top ul li").hover(function(){
		$(this).find(".header_second").css("display", "block ");
	$(this).find(".header_second").stop(true, false).animate({ top: 35 })
	},function(){
		$(this).find(".header_second").css("display", "none");
		$(this).find(".header_second").stop(true, false).animate({ top: -35 })
	});
})


<!--indzp-->
$(function(){
	$(".indzp ul li .rsp").hide();	
	$(".indzp ul li").hover(function(){
		$(this).find(".rsp").stop().fadeTo(500,0.5)
		$(this).find(".text").stop().animate({left:'0'}, {duration: 500})
	},
	function(){
		$(this).find(".rsp").stop().fadeTo(500,0)
		$(this).find(".text").stop().animate({left:'300'}, {duration: "fast"})
		$(this).find(".text").animate({left:'-300'}, {duration: 0})
	});
});
<!--indsp-->	

<!--Tteam-->
$(function(){
	$(".abteam").find("ul li").last().addClass("zpwuteam");
	$(".abteam ul li .rspteam").hide();	
	$(".abteam ul li").hover(function(){
		$(this).find(".rspteam").stop().fadeTo(500,0.5)
		$(this).find(".textteam").stop().animate({left:'0'}, {duration: 500})
	},
	function(){
		$(this).find(".rspteam").stop().fadeTo(500,0)
		$(this).find(".textteam").stop().animate({left:'300'}, {duration: "fast"})
		$(this).find(".textteam").animate({left:'-300'}, {duration: 0})
	});
});

$(function(){	
	$('.bodyright dd').hover(function(){
		$(this).toggleClass('hover');
		$(this).find("p").toggle();	
		$(this).find("div.pcdh_item").toggle();	
	});
})


$('.bodyright dt').click(function () {
	$('html,body').animate({
		scrollTop : '0px'
	}, 300);//返回顶部所用的时间 返回顶部也可调用goto()函数
});
});



//精品推荐滚动
$(function(){
	$(".hd_top").find("ul li").last().css("background","none");
	$(".qing").find("ul.nav li").last().css("background","none");
	$(".gjc_L").find("ul li").last().css("background","none");
	$(".cpzs_module_module").find("ul li").eq(0).addClass("eq0");
	$(".cpzs_module_module").find("ul li").eq(3).addClass("eq0");
	$(".cpzs_module_module").find("ul li").eq(6).addClass("eq0");
	$(".ingcal_module_module").find("ul li").eq(0).addClass("ingcal_eq0");
	$(".cgal_module_module").find("ul li").eq(0).addClass("cgal_eq0");
	$(".cgal_module_module").find("ul li").eq(4).addClass("cgal_eq0");
	$(".ftgz_pic").find("dl dt").last().css("margin-right","0px");
	$(".cpzs_nav").find("ul li").eq(0).addClass("eq0");
	$(".gsjj_title").find("ul li").eq(0).addClass("eq0");
	var $div_li = $("div.jptj_item_title ul li")
	$div_li.mouseover(function(){
		$(this).addClass("selected")
		.siblings().removeClass("selected");
		var index = $div_li.index(this);
		$("div.content12 > div")
			.eq(index).show()
			.siblings().hide();
	})
})


//精品滑动
$(function(){
	linum = $('.mainlist li').length;//图片数量
	w = linum/2 * 232;//ul宽度
	$('.piclist').css('width', '1000px');//ul宽度
	$('.swaplist').html($('.mainlist').html());//复制内容
	
	$('.og_next').click(function(){
		
		if($('.swaplist,.mainlist').is(':animated')){
			$('.swaplist,.mainlist').stop(true,true);
		}
		 
		if($('.mainlist li').length>4){//多于4张图片
			ml = parseInt($('.mainlist').css('left'));//默认图片ul位置
			sl = parseInt($('.swaplist').css('left'));//交换图片ul位置
			if(ml<=0 && ml>w*-1){//默认图片显示时
			
				$('.swaplist').css({left: '0px'});//交换图片放在显示区域右侧
				$('.mainlist').animate({left: ml - 970 + 'px'},'slow');//默认图片滚动				
				if(ml==(w-970)*-1){//默认图片最后一屏时
					$('.swaplist').animate({left: '0px'},'slow');//交换图片滚动
				}
			}else{//交换图片显示时
				$('.mainlist').css({left: '0px'})//默认图片放在显示区域右
				$('.swaplist').animate({left: sl - 970 + 'px'},'slow');//交换图片滚动
				if(sl==(w-970)*-1){//交换图片最后一屏时
					$('.mainlist').animate({left: '0px'},'slow');//默认图片滚动
				}
			}
		}
	})
	$('.og_prev').click(function(){
		
		
		if($('.swaplist,.mainlist').is(':animated')){
			$('.swaplist,.mainlist').stop(true,true);
		}
		
		if($('.mainlist li').length>4){
			ml = parseInt($('.mainlist').css('left'));
			sl = parseInt($('.swaplist').css('left'));
			if(ml<=0 && ml>w*-1){
				
				$('.swaplist').css({left: w * -1 + 'px'});
				$('.mainlist').animate({left: ml + 970 + 'px'},'slow');				
				if(ml==0){
					$('.swaplist').animate({left: (w - 945) * -1 + 'px'},'slow');
				}
			}else{
				$('.mainlist').css({left: (w - 945) * -1 + 'px'});
				$('.swaplist').animate({left: sl + 970 + 'px'},'slow');
				if(sl==0){
					$('.mainlist').animate({left: '0px'},'slow');
				}
			}
		}
	});
	
	$('.goodlist').hover(function(){
		$('.exchange',this).show();
	},function(){
		$('.exchange',this).hide();
	}); 
});


//导航
jQuery(function($){
	$(".nav_module").find("ul li.yqlj-item").each(function(){
			$(this).hover(function(){
				$(this).addClass("fitem-hover");
				},function(){
					$(this).removeClass("fitem-hover");
					})
		});
	})
jQuery(function($){
	$(".nav_module").find("ul li.yqlj-item .second ul li").each(function(){
			$(this).hover(function(){
				$(this).addClass("item-hover");
				},function(){
					$(this).removeClass("item-hover");
					})
		});
	})


	
jQuery(function($){
	$(".nav_module").find("ul li.yqlj-item").eq(1).addClass("eq0");
	})
	jQuery(function($){
	$(".cpzx_module_module").find("ul li").each(function(){
			$(this).hover(function(){
				$(this).addClass("item-hover");
				},function(){
					$(this).removeClass("item-hover");
					})
		});
	})



//banner图片切换
function mouseover_change(param){
	this.mouse=param.mouse || null;/*鼠标出发对象*/
	this.content=param.content || null;/*鼠标出发对象显示的内容*/
	this.mousestyle=param.hover || null;/*鼠标出发时显示的内容*/
	this.default_style=param.default_style || null;/*鼠标默认样式*/
	this.default_show=param.default_show || 0;/*鼠标默认样式*/
	/*函数容错处理****start*/
	if($(this.mouse).length!=$(this.content).length){alert('mouseover_change函数传参错误,\n错误对象：【'+this.mouse+'】。');return;};
	if($(this.mouse).length-1<this.default_show) this.default_show=0;
	/*函数容错处理****end*/
	var $mouse=$(this.mouse);
	var $content=$(this.content);
	var _this=this;
	$mouse.eq(this.default_show).attr('rel','mouseover').css(this.mousestyle);$content.eq(this.default_show).show();/*初始第一个显示*/
	$mouse.each(function (i){
		$(this).mouseover(function (){
			$(_this.mouse+"[rel='mouseover']").css(_this.default_style).attr('rel','null');
			$(this).attr('rel','mouseover').css(_this.mousestyle);
			$content.css('display','none').eq(i).show();
		});		
	});
}
$(function (){
	//来院专家
  var _wrap=$('ul.docList');//定义滚动区域
  var _interval=5000;//定义滚动间隙时间
  var _moving_ly;//需要清除的动画
  _wrap.hover(function(){
	 clearInterval(_moving_ly);//当鼠标在滚动区域中时,停止滚动
  },function(){
  	_moving_ly=setInterval(function(){
	var _field=_wrap.find('li:first');//此变量不可放置于函数起始处,li:first取值是变化的
	var _h=_field.height();//取得每次滚动高度
	_field.animate({marginTop:-_h+'px'},2000,function(){//通过取负margin值,隐藏第一行
		_field.css('marginTop',0).appendTo(_wrap);//隐藏后,将该行的margin值置零,并插入到最后,实现无缝滚动
	  })
	},_interval)//滚动间隔时间取决于_interval
  }).trigger('mouseleave');//函数载入时,模拟执行mouseleave,即自动滚动
});

function setNumFlag(page){
	$("div.fs_btn span").removeClass("on");
	$("div.fs_btn span:eq("+(page)+")").addClass("on");
}
$(function (){
	$("#silder a:eq(0)").fadeIn('fast');
	var page=0;
	var $silder=$("#silder");
	var pageCount=$silder.find("a").length;
	var $divShowFlag=$("div.fs_btn");
	for(var j=0;j<pageCount;j++){
			if(j==0){
				$divShowFlag.append($("<span class='on'>"+j+"</span>"));
			}else{
				$divShowFlag.append($("<span class=''>"+j+"</span>"));
			}
		}
	$("#banner .sameStyle").css('opacity','0.3');
	$("#banner .sameStyle").hover(function (){
		$(this).css('opacity','0.6');
	},function (){
		$(this).css('opacity','0.3');
	});
	$("#banner .pre").click(function (){
		if(!$("#silder a:eq("+page+")").is(":animated")&&!$("#silder a:eq("+(page+1)+")").is(":animated")){
			if(page==0){
				$("#silder a").fadeOut('slow');
				$("#silder a:eq("+(pageCount-1)+")").fadeIn('slow');
				page=pageCount-1;
				setNumFlag(page);
			}else{
				$("#silder a").fadeOut('slow');
				$("#silder a:eq("+(page-1)+")").fadeIn('slow');
				page--;
				setNumFlag(page);
			}
		}
	});
	$("#banner .next").click(function (){
		if(!$("#silder a:eq("+page+")").is(":animated")&&!$("#silder a:eq("+(page+1)+")").is(":animated")){
			if((page+1)==pageCount){
				$("#silder a").fadeOut('slow');
				$("#silder a:eq(0)").fadeIn('slow');
				page=0;
				setNumFlag(page);
			}else{
				$("#silder a").fadeOut('slow');
				$("#silder a:eq("+(page+1)+")").fadeIn('slow');
				page++;
				setNumFlag(page);
			}
		}
	});
	setTimeout(startNext,5000);
	function startNext(){
		setInterval(function (){
			$("#banner .next").trigger('click');
		},5000);
	}
	$(".fs_btn span").mouseover(function (){
		if(!$("#silder a").is(":animated")&&$(this).attr('class')!=='on'){
			$("#silder a").fadeOut('slow');
			$("#silder a:eq("+($(this).html())+")").fadeIn('slow');
			setNumFlag($(this).html());
		}
	})
	$(".fs_btn span").click(function (){
		$(this).trigger('mouseover');
	});
});
$(function (){
	$("#top00 ul li:has(ul)").hover(function() {
		$(this).children('.showOther').stop(true,true).slideDown(300);
	  }, function() {
		$(this).children('.showOther').stop(true,true).hide();
	  });
});

/*
 名称：提示弹窗
 使用方法：new CareWindow({width:405,height:160,title:'提示信息',content:str,left:2,top:2});参数都是可选的
 注意：等页面元素加载完毕时再调用！
 传入参数obj是一对象,当然可以不传，例如：
 {
 	width:405,**传入一个正的数字
 	height:160,**传入一个正的数字
 	title:'提示信息',**传入一个字符串
 	content:'如果你看到这个,说明您的操作有误!',**传入一个字符串
 	left:2, //2表示中间,默认就是2,数字越大越靠左,**传入一个正的数字
 	top:2  //2表示中间,默认就是2,数字越大越靠上,**传入一个正的数字
 }
 */
function CareWindow(obj){
	obj=obj || {};
	if(obj.width <405 || typeof obj.width == 'undefined'){
		this.width=405;
	}else{
		this.width=obj.width;
	}
	if(obj.height <160 || typeof obj.height == 'undefined'){
		this.height=160;
	}else{
		this.height=obj.height;
	}
	this.left=obj.left || 2;
	this.top=obj.top || 2;
	this.contentHeight=this.height-104;//内容主体部分的高度
	this.title=obj.title || '提示信息';
	this.content=obj.content || '如果你看到这个,说明您的操作有误!';
	this.html=this.setHtml();//返回创建html 
	this.html.hide();//设置其为隐藏
	this.insertHtml();//追加插入到body中去
	this.setBasicStyle();//设置除大小之外的样式
	this.setSize(this.width,this.height);//设置大小
	this.addClickClose();//添加点击事件
	this.html.show();//设置其显示
	this.setEvent();
}
CareWindow.prototype={
		setHtml:function (){
			var str=
			"<div id='shadeDivBg'></div>"+//shadeDivBg为覆盖整个浏览器视口界面
			"<div id='shadecontainer'>"+//shadecontainer为弹出来的div的容器
				"<div class='shadeDiv'></div>"+//shadeDiv作为透明的背景
				"<div class='shadeDivC'>"+//shadeDivC为中间弹出的内容
					"<h2>"+this.title+"</h2>"+
					"<div class='printContent'>"+
						"<p style='font-size:13px;'>"+
							this.content+
						"</p>"+
					"</div>"+
					"<div class='printContentbottom'>"+
						"<a>确定</a>"
					"</div>"+
				"</div>"+
			"</div>";
			return $(str);//返回创建的html对象
		},
		insertHtml:function (){
			$("body").append(this.html);
		},
		setBasicStyle:function (){
			//遮住整个适口
			$("#shadeDivBg").css(
					{
						 'position':'absolute',
						 'top':'0px',
						 'left':'0px',
						 'margin':'0px',
						 'padding':'0px',
						 'background':'#fff',
						 'opacity':'0',
						 'z-index':'1000'
					 }
			);
			//弹出div的容器
			$("#shadecontainer").css(
					{
						'position':'absolute',
						'width':this.width,
						'height':this.height,
						'margin':'0px',
						'padding':'0px',
						'z-index':'1001'
					}
			);
			//做透明度用
			$("#shadecontainer div.shadeDiv").css(
					{
						'position':'absolute',
						'width':this.width,
						'height':this.height,
						'top':'0px',
						'left':'0px',
						'background':'#000',
						'opacity':'0.2',
						'margin':'0px',
						'padding':'0px',
						'z-index':'1002'
					}
			  );
			//主体内容
			$("#shadecontainer div.shadeDivC").css(
					{
						'position':'absolute',
						'left':'9px',
						'top':'9px',
						'width':this.width-20,
						'height':this.height-20,
						'border':'1px solid #888',
						'font-size':'14px',
						'margin':'0px',
						'padding':'0px',
						'z-index':'1003'
					}
			);
			$("#shadecontainer div.shadeDivC h2").css(
					{
						'background':"#f6f6f6",
						'height':'30px',
						'font-size':'14px',
						'color':'#336699',
						'line-height':'30px',
						'text-indent':'10px',
						'border':'none',
						'margin':'0px',
						'padding':'0px',
						'z-index':'1004'
					}
			);
			$("#shadecontainer div.shadeDivC div.printContent").css(
					{
						'background':"#ffffff",
						'height':this.contentHeight,
						'font-size':'13px',
						'color':'#336699',
						'border-top':'1px solid #cdcdcd',
						'border-bottom':'1px solid #cdcdcd',
						'color':'#454545',
						'margin':'0px',
						'padding':'0px',
						'z-index':'1005'
					}
			);
			$("#shadecontainer div.shadeDivC div.printContent p").css(
					{
						'line-height':'150%',
						'padding':'20px',
						'margin':'0px',
						'z-index':'1006'
					}
			);
			$("#shadecontainer div.shadeDivC div.printContentbottom").css(
					{
						'height':'52px',
						'line-height':'50px',
						'top':'250px',
						'background':"#f6f6f6",
						'margin':'0px',
						'padding':'0px',
						'z-index':'1007'
					}
			);
			$("#shadecontainer div.shadeDivC div.printContentbottom a").css(
					{
						'display':'inline',
						'width':'48px',
						'height':'28px',
						'border-top':'1px solid #d8dfea',
						'border-bottom':'1px solid #0e1f5b',
						'border-left':'1px solid #d8dfea',
						'border-right':'1px solid #0e1f5b',
						'line-height':'28px',
						'text-align':'center',
						'float':'right',
						'margin':'10px',
						'padding':'0px',
						'background':'#005eac',
						'color':'#fff',
						'cursor':'pointer',
						'z-index':'10008'
					}
			);
		},
		setEvent:function (){
			var _this=this;
			$(window).bind("scroll",EventSetSize);
			$(window).bind("resize",EventSetSize);
			function EventSetSize(){
				$("#shadeDivBg").is("div") ? _this.setSize() : null;
			}
		},
		setSize:function (){
			$("#shadeDivBg").css(
				{
					'width':$(window).width(),
					'height':$(window).height()+$(document).scrollTop()
				}
			);
			$("#shadecontainer").css(
					{
						'top':($(window).height()-this.height)/this.top+$(document).scrollTop(),
						'left':($(window).width()-this.width)/this.left
					}
			);
		},
		addClickClose:function (){
			var _this=this;
			$("#shadecontainer div.shadeDivC div.printContentbottom a").click(function (){
				_this.hideMe();
			});
		},
		hideMe:function (){
			$("#shadeDivBg").remove();
			$("#shadecontainer").remove();
		}
};
(function($){
    //拖拽插件,参数:id或object
    $.Move = function(_this){

        if(typeof(_this)=='object'){
            _this=_this;
        }else{
            _this=$("#"+_this);
        }
        if(!_this){return false;}

        _this.css({'position':'absolute'}).hover(function(){$(this).css("cursor","move");},function(){$(this).css("cursor","default");})
        _this.mousedown(function(e){//e鼠标事件
            var offset = $(this).offset();
            
            var x = e.pageX - offset.left;
            var y = e.pageY - offset.top;
            //_this.css({'opacity':'0.3'});
            $(document).bind("mousemove",function(ev){//绑定鼠标的移动事件，因为光标在DIV元素外面也要有效果，所以要用doucment的事件，而不用DIV元素的事件
                _this.bind('selectstart',function(){return false;});
                
                var _x = ev.pageX - x;//获得X轴方向移动的值
                var _y = ev.pageY - y;//获得Y轴方向移动的值
                _this.css({'left':_x+"px",'top':_y+"px"});
            });
        });

        $(document).mouseup(function(){
            $(this).unbind("mousemove");
            _this.css({'opacity':''});
        })
    };
})(jQuery)
/*
$(function(){
    $.Move('m1');
});
*/
function AddFavorite(sURL, sTitle) {
	sURL = encodeURI(sURL);
	try{
		window.external.addFavorite(sURL, sTitle);
	}catch(e) {
		try{
			window.sidebar.addPanel(sTitle, sURL, "");
		}catch (e) {
			new CareWindow({'title':'<span style="font-weight:bold;">温馨提示</span>','content':'按住<span style="color:green;"> ctrl </span>键再按<span style="color:green;"> d </span>键即可,或手动在浏览器里进行设置.','width':400});
			$.Move('shadecontainer');
		}
	} 
}



//产品滚动
var Speed_1 = 50; //速度(毫秒)
var Space_1 = 20; //每次移动(px)
var PageWidth_1 = 1032 *1; //翻页宽度
var interval_1 = 8000; //翻页间隔时间
var fill_1 = 0; //整体移位
var MoveLock_1 = false;
var MoveTimeObj_1;
var MoveWay_1="right";
var Comp_1 = 0;
var AutoPlayObj_1=null;
function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}}
function AutoPlay_1(){clearInterval(AutoPlayObj_1);AutoPlayObj_1=setInterval('ISL_GoDown_1();ISL_StopDown_1();',interval_1)}
function ISL_GoUp_1(){if(MoveLock_1)return;clearInterval(AutoPlayObj_1);MoveLock_1=true;MoveWay_1="left";MoveTimeObj_1=setInterval('ISL_ScrUp_1();',Speed_1);}
function ISL_StopUp_1(){if(MoveWay_1 == "right"){return};clearInterval(MoveTimeObj_1);if((GetObj('ISL_Cont_1').scrollLeft-fill_1)%PageWidth_1!=0){Comp_1=fill_1-(GetObj('ISL_Cont_1').scrollLeft%PageWidth_1);CompScr_1()}else{MoveLock_1=false}
AutoPlay_1()}
function ISL_ScrUp_1(){if(GetObj('ISL_Cont_1').scrollLeft<=0){GetObj('ISL_Cont_1').scrollLeft=GetObj('ISL_Cont_1').scrollLeft+GetObj('List1_1').offsetWidth}
GetObj('ISL_Cont_1').scrollLeft-=Space_1}
function ISL_GoDown_1(){clearInterval(MoveTimeObj_1);if(MoveLock_1)return;clearInterval(AutoPlayObj_1);MoveLock_1=true;MoveWay_1="right";ISL_ScrDown_1();MoveTimeObj_1=setInterval('ISL_ScrDown_1()',Speed_1)}
function ISL_StopDown_1(){if(MoveWay_1 == "left"){return};clearInterval(MoveTimeObj_1);if(GetObj('ISL_Cont_1').scrollLeft%PageWidth_1-(fill_1>=0?fill_1:fill_1+1)!=0){Comp_1=PageWidth_1-GetObj('ISL_Cont_1').scrollLeft%PageWidth_1+fill_1;CompScr_1()}else{MoveLock_1=false}
AutoPlay_1()}
function ISL_ScrDown_1(){if(GetObj('ISL_Cont_1').scrollLeft>=GetObj('List1_1').scrollWidth){GetObj('ISL_Cont_1').scrollLeft=GetObj('ISL_Cont_1').scrollLeft-GetObj('List1_1').scrollWidth}
GetObj('ISL_Cont_1').scrollLeft+=Space_1}
function CompScr_1(){if(Comp_1==0){MoveLock_1=false;return}
var num,TempSpeed=Speed_1,TempSpace=Space_1;if(Math.abs(Comp_1)<PageWidth_1/2){TempSpace=Math.round(Math.abs(Comp_1/Space_1));if(TempSpace<1){TempSpace=1}}
if(Comp_1<0){if(Comp_1<-TempSpace){Comp_1+=TempSpace;num=TempSpace}else{num=-Comp_1;Comp_1=0}
GetObj('ISL_Cont_1').scrollLeft-=num;setTimeout('CompScr_1()',TempSpeed)}else{if(Comp_1>TempSpace){Comp_1-=TempSpace;num=TempSpace}else{num=Comp_1;Comp_1=0}
GetObj('ISL_Cont_1').scrollLeft+=num;setTimeout('CompScr_1()',TempSpeed)}}
function picrun_ini(){
GetObj("List2_1").innerHTML=GetObj("List1_1").innerHTML;
GetObj('ISL_Cont_1').scrollLeft=fill_1>=0?fill_1:GetObj('List1_1').scrollWidth-Math.abs(fill_1);
GetObj("ISL_Cont_1").onmouseover=function(){clearInterval(AutoPlayObj_1)}
GetObj("ISL_Cont_1").onmouseout=function(){AutoPlay_1()}
AutoPlay_1();
}


//带按钮的图片左右滚动效果
var Speed = 10; //速度(毫秒)
var Space = 5; //每次移动(px)
var PageWidth = 320; //翻页宽度
var fill = 0; //整体移位
var MoveLock = false;
var MoveTimeObj;
var Comp = 0;
var AutoPlayObj = null;
GetObj("List2").innerHTML = GetObj("List1").innerHTML;
GetObj('ISL_Cont').scrollLeft = fill;
GetObj("ISL_Cont").onmouseover = function(){clearInterval(AutoPlayObj);}
GetObj("ISL_Cont").onmouseout = function(){AutoPlay();}
AutoPlay();
function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}}
function AutoPlay(){ //自动滚动
 clearInterval(AutoPlayObj);
 AutoPlayObj = setInterval('ISL_GoDown();ISL_StopDown();',3000); //间隔时间
}
function ISL_GoUp(){ //上翻开始
 if(MoveLock) return;
 clearInterval(AutoPlayObj);
 MoveLock = true;
 MoveTimeObj = setInterval('ISL_ScrUp();',Speed);
}
function ISL_StopUp(){ //上翻停止
 clearInterval(MoveTimeObj);
 if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0){
  Comp = fill - (GetObj('ISL_Cont').scrollLeft % PageWidth);
  CompScr();
 }else{
  MoveLock = false;
 }
 AutoPlay();
}
function ISL_ScrUp(){ //上翻动作
 if(GetObj('ISL_Cont').scrollLeft <= 0){GetObj('ISL_Cont').scrollLeft = GetObj('ISL_Cont').scrollLeft + GetObj('List1').offsetWidth}
 GetObj('ISL_Cont').scrollLeft -= Space ;
}
function ISL_GoDown(){ //下翻
 clearInterval(MoveTimeObj);
 if(MoveLock) return;
 clearInterval(AutoPlayObj);
 MoveLock = true;
 ISL_ScrDown();
 MoveTimeObj = setInterval('ISL_ScrDown()',Speed);
}
function ISL_StopDown(){ //下翻停止
 clearInterval(MoveTimeObj);
 if(GetObj('ISL_Cont').scrollLeft % PageWidth - fill != 0 ){
  Comp = PageWidth - GetObj('ISL_Cont').scrollLeft % PageWidth + fill;
  CompScr();
 }else{
  MoveLock = false;
 }
 AutoPlay();
}
function ISL_ScrDown(){ //下翻动作
 if(GetObj('ISL_Cont').scrollLeft >= GetObj('List1').scrollWidth){GetObj('ISL_Cont').scrollLeft = GetObj('ISL_Cont').scrollLeft - GetObj('List1').scrollWidth;}
 GetObj('ISL_Cont').scrollLeft += Space ;
}
function CompScr(){
 var num;
 if(Comp == 0){MoveLock = false;return;}
 if(Comp < 0){ //上翻
  if(Comp < -Space){
   Comp += Space;
   num = Space;
  }else{
   num = -Comp;
   Comp = 0;
  }
  GetObj('ISL_Cont').scrollLeft -= num;
  setTimeout('CompScr()',Speed);
 }else{ //下翻
  if(Comp > Space){
   Comp -= Space;
   num = Space;
  }else{
   num = Comp;
   Comp = 0;
  }
  GetObj('ISL_Cont').scrollLeft += num;
  setTimeout('CompScr()',Speed);
 }
}






