$(document).ready(function(){
						   
	//$(".window").hide();		   
	$(".tools .wrap").fadeTo(1, 0.88);
	$(".tools .btn").click(function(e){
		$(".tools .wrap").slideDown("fast"); 
	});
	$("#wrap").click(function(e){
		$(".tools .wrap").hide(); 
	});
	
	
	$.ajax({
	  url: "ajax_media_Multimedia.asp?id="+$("#id_tmp").val()+"&p="+$("#p").val(),
	  cache: false,
	  success: function(html){
		$(".media_Mul_list").html(html); 
	  }
	}); 
	
	
	$(".logo_btn").mouseover(function(e){
		$(".window_video").fadeIn("slow");
		$.ajax({
		  url: "video.html",
		  cache: false,
		  success: function(html){
			setTimeout(function(e){ $(".window_video").html(html);  },5);
		  }
		}); 
		setTimeout(function(e){  $(".window_video").hide(); $(".window_video").html(""); },85105);
	});
	$(".out").mouseover(function(e){
			$(".window_video").fadeOut("slow"); 
			$(".window_video").html("");
	});
	
	
	//Member Login
	$(".window_login .sub").mouseover(function(e){
		$(this).css("background","url(images/g21_.gif) no-repeat"); 
	});
	$(".window_login .sub").mouseout(function(e){
		$(this).css("background","url(images/g21.gif) no-repeat"); 
	});
	
	//News Search
	$(".leftNavNews .search #k").click(function(e){
		$(this).css("background","url(images/g05.gif) left bottom no-repeat"); 
	});
	$(".leftNavNews .search #k").blur(function(e){
		$(this).css("background","url(images/g05.gif) left top no-repeat"); 
	});
	
	
	//Events Calendar
	$(".calendar .box a").mouseover(function(e){
		$(".msg").remove();
		var msg_str = $(this).parent().attr("class");
		var msg_split = msg_str.split(" ");
		var msgClassName = msg_split[(msg_split.length-1)];
		$(this).parent().parent().after('<div class="msg msg_'+msgClassName+'"><div class="loading">Loading....</div></div>');
		this_tem = this;
		$.ajax({
		  url: "ajax_events_day.asp?n="+$(this_tem).attr("class")+"&day="+$(this_tem).attr("name"),
		  cache: false,
		  success: function(html){
			$(".calendar .msg").html(html);
		  }
		}); 
	});
	$(".calendar").mouseout(function(e){
		$(".msg").remove();
	});
	
	
	//News Search
	$(".search #k").keyup(function(e){
		$(".news_list, .news_page").hide();
		$(".list_search").html('<div class="newsSearchLoading"><img src="images/loading.gif" /></div>');
		var msg_str = $(this).parent().attr("class");
		$(".list_search").show();
		this_tem = this;
		//alert( encodeURI( $(this_tem).val() ) );
		$.ajax({
		  url: "ajax_search.asp?p=1&k="+encodeURI( $(this_tem).val() ),
		  cache: false,
		  success: function(html){
			$(".list_search").html(html);
		  }
		}); 
	});
	
	
	
	
	
	$("#top .btn_logon").click(function(e){
		$(".window_wrap").fadeIn("slow"); 
		$(".window_login").slideDown("fast"); 
	});
	
	
	
}); 

