function fixDate(date) {
  var base = new Date(0);
  var skew = base.getTime();
  if (skew > 0)
    date.setTime(date.getTime() - skew);
}

function openimgwin(){

openPopImg(cacheorigphoto, 'origineel', cacheorigwidth,cacheorigheight);

}
// Copyright 1999 - 2002 by Ray Stott, Pop-up Images Script ver 2.0
// OK to use if this copyright is included
// Script is available at http://www.crays.com/jsc

var pic = null
var popImg = null  // use this when referring to pop-up image
var picTitle = null
var imgCount = 0
var imgWinName = "popImg"

function openPopImg(picName, windowTitle, windowWidth, windowHeight){
  closePopImg()
  picTitle = windowTitle
  imgWinName = "popImg" + imgCount++ //unique name for each pop-up window
  popImg = window.open(picName, imgWinName,
           "toolbar=no,scrollbars=no,resizable=no,width=" 
           + (parseInt(windowWidth)+20)  + ",height=" 
           + (parseInt(windowHeight)+15)) 
  }
function closePopImg(){    // close pop-up window if it is open 
  if (navigator.appName != "Microsoft Internet Explorer" 
      || parseInt(navigator.appVersion) >=4) //do not close if early IE
    if(popImg != null) if(!popImg.closed) popImg.close() 
  }
function setStatus(msg){
  status = msg
  return true
  }

function getObj(name)
{
 if (document.getElementById)
 {
	   this.obj = document.getElementById(name);
 }
 else if (document.all)
 {
	   this.obj = document.all[name];
 }
 return this.obj;
}

var menucache=''
function activate(id){

	var thisdiv=getObj(id);
	var thisdiva=getObj('menu_'+id);
	if(thisdiv){
		thisdiv.className='menu_active';
		menucache=id;
	}
	if(thisdiva){
		thisdiva.style.color='#000000';
	}
}

function activemenuover(id){
   if(id!=menucache){
	var thisdiv=getObj('menu_'+id);
	if(thisdiv){
		thisdiv.className='menu_active';
	}
  }
}

function activemenuout(id){
   if(id!=menucache){
	var thisdiv=getObj('menu_'+id);
	if(thisdiv){
		thisdiv.className='menu';
	}
  }
}




function getSelectedValues (select) {
  var r = "";
  for (var i = 0; i < document.contactform.concerning.options.length; i++) {
    if (document.contactform.concerning.options[i].selected){
      r += ','+document.contactform.concerning.options[i].value;
    }
  }
  document.contactform.concerningnow.value=r;
}

$(document).ready(function() 
{
	$('#slideshow').cycle({timeout:8000,pause:true});
	sfhover('navigation');
});

