$(document).ready(function() {
    $('.ProjectImage').cycle({
		fx:     'fade', 
		speed: 900,
		timeout: 4000,
		next:   '.next', 
		prev:   '.previous',
		pause: 1
	});
    $('.ClientTestimonial-Txt').cycle({
		fx:     'fade', 
		speed: 900,
		timeout: 6000,
		next:   '.T-next', 
		prev:   '.T-previous' 
	});	
});

$(document).ready(function() {
	$('.toolTip').hover(
		function() {
		this.tip = this.title;
		$(this).append('<div class="toolTipWrapper">'+this.tip+'</div>');
		this.title = "";
		this.width = $(this).width();
		$(this).find('.toolTipWrapper').css({left:this.width-18})
		$('.toolTipWrapper').fadeIn("slow");
	},
	function() {
		$('.toolTipWrapper').fadeOut("slow");
		$(this).children().remove();
			this.title = this.tip;
		});
	});

function getCaptcha(){
	var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
	var string_length = 8;
	var randomstring = '';
	for (var i=0; i<string_length; i++)
	{
		var rnum = Math.floor(Math.random() * chars.length);
		randomstring += chars.substring(rnum,rnum+1);
	}
	document.getElementById('cap1').value = randomstring;
}