$(function(){
	$('.xuanzhong').each(function(){
		//绑定mouseover事件
		$('ul:eq(1) a',this).mouseover(function(){
			qie(this);
			});
		//执行第一个元素的事件
		$('ul:eq(1) a:eq(0)',this).mouseover();
		});
	});

function qie(obj){
	ul=$('div:first ul',obj.parentNode.parentNode);
	$('a',obj.parentNode).removeClass();
	$(obj).addClass('in');
	ul.hide();
	ul.eq($(obj).index()).show();
	}
	
function ycqie(obj){
	$('a',obj.parentNode).removeClass();
	$(obj).addClass('in');
	$('.yc_nr').hide();
	$('.yc_nr').eq($(obj).index()).show();
	}
	
function load_rili(){
	return setTimeout(function(){
		$('#rili').html('<span id="loading">正在加载日历插件...</span>');
		setTimeout(function(){
			if(document.getElementById('loading')){
				$('#loading').html('仍在努力加载,网速不够给力哦！');
				}
			setTimeout(function(){
				if(document.getElementById('loading')){
					$('#rili').html('<img src="img/tanhao.gif"> 很抱歉，日历控件加载失败！');
					return false;
					}
				},5000);
			},2000);
		},500);
	}
