function to_zend_float (str) {
    var str = str.toFixed(2);
    return str.replace('.', ',')
}

function from_zend_float (str) {
    return parseFloat(str.replace(',', '.'))
}

$(window).load(function () {
	$('.module .inner').each(function () {
		if ($(this).parent().attr('id') != 'clientpanel') {
			$(this).css('height', $(this).height()-108);
		} else {
			$(this).css('height', $(this).height()-108);			
		}
	});
	$('#container .recommended.products li .photo').vAlign(); 
	//$('input[name^="product_submit"]').click(function () {
	//	$(this).effect("transfer", { to: $("#cart_overview") }, 1000);
	//});

});

$(document).ready(function () {
	//$('#top .menu li:first').css('display', 'none');	
	$('#top .menu li:last').prev().css('display', 'none').prev().prev().css('display', 'none');
	//$('#footer .menu li:first').css('display', 'none');	
	
	$( "#newsletter_radio" ).buttonset();

});

