function content_layer() {

browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;

document_offset = 230;

if ((navigator.userAgent.indexOf("Win") != -1)){

	if (browser_type == "Netscape") {
	
	document.write(' <div id="content" style="Z-INDEX: 30; LEFT: 200px; TOP: 180px; VISIBILITY: visible; WIDTH: 510px; HEIGHT: '+(window.innerHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');

	}
	
	else {
	
	document.write(' <div id="content" style="Z-INDEX: 30; LEFT: 200px; TOP: 180px; VISIBILITY: visible; WIDTH: 510px; HEIGHT: '+(document.body.clientHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');

	}
}

if (navigator.userAgent.indexOf('Mac') != -1){

	if (navigator.appName.indexOf('Microsoft') != -1) {
	
	document.write(' <div id="content" style="Z-INDEX: 30; LEFT: 200px; TOP: 180px; VISIBILITY: visible; WIDTH: 510px; HEIGHT: '+(document.body.clientHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');
	
	}
	
	else {
	
	document.write(' <div id="content" style="Z-INDEX: 30; LEFT: 200px; TOP: 180px; VISIBILITY: visible; WIDTH: 510px; HEIGHT: '+(window.innerHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');
	
	}
}

}

function set_content() {
	browser_version= parseInt(navigator.appVersion);
	browser_type = navigator.appName;

	if (browser_type == "Netscape") {
		document.getElementById('content').style.height=window.innerHeight-document_offset;
	}
	else {
		document.getElementById('content').style.height=document.body.clientHeight-document_offset;
	}
}

function show_img(typ,id) {
	document.images["img"].src="../images/gallery/"+typ+"_"+id+".jpg";
}