function show_detail( detail_id ) {
	//adjustHeight();
	$('detail_window').style.display = 'block'; 
	new Ajax.Updater(
		'detail_caption', 
		'big.asp?code=' + detail_id, 
			{			
			onComplete:function() { 
				if( document.all )
					z = document.documentElement.scrollTop;
				else z = window.pageYOffset;
				$('detail_caption').style.top = ( z + 80) + 'px';
				//adjustHeight();
				}
			} 
		);
	}

function adjustHeight() {
	var y;
	if( document.all ) { // stupid msie stupid
		y = document.documentElement.scrollHeight;
		if( document.documentElement.clientHeight > y ) // if the page is shorter than the window, use window height
			y = document.documentElement.clientHeight;
		}
	else {
		dimensions = Array( document.body.scrollHeight, 
							document.body.offsetHeight, 
							( window.innerHeight + window.scrollMaxY ) );
		dimensions.sort( function(a,b) { return b - a; } ); // reverse sort
		y = dimensions[0]; // largest value
		}
	y = y + 100;
	$('detail_background').style.height = y + 'px';
	}

function hide_detail() {
	$('detail_window').style.display = 'none';
	$('detail_caption').innerHTML = '';
	}


function show_footer() {
	new Ajax.Updater('div_footer', 'footer.asp');
}
function show_head(){
	new Ajax.Updater('div_head','head.asp');
}
