$ = function(obj){return document.getElementById(obj)}
var _at;
var nav = {
	attr:function(_id,_tool)
	{
		var _d = $(_id);
		if(_d)
		{
			_d.onmouseover = function()
			{
				clearTimeout(_at);
				$(_tool).style.display = "block";
			};
			_d.onmouseout = function()
			{
				$(_tool).style.display = 'none';
			}
		}
	},
	flex:function(_id)
	{
		var _ds = $(_id);
		if(_ds)
		{
			var _label = "li";
			var _tag = _ds.getElementsByTagName(_label);
			for(var i=0;i<_tag.length;i++)
			{
				//移走
				_tag[i].onmouseout = function(){
					this.className = "";
				};
				//移到上面
				_tag[i].onmouseover = function(){
					this.className = "sel";
				}
			}
		}

	}
}

window.onload = function()
{
	nav.attr("tit_intro","joletool");
	nav.flex("joletool");
	
	nav.attr("tit_kc","kc_tool");
	nav.flex("kc_tool");
	
	nav.attr("tit_js","js_tool");
	nav.flex("js_tool");
	
	nav.attr("tit_link","link_tool");
	nav.flex("link_tool");
	
}

function resizePhoto(img)
{
	if(img.width>580)
	{
		img.width = 580;
	}
}

function GO(O)
{
	$("frame_detail").src = o.href;
	return false;
}
