<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">function getval(vars) {
	var returnvar="";
	var url=window.location.href;
	var arr_url=url.split("#");
	if (arr_url.length&lt;=1) {
		return "";	
	}
	var para=url.split("#")[1];
	var arr_para=para.split("&amp;");
	for (str in arr_para) {
		arr_tmp=arr_para[str].split("=");
		if (vars==arr_tmp[0]) {
			returnvar=arr_tmp[1];
			break;
		}
	}
	return returnvar;
}
$(function(){
	var viewnum=3;
	var li_width=$(".hd_li").outerWidth(true);
	var li_size=$(".hd_li").size();
	var allwidth=li_width*li_size;
	$(".hd_ul_block").width(allwidth);
	var tid=getval("tid");
	if (tid!="") {
		var imgurl=$("#hd_li_"+tid).find("img").attr("rel");
		$(".hd_li").removeClass(".hd_li_select");
		$("#hd_li_"+tid).addClass("hd_li_select")
		$(".bigimg").find("img").attr("src", imgurl);
		
		if (li_size&gt;viewnum) {
			var index=$(".hd_li").index($("#hd_li_"+tid));
			if (li_size-index&gt;viewnum) {
				var pos_left=-li_width*index;
			} else {
				var pos_left=-li_width*(li_size-viewnum);
			}
			$(".hd_ul_block").animate({"left": pos_left+"px" }, 800);
		}
	} else {
		$(".hd_li").eq(0).addClass("hd_li_select");
	}
	$(".bigimg").find("img").load(function(){
		$(this).reSize(690,500);
		$(this).absmiddle2();
	});

	$(".hd_li").click(function(){
		if (li_size&gt;viewnum) {
			var index=$(".hd_li").index($(this));
			if (li_size-index&gt;viewnum) {
				var pos_left=-li_width*index;
			} else {
				var pos_left=-li_width*(li_size-viewnum);
			}
			$(".hd_ul_block").animate({"left": pos_left+"px" }, 800);
		}
		var bigimg=$(this).find("img").attr("rel");
		$(".bigimg").find("img").hide().attr("src", bigimg).fadeIn("slow").load(function(){
			$(this).reSize(690,500);
			$(this).absmiddle2();
		});
		
		$(".hd_li").removeClass("hd_li_select");
		$(this).addClass("hd_li_select");
	});
	$(".imgprev, .l1").click(function(){
		pos_left=$(".hd_ul_block").css("left");
		$("#msgs").text(pos_left);
		if (li_size&gt;viewnum) {
			if (pos_left=="0px") {
				
			} else {
				$(".hd_ul_block").animate({left: '+='+li_width+'px' }, 800);
			}
		}
		var nowindex=$(".hd_li_select").index(".hd_li");
		if (nowindex&lt;1) return false;
		var bigimg=$(".hd_li").eq(nowindex-1).find("img").attr("rel");
		$(".bigimg").find("img").hide().attr("src", bigimg).fadeIn("slow").load(function(){
			$(this).reSize(690,500);
			$(this).absmiddle2();
		});
		
		$(".hd_li").removeClass("hd_li_select");
		$(".hd_li").eq(nowindex-1).addClass("hd_li_select");
		
		var thistid=$(".hd_li").eq(nowindex-1).attr("id");
		thistid=thistid.replace("hd_li_", "");
		window.location.href="#tid="+thistid;
	});
	$(".imgnext, .r1").click(function(){
		pos_left=$(".hd_ul_block").css("left");
		$("#msgs").text(pos_left);
		if (li_size&gt;viewnum) {
			var nowpos="-"+(allwidth-viewnum*li_width)+"px";
			if (pos_left==nowpos) {
				
			} else {
				$(".hd_ul_block").animate({left: '-='+li_width+'px' }, 800);
			}
		}
		
		var nowindex=$(".hd_li_select").index(".hd_li");
		if (nowindex+1==li_size) return false;
		var bigimg=$(".hd_li").eq(nowindex+1).find("img").attr("rel");
		$(".bigimg").find("img").hide().attr("src", bigimg).fadeIn("slow").load(function(){
			$(this).reSize(690,500);
			$(this).absmiddle2();
		});
		
		$(".hd_li").removeClass("hd_li_select");
		$(".hd_li").eq(nowindex+1).addClass("hd_li_select");
		
		var thistid=$(".hd_li").eq(nowindex+1).attr("id");
		thistid=thistid.replace("hd_li_", "");
		window.location.href="#tid="+thistid;

	});
	$(".l1").hover(function() {
		$("#aaaaa1").stop(true,true).show();
	}, function () {
		$("#aaaaa1").stop(true,true).hide();
	});
	$(".r1").hover(function() {
		$("#aaaaa2").stop(true,true).show();
	}, function () {
		$("#aaaaa2").stop(true,true).hide();
	});
});</pre></body></html>