// AJAX CALLS
function do_ajax_HTML(options) {
	if (options['cache']!=true) {
		var i=options['url'].indexOf('?',0)+options['url'].indexOf('&',0); // komt er een & of ? voor?
		if (i>-2){
			options['url']=options['url']+'&';
		} else options['url']=options['url']+'?';
		options['url']=options['url']+'randcachevar='+(new Date()).getTime();
		//options.url
	}

	var myHTMLRequest = new Request.HTML(options);
	myHTMLRequest.setHeader('X-Request','text/xhtml');
	myHTMLRequest.get();
}

function do_ajax_HTML_post(options,formID) {
	var myHTMLRequest = new Request.HTML(options);
	myHTMLRequest.post($(formID));
}


window.addEvent("domready", function(){

	try {
	$$('.accTrigger').each(function(item){
		item.addEvents({
			'click': function(){
			if($('accContainer'+item.get('rel')).getStyle('height')!='0px') {
			$$('.accContainer').tween('height','0px');

			} else {
			$$('.accContainer').tween('height','0px');
			$('accContainer'+item.get('rel')).tween('height',$('accText'+item.get('rel')).getStyle('height'));
			}
			}
			});
		});
	}
	catch (err) {}

});



