$('#right').cycle({
    fx:      'scrollRight',
    next:   '#right',
    timeout:  5000,
    easing:  'backinout',
	next: true

});

$('#newsitems').cycle({
    fx:      'scrollUp',
    next:   '#newsitems',
    timeout:  7000,
	next: true

});

$(document).ready(function(){

	$(".btn-slide").click(function(){
		$("#panel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	 $("form#whois").submit(function(){
		$("#domains").slideDown("slow");
		$('#domains').load("/whois/domains.php?domain="+document.getElementById("domain_value").value);
		return false;
	});
	
	 $("form#whois_all").submit(function(){
		$("#domains_all").slideDown("slow");
		$('#domains_all').load("/whois/domains_all.php?domain="+document.getElementById("domain_value").value);
		return false;
	});
	
	$("#domain_value").click(function(){
		this.value = "";
	});
	

	$("#view_all_specs").click(function(){
		$("#specs").slideToggle(); 

		//alert("/test/process.php?domain="+document.getElementById("domain_value").value);
	});
	 
});
