function dispmenu(div)
		
	{
		  $('#show-'+div).show();
	
	}

	
	
	function remove_recently_viewed_item( gid )
	{
		$.get("/layout_inc/ajax/ajax-processor.php?unset_recently_viewed="+gid);
		$("#recently_viewed_"+gid).remove();
		
		if($('#productbottom .cv li').size()==0)
		{
			$("#all_recently_viewed_items").remove();	
		}
	}
	
	function change_currency( value )
	{
		$("#productPriceToChange").html(value);
	}
	
	function refresh_mini_basket()
	{
		$("#ajax-mini-basket").load("/layout_inc/basket-mini.php");	
	}
	
	
	function add_to_basket( post )
	{
		var form = $(post).serialize();
		var product_name = post.product_name.value;

		$.post("/layout_inc/ajax/ajax-processor.php", form, function(data)
		{					
			refresh_mini_basket();		
			$("#ajax-product-name").html(product_name+" added to your basket.")
			$("#ajax-mini-basket-added").fadeIn("slow").delay(2000).fadeOut("slow");
			
			$("#ajax-product-name-2").html(product_name+" added to your basket.")
			$("#ajax-mini-basket-added-2").fadeIn("slow").delay(2000).fadeOut("slow");

		});

		return false;
	}
	
	
	
	function main_change(domain,image){
		
		$("#main-image").html("<p><a href='"+domain+"assets/images/products/large/"+image+"' class='MYCLASS'><img src='"+domain+"assets/images/products/med/"+image+"' border='0' /></a></p>");
	     jQuery('.MYCLASS').jqzoom({
	            zoomType: 'innerzoom'
	     });  
	}
Shadowbox.init();
	
	
	
