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();
	});

 /** Register Domain Names: START **/	
 $("input[type=text]:first").focus();
 $("#checkboxall").click(function(){
   var checked_status = this.checked;
   $("#top_tlds input[type=checkbox]").each(function(){
    this.checked = checked_status;
   });
  });
  $(".sprite-btnFindIt").click(function(){
   if($("#searchBox").attr("value") == ''){
	  $("#searchBox").addClass('error');
	  return false;
   }else{
	  return true;
   }
  });
  $("#searchBox").keypress(function(){
	$(this).removeClass('error');
  });

(function($) {
	$.fn.equalHeights = function(minHeight, maxHeight) {
		tallest = (minHeight) ? minHeight : 0;
		this.each(function() {
			if($(this).height() > tallest) {
				tallest = $(this).height();
			}
		});
		if((maxHeight) && tallest > maxHeight) tallest = maxHeight;
		return this.each(function() {
			$(this).height(tallest).css("overflow","auto");
		});
	}
})(jQuery);
$("#why_register .column").equalHeights();
/** Register Domain Names: END **/	
});
