/**
 * @author Andreas Pihlström
 * @desc Layout jClean Theme
 * @version 1.0

 */
jQuery.fn.jClean = function() {

	
	$("#list").hide();
		
	for (i=0;i<100;i++) {
		$("#path:contains(' / ')").each(function(){
		      $(this).html($(this).html().replace(" / ", ""));
		});
	}		
	var lastActive = $("#path a:last").html();
	$("#path a:last").html("<b>"+lastActive+"</b>");

	var n = $("#list").text();
	if (n == "") {
		$("#list").html("");
		}	

	var c = $("#tags").html();
	if (c != "") {
		$("#tags").html("Tags: "+c).css("padding-bottom","10px");
		}	

	$('#path a').each(
		function() {
			$(this).before($("<br />"));
			}
		);

	$("#list").slideDown('slow');

    $("#path a").click(function(){
   			$("#list").slideUp("fast");
        });
    $("#list a").click(function(){
   			$("#list").slideUp("fast");
        });
	
};
