function content_layer(type) {

browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;

document_offset = 250;

if (type=="intro") {
	div_name="content_intro";
}
else {
	div_name="content";
}

if ((navigator.userAgent.indexOf("Win") != -1)){

	if (browser_type == "Netscape") {
	
		document.write('<div id="'+div_name+'" style="HEIGHT: '+(window.innerHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');
		document.write('<table cellspacing="0" cellpadding="0" border="0" style="height: 100%">');
	}
	
	else {
	
		document.write('<div id="'+div_name+'" style="HEIGHT: '+(document.body.clientHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');
		document.write('<table cellspacing="0" cellpadding="0" border="0" style="height: 100%">');

	}
}

if (navigator.userAgent.indexOf('Mac') != -1){

	if (navigator.appName.indexOf('Microsoft') != -1) {
	
		document.write('<div id="'+div_name+'" style="HEIGHT: '+(document.body.clientHeight-document_offset)+'px; POSITION: absolute; overflow: auto;">');
		document.write('<table cellspacing="0" cellpadding="0" border="0" style="width: 95%; height: 95%">');
	
	}
	
	else {
	
		document.write('<div id="'+div_name+'" style="HEIGHT: '+(window.innerHeight-document_offset)+'px; POSITION: absolute; overflow: auto;"> ');
		document.write('<table cellspacing="0" cellpadding="0" border="0" style="height: 100%">');
	}
}

}

function set_content(type) {
	browser_version= parseInt(navigator.appVersion);
	browser_type = navigator.appName;
	
	if (type=="intro") {
		div_name="content_intro";
	}
	else {
		div_name="content";
	}

	if (browser_type == "Netscape") {
		document.getElementById(div_name).style.height=window.innerHeight-document_offset;
	}
	else {
		document.getElementById(div_name).style.height=document.body.clientHeight-document_offset;
	}
}


function intro(id) {

	if (id) {
		for (x=1; x<=3; x++) {
			if (x != id) {
				document.getElementById('col'+x).className="text_low";
				document.getElementById('title_col'+x).className="text_title_low";
			}
		}
		document.getElementById('col'+id).className="text";
	}
	else {
		for (x=1; x<=3; x++) {
			document.getElementById('col'+x).className="text";
			document.getElementById('title_col'+x).className="text_title";
		}
	}
	
}


function popup(url,instance,width,height,xpos,ypos){

	if (xpos == -1 && ypos == -1) {
	xcenter=(screen.width/2)-(width/2);
	ycenter=(screen.height/2)-(height/2);
	window.open(url,instance,"toolbar=no,location=no,directories=no,scrollbars=no,status=no,menubar=no,resizable=no,width="+width+",height="+height+",left="+xcenter+",top="+ycenter+"")
	}
	else {
	window.open(url,instance,"toolbar=no,location=no,directories=no,scrollbars=no,status=no,menubar=no,resizable=no,width="+width+",height="+height+",left="+xpos+",top="+ypos+"")
	}
}

