﻿
/* ------------------------------------------------------------------ */
/* --- Functies: Algemeen ------------------------------------------- */
/* ------------------------------------------------------------------ */


/* Zoekfunctie */

function zoek(){
  var inpZoek = document.getElementById('zoeken_input');
  var strZoek = inpZoek.value;
  if(strZoek.length>0) {
    strZoek = escape(strZoek);
    strZoek = strZoek.replace(/ /g,'+').replace(/\%20/g,'+');
    document.location.href = "/pages/pagina.aspx?type=zoeken&zoek="+ strZoek;
  }
}

// Standaardwaarde van tekstveld verbergen onFocus (en css-class aanpassen)
function textFieldFocus(object, defaultValue) {
  if (object.value == defaultValue) {
    object.value = "";
    object.className = "active";
  }
}

// Standaardwaarde van tekstveld herstellen onBlur (en css-class aanpassen)
function textFieldBlur(object, defaultValue) {
  if (object.value == "") {
    object.value = defaultValue;
    object.className = "";
  }
}


/* ------------------------------------------------------------------ */
/* --- Functies: onLoad --------------------------------------------- */
/* ------------------------------------------------------------------ */

$(document).ready(function() {
  // Lightbox activeren
  $(".lightbox").lightbox();
});

