jQuery(window).load(function() {
	var maxHeight = 0;
	if (jQuery('div.content_wrapper div.lft').height() > maxHeight)
		maxHeight = jQuery('div.content_wrapper div.lft').height();
	if (jQuery('div.content_wrapper div.middle').height() > maxHeight)
		maxHeight = jQuery('div.content_wrapper div.middle').height();
	if (jQuery('div.content_wrapper div.rgt').height() > maxHeight)
		maxHeight = jQuery('div.content_wrapper div.rgt').height();
	jQuery('div.content_wrapper div.lft').css({height: maxHeight+70 + 'px'});
	jQuery('div.content_wrapper div.rgt').css({height: maxHeight +70+ 'px'});
	jQuery('div.content_wrapper div.middle').css({height: maxHeight+70 + 'px'});
	
	jQuery('img.order_button').hover(function() {
		if (this.src.match(/cr/)) {
		    jQuery(this).attr('src','/img/button_order_cr_hover.gif');
		} else {
	   		jQuery(this).attr('src','/img/button_order_hover.gif');
	   	}
	}, function() {
		if (this.src.match(/cr/)) { 
		    jQuery(this).attr('src','/img/button_order_cr.gif');
		} else {
	   		jQuery(this).attr('src','/img/button_order.gif');
	   	}
	});	
	jQuery('div.copyright').show();
});

jQuery(document).ready(function(){ 
    jQuery(document).pngFix(); 
    jQuery('div#top_menu_div_id ul li').hover(function() {
	   	jQuery(this).addClass('hover');
	}, function() {
	    jQuery(this).removeClass('hover');
	});
	jQuery('ul.banner_slide').innerfade({ speed: 'slow', timeout: 6000, type: 'sequence', containerheight: '224px'});
}); 

var Webshop = {

	setSendcosts	: function(state)
	{
		jQuery.get('/winkelwagen.html?ajax_call=true&action=setSendcosts&state='+state,
		  	function(data){
		  		if (data) {
		  			var objData = eval('(' + data + ')');
		  			if (state == 1) {
						jQuery('tr.sendcosts_div').show();  
					} else {
		  				jQuery('tr.sendcosts_div').hide();
		  			}
		  			jQuery('span.total_amount').text(objData.totalCosts.toFixed(2));
		  		} 
		  	}
		);
	}
}

