
m = "";

function m1n_onmouseover() {
	if (m != "fdb") {
		document.m1u.src = "images/menuTop.gif";
	}	
}
function m1n_onmouseout() {
	document.m1u.src = "images/menuTopNull.gif";
}
function m2n_onmouseover() {
	if (m != "wwwash") {
		document.m2u.src = "images/menuTop.gif";
	}	
}
function m2n_onmouseout() {
	document.m2u.src = "images/menuTopNull.gif";
}
function m3n_onmouseover() {
	if (m != "admin") {
		document.m3u.src = "images/menuTop.gif";
	}	
}
function m3n_onmouseout() {
	document.m3u.src = "images/menuTopNull.gif";
}
function m4n_onmouseover() {
	if (m != "door") {
		document.m4u.src = "images/menuTop.gif";
	}
}
function m4n_onmouseout() {
	document.m4u.src = "images/menuTopNull.gif";
}
function m5n_onmouseover() {
	if (m != "settings") {
		document.m5u.src = "images/menuTop.gif";
	}
}
function m5n_onmouseout() {
	document.m5u.src = "images/menuTopNull.gif";
}

function fdb()
{
	m = "fdb";
	document.m1u.src = "images/menuTopNull.gif";
	main.location.href = "int_gw.aspx?module=fdb";
	try {
		document.m1n.src = forbrukning2;
	}	
	catch(e) {}
	try {
		document.m2n.src = "images/bokning1.gif";	
	}	
	catch(e) {}
	try {
		document.m3n.src = "images/lgh1.gif";	
	}	
	catch(e) {}
	try {
		document.m4n.src = "images/porttelefon1.gif";	
	}
	catch(e) {}
	try {
		document.m5n.src = "images/inst1.gif";	
	}
	catch(e) {}
}

function wwwash()
{
	m = "wwwash";
	document.m2u.src = "images/menuTopNull.gif";
	main.location.href = "int_gw.aspx?module=wwwash";
	try {
		document.m1n.src = "images/forbrukning1.gif";
	}
	catch(e) {}
	try {
		document.m2n.src = bokning2;	
	}
	catch(e) {}
	try {
		document.m3n.src = "images/lgh1.gif";	
	}
	catch(e) {}
	try {
		document.m4n.src = "images/porttelefon1.gif";	
	}
	catch(e) {}
	try {
		document.m5n.src = "images/inst1.gif";	
	}
	catch(e) {}
}

function admin()
{
	m = "admin";
	document.m3u.src = "images/menuTopNull.gif";
	//main.location.href = "int_gw.aspx?module=admin"; // Internal module
	main.location.href = "redirect.aspx?module=admin"  // External module
	try {
		document.m1n.src = "images/forbrukning1.gif";
	}
	catch(e) {}
	try {
		document.m2n.src = "images/bokning1.gif";	
	}
	catch(e) {}
	try {
		document.m3n.src = lgh2;	
	}
	catch(e) {}
	try {
		document.m4n.src = "images/porttelefon1.gif";	
	}
	catch(e) {}
	try {
		document.m5n.src = "images/inst1.gif";	
	}
	catch(e) {}
}

function doorcam()
{
	m = "door";
	document.m4u.src = "images/menuTopNull.gif";
	//main.location.href = "int_gw.aspx?module=doorcam"; // Internal module
	main.location.href = "redirect.aspx?module=doorcam"  // External module
	try {
		document.m1n.src = "images/forbrukning1.gif";
	}
	catch(e) {}
	try {
		document.m2n.src = "images/bokning1.gif";	
	}
	catch(e) {}
	try {
		document.m3n.src = "images/lgh1.gif";	
	}
	catch(e) {}
	try {
		document.m4n.src = porttelefon2;	
	}
	catch(e) {}
	try {
		document.m5n.src = "images/inst1.gif";	
	}
	catch(e) {}
}

function settings()
{
	m = "settings";
	document.m5u.src = "images/menuTopNull.gif";
	main.location.href = "int_gw.aspx?module=settings";
	try {
		document.m1n.src = "images/forbrukning1.gif";
	}
	catch(e) {}
	try {
		document.m2n.src = "images/bokning1.gif";	
	}
	catch(e) {}
	try {
		document.m3n.src = "images/lgh1.gif";	
	}
	catch(e) {}
	try {
		document.m4n.src = "images/porttelefon1.gif";	
	}
	catch(e) {}
	try {
		document.m5n.src = inst2;	
	}
	catch(e) {}
}

function logout()
{
	m = "";
	try {
		document.m1n.src = "images/forbrukning1.gif";
	}
	catch(e) {}
	try {
		document.m2n.src = "images/bokning1.gif";
	}
	catch(e) {}
	try {
		document.m3n.src = "images/lgh1.gif";
	}
	catch(e) {}
	try {
		document.m4n.src = "images/porttelefon1.gif";
	}
	catch(e) {}
	try {
		document.m5n.src = "images/inst1.gif";
	}
	catch(e) {}

	main.location.href = "logout.aspx";
}

function disabletext(e){
	return false;	
}
function reEnable(){
	return true;
}

document.onmousedown=disabletext
document.onclick=reEnable
