geenautoaanvullen = false;

LightboxOptions = Object.extend({
    fileLoadingImage:        'static/images/loading.gif',     
    fileBottomNavCloseImage: 'static/images/closelabel.gif',

    overlayOpacity: 0.8,   // controls transparency of shadow overlay

    animate: true,         // toggles resizing animations
    resizeSpeed: 7,        // controls the speed of the image resizing animations (1=slowest and 10=fastest)

    borderSize: 10,         //if you adjust the padding in the CSS, you will need to update this variable

	// When grouping images this is used to write: Image # of #.
	// Change it for non-english localization
	labelImage: "Image",
	labelOf: "of"
}, window.LightboxOptions || {});


//categorielogica
function changeHC(){
	var sString = $('hoofdcategorie').serialize();
	//var sString = $(objS).serialize();
	var url 	= 'dynamic/updateSC1.php';
	
	new Ajax.Updater('sc1', url, {method:'post', parameters: sString,differentiator: Math.floor(Math.random()*50000), onComplete:changeSC1() });
}

function changeSC1(){
	var sString = $('subcategorie1').serialize();
	//var sString = $(objS).serialize();
	var url 	= 'dynamic/updateSC2.php';
	
	new Ajax.Updater('sc2', url, {method:'post', parameters: sString,differentiator: Math.floor(Math.random()*50000), onComplete:changeSC2() });	
}

function changeSC2(){
	var sString = $('subcategorie2').serialize();
	//var sString = $(objS).serialize();
	var url 	= 'dynamic/updateSC3.php';
	
	new Ajax.Updater('sc3', url, {method:'post', parameters: sString,differentiator: Math.floor(Math.random()*50000) });	
	
}

function AutoAanvullen(value){
	if(value.length>2 && geenautoaanvullen==false){
		new Ajax.Updater('autoaanvullen','autoaanvullen.php',{method:'post', parameters:'?val='+escape(value)+'&rnd='+Math.random(),onComplete:$('autoaanvullen').style.display='inline'});
	} else {
		$('autoaanvullen').style.display = 'none';
		geenautoaanvullen==false;
	}
}


Menu.init("menu", {"orientation": Menu.VERTICAL});