//-------------------------------------------------------------
// general form submit confirmation	
function sendForm() {
	return confirm("Is all the information correct?\n Hit OK to submit or CANCEL to make changes.");
}

//-----------------------------------------------------------
// welcome page stuff

function swapAuthors(image,page) {		
	document.getElementById('author-content').style.background = "url(http://ttfuture.org/files/2/images/home/authors/" + image + "_author.jpg)";		
	document.getElementById('author-url').href = '/authors/' + page;
}

function swapVideos(image,page) {		
	document.getElementById('video-content').style.background = "url(http://ttfuture.org/files/2/images/home/store/" + image + ".jpg)";		
	document.getElementById('video-url').href = '/store/' + page;
}

function swapAudios(image,page) {		
	document.getElementById('audio-content').style.background = "url(http://ttfuture.org/files/2/images/home/store/" + image + ".jpg)";		
	document.getElementById('audio-url').href = '/store/' + page;
}

function swapBooks(image,page) {		
	document.getElementById('book-content').style.background = "url(http://ttfuture.org/files/2/images/home/store/" + image + ".jpg)";		
	document.getElementById('book-url').href = '/store/' + page;
}
//-----------------------------------------------------------
// jquery timer plugin, for welcome page

	jQuery.timer = function(time,func,callback){
		var a = {timer:setTimeout(func,time),callback:null}
		if(typeof(callback) == 'function'){a.callback = callback;}
		return a;
	};
	
	jQuery.clearTimer = function(a){
		clearTimeout(a.timer);
		if(typeof(a.callback) == 'function'){a.callback();};
		return this;
	};
//----------------------------------------------------------------
