function thexTog(name)
{
	$('li[name="'+name+'"]').toggle();
}

//DD_roundies.addRule('.moz', '5px', true);

$(document).ready(function(){
	//Examples of how to assign the ColorBox event to elements
	//$("a[rel='example1']").colorbox();
	//$("a[rel='example2']").colorbox({transition:"fade"});
	//$("a[rel='example3']").colorbox({transition:"none", width:"75%", height:"75%"});
	//$("a[rel='example4']").colorbox({slideshow:true});
	
	//$(".aPlisting").colorbox({}, function(){
		//document.write('Produs adaugat');
	//});
	
	//$(".colorbox").colorbox();
	//$(".youtube").colorbox({iframe:true, width:650, height:550});
	//$(".iframe").colorbox({width:"80%", height:"80%", iframe:true});
	//$(".inline").colorbox({width:"50%", inline:true, href:"#inline_example1"});
	
	//Example of preserving a JavaScript event for inline calls.
	/*
	$("#click").click(function(){ 
		$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
		return false;
	});
	*/
	
	// Your puppet's here
	$("#cauta").defaultvalue("cauta un produs");
	$(document).pngFix();
	
	// Slide category
		lastBlock = $(".a1");
		maxWidth = 290;
		minWidth = 98;	
		
		$("#offer li div").hover(	
			function(){			
				$(lastBlock).animate({width: minWidth+"px"}, { queue:false, duration:400 });
				$(this).animate({width: maxWidth+"px"}, { queue:false, duration:400});
				currentBlock = this;				
				lastBlock = this;			
			}
		);
	
	
});

