// JavaScript Document dewfeel
/* index.htm 自带js*/
	$(function(){
		$("dl.tbox dt span.label a[_for]").mouseover(function(){
			$(this).parents("span.label").children("a[_for]").removeClass("thisclass").parents("dl.tbox").children("dd").hide();
			$(this).addClass("thisclass").blur();
			$("#"+$(this).attr("_for")).show();
		});
		$("a[_for=uc_member]").mouseover();		

		//我的开始
		$(".dew_last_td").css("background-image","none");
	});
	
	function CheckLogin(){
	  var taget_obj = document.getElementById('_userlogin');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("{dede:global.cfg_cmspath/}/member/ajax_loginsta.php");
	  DedeXHTTP = null;
	}
	
	function multi(pagenum,tagid)
	{
	  var taget_obj = document.getElementById(tagid);
	  var taget_obj_page = document.getElementById("page_"+tagid);
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("/plus/arcmulti.php?mtype=0&pnum="+pagenum+'&tagid='+tagid);
	  myajax = new DedeAjax(taget_obj_page,false,false,'','','');
	  myajax.SendGet2("/plus/arcmulti.php?mtype=1&pnum="+pagenum+'&tagid='+tagid);
	  DedeXHTTP = null;
	}
	
	function check(){
		if(document.formsearch.searchtype.value=="")
		document.formsearch.action="http://www.google.cn/custom"
		else
		document.formsearch.action="/newsite/plus/search.php"
	} 
/* index.htm 自带js end */


/* index.htm 东大介绍 切换js 代码 */
	function g(o){return document.getElementById(o);}
		function Hovertab(num,counts,tabname,tabclass){
			for (i=1;i<=counts;i++){ 
				g(tabname+'tab0'+i).className=tabclass+'tabs';
				g(tabname+'div0'+i).style.display='none'; 
			}  
			g(tabname+'tab0'+num).className=tabclass+'tabs_act';
			g(tabname+'div0'+num).style.display='block'; 
	}   
/* index.htm 东大介绍 切换js 代码 end */ 




$(document).ready(function(){
	
	$('#special').conShow(); /* 单个医生展示   只一句 */
	$('#special2').conShow2(); /* 单个医生展示   只一句 */
	$('#special3').conShow3(); /* 单个医生展示   只一句 */
	
	
	function t_c_mouseover(event){
	$("table.c_news1").css("display","none");$("table.c_news2").css("display","none");$("table.c_news3").css("display","none");	$("table.c_news"+event.data.ii).fadeIn("slow");
	}
	for(var i=1; i<4; i++ ){$(".t_news"+i).bind('mouseover', {ii: i}, t_c_mouseover);}
	
	
	
	//大的图片展示		
		$(".dew_bigpiczs ul li a img").css("border","none");	
		$(".dew_bigpiczs .zsqy img").attr("src",$(".dew_bigpiczs ul li a").eq(0).children("img").attr("alt"));
		$(".dew_bigpiczs .zsqy a").attr("href",$(".dew_bigpiczs ul li a").eq(0).attr("alt"));
		$(".dew_bigpiczs .zsqy p").text($(".dew_bigpiczs ul li a").eq(0).children("img").attr("title"));
		$(".dew_bigpiczs ul li a").eq(0).children("img").css("border","red solid 1px");
		
		$('.dew_bigpiczs ul li a').bind('click', dew_pic_click );		
		function dew_pic_click(event){
			$(".dew_bigpiczs ul li a img").css("border","none");	
			$(".dew_bigpiczs .zsqy img").attr("src",$(this).children("img").attr("alt"));
			$(".dew_bigpiczs .zsqy a").attr("href",$(this).eq(0).attr("alt"));
			$(".dew_bigpiczs .zsqy p").text($(this).eq(0).children("img").attr("title"));
			$(".dew_bigpiczs .zsqy img").hide();
			$(".dew_bigpiczs .zsqy img").fadeIn("slow");
			$(this).children("img").css("border","red solid 1px");
			return false;
		}
		
				
		i=0;
		function hello(){
			i=i+1;			
					
			$(".dew_bigpiczs ul li a img").css("border","none");	
			$(".dew_bigpiczs .zsqy img").attr("src",$(".dew_bigpiczs ul li a").eq(i-1).children("img").attr("alt"));
			$(".dew_bigpiczs .zsqy a").attr("href",$(".dew_bigpiczs ul li a").eq(i-1).attr("alt"));
			$(".dew_bigpiczs .zsqy p").text($(".dew_bigpiczs ul li a").eq(i-1).children("img").attr("title"));
			$(".dew_bigpiczs .zsqy img").hide();
			$(".dew_bigpiczs .zsqy img").fadeIn("slow");
			$(".dew_bigpiczs ul li a").eq(i-1).children("img").css("border","red solid 1px");				
			
			
			if(i==3) i=0;
		}
		window.setInterval(hello,5000);
	
	//合作伙伴  友情链接
	
	$('.dew_user4 p.ph1 span.u4_title_left').bind('mouseover',{id:1}, dew_mouseover );
	$('.dew_user4 p.ph1 span.u4_title_right').bind('mouseover',{id:2}, dew_mouseover );
	function dew_mouseover(event){
		if(event.data.id==1){
			$(".dew_user4 div.u4_title_left_c").show();
			$(".dew_user4 div.u4_title_right_c").hide();
		}
		if(event.data.id==2){
			$(".dew_user4 div.u4_title_left_c").hide();
			$(".dew_user4 div.u4_title_right_c").show();
		}
	}
});

