img1 = new Image(); 
img1.src = "images/09/o_loading.gif"; 
img2 = new Image(); 
img2.src = "images/09/jfra2.gif"; 
img3 = new Image(); 
img3.src = "images/09/jfra3.gif"; 
$().ready(function() {
	$.tabs('container-topnews',1);
	$(".indexpage a:first").addClass("selected"); 
	$(".indexpage a").click(function(){
		$(".indexpage a").each(function(){
			$(this).removeClass("selected"); 
		})
		$(this).addClass("selected"); 
	})
	$(".mroe").mouseover(function (){
		$(".hotmore").css("display","block");
	})
	$(".mroe").mouseout(function (){
		$(".hotmore").css("display","none"); 
	})
})
function getnetjoblist(page){
	showloading();
	var ajax = new AJAXRequest('{onrequeststart:function{alert(\'begin!\')}}');
	ajax.setcharset("GB2312");
	ajax.get("getnetjoblist.asp?curpage="+page, function(obj) {
		$("#t-jobs").html(obj.responseText);
		$("#t-jobs .title a").mouseover(function (){
			$(this).parent().addClass("selected"); 
		})
		$("#t-jobs .title a").mouseout(function (){
			$(this).parent().removeClass("selected"); 
		})
		closeloading();
	});
}
function showloading(){
	$(".loading").css("display","block"); 
}
function closeloading(){
	$(".loading").css("display","none"); 
}
$.tabs = function(containerId, start) {
	var ON_CLASS = 'on';
	var id = '#' + containerId;
	var i = (typeof start == "number") ? start - 1 : 0;
	$(id + '>div:eq(' + i + ')').css({display:"block"});
	$(id + '>ul>li:nth-child(' + i + ')').addClass(ON_CLASS);
	$(id + '>ul>li>a').mouseover(function() {
		if (!$(this.parentNode).is('.' + ON_CLASS)) {
			var re = /([_\-\w]+$)/i;
			var target = $('#' + re.exec(this.href)[1]);
			if (target.size() > 0) {
				$(id + '>div:visible').css({display:"none"});
				target.css({display:"block"});
				$(id + '>ul>li').removeClass(ON_CLASS);
				$(this.parentNode).addClass(ON_CLASS);
			} else {
				alert('There is no such container.');
			}
		}
		parent.$("#mainFrame").height($("body").height());   
		return false;
	});
};
function haschild(){
	$(".haschild").mouseout(function (){
		$(this).removeClass("hover"); 
	})
	$(".haschild").mouseover(function (){
		$(this).addClass("hover"); 
	})
	$("#zwlb li a").click(function(){
		$("#zwlb_name").val($(this).attr("tname"));
		$("#wtype").val($(this).attr("tid"));
		$('#ex3a').jqmHide();
	})
	$("#ulgzdd li a").click(function(){
		var gzdd = $(this).attr("ddname")
		$("#gzdd_name").val(gzdd);
		if (gzdd=='不限'){
			$("#gzdd").val('');
		}else{
			$("#gzdd").val(gzdd);
		}
		$('#ex3b').jqmHide();
	})
	$("#txtKeywords").focus(function(){
		if ($("#txtKeywords").val()=='结果中包含该关键词'){
			$("#txtKeywords").val('')
		}
	})
	$("#txtKeywords").blur(function(){
		if ($("#txtKeywords").val()==''){
			$("#txtKeywords").val('结果中包含该关键词')
		}
	})
	$('#ex3a').jqm({
		trigger: '#ex3aTrigger',
		overlay: 50, /* 0-100 (int) : 0 is off/transparent, 100 is opaque */
		overlayClass: 'whiteOverlay'
	})
	$('#ex3b').jqm({
		trigger: '#ex3bTrigger',
		overlay: 50, /* 0-100 (int) : 0 is off/transparent, 100 is opaque */
		overlayClass: 'whiteOverlay'
	})
	$('#ex3c').jqm({
		trigger: '#ex3cTrigger',
		overlay: 50, /* 0-100 (int) : 0 is off/transparent, 100 is opaque */
		overlayClass: 'whiteOverlay'
	})
	// Close Button Highlighting. IE doesn't support :hover. Surprise?
	$('input.jqmdX')
	.hover(
		function(){ $(this).addClass('jqmdXFocus'); }, 
		function(){ $(this).removeClass('jqmdXFocus'); 
	})
	.focus(function(){ 
		this.hideFocus=true; $(this).addClass('jqmdXFocus'); 
	})
	.blur(function(){
		$(this).removeClass('jqmdXFocus'); 
	});
}
$(document).ready(function() {
	var dishinavajax = new AJAXRequest();
	dishinavajax.setcharset("GB2312");
	dishinavajax.get("/dishinav.asp", function(obj) {
		$("#dishinav").html(obj.responseText);
	});
})
<!--
function AddFavorite(sURL, sTitle)
{
	 try
	 {
		 window.external.addFavorite(sURL, sTitle);
	 }
	 catch (e)
	 {
		 try
		 {
			 window.sidebar.addPanel(sTitle, sURL, "");
		 }
		 catch (e)
		 {
			 alert("加入收藏失败，有劳您手动添加。");
		 }
	 }
}
-->
