
	var activeSub=0;
	var SubNum=0;

	//function reDo() {
	//	window.location.reload()
	//}
	//window.onresize = reDo; //Hvad skal denne gøre godt for?

	var timerID = null;
	var timerOn = false;
	var what = null;
	var newbrowser = true;
	var check = false;
	var ColumnCount = 0;


	function init() {
		if(document.all) {
			layerRef="document.all";
			styleSwitch=".style";
			visibleVar="visible";
			//document.body.clientWidth=800;
			screenSize = document.body.clientWidth + 18;
			
			what ="ie";
		}
		else if(document.getElementById) {
			layerRef="document.getElementByID";
			styleSwitch=".style";
			visibleVar="visible";
			what="moz";
		}
		else{
			what="none";
			newbrowser = false;
		}
	check = true;
  	}

	function changeBc(layerName,color){
			if(what=="none") return;
			else if(what=="moz") document.getElementById(layerName).style.backgroundColor=color;
			else eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.backgroundColor=color');
	}

	function showLayer(layerName) {
		if(check) {
			if(what=="none") return;
			else if(what=="moz") document.getElementById(layerName).style.visibility="visible";
			else eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
			//changeBc("m"+layerName,"#502F1B");
		}
		else return;
	}

	function hideLayer(layerName){
		if(check) {
			if(what=="none") return;
			else if(what=="moz") document.getElementById(layerName).style.visibility="hidden";
			else eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
		}
		else return;
	}

	function hideAll(ColumnCount) {
	//alert(ColumnCount);
		//for(i=1;i<=ColumnCount;i++) {
		//alert (i);
			hideLayer('m1'); //if(aktiv!=i) changeBc("mm"+i,"#FFFFFF");
		//}
//		hideLayer('m2'); if(aktiv!='2') changeBc("mm2","#FFFFFF");
//		hideLayer('m3'); if(aktiv!='3') changeBc("mm3","#FFFFFF");
//		hideLayer('m4'); if(aktiv!='4') changeBc("mm4","#FFFFFF");
//		hideLayer('m5'); if(aktiv!='5') changeBc("mm5","#FFFFFF");
	}

	function startTime(ColumnCount) {
		if(timerOn==false) {
			timerID=setTimeout("hideAll(" + ColumnCount+ ")",300);
			timerOn=true;
		}
	}

	function stopTime() {
		if(timerOn) {
			clearTimeout(timerID);
			timerID = null;
			timerOn = false;
		}
	}

	function onLoad() {
		init();
	}

	function showThisLayer(layerName) {
		if(check) {
			if(what=="none") return;
			else if(what=="moz") document.getElementById(layerName).style.visibility="visible";
			else eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
		}
		else return;
	}

	function startThisTime() {
		if(timerOn==false) {
			timerID=setTimeout("hideThis()",200);
			timerOn=true;
		}
	}

	function stopThisTime() {
		if(timerOn) {
			clearTimeout(timerID);
			timerID = null;
			timerOn = false;
		}
	}

	function hideThis() {
		hideLayer('dd');
	}



//***************************MM_pictchange	.bg_image {  background-image:   }
//function changeBg_image(layerName,img){
//  var myImg="url(\'"+img+"\'); background-repeat: no-repeat; background-position: center center;";
//  if(what=="none") return;
//  alert (myImg);
//  else if(what=="moz") document.getElementById(layerName).style.background-image=myImg;
//  else eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.background-image=myImg');
//}

