// JavaScript Document

var qImageCount = 0; 
var qFadeSpeed = 1200;
var qFadeDelay = 1500;
var qPauseTransition = 7000;
$(document).ready(function() {
	setTimeout(function() { qFadeImageOut(qImageCount) }, qFadeDelay);
});

function qFadeImageIn(){
	$('.fadeQuote').fadeIn(qFadeSpeed, function() {
	});
}

function qFadeImageOut(Var){
	qImageCount = Var
	$('.fadeQuote').fadeOut(qFadeSpeed, function() {
		qImageCount++;
		$('.ajax').load( theme+'handlers/moveQuotes.php?q='+qImageCount, function(response, status, xhr) {
			//alert(response);
			qFadeImageIn(qImageCount)
		});
		// alot of this is handled in handlers/slider.php
	});
}
