						<!-- ?? -->


function CollapseAll() {

	var i;
	var list = new Array(1);

	list[0] = document.getElementById('submenu1');

	list[1] = document.getElementById('submenu2');

	list[2] = document.getElementById('submenu3');

	list[3] = document.getElementById('submenu4');

	for (i=0;i<list.length;i++ ) {

		list[i].style.display = 'inline';

	}
}

						<!-- ?? slut -->




						<!-- Menu -->


function SwitchMenu(obj) {

	var el = document.getElementById(obj);

	if ( el.style.display != "none" ) {

		el.style.display = 'none';

	}
	else {

		el.style.display = '';
	}
}


function OpenWindow(url,w,h) {

  window.open(url, 'win', 'height='+h+',width='+w+',dependent=yes,toolbar=no,menubar=no,status=no,resizable=no,scrollbars=no');

  return false;

}

						<!-- Menu slut -->




						<!-- Display -->



function display(action, id)
{
if (action == 'show')

{

document.getElementById("info"+id).style.display = "block";

document.getElementById("link"+id).href= "javascript:display('hide', "+id+")";

}


if (action == 'hide')
{
document.getElementById("info"+id).style.display = "none";

document.getElementById("link"+id).href= "javascript:display('show', "+id+")";

}
}



						<!-- Display slut -->




						<!-- Switch ID -->


//here you place the ids of every element you want.
var ids=new Array('m1','m2','m3','m4','m5','m6', '011');


function switchid(id){
	
	hideallids();

	showdiv(id);
}

function hideallids(){

	//loop through the array and hide each element by id

	for (var i=0;i<ids.length;i++){

		hidediv(ids[i]);

	}
		  
}

function hidediv(id) {

	//safe function to hide an element with a specified id
	if (document.getElementById) {
 // DOM3 = IE5, NS6

		document.getElementById(id).style.display = 'none';

	}

	else {

		if (document.layers) { // Netscape 4
			document.id.display = 'none';

		}

		else {
 // IE 4

			document.all.id.style.display = 'none';

		}

	}
}

function showdiv(id) {

	//safe function to show an element with a specified id

		  
	if (document.getElementById) {
 // DOM3 = IE5, NS6

		document.getElementById(id).style.display = 'block';

	}

	else {

		if (document.layers) {
 // Netscape 4

			document.id.display = 'block';

		}

		else {
 // IE 4

			document.all.id.style.display = 'block';

		}

	}
}


						<!-- Switch ID slut -->




						<!-- Bildspel terrain -->



	function StartOrStopp()
	{

		var btn = document.getElementById("StartStoppBtn");

		if (btn != null)

		{

			if (btn.value == "Starta bildspel")

			{

				btn.value = "Stoppa bildspel";

				SLIDES.next();

				SLIDES.play();

			}

			else

			{

				btn.value = "Starta bildspel";

				SLIDES.pause();

			}

		}
	}

	
	function Maplink(mapLink) {

		var mapwindow;

	
        mapwindow = window.open(mapLink, "_blank", "width=650,height=350,scrollbars=no,toolbar=no,location=no,status=0,menubar=no,resizable=no");

	}


						<!-- Bildspel terrain slut -->





