﻿		function change_menu_select(num) {
			var select = "menu_select_" + num;
			document.getElementById(select).setAttribute("className", "current");
		}

		function showTab(elm,num,total) {
			for(var i=1;i<=total;i++) {
				document.getElementById(elm+"_"+i).className = "" ;
			}
			document.getElementById(elm+"_"+num).className = "select" ;
		}
		function showSub(elm,num,total) {
			for (var i=1;i<=total;i++) {
				document.getElementById(elm+"_sub"+i).style.display = "none" ;
			}
			document.getElementById(elm+"_sub"+num).style.display = "block" ;
		}
		function showTab1(elm,num,total) {
			for(var i=1;i<=total;i++) {
				document.getElementById(elm+"1_"+i).className = "" ;
			}
			document.getElementById(elm+"1_"+num).className = "select" ;
		}
		function showSub1(elm,num,total) {
			for (var i=1;i<=total;i++) {
				document.getElementById(elm+"1_sub"+i).style.display = "none" ;
			}
			document.getElementById(elm+"1_sub"+num).style.display = "block" ;
		}
		function showTab2(elm,num,total) {
			for(var i=1;i<=total;i++) {
				document.getElementById(elm+"1_"+i).className = "" ;
			}
			document.getElementById(elm+"1_"+num).className = "select" ;
		}
		function showSub2(elm,num,total) {
			for (var i=1;i<=total;i++) {
				document.getElementById(elm+"2_sub"+i).style.display = "none" ;
			}
			document.getElementById(elm+"2_sub"+num).style.display = "block" ;
		}

		function showRank(elm,num,total) {
			showTab(elm,num,total) ;
			showSub(elm,num,total) ;
			//showImage(num) ;
			document.body.focus();
		}
		function showRecommend(elm,num,total) {
			showTab(elm,num,total) ;
			showSub(elm,num,total) ;
			//showImage(num) ;
			document.body.focus();
		}
		function showRecommend1(elm,num,total) {
			showTab1(elm,num,total) ;
			showSub1(elm,num,total) ;
			//showImage(num) ;
			document.body.focus();
		}
		function showRecommend2(elm,num,total) {
			showTab2(elm,num,total) ;
			showSub2(elm,num,total) ;
			//showImage(num) ;
			document.body.focus();
		}
		
		function showPiaofang(elm,num,total) {
			showTab(elm,num,total) ;
			showSub(elm,num,total) ;
			document.body.focus();
		}
		function showMovieStar(type) {

				var TotalMovieStar = MovieStar.length - 1 ;
				if (type == "next") {
					CurMovieStar = CurMovieStar + 1 ;
				}
				else if (type == "pre") {
					CurMovieStar = CurMovieStar - 1 ;
				}
					
				if (CurMovieStar <= 0 ) {
					CurMovieStar = TotalMovieStar ;
				}
				if (CurMovieStar > TotalMovieStar) {
					CurMovieStar = 1 ;
				}
				var MovieStarStr = '<dt><a href="'+MovieStar[CurMovieStar]['link']+'" title="'+MovieStar[CurMovieStar]['nickname']+'">'+MovieStar[CurMovieStar]['nickname']+'</a></dt>' ;
				MovieStarStr += '<dd>姓名：'+MovieStar[CurMovieStar]['truename']+'</dd>' ;
				MovieStarStr += '<dd>语种：'+MovieStar[CurMovieStar]['area']+'</dd>' ;
				MovieStarStr += '<dd>等级：'+MovieStar[CurMovieStar]['type']+'</dd>' ;

				document.getElementById('MovieStarLink').href = MovieStar[CurMovieStar]['link'] ;
				document.getElementById('MovieStarLink').title = MovieStar[CurMovieStar]['nickname'] ;
					
				document.getElementById('MovieStarInfo').innerHTML = MovieStarStr ;
				setTimeout("document.getElementById('MovieStarImg').src = MovieStar[CurMovieStar]['img_upload'];", 100);
				document.body.focus();

			}