

function LinkerMarge() {
x=document.body.clientWidth;
var links=(x-800)/2;
return links;
}

var expanded="";


//don't know if this is really used ?
function More(x) {
if (document.getElementById(expanded)) document.getElementById(expanded).style.display="none";
if (expanded != x) {
document.getElementById(expanded).style.display="none";
document.getElementById(x).style.display="block";
MoveTo(x);
expanded=x;
}
else {
document.getElementById(expanded).style.display="none";
expanded="";
}
}

function MoveTo(id) {
  var obj = document.getElementById(id); 
  var ylocation = parseInt(obj.style.top); document.write(ylocation);
  window.scrollTo(0,ylocation);
}


function OtherStyle() {  
 a=OtherStyle.arguments; 
	for(i=1; i<a.length; i++) {
		document.getElementById(a[i]).className = a[0];
		 }
}


function PlacePicUp() {
var mybody=document.getElementById('picup');
var link=document.createElement("A");
link.setAttribute("href","#top");
link.setAttribute("style","text-decoration:none;");
var pic=document.createElement("IMG");
pic.setAttribute("src","fig/top.gif");
pic.setAttribute("border","0");
link.appendChild(pic);
mybody.appendChild(link);
var h=35;
Reposition('picup',h);
}

function Reposition(naam,h) {
document.getElementById(naam).style.left=0;
document.getElementById(naam).style.top=PosTop(h);
}

function PosLeft() {
var x=document.body.clientWidth; 
var b=760;
var left = (x/2-b/2) +"px";
return left;
}

function PosTop(h) {
var y=document.body.scrollHeight; 
var top = (y-h) +"px";
return top;
}

function ChangeLayersTeam(wie,status) {
if (status=="block") document.getElementById('team').style.display="none"; 
else document.getElementById('team').style.display="block"; 
document.getElementById(wie).style.display=status;
}

var getoond="";
function ChangeLayers(wat) {
if (document.getElementById(getoond)) 
{
document.getElementById(getoond).style.display="none";
var getoondp=getoond+"p";
document.getElementById(getoondp).className="kiesp";
}
var watp=wat+"p";
document.getElementById(wat).style.display="block";
document.getElementById(watp).className="koosp";
getoond=wat;
}

function Popup(url,w,h) {
myWin=open(url,'popupvenster','width='+w+',height='+h+',toolbar=no,scrollbars=no,resizable=no,location=no'); 
myWin.moveTo((screen.width-w)/2,(screen.height-h)/2);
}


function OpenLinkInNewWindow(url) {
var windowpars = "top=8px, left=8px, height=" + (parseInt(screen.height) -15) + "px, width=" + (parseInt(screen.width) -15) +"px, menubar=yes, toolbar=yes, location=yes, resizable=yes, scrollbars=yes, status=yes";
new_window=window.open(url,"_blank", windowpars); 
new_window.focus(); 
}




