
function popup(url,titel,height) {
    if(height=='') height='400';
    window.open(url,titel,"status=0, height=1000, width=700, resizable=1,scrollbars=1");
}
function confirmAction(url,msg) {
    if(!msg) var msg = 'Weet u het zeker?'
    var c = window.confirm(msg)
    if(c) {window.location = url;}
    //else window.alert("Actie geanuleerd door gebruiker");
}
function Select_Value_Set(SelectName, Value) {
  eval('SelectObject = document.' + 
    SelectName + ';');
  for(index = 0; 
    index < SelectObject.length; 
    index++) {
   if(SelectObject[index].value == Value)
     SelectObject.selectedIndex = index;
   }
}
function check_all(iam)
{ 
    var node_list = document.getElementsByTagName('input'); 
    for (var i = 0; i < node_list.length; i++)
    { 
        var node = node_list[i]; 
        if (node.getAttribute('type') == 'checkbox')
        { 
		       if (iam.checked == 1)
                       {
                              node.checked = 1;
                       }
			else
                       {
			      node.checked = 0;
                       }
        } 
    } 
}
function uncheckAll(field)
{
for (i = 0; i < field.length; i++)
	field[i].checked = false ;
}
function makevisible(id) {
    if (document.getElementById) { // DOM3 = IE5, NS6 
        document.getElementById(id).style.visibility = 'visible'; 
    }
}

 $('.ad-fade-1').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed:    2000, 
    	timeout:  10000,
	});
	 $('.ad-fade-2').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed:    2000, 
    	timeout:  10000 ,
		delay: 2500 
	});
	 $('.ad-fade-3').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed:   	2000, 
    	timeout:  10000,
		delay: 5000  
	});
	 $('.ad-fade-4').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed:    2000, 
    	timeout:  10000,
		delay: 7500
	});

////////// FANCYBOX
$(document).ready(function() {
	$(".fancybox").fancybox();
	$("ul#events").tinycarousel({ axis: 'y', interval: true, controls: true });
});


