var root_path = "/";
$(".imgButton").click(function () {
		$(this).get(0).disabled = true;
		$(this).fadeTo("fast", 0.5);
		$(this).get(0).form.submit();
		return true;
	});
$(function(){ $('#tabs').tabs(); });
$(document).ready(function () {
	$("#successCarousel").jCarouselLite({btnNext:".next", visible:1, speed:500});
	$(".successSiteImage").hover(function () {
		$(this).animate({bottom:-55}, 500);
	}, function () {
		$(this).animate({bottom:-75}, 500);
	});
});
if (document.images) {
	pic1 = new Image(38, 88);
	pic1.src = "/imgs/global/closeSlide.png";
}
$(document).ready(function () {
	$("#templates").jCarouselLite({btnNext:".tempNext_slide", btnPrev:".tempPrev_slide", visible:3, speed:500});
	$("#templates").hide();
	$("#go").click(function () {
		this.blur();
	});
	$("#go").toggle(function () {
		$("#tempBGtop").animate({width:"671px"}, 500);
		$(".tempSlide, #tempBGbottom").animate({width:"632px"}, 500, function () {
			$("#tempLeftArrow, #tempRightArrow, #tempTitle, #templates").show();
			$(".tempOpenSlide a").empty();
			$(".tempOpenSlide a").append("<img src='/imgs/global/closeSlide.png' width='38' height='120' alt='Close' border='0' />");
			$(".tempOpenSlide img").ifixpng();
		});
	}, function () {
		$("#tempLeftArrow, #tempRightArrow, #tempTitle, #templates").hide();
		$("#tempBGtop").animate({width:"74px"}, 500);
		$(".tempSlide, #tempBGbottom").animate({width:"0px"}, 500);
		$(".tempOpenSlide a").empty();
		$(".tempOpenSlide a").append("<img src='/imgs/global/openSlide.png' width='74' height='157' alt='Close' border='0' />");
		$(".tempOpenSlide img").ifixpng();
	});
});