function check(){
var resolutie = screen.width;
 if(resolutie <= 860){
window.open('http://m.outdoorleisure.nl','_top');
}
}

function nieuws1(){
var truukje = '@er';
      var addresses = ['f' + String.fromCharCode(118) + 'elden' + truukje.charAt(0) + 'idcollege.nl',
                       'mberger' + truukje.charAt(0) + 'idcolleg' + String.fromCharCode(101) + '.n' + String.fromCharCode(108),
                       String.fromCharCode(105) + 'n' + String.fromCharCode(102) + 'o' + truukje.charAt(0) + 'outdoorle' + String.fromCharCode(105) + 'sure.nl'];
      for (var i = 0; i < 3; i++) {
        var link = document.getElementById('mail' + (i + 1));
        link.href = 'mailto:' + addresses[i];
        link.innerHTML = addresses[i];
      }
}


function showoption(x){
document.getElementById('option').style.display="";
}

function reset(){ 
document.getElementById("option").style.display="none";
}

function CloseBar(){
document.getElementById('bar').style.display='none';
}

function BlueClose(){
document.getElementById('close').src='img/close_blue.png';
document.getElementById('vraag').src='img/vraag_blue.png';
}

function ResetClose(){
document.getElementById('close').src='img/close.png';
document.getElementById('vraag').src='img/vraag.png';
}

function showSpoiler(obj)
    {
    var inner = obj.parentNode.getElementsByTagName("div")[0];
    if (inner.style.display == "none")
        inner.style.display = "";
    else
        inner.style.display = "none";
    }


function FAQ(){
var y=1;
}


function showalbum(){
var select = document.getElementById("albumid");
var album = select.options[select.selectedIndex].value;
 document.getElementById("keuzeplaatje").innerHTML = "<img src='img/foto_album/" + album + ".jpg' title='Klik hier om het album te laden' alt='Klik hier om het album te laden' onclick='submitform();' height='97px' width='140px' />";

}

function openplayer(){
var select = document.getElementById("catagorie");
var album = select.options[select.selectedIndex].value;
window.open("http://www.outdoorleisure.nl/player.php?cat="+album, "myWindow",'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=1000,height=500');
}

function DeleteAlbum(){
document.plaatje.submit();
}

function foto(){
document.plaatje.submit();
}

function bevestig(){
var c=confirm("Weet je zeker dat je de vraag wil verwijderen?");
if(c==false){
window.alert('Vraag niet verwijderd');
}
if(c!=false){
window.alert('test');
document.verwijder.submit();
}
}

function selecteer(){
document.select.submit();
}

function submitform()
{
document.album.submit();
}

function submitformtaal()
{

document.taal.submit();
}

function forumulier(){
if (document.ElementById("naam") ==""){
window.alert("Hee, vul wat in!")
}
}


function thx(){

window.open('index.php?modus=Bedankt', '_top'); 
}

function webthx(){

window.open('index.php?modus=Verzonden', '_top'); 
}

function res(){
var resolutie = screen.width;
if (resolutie > 1200){
document.write('<img src="img/ban3.png" title="OutdoorLeisure, Buitengewoon leerzaam" alt="Outdoor Leisure, Buitengewoon leerzaam" />');
}


}

function changeBack(form){
      for (var i = 0; i < form.select.options.length; i++) {
        if (form.select.options[i].selected){
          document.getElementById("keuzeplaatje").innerHTML = "<img src='img/" + form.map.options[i].text + ".jpg' alt='Klik hier om het album te laden' onclick='submitform();' height='97px' width='140px' />";
        }
      }

    }






function sloganklik(){
window.open('index.php?modus=Wie%20zijn%20wij','_top'); 
}



function mkdir(){

document.mkdirform.submit();
window.location.reload();
}

function rmdir(){

document.rmdirform.submit();
window.location.reload();

} 

function Nieuws(){
var truukje = '@er';
      var addresses = ['f' + String.fromCharCode(118) + 'elden' + truukje.charAt(0) + 'idcollege.nl',
                       'mberger' + truukje.charAt(0) + 'idcolleg' + String.fromCharCode(101) + '.n' + String.fromCharCode(108),
                       String.fromCharCode(105) + 'n' + String.fromCharCode(102) + 'o' + truukje.charAt(0) + 'outdoorle' + String.fromCharCode(105) + 'sure.nl',
String.fromCharCode(105) + 'n' + String.fromCharCode(102) + 'o' + truukje.charAt(0) + 'snowsportsacadamy.nl'];
      for (var i = 0; i < 3; i++) {
        var link = document.getElementById('mail' + (i + 1));
        link.href = 'mailto:' + addresses[i];
        link.innerHTML = addresses[i];
      }
}


function Contact(){
var truukje = '@er';
      var addresses = ['f' + String.fromCharCode(118) + 'elden' + truukje.charAt(0) + 'outdoorle' + String.fromCharCode(105) + 'sure.nl',
                       'mberger' + truukje.charAt(0) + 'outdoorle' + String.fromCharCode(105) + 'sure.nl',
                       String.fromCharCode(105) + 'n' + String.fromCharCode(102) + 'o' + truukje.charAt(0) + 'outdoorle' + String.fromCharCode(105) + 'sure.nl',
String.fromCharCode(105) + 'n' + String.fromCharCode(102) + 'o' + truukje.charAt(0) + 'snowsportsacadamy.nl'];
      for (var i = 0; i < 3; i++) {
        var link = document.getElementById('mail' + (i + 1));
        link.href = 'mailto:' + addresses[i];
        link.innerHTML = addresses[i];
      }
}

function veranderTab(x,tekst) {
 document.getElementById('tab1').className = 'uit';
 document.getElementById('tab2').className = 'uit';
 document.getElementById('tab3').className = 'uit';
 document.getElementById('tab4').className = 'uit';
 document.getElementById('tab5').className = 'uit';
 document.getElementById('tab6').className = 'uit';
 document.getElementById(x).className='aan';
 document.getElementById('contentbeheer').innerHTML=tekst;
}

function catagorie(x){
document.getElementById(x).selected=true;
}

function videoplayer(w,x,y,z){
var s = new SWFObject("flashplayer/player.swf","ply","640","360","9","#FFFFFF");
		s.addParam("allowfullscreen","true");
		s.addParam("allowscriptaccess","always");
		s.addParam("flashvars","file=../flv/"+w+"&image=../flv/"+x+"&duration="+y+"&stretching="+z);
		s.write("container");
	
}

function rood(id,x,y){
document.getElementById('l'+ id).style.color='red';
document.getElementById('l'+ id).style.weight='bold';
}

function showdiv(id){
document.getElementById(id).style.display='';
}

function disablediv(id){
document.getElementById(id).style.display='none';
}

function checkding(x){
document.getElementById(x).checked=true;
}

function berekenTotaal(x){
var t = document.getElementById('totaal').value;
var box = document.getElementById('optie'+x);
var t = new Number(t);
var x = new Number(x);
if(box.checked == true){
var n = t + x;

document.getElementById('totaal').value=n.toFixed(2);
}
if(box.checked == false){
var n = t - x;
document.getElementById('totaal').value=n.toFixed(2);
}
}

function selectkeuze(x)
{
document.getElementById(x).selected=true;
}

