// JavaScript Document
$(function(){
  //newsest game
  $(".newGameBut li").mouseover(function(){
							   $(this).attr("class","newCurrent");
							   $(".newGameBut li").not($(this)).attr("class","");
							   });	
  $("#newBut1").mouseover(function(){
							   $("#newGameCon1").show();
							   $("#newGameCon2").hide();
							   $("#newGameCon3").hide();
							   });
  $("#newBut2").mouseover(function(){
							   $("#newGameCon2").show();
							   $("#newGameCon1").hide();
							   $("#newGameCon3").hide();
							   });
  $("#newBut3").mouseover(function(){
							   $("#newGameCon3").show();
							   $("#newGameCon1").hide();
							   $("#newGameCon2").hide();
							   });
/*     function timer1(){
	  $("#newGameCon1").show();
	  $("#newGameCon2").hide();
	  $("#newGameCon3").hide();
	  clearInterval(timer3)//
	  }
	  function timer2(){
	  $("#newGameCon1").hide();
	  $("#newGameCon2").show();
	  $("#newGameCon3").hide();
	  clearInterval(timer1);
	  }
	  function timer3(){
	  $("#newGameCon1").hide();
	  $("#newGameCon2").hide();
	  $("#newGameCon3").show();
	  clearInterval(timer2)//
	  }
	  mytimer1 = setInterval("timer1()",3000);
	  mytimer2 = setInterval("timer2()",3000);
	  mytimer3 = setInterval("timer3()",3000);
*/
  //ranking
  $("#allBut").mouseover(function(){
							  $(".rankAllBut").attr("style","");
							  $(this).attr("style","font:bold 14px/32px 'ËÎÌå';color:#F35C0B");
							  $("#all").show();
							  $("#month").hide();
							  $(".rankAllTbg").css("background","url(/gege/temp/images/rankAllTbg1.gif) no-repeat left top");
							  });
  $("#mothBut").mouseover(function(){
							  $(".rankAllBut").attr("style","");
							  $(this).attr("style","font:bold 14px/32px 'ËÎÌå';color:#F35C0B");
							  $("#all").hide();
							  $("#month").show();
							  $(".rankAllTbg").css("background","url(/gege/temp/images/rankAllTbg2.gif) no-repeat left top");
							  });
  //indexfooter
  $(".allClassName li p").mouseover(function(){
								  $(".departContent").css("display","none");
								  $(".departContent[id^="+$(this).attr('id')+"]").show();
								  $(this).css({
											  fontWeight:"bold",
											  color:"#fff",
											  background:"url(/gege/temp/images/classsbg.gif) no-repeat left top"
											  });
								  $(".allClassName li p").not($(this)).css({
																		 "background":"",
																		 fontWeight:"normal",
																		 color:"#666"
																		 });
								  $(".allSpace").css("background","url(/gege/temp/images/classgbg_03.gif) no-repeat 9px 5px")
								  });
   
   //related
   $(".relatedBut1").hover(
							  function(){
							  $(this).attr("src","/gege/temp/images/related1_2.gif");
							  },
							  function(){
							  $(this).attr("src","/gege/temp/images/relat1_1.gif");
							  }
					);
   
   $(".relatedBut2").hover(
							  function(){
							  $(this).attr("src","/gege/temp/images/related2_2.gif");
							  },
							  function(){
							  $(this).attr("src","/gege/temp/images/relat2_1.gif");
							  }
					);
   //proscroll
    $(".proScrollBut1").hover(
							  function(){
							  $(this).attr("src","/gege/temp/images/proright2.gif");
							  },
							  function(){
							  $(this).attr("src","/gege/temp/images/proright1.gif");
							  }
					);
   
   $(".proScrollBut2").hover(
							  function(){
							  $(this).attr("src","/gege/temp/images/proleft2.gif");
							  },
							  function(){
							  $(this).attr("src","/gege/temp/images/proleft1.gif");
							  }
					);
   
$(".hotestGameBut").click(function(){
  $("#hotestGameList").show();
  $("#newestGameList").hide();
                                           $(this).css({
 background:"url(/gege/temp/images/est_03.gif) no-repeat left top",
 font:"bold 14px/28px Verdana, Geneva, sans-serif",
 color:"#fff"
 });
           $(".newestGameBut").css({
 background:"url(/gege/temp/images/est_05.gif) no-repeat left top",
 font:"bold 14px/28px Verdana, Geneva, sans-serif",
 color:"#F1641E"
 });
  });
$(".newestGameBut").click(function(){
  $("#hotestGameList").hide();
  $("#newestGameList").show();
  $(this).css({
 background:"url(/gege/temp/images/est_03.gif) no-repeat left top",
 font:"bold 14px/28px Verdana, Geneva, sans-serif",
 color:"#fff"
 });
           $(".hotestGameBut").css({
 background:"url(/gege/temp/images/est_05.gif) no-repeat left top",
 font:"bold 14px/28px Verdana, Geneva, sans-serif",
 color:"#F1641E"
 });
  });
	$(".poldButImg").toggle(
							function(){
								$(this).attr("src","/gege/temp/images/unpold.gif");
								$(".TxtListUl").attr("style","");
								},
							function(){
								$(this).attr("src","/gege/temp/images/pold.gif");
								$(".TxtListUl").attr("style","height:464px;overflow:hidden;");
								}
							);
	//proList
	$(".proBut1").click(function(){
								 $("#proListUL1").show();
								 $("#proListUL2").hide();
				                 $(this).css({
											 background:"url(/gege/temp/images/prolistbt2.gif) no-repeat left top",
											 font:"bold 14px/28px Verdana, Geneva, sans-serif",
											 color:"#fff"
											 });
								 $(".proBut2").css({
											 background:"url(/gege/temp/images/prolistbt1.gif) no-repeat left top",
											 font:"bold 14px/28px Verdana, Geneva, sans-serif",
											 color:"#F1641E"
											 });
								 });
	$(".proBut2").click(function(){
								 $("#proListUL2").show();
								 $("#proListUL1").hide();
								 $(this).css({
											 background:"url(/gege/temp/images/prolistbt2.gif) no-repeat left top",
											 font:"bold 14px/28px Verdana, Geneva, sans-serif",
											 color:"#fff"
											 });
								 $(".proBut1").css({
											 background:"url(/gege/temp/images/prolistbt1.gif) no-repeat left top",
											 font:"bold 14px/28px Verdana, Geneva, sans-serif",
											 color:"#F1641E"
											 });
								 });
	//play
	$(".playRbut li:eq(0)").mouseover(function(){
											   $(this).addClass("playRbutFont1");
											   $(".playRbut li:eq(1)").removeClass("playRbutFont1");
											   $(".playRbut").css("background","url(/gege/temp/images/playRbut_03.gif) no-repeat left top");
											   $("#PlayList1").show();
											   $("#PlayList2").hide();
											   });
	$(".playRbut li:eq(1)").mouseover(function(){
											   $(this).addClass("playRbutFont1");
											   $(".playRbut li:eq(0)").removeClass("playRbutFont1");
											   $(".playRbut").css("background","url(/gege/temp/images/playRbut_04.gif) no-repeat left top");
											   $("#PlayList1").hide();
											   $("#PlayList2").show();
											   });
	//alignCenter
	$(".alignCenter").toggle(
							 function(){
								 $(".playRight").css("display","none");
								 $(".playLeft").css("width","936px");
								 $(this).css("background","url(/gege/temp/images/contral_09_2.gif) no-repeat left center");
								 $(".alignTxt2").show();
								 $(".alignTxt1").hide();
								 },
							 function(){
								 $(".playRight").css("display","block");
								 $(".playLeft").css("width","686px");
								 $(this).css("background","url(/gege/temp/images/contral_09.gif) no-repeat left center");
								 $(".alignTxt2").hide();
								 $(".alignTxt1").show();
								 }
							 );
	//ladengkaideng

if($("#sendValue").text() == "ladeng"){
   $(".bodyMask").css({
					   width:document.body.scrollWidth ,
					   height:document.body.scrollHeight,
					   zIndex:"999"
					   }).fadeIn(800);
                       $(".playRight").css("display","none");
					   $(".playLeft").css("width","936px");
}else if($("#sendValue").text() == "kaideng"){
	$(".bodyMask").fadeOut(800);
	$(".playRight").css("display","block");
	$(".playLeft").css("width","686px");
	}

//endnewhot
$(".playhotnewbut").mouseover(function(){
									   $(this).css({
												   height:"38px",
												   font:"bold 14px/38px Verdana, Geneva, sans-serif",
												   color:"#F15D0B"
												   });
									   $(".playhotnewbut2").css({
												   height:"31px",
												   font:"normal 14px/38px Verdana, Geneva, sans-serif",
												   color:"#666"
												   });
									   $("#playHotContent").show();
									   $("#playHotContent2").hide();
									   });
$(".playhotnewbut2").mouseover(function(){
									   $(this).css({
												   height:"38px",
												   font:"bold 14px/38px Verdana, Geneva, sans-serif",
												   color:"#F15D0B"
												   });
									   $(".playhotnewbut").css({
												   height:"31px",
												   font:"normal 14px/38px Verdana, Geneva, sans-serif",
												   color:"#666"
												   });
									   $("#playHotContent").hide();
									   $("#playHotContent2").show();
									   });
  //cartList
  $(".cartUnpold").click(function(){
								  $(this).parent().parent().parent().next().show();
								  $(this).parent().parent().parent().hide();
								  });
  $(".cartpold").click(function(){
								  $(this).parent().parent().parent().prev().show();
								  $(this).parent().parent().parent().hide();
								  });
});

