// JavaScript Document
function MM_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}


function setPopUp(){
	popupWidth = 510;
	popupHeight = 210;
	
	windowWidth = document.body.offsetWidth;/*
	windowHeight = document.body.offsetHeight;*/
	
	popupX = Math.ceil(document.body.offsetWidth/2-popupWidth);
//	popupY = Math.ceil(screen.availHeight/2-popupHeight);
	popupY = 80;
	
	MM_changeProp('popup','','left',popupX+'px','DIV');
	MM_changeProp('popup','','top',popupY+'px','DIV');
	MM_changeProp('popup','','display','block','DIV');
}

function resizePopup(){
	popupWidth = 510;
	popupHeight = 210;
	
	windowWidth = document.body.offsetWidth;/*
	windowHeight = document.body.offsetHeight;*/
	
	popupX = Math.ceil(document.body.offsetWidth/2-popupWidth);
//	popupY = Math.ceil(screen.availHeight/2-popupHeight);
	popupY = 80;
	
	MM_changeProp('popup','','left',popupX+'px','DIV');
	MM_changeProp('popup','','top',popupY+'px','DIV');
}

function closePopUp(){
	MM_changeProp('bilder','','display','block','DIV');
	MM_changeProp('popup','','display','none','DIV');
}
function setNaviTypo(label,color){
	document.getElementById('navitypo').innerHTML = '<span>'+label+'</span>';
	document.getElementById('navitypo').style.color = color;
}
function setBorderColor(color) {
	document.getElementById('main').style.borderTopColor = color;
	document.getElementById('main').style.borderTopWidth = '1px';
	document.getElementById('main').style.borderTopStyle = 'solid';
	document.getElementById('main').style.borderBottomColor = color;
	document.getElementById('main').style.borderBottomWidth = '1px';
	document.getElementById('main').style.borderBottomStyle = 'solid';
	
}

	