//functie om een sticker op het plaatje oed te zetten
function reset_image()
{
	//bepaal de breedte van een img
	var widthh = $('.product_img img').css('width');
	var width = widthh.split('p');
	width.pop();
	//width=parseInt(width);
	
	if(width < '200' || width < 200)
	{
		console.log('if');
		console.log(width);
		var sticker_margin = (200 - width) + 40; 
		//zet het plaatje naar links
		$('.product_img').css({'text-align':'left'});
		//console.log(sticker_margin)
		$('.prijs').css('margin-left','-'+sticker_margin+'px');
	}
	else
	{
		console.log('else');
		console.log(width);
		$('.prijs').css('margin-left','-40px');
	}
}



$(function(){
	//mouseovers op de menu buttons
	$('#menu li div:not(.menu_item_active)').hover(function(){
		$(this).removeClass('menu_item');
		$(this).addClass('menu_item_active');
	}, function(){
			$(this).removeClass('menu_item_active');
			$(this).addClass('menu_item');
	});
	

	//zoekbalk
	$('.zoek_input').val('Zoekwoorden....');
	
	$('.zoek_input').click(function(){
		$(this).val('');
		$(this).css({'color':'#000000'});
	});


	//short winkel wagen
	$('.shop_row').hide();
	$('.shop_bottom').hide();

	$('.cart_wrapper').hover(function(){
		$('.shop_row').show();
		$('.shop_bottom').show();
	}, function(){
		$('.shop_row').hide();
		$('.shop_bottom').hide();
	});
	
	
	
});
