// JavaScript Document

function showHide(show,hide)
{
	if (document.getElementById)
	{
		// this is the way the standards work
		var style1 = document.getElementById(show).style;
		var style2 = document.getElementById(hide).style;
		style1.display = "block";
		style2.display = "none";
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		var style1 = document.all[show].style;
		var style2 = document.all[hide].style;
		style1.display = "block";
		style2.display = "none";
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		var style1 = document.layers[show].style;
		var style2 = document.layers[hide].style;
		style1.display = "block";
		style2.display = "none";
	}
}

function swapImg(id,img)
{
	if( document.getElementById)
	{
		obj	= document.getElementById(id);
		obj.setAttribute( 'src', img );
	}
}

function loadInfo()
{
	flickrname = escape(document.input_form.flickrname.value);
	script = '/userinfo.php?format=inner&flickrname=' + flickrname;
	var info = document.getElementById('info');
	var js = document.createElement('script');
	js.setAttribute('language', 'javascript');
	js.setAttribute('type', 'text/javascript');
	js.setAttribute('src', script);
	info.appendChild(js);
	return false;
}
