﻿// JavaScript Document

jQuery.noConflict();
jQuery(function($){

	$(document).ready(function(){
		
		
		$(".tableEven tr").mouseover(
						function(){ //�������Ƶ�idΪcoolWebsiteType�ı���tr��ʱ��ִ�к���
							$(this).addClass("over");
						}).mouseout(function(){ //���������classֵΪover�����ҵ����һ�����ʱִ�к���
							$(this).removeClass("over");}); //�Ƴ���е�class
		$(".tableEven tr:even").addClass("alt"); //��idΪcoolWebsiteType�ı���ż�������classֵΪalt
		$("#baidur").click(function()
		{
			$("#B_search").show();
			$("#G_search").hide();
			$("#S_search").hide();
		});
		
		$("#googler").click(function()//.attr("checked")=="checked")
		{
			$("#G_search").show();
			$("#B_search").hide();
			$("#S_search").hide();
		});
		$("#sogour").click(function()//.attr("checked")=="checked")
		{
			$("#G_search").hide();
			$("#B_search").hide();
			$("#S_search").show();
		});		
		$("#webFirstLab").css("background","url(images/webLab.gif) no-repeat");
		$("#seachGoogle input[type=text]").addClass("seachInput");/*style="height:23px; border:2px; width:355px; vertical-align:inherit;"*/
		$("#seachGoogle input[type=submit]").addClass("seachSubmit");/*style="height:27px; border:2px; width:63px;font-size:12px"*/
		$("div[class=lab]").click(function(){
		    $(this).css("background","url(images/webLab.gif) no-repeat")
			.siblings().css("background","url(images/otherLab.gif) no-repeat");
			if($(this).attr("name")=="shopping")
			{
				
			}
			if($(this).attr("name")=="webLab")
			{
				
			}
			
			
			
			
			//if($(this).attr("name")=="webLab")
			//{
				/*$("select[name=select]").val("1");
				bd_chg_idx($("select[name=select]").val("1"));*/
				//$("#seachLogo").attr("src","images/gl_web.gif");
				//$("#G_seach_web").show().siblings().hide();
			//}
			if($(this).attr("name")=="newsLab")
			{
				/*$("select[name=select]").val("0");
				bd_chg_idx($("select[name=select]").val("0"));*/
				$("#seachLogo").attr("src","images/gl_web.gif");
				$("#G_seach_news").show().siblings().hide();
			}
			if($(this).attr("name")=="mp3Lab")
			{
				$("#seachLogo").attr("src","images/gl_mp3.gif");
				$("#G_seach_mp3").show().siblings().hide();
			}
			if($(this).attr("name")=="imagesLab")
			{
				$("#seachLogo").attr("src","images/gl_img.gif");
				$("#G_seach_img").show().siblings().hide();
			}
			if($(this).attr("name")=="videoLab")
			{
				$("#seachLogo").attr("src","images/gl_video.gif");
				$("#G_seach_video").show().siblings().hide();
			}
			if($(this).attr("name")=="mapLab")
			{
				$("#seachLogo").attr("src","images/gl_map.gif");
				$("#G_seach_map").show().siblings().hide();
			}
			$("#seachLogo").show('fast');
			/*$(this).addClass("labHighlight").removeClass("labNoHighlight")
			.siblings().removeClass("labHighlight").addClass("labNoHighlight");*/
		});
		
	});
});
