function manageOrderSend() {
  document.getElementById("sendbutton").style.display = 'none';
  document.getElementById("wait").style.display = 'block';
}

function libreka(ean) {
	settings="width=600,height=750,scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";
	win=window.open('http://bookview.libreka.de/retailer/urlResolver.do?id='+ean+'&retid=100316','libreka',settings);
	return false;
}

$(document).ready(function() {
	var options = {
            styleClass: "asnSelect",
            jScrollPane: 1,
            optionsTop: "17px"
    }
	$('.asnGroup select').styleSelect(options);
	$('.asnGroup li').click(function() {
		location.href = $(this).attr('id');
	});
	$('.asnGroup h3').click(function() {
		if ($(this).parent().hasClass('asnclose')) {
			$(this).parent().children('.asnitems').slideDown(400);
			$(this).parent().removeClass('asnclose');
			$(this).parent().addClass('asnopen');
			$.cookie($(this).parent().attr('id'),'open',{expires: 365});
		}
		else {
			$(this).parent().children('.asnitems').slideUp(400);
			$(this).parent().removeClass('asnopen');
			$(this).parent().addClass('asnclose');
			$.cookie($(this).parent().attr('id'),'close',{expires: 365});
		}
	});
});

function unShowCartNew() {
	$('#shoppingcartnew').fadeOut(400);
}
