var tip = {
	$ : function(ele) {
		if (typeof (ele) == "object")
			return ele;
		else if (typeof (ele) == "string" || typeof (ele) == "number")
			return document.getElementById(ele.toString());
		return null;
	},
	mousePos : function(e) {
		var x, y;
		var e = e || window.event;
		return {
			x : e.clientX + document.body.scrollLeft
					+ document.documentElement.scrollLeft,
			y : e.clientY + document.body.scrollTop
					+ document.documentElement.scrollTop
		};
	},
	start : function(obj) {
		var self = this;
		var t = self.$("tip_div");
		obj.onmousemove = function(e) {
			var mouse = self.mousePos(e);
			t.style.left = mouse.x + 10 + 'px';
			t.style.top = mouse.y + 10 + 'px';
			t.innerHTML = "<img src='" + obj.getAttribute("tips")
					+ "' width='170px'/>";
			t.style.display = '';
		};
		obj.onmouseout = function() {
			t.style.display = 'none';
		};
	}
}

$(function() {
	$("#is_showlist_div").click(function() {
		show_list_div(this);
	});
	$("#flash_list_table a").hover(function() {
		tip.start(this);
	});
	
});
function show_list_div(data) {
	if ($(data).html() != $("#sagsafgl_txt").html()) {
		$("#list_div").hide('slow');
		$("#foot").attr("style", "border:none;");
		$(data).html($("#sagsafgl_txt").html());
	} else {
		$("#list_div").show('slow');
		$(data).html($("#hagsafgl_txt").html());
	}
}
