/*When page is loaded start functions*/
$.html5();		//Make IE html5 ready

$(document).ready(function(){ 
	//herstel scherm breedte
	if ($.browser.msie && $.browser.version.substr(0,1)<9) {//if browser is lower than IE 9.0
		adjustStyle($(this).width());
		$(window).resize(function() {
			adjustStyle($(this).width());
		});
	}
	setButtons();	//Set special effects for buttons
	setCartFunctions();
	$('#winkelwagen').sideSlide({margin:7});
	$('.image').fancyzoom(); 
	$('.pimage').fancyzoom(); 
	$('article').cloudPopup();
	$('.verzendkosten').click(function(e) {
		$('body').append('<div id="basic-modal-content">Een moment geduld alstublieft</div>');
		$('#basic-modal-content').load('/pages/verzendkosten.php');
		$('#basic-modal-content').modal();
		return false;
  	});
	
	$('.slimbezorgen').click(function(e) {
		$('body').append('<div id="basic-modal-content">Een moment geduld alstublieft</div>');
		$('#basic-modal-content').load('/pages/slim-bezorgen_small.php');
		$('#basic-modal-content').modal();
		return false;
  	});
	
	$('.veiligproduct').click(function(e) {
		$('body').append('<div id="basic-modal-content">Een moment geduld alstublieft</div>');
		$('#basic-modal-content').load('/pages/veilig-product_small.php');
		$('#basic-modal-content').modal();
		return false;
  	});
	
	$('#logo_slider').easySlider({prevText:'Vorige',nextText: 'Volgende', speed:5000, pause:1000, auto:true});
	
	$('.productSlide').easySlider({prevText:'Vorige',nextText: 'Volgende', speed:2000, pause:5000, auto:true, controlsShow:false, continuous:true});
	
});
