/* -- START Productsearch --*/
addLoadEvent(function(){
	if(typeof populate_menu == "function"){
		populate_menu();
	}
});
/*** AJAX ***/
addLoadEvent(function(){
	if(typeof Search == "function"){
		if($F('gerecht_id')){
			var search = new Search_Ext('zoek_criteria',{
				ajax_url:'www/scripts/ajax_reqs.php',
				ajax_container: 'resultaatbox',
				ajax_parameters: {
					t:"search"
					//,sleep: 2
				},
				addButton:'bereken_cal',
				submitButton:'button.zoek',
				delButton:'td.trash a',
				ajax_toevoegen: {
					session_id: 'session_id',
					user_id: 'id',
					timestamp: 'timestamp'
				}
			});
		}
	}
});
/* -- END Productsearch --*/

/* -- START Uitschuiven --*/
/*addLoadEvent(function(){
	if(typeof Slide == "function"){
		 zoekbox_slide = new Slide('zoekbox',{
				trigger: 'button.zoek',
				close: 'a.close'
			});
		
	}
});
*/
addLoadEvent(function(){
	if(typeof Slide == "function"){
		
		resultaat = new Slide('resultaatbox',{
				close: 'a.close',
				transition: Effect.Transitions.linear
			});
	}
});
/* -- END Uitschuiven --*/

/* -- START Carousel --*/
addLoadEvent(function(){
	if(typeof Glider == "function"){
		glider = new Glider('list', {
			duration:0.2,
			autoGlide: true,
			frequency: 1,
			initialSection: 'section1',
			leftButton: 'scrollLeft',
			rightButton: 'scrollRight'
		});
	}
})
/* -- END Carousel --*/



/* -- START sIFR --*/

  var frutiger = {src: 'www/swf/frutiger.swf'};

  var interstate = {src: 'www/swf/interstate_bold.swf'};
  sIFR.useStyleCheck = true;
  sIFR.activate(frutiger, interstate);
 
 sIFR.replace(frutiger, {
				selector: 'h1'
				,css: {'.sIFR-root': { 'color':'#577908', 'font-size':'32px'} }
				,wmode: 'transparent'
  });
  sIFR.replace(interstate, {
			   selector: 'h2'
				,css: { '.sIFR-root': { 'color':'#0F3E0F', 'font-size':'14px'} }
				,wmode: 'transparent'
  });

 /* -- END sIFR --*/
