function openCenterWindow(theURL,winName,features,w,h) { //v2.0
  // bepaal nu het centrum
  var twin;
  
  if (features == '')
  {
  	features='scrollbars=no,toolbar=no,status=no';
  }
  if (screen)
  {

  mleft = (screen.width - w ) / 2;
  mtop = (screen.height - h) / 2;

    features = features + ',top=' + mtop + ',left=' + mleft + ',width=' + w + ',height=' + h ;

  }
 
  twin = window.open(theURL,winName,features);
  twin.focus();
}

function openGebiedskaart(gebied) { //v2.0
  // bepaal nu het centrum
  var twin;
  
 
  features='scrollbars=auto,toolbar=no,status=no';

  if (screen)
  {
 if (screen.width <= 800)
 {
 	  w = 790;
  h = 520;
 
}
else
	{
		  w = 1000
  h = 700;
	
}	
  mleft = (screen.width - w ) / 2;
  mtop = (screen.height - h) / 2;

    features = features + ',top=' + mtop + ',left=' + mleft + ',width=' + w + ',height=' + h ;

  }

	twin = window.open('http://www.nordicwalkingnet.nl/site/flash/gebiedskaart.php?gebied=' + gebied ,'flash',features);
  twin.focus();
}


function Arrangementen(gebied) { //v2.0
  // bepaal nu het centrum
  var twin;
  
 
  features='scrollbars=yes,toolbar=no,status=no';
  w = 800
  h = 500;
  if (screen)
  {

  mleft = (screen.width - w ) / 2;
  mtop = (screen.height - h) / 2;

    features = features + ',top=' + mtop + ',left=' + mleft + ',width=' + w + ',height=' + h ;

  }
  
		
  // later
  twin = window.open('../../public/show_arrangement.php?action=show_all&gebied=' + gebied ,'arrangementen',features);
 
  twin.focus();
}

// tijdelijk doen we per gebied 1 arrangement, dus switch nu en ga verder?


function Instructeurs(gebied, naam) { //v2.0
  // bepaal nu het centrum
  var twin;
  
 
  features='scrollbars=yes,toolbar=no,status=no';
  w = 800
  h = 500;
  if (screen)
  {

  mleft = (screen.width - w ) / 2;
  mtop = (screen.height - h) / 2;

    features = features + ',top=' + mtop + ',left=' + mleft + ',width=' + w + ',height=' + h ;

  }
  

  //twin = window.open('../html/instructeurs/' + gebied + '/'+ naam + '.html' ,'instr',features);

		
  
  twin = window.open('../../public/show_vereniging.php?action=show_all&gebied=' + gebied ,'instr_index',features);
  twin.focus();
}

function Instructeurs_index(gebied) { //v2.0
  // bepaal nu het centrum
  var twin;
  
 
  features='scrollbars=yes,toolbar=no,status=no';
  w = 800
  h = 500;
  if (screen)
  {

  mleft = (screen.width - w ) / 2;
  mtop = (screen.height - h) / 2;

    features = features + ',top=' + mtop + ',left=' + mleft + ',width=' + w + ',height=' + h ;

  }
 
		
  
  twin = window.open('../../public/show_vereniging.php?action=show_all&gebied=' + gebied ,'instr_index',features);
  twin.focus();
}

function Persbericht() { //v2.0
  // bepaal nu het centrum
  var twin;
  
 
  features='scrollbars=yes,toolbar=no,status=no';
  w = 800
  h = 500;
  if (screen)
  {

  mleft = (screen.width - w ) / 2;
  mtop = (screen.height - h) / 2;

    features = features + ',top=' + mtop + ',left=' + mleft + ',width=' + w + ',height=' + h ;

  }
  

  twin = window.open('../html/aftrap.html' ,'aftrap',features);
  twin.focus();
}

function VerslagKickOff() { //v2.0
  // bepaal nu het centrum
  var twin;
  
 
  features='scrollbars=yes,toolbar=no,status=no';
  w = 800
  h = 500;
  if (screen)
  {

  mleft = (screen.width - w ) / 2;
  mtop = (screen.height - h) / 2;

    features = features + ',top=' + mtop + ',left=' + mleft + ',width=' + w + ',height=' + h ;

  }
  
  

  twin = window.open('../html/verslag_kickoff.html' ,'aftrap',features);
  twin.focus();
}


function vereniging(id) { //v2.0
  // bepaal nu het centrum
  var twin;
  
 
  features='scrollbars=yes,toolbar=no,status=no';
  w = 800
  h = 500;
  if (screen)
  {

  mleft = (screen.width - w ) / 2;
  mtop = (screen.height - h) / 2;

    features = features + ',top=' + mtop + ',left=' + mleft + ',width=' + w + ',height=' + h ;

  }
  

  twin = window.open('../public/show_vereniging.php?id=' + id ,'instr',features);
  twin.focus();
}

function arrangement(id, extrapath) { //v2.0
  // bepaal nu het centrum
  var twin;
  
 
  features='scrollbars=yes,toolbar=no,status=no';
  w = 800
  h = 500;
  if (screen)
  {

  mleft = (screen.width - w ) / 2;
  mtop = (screen.height - h) / 2;

    features = features + ',top=' + mtop + ',left=' + mleft + ',width=' + w + ',height=' + h ;

  }
  

  twin = window.open(extrapath + '../public/show_arrangement.php?id=' + id ,'arr',features);
  twin.focus();
}

function arrangementFlash(id) { //v2.0
  arrangement(id, "../");
}





function AdvHoreca(gebied) { //v2.0
  // bepaal nu het centrum
  var twin;
  
 
  features='scrollbars=yes,toolbar=no,statusbar=no';
  w = 800
  h = 500;
  if (screen)
  {

  mleft = (screen.width - w ) / 2;
  mtop = (screen.height - h) / 2;

    features = features + ',top=' + mtop + ',left=' + mleft + ',width=' + w + ',height=' + h ;

  }
  
		
  // later
  twin = window.open('../../public/show_advertentie.php?soort=horeca&action=show_all&gebied=' + gebied ,'horeca',features);
 
  twin.focus();
}



function AdvOverig(gebied) { //v2.0
  // bepaal nu het centrum
  var twin;
  
 
  features='scrollbars=yes,toolbar=no,status=no';
  w = 800
  h = 500;
  if (screen)
  {

  mleft = (screen.width - w ) / 2;
  mtop = (screen.height - h) / 2;

    features = features + ',top=' + mtop + ',left=' + mleft + ',width=' + w + ',height=' + h ;

  }
  
		
  // later
  twin = window.open('../../public/show_advertentie.php?soort=overig&action=show_all&gebied=' + gebied ,'overig',features);
 
  twin.focus();
}

function Advertentie(id, extrapath) { //v2.0
  // bepaal nu het centrum
  var twin;
  
 
  features='scrollbars=yes,toolbar=no,status=no';
  w = 800
  h = 500;
  if (screen)
  {

  mleft = (screen.width - w ) / 2;
  mtop = (screen.height - h) / 2;

    features = features + ',top=' + mtop + ',left=' + mleft + ',width=' + w + ',height=' + h ;

  }
  

  twin = window.open(extrapath + '../public/show_advertentie.php?id=' + id ,'adv',features);
  twin.focus();
}

function GoogleMaps(route) { //v2.0
  // bepaal nu het centrum
  var twin;
  
 
  features='scrollbars=yes,toolbar=no,status=no,resizable=yes';
 if (screen)
  {
 	if (screen.width <= 800)
 	{
 	  	w = 790;
  		h = 580;
 
	}
	else
	{
		  w = 980
  			h = 760;
	
		}	
  }
  if (screen)
  {

  mleft = (screen.width - w ) / 2;
  mtop = (screen.height - h) / 2;

    features = features + ',top=' + mtop + ',left=' + mleft + ',width=' + w + ',height=' + h ;

  }
  
		
  // later
  twin = window.open('http://www.nordicwalkingnet.nl/public/showroute_in_maps.php?id=' + route ,'googlemaps',features);
 
  twin.focus();
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}