$(document).ready(function() {

/* extra classes for older browsers that dont understand css3 */
$(".list-elements-icons li:nth-child(3n)").addClass("remove");
$(".list-elements-arrows li:first-child").addClass("remove");
$(".list-screenshots li:nth-child(4n)").addClass("remove");

$(".list-screenshots a").hover(function(){
	$(this).find(".hover").show();
	}, function(){
		$(this).find(".hover").hide();
});

$("#testimonials ul").each(function(){
									
	$(this).cycle({
	timeout: 6000, 
	speed: 500, 
	cleartype: true,
	cleartypeNoBg: true
				});
	
});
$(".gotop").click(function(){
          $('html, body').animate({ scrollTop: 0 }, 'slow');
})


/* autoclear function for inputs */
$('.autoclear').click(
function() {
if (this.value == this.defaultValue) {
this.value = '';
}
}
);
$('.autoclear').blur(
function() {
if (this.value == '') {
this.value = this.defaultValue;
}
}
);					   

});


