// Deze functie laadt de rollover plaatjes alvast in!
function loadImage(image){
if (!window.document.ImageArray) {window.document.ImageArray = new Array()}
var counter = window.document.ImageArray.length;
window.document.ImageArray[counter] = new Image();
window.document.ImageArray[counter].src = image;
//alert(window.document.ImageArray[counter].src);
}

function MomentPlease(Show) { 
if (Show) {
  window.document.write ("<DIV id='hidepage' style='background-color:#336699; position: absolute; left:5px; top: 0px; height: 100%; width: 100%;'>"); 
  window.document.write ("<TABLE align='center' style='border: 4 solid #FF9900; background-color:#336699;margin-top:80px;' width='40%' height='40%' border='0' cellspacing='0' cellpadding='0'>");
  window.document.write ("<TR align='center'><TD valign='bottom'><FONT style='color:#FFFFFF'>Het systeem is even bezig...</FONT></TD></TR>");
  window.document.write ("<TR align='center'><TD valign='center'><IMG src='/Images/Misc/Clock.jpg'></TD></TR>");
  window.document.write ("<TR align='center'><TD valign='top'><FONT style='color:#FFFFFF'>Nog een moment geduld aub...</FONT></TD></TR>");
  window.document.write ("</TABLE>");
  window.document.write ("</DIV> "); }
else { 
  if (document.getElementById) {  // DOM3 = IE5, NS6
    document.getElementById('hidepage').style.visibility = 'hidden'; } 
  else {
    if (document.layers) {  // Netscape 4
      document.hidepage.visibility = 'hidden'; }
    else {  // IE 4
      document.all.hidepage.style.visibility = 'hidden'; }}}}

function MenuInSitemap(obj) {
obj.bgColor='#FF9900'; }

function MenuOutSitemap1(obj) {
obj.bgColor='#FFEFD5'; }

function MenuOutSitemap2(obj) {
obj.bgColor='#FFEFD5'; }

function setcmbdiensten() {
var temp = document.getElementById('diensten');
window.document.location = temp.value; }

function setcmbregistratie() {
var temp = document.getElementById('registratie');
window.document.location = temp.value;
}

function set_rb_community_tab(Name) {
  for (x=1; x<4; x++) {
    var item = document.getElementById('d' + Name.substr(0,2) + x);
    if (item==null) {
      break; }
    else {
      if (item.style.display == 'block') {
        item.style.display = 'none'; }}}
    
  for (x=1; x<100; x++) {
    var item = document.getElementById('a' + Name.substr(0,2) + x);
    if (item==null) {
      break; }
    else {
      if (item.className=='sel') {
        item.className=null; }}}
  
  var item = document.getElementById('a' + Name);
  
  item.className='sel';
          
  var item = document.getElementById('d' + Name);
  
  if (item.style.display == 'none') {
    item.style.display = 'block'; }}

// <a href="URL-INVULLEN" onClick="javascript: recordOutboundLink(this, 'CATEGORY-INVULLEN', 'ACTION-INVULLEN', 'LABEL-INVULLEN'); return false">TEKST-INVULLEN</a>
 
function recordOutboundLink(link, category, action, label) {
  try {
    var pageTracker=_gat._getTracker("UA-5437511-1");
    pageTracker._trackEvent(category, action, label);
    setTimeout('document.location = "' + link.href + '"', 100) }
  catch(err){}} 

// <a href="URL-INVULLEN" onClick="javascript: recordOutboundPopupLink('CATEGORY-INVULLEN', 'ACTION-INVULLEN', 'LABEL-INVULLEN'); return true" target="_blank">TEKST-INVULLEN</a>

function recordOutboundPopupLink(category, action, label) {
  try {
    var pageTracker=_gat._getTracker("UA-5437511-1");
    pageTracker._trackEvent(category, action, label) }
  catch(err){}}

function recordClick(category, action, label) {
  try {
    var pageTracker=_gat._getTracker("UA-5437511-1");
    pageTracker._trackEvent(category, action, label); }
  catch(err){}}
    
if (typeof XMLHttpRequest == "undefined")
  XMLHttpRequest = function () {
    try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); }
      catch (e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); }
      catch (e) {}
    try { return new ActiveXObject("Msxml2.XMLHTTP"); }
      catch (e) {}
    //Microsoft.XMLHTTP points to Msxml2.XMLHTTP.3.0 and is redundant
    throw new Error("This browser does not support XMLHttpRequest.");
  };  
