var theInt;
	function stopSlides(){
		clearInterval(theInt);
	}
	function triggerClick(){
		$("div.categoryHeader > .carousel-next").trigger('click');
	}
	function triggerIntro(){
		theInt = setInterval(triggerClick,6000);
		window.setTimeout(stopSlides, 23500);
	}

	$(document).ready(function(){
		$('.sideBar > ul > li > .widgettitle').each(function(i){
		var iHtml = $(this).html();
		$(this).html("<div class='sbTitWrap'><div class='sbTitPre'>&nbsp;</div><div class='sbTitBg'>"+iHtml+"</div><div class='sbTitPost'>&nbsp;</div><div class='clearE'>&nbsp;</div></div>");
		});
		$('.content > h2').each(function(i2){
			var iHtml = $(this).html();
			$(this).html("<div class='titWrap'><div class='titPre'>&nbsp;</div><div class='titBg'>"+iHtml+"</div><div class='titPost'>&nbsp;</div><div class='clearE'>&nbsp;</div></div>");
		});
		$(".says").html("escribi&oacute;");
		$(".commentmetadata").html("")
		$(".avatar-default").hide();
		$("#logo").click(function(){
			window.location.href="index.php";
		});
		$(".actThumb").mouseover(function(){
			$(this).children("h3").show();
		});
		$(".actThumb").mouseout(function(){
			$(this).children("h3").hide();
		});
		if($.browser.msie && $.browser.version=="6.0"){
			$("#zeStylesheet").attr("href","");
		}
		$("div.portaWrapper").carousel({
			dispItems:5
		});
		$("div.categoryHeader").carousel({
			loop:true
		});
		triggerIntro();
		$("#lastSlide").click(function(){
			triggerClick();
			triggerIntro();
		})
	});
	var addthis_config = {
		username: "dlinke"
	}
	loadDetection();