// Highlights roteren
$.fn.cycle.defaults.timeout = 5000;

$(function() {
	$('#highlights').cycle({ 
        fx:     'fade',
        speed:  'slow',
        timeout: 4000,
		random: 0
	});
});	

// Random menu voor landingspagina's
$(function() {
	$('#quickmenu').cycle({ 
        timeout: 0,
		speed: 0,
		random: 1
	});
});	

//$(function(){
//	$('ul a').collapsor();
//});
function set_global(name,product_order){
	
	var dropdownIndex = document.getElementById(product_order).selectedIndex;
	var dropdownValue = document.getElementById(product_order)[dropdownIndex].value;
	
	arr_tmp_url = window.location.href.split("&"+name);
	location.href = arr_tmp_url[0]+ "&"+name+"=" + dropdownValue;
}

function toggleDivBestelling(selected){
    element = document.getElementById(selected).style;
    element.display == 'none' ? element.display = 'block' :
    element.display='none';
}
function refreshAantal(field_id,pro_id,pagina){
	var aantal = document.getElementById(field_id).value;
	location.href = pagina+"?action=refresh&arr_id="+pro_id+"&aantal="+aantal;
}
function Clickheretoprint(div_id,titel)
{ 
  var disp_setting="toolbar=yes,location=no,directories=yes,menubar=yes,"; 
      disp_setting+="scrollbars=yes,width=650, height=600, left=100, top=25"; 
  var content_vlue = document.getElementById(div_id).innerHTML; 
  
  var docprint=window.open("","",disp_setting); 
   docprint.document.open(); 
   docprint.document.write('<html><head><title>'+ titel +'</title>'); 
   docprint.document.write('</head><body onLoad="self.print()"><center>');          
   docprint.document.write(content_vlue);          
   docprint.document.write('</center></body></html>'); 
   docprint.document.close(); 
   docprint.focus(); 
}

