/* Output email-addess */
function safemail (part1, part2, text) {
	var email = part1 +'@'+ part2;

	if (! text) text = email;

	document.write('<a href="mailto:'+ email +'">'+ text +'</a>');
}

/* Popup */
function popup (url, name, width, height, status, menu) {
	var props = 'toolbar=no,location=no,directories=no,scrollbars=yes,resizable=yes,copyhistory=no';
	props += ',menu='+ (menu ? menu : 'no');
	props += ',status='+ (status ? status : 'yes');
	props += ',width='+ (width ? width : '500');
	props += ',height='+ (height ? height : '600');

	win = window.open(url, name, props);
	win.focus();

	return false;
}

function showShoe(id, name, size_small, size_big, price, image){

	$('.productlogo').html('<img src="images/ajax-loading-list">');

	$('.productlogo').html('<div class="productinfo" style="width: 100px;"></div><div class="productimage"></div>');
	
	$('.productimage').html('<img src="images/products/'+image+'">');

	var name = name.split('® ').join('®<br>');
	var name = name.split('®,').join('®<br>');
	
	$('.productinfo').html(name+'<br>'+
	'Mod '+id+'<br>Strl '+size_small+'-'+size_big+
	'<br><h3>'+price+':-</h3>');

	window.scrollTo(0);

}