var theTarget = "_self";
function goThere(){

if(!document.kiesjaar.jaar.selectedIndex==""){
window.open(document.kiesjaar.jaar.options[document.kiesjaar.jaar.selectedIndex].value,theTarget,"");}
}

function kiesMap(){
window.open(document.kiesmap.map.options[document.kiesmap.map.selectedIndex].value,theTarget,"");
}

function kiesAlbum(){
window.open(document.kiesalbum.album.options[document.kiesalbum.album.selectedIndex].value,theTarget,"");
}

function kiesType(){
if(!document.kiestype.type.selectedIndex==""){
window.open(document.kiestype.type.options[document.kiestype.type.selectedIndex].value,theTarget,"");}
}

function kiesSeizoen(){
if(!document.kiesseizoen.seizoen.selectedIndex==""){
window.open(document.kiesseizoen.seizoen.options[document.kiesseizoen.seizoen.selectedIndex].value,theTarget,"");}
}

function kiesSpeeldag(){
if(!document.kiesspeeldag.speeldag.selectedIndex==""){
window.open(document.kiesspeeldag.speeldag.options[document.kiesspeeldag.speeldag.selectedIndex].value,theTarget,"");}
}

function goFoto(){
if(!document.kiesfoto.directorie.selectedIndex==""){
window.open(document.kiesfoto.directorie.options[document.kiesfoto.directorie.selectedIndex].value,theTarget,"");}
}

function foto(URL)
{

  window.open(URL, 'Foto', 'width=630,height=470,location=no,menubar=no,directories=no,toolbar=no,scrollbars=no,resizable=yes,status=no,left=100,top=100' );
}


MM_reloadPage(true);
NS6 = (document.getElementById) ? 1 : 0;
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1: 0;

function MM_reloadPage(init)
{
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
    
function showLayer(layName)
{
 if(NS6)document.getElementById(layName).style.visibility='visible';
 else if(NS4)document.layers[layName].visibility='show';
 else if(IE4)document.all(layName).style.visibility='visible';
}
function hideLayer(layName)
{
 if(NS6)document.getElementById(layName).style.visibility='hidden';
 else if(NS4)document.layers[layName].visibility='hide';
 else if(IE4)document.all(layName).style.visibility='hidden';
}


function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span");
		if(el.style.display != "block"){ 
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") 
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

if (document.getElementById){ 
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}


function checkForm()
{
var correct = true
if (document.inlogform.login.value == "") {correct = false; alert("Geef aub uw login in!"); return false }
else if (document.inlogform.paswoord.value == "") {correct = false; alert("Geef aub uw paswoord in."); return false }
return true 
}

function checkForumNewTopic()
{
var correct = true
if (document.reactieform.titel.value == "") {correct = false; alert("Vul aub een onderwerp in!"); return false }
else if (document.reactieform.nieuwereactie.value == "") {correct = false; alert("U kan geen leeg berichten posten!"); return false }
return true 
}

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];}
}

function MM_swapImage2() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; window.opener.document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){window.opener.document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function checkNieuwsbrief()
{
var correct = true
if (document.nieuwsbriefform.emailadres.value == "") {correct = false; alert("Geef aub uw emailadres in!"); return false }
return true 
}


function checkSpeler()
{ 
var correct = true
if (document.spelersForm.Naam.value == "") {correct = false; alert("Geef aub een naam in."); return false }
else if (document.spelersForm.Voornaam.value == "") {correct = false; alert("Geef aub een voornaam in."); return false }
else if (document.spelersForm.Rugnummer.value == "") {correct = false; alert("Geef aub een rugnummer in."); return false }
return true 
}

function checkReg()
{ 
var correct = true
if (document.regform.gebruiker.value == "") {correct = false; alert("Geef aub een login in."); return false }
else if (document.regform.email.value == "") {correct = false; alert("Geef aub uw email in."); return false }
else if (document.regform.paswoord1.value == "") {correct = false; alert("Geef aub een paswoord in."); return false }
else if (document.regform.paswoord2.value == "") {correct = false; alert("Geef aub uw paswoord nogmaals in."); return false }
else if (document.regform.voornaam.value == "") {correct = false; alert("Geef aub uw voornaam in."); return false }
else if (document.regform.naam.value == "") {correct = false; alert("Geef aub uw naam in."); return false }
return true 
}

function checkLink()
{ 
var correct = true
if (document.sendlink.email.value == "") {correct = false; alert("Vul aub je emailadres in."); return false }
else if (document.sendlink.naamlink.value == "") {correct = false; alert("Geef aub de naam van de site in."); return false }
else if (document.sendlink.urllink.value == "" || document.sendlink.urllink.value == "http://") {correct = false; alert("Geef aub het adres van de site in."); return false }
return true 
}


var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus,scrollbar){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=" + scrollbar +",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";win=window.open(mypage,myname,settings);
win.focus();}

function zetBreedte(breedte){
//	document.getElementById(image1).width=breedte;
   var x=document.images
    x[46].width=breedte
}

function zetHoogte(breedte){
   var x=document.images
    x[46].height=breedte
}

function zetText(tekst)
{
	//document.reactieform.nieuwereactie.setText('tekst');
    document.reactieform.nieuwereactie.value = document.reactieform.nieuwereactie.value + tekst;
	//if(text=='lach') {document.reactieform.nieuwereactie.setText(':)');
}

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];}
}


   foto1 = new Image();
   foto1.src= "images/menu/mnieuws2.gif";
   foto2 = new Image();
   foto2.src= "images/menu/mclubinfo2.gif";
   foto3= new Image();
   foto3.src= "images/menu/msportief2.gif";
   foto4 = new Image();
   foto4.src= "images/menu/mmultimedia2.gif";
   foto5 = new Image();
   foto5.src= "images/menu/minteractief2.gif";
   foto6 = new Image();
   foto6.src= "images/menu/msiteinfo2.gif";
   foto7 = new Image();
   foto7.src= "images/menu/mhome2.gif";
   foto8 = new Image();
   foto8.src= "images/menu/mregistreer2.gif";
   foto9= new Image();
   foto9.src= "images/menu/mpaswoord2.gif";
   foto10= new Image();
   foto10.src= "images/menu/mpronostiek2.gif";
   foto11 = new Image();
   foto11.src= "images/menu/mlinks2.gif";
   foto12 = new Image();
   foto12.src= "images/menu/mgastenboek2.gif";
   foto13= new Image();
   foto13.src= "images/menu/mforum2.gif";
   foto14 = new Image();
   foto14.src= "images/menu/mdownloads2.gif";
   foto15 = new Image();
   foto15.src= "images/menu/mcontact2.gif";
   foto16 = new Image();
   foto16.src= "images/menu/maudio2.gif";
   foto17 = new Image();
   foto17.src= "images/menu/mvideo2.gif";
   foto18 = new Image();
   foto18.src= "images/menu/mwebteam2.gif";
   foto19= new Image();
   foto19.src= "images/menu/mverslagen2.gif";
   foto20= new Image();
   foto20.src= "images/menu/mtegenstanders2.gif";   
   foto21 = new Image();
   foto21.src= "images/menu/mteam2.gif";
   foto22 = new Image();
   foto22.src= "images/menu/mstatistieken2.gif";
   foto23= new Image();
   foto23.src= "images/menu/montstaan2.gif";
   foto24 = new Image();
   foto24.src= "images/menu/mnieuwsbrief2.gif";
   foto25 = new Image();
   foto25.src= "images/menu/mklassement2.gif";
   foto26 = new Image();
   foto26.src= "images/menu/mkalender2.gif";
   foto27 = new Image();
   foto27.src= "images/menu/mfoto2.gif";
   foto28 = new Image();
   foto28.src= "images/menu/mfenix2.gif";
   foto29= new Image();
   foto29.src= "images/menu/mbestuur2.gif";
   foto30= new Image();
   foto30.src= "images/menu/marchief2.gif";  
   
    var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-17516695-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
