/*
Mangosteenguide
webflow webdesign - www.webflow.be
Wouter Verstuyf
*/

/* jquery png fix */
$(document).ready(function(){ 
	$(document).pngFix(); 
}); 

/* trim function */
function trim(value) {
  value = value.replace(/^\s+/,'');
  value = value.replace(/\s+$/,'');
  return value;
}


//ga naar vorige maand
function goPrevMonth(day, month, year) {
if(month == 1) {
  --year;
  month = 13;
}
document.location.href = '/nl/kalender/?day='+day+'&month='+(month-1)+'&year='+year;
}

//ga naar volgend jaar
function goNextYear(month, year) {
++year;
document.location.href = '/nl/kalender/?month='+ month +'&year='+year;
}

//ga naar vorig jaar
function goPrevYear(month, year) {
  --year;
document.location.href = '/nl/kalender/?month='+ month +'&year='+year;
}

//ga naar volgende maand
function goNextMonth(day, month, year) {
if(month == 12) {
  ++year;
  month = 0;
}
document.location.href = '/nl/kalender/?day='+day+'&month='+(month+1)+'&year='+year;
}

//get data
function get (year, month) {
	document.location.href = '/nl/kalender/?month='+ month +'&year='+year;
	return false;
}

function showevent(eventid) {
	$('#'+eventid).toggle();
}

