var hasFlash = function () { var a=6;if(navigator.appVersion.indexOf("MSIE")!=-1&&navigator.appVersion.indexOf("Windows")>-1){document.write('<script language="VBScript"\> \non error resume next \nhasFlash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & '+a+'))) \n</script\> \n');if(window.hasFlash!=null)return window.hasFlash}

if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
  var b=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description;
  //return parseInt(b.charAt(b.indexOf(".")-1))>=a
  return true;
  }return false}

    function MaxHomepage (noflash) {
      CheckHeight();
      if (hasFlash() && noflash == "") {
        // We hebben flash, dus:
        document.getElementById("SwfArea").innerHTML = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="785" HEIGHT="500" id="MainMenuSwf" ALIGN=""><PARAM name="movie" value="/swf/max_start_02.swf?v=4"><PARAM name="quality" value="best"><PARAM NAME="bgcolor" value="#FFFFFF"><param name="wmode" value="opaque"><EMBED src="/swf/max_start_02.swf?v=3" quality="best" bgcolor="#FFFFFF" wmode="opaque" width="785" HEIGHT="500" name="MainMenuSwf" align="" type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>';
        }
      }
    /*
    900 x 573
    785 x 500
    */
    function CheckHeight () {
      var h = document.body.clientHeight;
      var el = document.getElementById("HomeContent");
      if (h < 550) { // Part of home may be hidden at top
        el.style.top = "0px";
        el.style.marginTop = "10px";
        }
      else {
        el.style.top = "50%";
        el.style.marginTop = "-275px";
        }
      }
      
    window.onresize = CheckHeight;
    
    var CurrentNav = "studiepartner";
    function MaxNav (page) {
      url = "/max.pl/nl/page/" + page;
      if (document.getElementById('niet_meer_tonen').checked) {
        url += "?setdefaultsite=true";
        }
      location.href = url;
      return false;
      }
      
    function MaxHomeMO (img,page) {
      var div = document.getElementById('home_image');
      div.style.backgroundImage = "url(/images/home_" + img + ".jpg)";
      CurrentNav = page;
      }
