
jQuery.fn.extend({
	 myTabs:function() {
		 this.each(function() { 
			var current_id = this.id;
			// ��ʾhead
			$('#'+current_id+ ' div.tab1_t div').each(function(i){
				if(this.className=='clearfloat'){ return; }
				if(i==0) { this.className="currently"; } else { this.className="tab1_n"; }
				$(this).bind('mouseover',
				function(){
				  tmp = $("#" + current_id + " .tab1_t div.currently");
				  tmp.removeClass("currently");
				  tmp.addClass("tab1_n");
				  this.className="currently";
				  // �������ݵ���ʾ������
				  $("#" + current_id + " .tab1_c").css("display","none");
				  $("#" + current_id + " #" + this.id + "_c").css("display","block");
				  //alert("#" + current_id + " #" + this.id + "_c");
				});
			});;
			$("#" + current_id + " .tab1_c").css("display","none");
			$("#" + current_id + " .tab1_c:first").css("display","block");
		 }); // end for each
	 },
	 
	 myTabs2:function() {
		 this.each(function() { 
			var current_id = this.id;
			var precnt_id = "";
			// ��ʾhead
			$('#'+current_id+ ' div.i_xltop div').each(function(i){
				if(this.id!="") {
					if(this.className=='i_xlt2') $("#" + this.id + "_c").css("display","block");
					else $("#" + this.id + "_c").css("display","none");
					precnt_id = this.id;
				}
				if(this.className=='i_xlt1'){ return; }
				$(this).bind('mouseover',
				function(){
				  tmp = $("#" + current_id + " div.i_xlt2");
				  tmp.removeClass("i_xlt2");
				  tmp.addClass("i_xlt3");
				  this.className="i_xlt2";
				  // �������ݵ���ʾ������
				  $("#" + current_id + " div.i_xlcont").css("display","none");
				  $("#" + current_id + " #" + this.id + "_c").css("display","block");
				});
			});
		 }); // end for each
	 },
	 
	 myTabs3:function() {
		 this.each(function() { 
			var current_id = this.id;
			var precnt_id = "";
			// ��ʾhead
			$('#'+current_id+ ' div.i_ylt div').each(function(i){
				if(this.id!="") {
					if(this.className=='scen_tab') $("#" + this.id + "_c").css("display","block");
					else $("#" + this.id + "_c").css("display","none");
					precnt_id = this.id;
				}
				if(this.className=='i_xlt1'){ return; }
				$(this).bind('mouseover',
				function(){
				  tmp = $("#" + current_id + " div.scen_tab");
				  tmp.removeClass("scen_tab");
				  tmp.addClass("scen_tab1");
				  this.className="scen_tab";
				  // �������ݵ���ʾ������
				  $("#" + current_id + " div.i_ylc").css("display","none");
				  $("#" + current_id + " #" + this.id + "_c").css("display","block");
				});
			});
		 }); // end for each
	 },
	 
	 myTabs4:function() {
		 this.each(function() { 
			var current_id = this.id;
			var precnt_id = "";
			// ��ʾhead
			$('#'+current_id+ ' div.i_jurt div').each(function(i){
				if(this.id!="") {
					if(this.className=='hotel_tab1') $("#" + this.id + "_c").css("display","block");
					else $("#" + this.id + "_c").css("display","none");
					precnt_id = this.id;
				}
				$(this).bind('click', 
				function(){
				  tmp = $("#" + current_id + " div.hotel_tab1");
				  tmp.removeClass("hotel_tab1");
				  tmp.addClass("hotel_tab");
				  this.className="hotel_tab1";
				  // �������ݵ���ʾ������
				  $("#" + current_id + " div.i_jurc").css("display","none");
				  $("#" + current_id + " #" + this.id + "_c").css("display","block");
				});
			});
		 }); // end for each
	 }
});


/*
// JavaScript Document
(function($) {

$.widget("ui.myList", {

	_init: function() {
		$("<ul></ul>").appendTo(this.element);
	},

	destroy: function() {

	},

	bgColor: function(newValue) {
		arguments.length && this._setData("value", newValue);
		return this.options.bgColor;
	},
	addItem: function(txt) {
		$('<div>' + txt + '</div>').appendTo(this.element);
		this._trigger('on_added',null,{});
	},

	_setData: function(key, value) {
		switch (key) {
			case 'bgColor':
				this.options.bgColor = value;
				break;
		}
	},

	test: function(){alert(this.options.bgColor);}
});

$.extend($.ui.myList, {
	bgColor: "#ff0000",
	defaults: {
		value: "#ff0000"
	}
});

})(jQuery);
*/