function iconNaviBT() {
	hideLayer('navitxt');
	hideLayer('navitxt1');
	hideLayer('navitxt2');
	hideLayer('navitxt3');
	hideLayer('navitxt4');
}

function showLayer(id){
	if (document.layers)
	{
		current = (document.layers[id].display = 'block');
		document.layers[id].display = current;
	}
	else if (document.all)
	{
		current = (document.all[id].style.display = 'block');
		document.all[id].style.display = current;
	}
	else if (document.getElementById)
	{
		vista = (document.getElementById(id).style.display = 'block');
		document.getElementById(id).style.display = vista;
	}
}

function hideLayer(id){
	if (document.layers)
	{
		current = (document.layers[id].display = 'none');
		document.layers[id].display = current;
	}
	else if (document.all)
	{
		current = (document.all[id].style.display = 'none');
		document.all[id].style.display = current;
	}
	else if (document.getElementById)
	{
		vista = (document.getElementById(id).style.display = 'none');
		document.getElementById(id).style.display = vista;
	}
}

function blocktoggle(id)
{
	if (document.layers)
	{
		current = (document.layers[id].display == 'none') ? 'block' : 'none';
		document.layers[id].display = current;
	}
	else if (document.all)
	{
		current = (document.all[id].style.display == 'none') ? 'block' : 'none';
		document.all[id].style.display = current;
	}
	else if (document.getElementById)
	{
		vista = (document.getElementById(id).style.display == 'none') ? 'block' : 'none';
		document.getElementById(id).style.display = vista;
	}
}

function rma(aLnk,pre) {
	var mt = "mailto:";
	var d = "eisai";
	var mtf = mt + pre + "@" + d + ".net";
	aLnk.href = mtf;
	}
	if(top.location != this.location) {
	top.location = this.location;
}

function rma2(aLnk,pre) {
	var mt = "mailto:";
	var d = "kinchard";
	var mtf = mt + pre + "@" + d + ".dk";
	aLnk.href = mtf;
	}
	if(top.location != this.location) {
	top.location = this.location;
}

// js for flash menu

function setRequestParamValue(param, newVal) {
	var q = document.location.search || document.location.hash;
	if(q) {
		/*var pairs = q.substring(1).split("&");
		for (var i=0; i < pairs.length; i++) {
			if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
				//return pairs[i].substring((pairs[i].indexOf("=")+1));
			}
		}*/
		var headend = Math.max(location.href.indexOf(location.search), location.href.indexOf(location.hash));
		var head = (location.href.substring(0, headend + 1));
		var pairs = q.substring(1).split("&");
		var tail = "";
		for (var i=0; i < pairs.length; i++) {
			if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
				pairs[i] = param + "=" + newVal;
			}
			tail += pairs[i] + "&";
		}
		tail = tail.substring(0, tail.length - 1);
		return head + tail;
	} else {
		return location.href + '#' + param + '='+newVal;
	}
}

/**
The flash docs is unclear about naming of xxx_DoFSCommand but xxx should match id of flashfile
which in this example is 'flashfile'.
*/
function flashfile_DoFSCommand(command, args) {
	if (command == "messagebox") {
		alert(args);
	} else if (command == "swfSection") {
		location.href = setRequestParamValue('section', args);
	} else if (command == "clickCount") {
		fs(args);
	}
}
function fs(uriToLog) {
	var i=new Image(1,1);
	i.src=uriToLog;
	i.onload=function() {dovoid();}
}
function dovoid() { return; }

// end flash menu js
