function showCategs(parent,obj) {
	//debugger;
	$.ajax({
	
		type:"POST",
		url:"/index.php?route=module/category/getChildren/",
		data:'categ_id='+parent,
		success:function(transport) {
			json = eval('('+transport+')')
			$container = $(obj);
			if (obj.children.length == 2) {
				$container.append("<div id='categChildren' style='display:none'>"+json.response+"</div>");
                $(obj.children[2]).slideDown(500);
			}
			else {
				$(obj.children[2]).remove();
			}
		}
	});
}

function toggleCart(cart) {
	
	$cart = $(cart);
	if ($cart.css('display') == "none") {
		$cart.slideDown('slow');	
	}
	else {
		$cart.slideUp('slow');	
	}
}


$(document).ready(function(){
	$("div#slider1").codaSlider({
           autoSlide: true,
           autoSlideInterval: 4000,
           autoSlideStopWhenClicked: true,
		   dynamicArrows:false,
		   dynamicTabs:false,
		});
});
