	function goToByScroll(id){
		$('html,body').animate({scrollTop: $("#"+id).offset().top},'slow');
	}

	function rowOverEffect(object) {
	  object.className = 'moduleRowOver';
	}

	function rowOutEffect(object) {
	  object.className = 'moduleRow';
	}
	
	function sendCartChangeQty (products_id,qty) {	
		$("#shopping-basket-content").load("/ajax/ajax_cart.php", {cart_change: 'Yes', quantity: qty, products_id: products_id}, function(response, status, xhr) {
		  if (status == "error") {
		    var msg = "There was an error loading your basket, please refresh the page.";
		    $("#shopping-basket-content").html(msg + '<br />' + xhr.status + " " + xhr.statusText);
		  } else {
			$("#basket-text").load("/ajax/ajax_cart.php", {cart_action: 'show_basket'}, function(response, status, xhr) {
			  if (status == "error") {
			    var msg = "There was an error loading your basket, please refresh the page.";
			    $("#shopping-basket-content").html(msg + '<br />' + xhr.status + " " + xhr.statusText);
			  }
			});					
		}
		});
	}

	function sendCartRemoveItem (products_id) {	
		$("#shopping-basket-content").load("/ajax/ajax_cart.php", {cart_delete: 'Yes',products_id: products_id}, function(response, status, xhr) {
		  if (status == "error") {
		    var msg = "There was an error loading your basket, please refresh the page.";
		    $("#shopping-basket-content").html(msg + '<br />' + xhr.status + " " + xhr.statusText);
		  } else {
			$("#basket-text").load("/ajax/ajax_cart.php", {cart_action: 'show_basket'}, function(response, status, xhr) {
			  if (status == "error") {
			    var msg = "There was an error loading your basket, please refresh the page.";
			    $("#shopping-basket-content").html(msg + '<br />' + xhr.status + " " + xhr.statusText);
			  }
			});					
		}
		});
	}	
	
	function changeWall () {
		var wall = $("#wall_id").val();
		window.location = wall;
	}
