// JavaScript Document

$(document).ready(function(){
	$("#btn_gotomyblog").hover(
							 function(){
								 $(this).attr("src","templates/images/btn_gotomyblog_hover.gif");
								 },
							 function(){
								 $(this).attr("src","templates/images/btn_gotomyblog_normal.gif");
								 } 
							 );			   
						   
	$("#btn_postanewblog").hover(
							 function(){
								 $(this).attr("src","templates/images/btn_postanewblog_hover.gif");
								 },
							 function(){
								 $(this).attr("src","templates/images/btn_postanewblog_normal.gif");
								 } 
							 );	
	$("#btn_gotoallblog").hover(
							 function(){
								 $(this).attr("src","templates/images/btn_gotoallblog_hover.gif");
								 },
							 function(){
								 $(this).attr("src","templates/images/btn_gotoallblog_normal.gif");
								 } 
							 );	
	$(".blog_list_table tr").hover(
								function(){
									$(this).css("background","#efefef");
									},
								function(){
									$(this).css("background","#fff");
									}
								);
	$("input[@name='add']").hover(
								function(){
									$(this).attr("src","templates/images/btn_add_hover.gif");
									},
								function(){
									$(this).attr("src","templates/images/btn_add_normal.gif");
									}
								);
						   
	$(".btn_last").hover(
								function(){
									$(this).attr("src","templates/images/btn_last_hover.gif");
									},
								function(){
									$(this).attr("src","templates/images/btn_last_normal.gif");
									}
								);						   
	$("#btn_seelist").hover(
								function(){
									$(this).attr("src","templates/images/btn_seelist_hover.gif");
									},
								function(){
									$(this).attr("src","templates/images/btn_seelist_normal.gif");
									}
								);					   
						   
	$(".temp_submit").hover(
								function(){
									$(this).attr("src","templates/images/temp_submit_hover.gif");
									},
								function(){
									$(this).attr("src","templates/images/temp_submit.gif");
									}
								);	
	$(".btn_download").hover(
								function(){
									$(this).attr("src","templates/images/btn/btn_download_hover.gif");
									},
								function(){
									$(this).attr("src","templates/images/btn/btn_download.gif");
									}
								);
	$(".btn_enter").hover(
								function(){
									$(this).attr("src","templates/images/btn/btn_enter_hover.gif");
									},
								function(){
									$(this).attr("src","templates/images/btn/btn_enter.gif");
									}
								);
	$(".btn_dvp_upload").hover(
								function(){
									$(this).attr("src","templates/images/btn/btn_dvp_upload_hover.gif");
									},
								function(){
									$(this).attr("src","templates/images/btn/btn_dvp_upload.gif");
									}
								);
	$(".btn_add_game").hover(
								function(){
									$(this).attr("src","templates/images/btn/btn_add_game_hover.gif");
									},
								function(){
									$(this).attr("src","templates/images/btn/btn_add_game.gif");
									}
								);
	$(".btn_how_to_play").hover(
								function(){
									$(this).attr("src","templates/images/btn/btn_how_to_play_hover.gif");
									},
								function(){
									$(this).attr("src","templates/images/btn/btn_how_to_play.gif");
									}
								);
	$(".btn_go_back").hover(
								function(){
									$(this).attr("src","templates/images/btn/btn_go_back_hover.gif");
									},
								function(){
									$(this).attr("src","templates/images/btn/btn_go_back.gif");
									}
								);
	$(".btn_revenue").hover(
								function(){
									$(this).attr("src","templates/images/btn/btn_revenue_hover.gif");
									},
								function(){
									$(this).attr("src","templates/images/btn/btn_revenue.gif");
									}
								);
	$(".temp_cancel").val("").css({
							border: "none", background: "url(templates/images/temp_cancel.gif)", width: "86px", height: "26px",
							cursor:"pointer"
						  });
	$(".temp_cancel").hover(
								function(){
									$(this).css({
												border: "none", background: "url(templates/images/temp_cancel_hover.gif)"
												
												});
									},
								function(){
									$(this).css({
												border: "none", background: "url(templates/images/temp_cancel.gif)"
												
												});
									}
								);
	$(".btn_upload").hover(
								function(){
									$(this).attr("src","templates/images/btn/btn_upload_hover.gif");
									},
								function(){
									$(this).attr("src","templates/images/btn/btn_upload.gif");
									}
								);
	$(".btn_register").hover(
								function(){
									$(this).attr("src","templates/images/btn/btn_register_hover.gif");
									},
								function(){
									$(this).attr("src","templates/images/btn/btn_register.gif");
									}
								);
	
	
	
	
//新--------------------------------------------------------------------------------------------------------------


$("li.sCurrent").hover(
							function(){
								$("ul.sub_nav li").css({
											visibility: "visible"
											});
								$("ul.sub_nav").css({
													background: "url(templates/img/sub_nav.gif) 0 0 no-repeat",
													width: "958px"
													});
								},
							function(){
								$("ul.sub_nav li").css({
											visibility: "hidden"
											});
								$("ul.sub_nav").css({
													background: "none"
													});
								}
							);
$("ul.sub_nav").hover(
							function(){
								$("ul.sub_nav li").css({
											visibility: "visible"
											});
								$("ul.sub_nav").css({
													background: "url(templates/img/sub_nav.gif) 0 0 no-repeat",
													width: "958px"
													});
								},
							function(){
								$("ul.sub_nav li").css({
											visibility: "hidden"
											});
								$("ul.sub_nav").css({
													background: "none"
													});
								}
							);
/*$("#pingkong").mouseover(function(){
							   $("ul.sub_nav").css({
											
											visibility: "visible"
											
											});
							   });*/
//按钮
$(".btn_stix_for_you").hover(
							function(){
								$(this).attr("src","templates/images/btn/btn_stix_for_you_hover.gif");
								},
							function(){
								$(this).attr("src","templates/images/btn/btn_stix_for_you.gif");
								}
							);
$(".btn_download_stix").hover(
							function(){
								$(this).attr("src","templates/images/btn/btn_download_stix_hover.gif");
								},
							function(){
								$(this).attr("src","templates/images/btn/btn_download_stix.gif");
								}
							);
$(".btn_watch").hover(
							function(){
								$(this).attr("src","templates/images/btn/btn_watch_hover.gif");
								},
							function(){
								$(this).attr("src","templates/images/btn/btn_watch.gif");
								}
							);
$(".s_btn_buy").hover(
							function(){
								$(this).attr("src","templates/images/btn/buy_now_hover.png");
								},
							function(){
								$(this).attr("src","templates/images/btn/buy_now.png");
								}
							);
$(".s_btn_infor").hover(
							function(){
								$(this).attr("src","templates/images/btn/more_info_hover.png");
								},
							function(){
								$(this).attr("src","templates/images/btn/more_info.png");
								}
							);	
	
						   
	
	
	
	$("#player").css({display: "block"});	});//一旦去掉，子菜单失效














