
$(function(){

	$(document).pngFix();
		
	$('.ebook input').focus(function(){
		$(this).val('').css('color','#444');	
	});
	
	quote_them();
	
	if ($.browser.msie){
		$(window).scroll(function(){
			$('div.bottom_tan_repeat').css('bottom','0');
		});
		$(window).resize(function(){
			$('div.bottom_tan_repeat').css('bottom','0');
		});
	}
	
});

var quotes = [
	{
		"quote": "<p>“I have been Tapping for years and have found it to be a pivotal tool in creating the life of my dreams. Finally a film that captures this technique in a heartfelt, down to earth and passionate way. This information is essential if you want to live your best life!",
		"expert": "JACK CANFIELD",
		"about": " co-author of “Chicken Soup for the Soul Series”"	
	},
	{
		"quote": "<p>“The Tapping Solution should be in every home. If you find acupuncture, chiropractic and alternative healing methods to be part of your life, then you MUST watch this film and learn this simple and effective healing technique.”",
		"expert": "ARIELLE FORD",
		"about": " author of “The Soulmate Secret”"
	},
	{
		"quote": "<p>“Stunning! This eye-opening film reveals how ANYONE can heal virtually anything with tapping. I've used it for years and highly recommend it.”",
		"expert": "JOE VITALE",
		"about": " best-selling author of “The Attractor Factor”"
	},
	{
		"quote": "“In all my years of clinical experience I have never encountered a single healing intervention as consistently effective as Tapping. This film powerfully captures the enormous healing potential of this truly amazing tool.”",
		"expert": "DR. MERCOLA",
		"about": " founder of Mercola.com, the world’s most visited health website."
	}
];

var i = 0;
var quote_them = function(){
	if (i === quotes.length) i = 0;
	var quote_content = '<p>' + quotes[i].quote + '</p>\n';
	quote_content += '<span><span>' + quotes[i].expert + '</span>\n';
	quote_content += quotes[i].about + '</span>';
	$('#q_content').append(quote_content);
	$('#q_content').fadeIn(500);
	setTimeout('rotate_quote()', 10000);
	i += 1;
}
var rotate_quote = function(){
	$('#q_content').fadeOut(600, function(){
		$(this).empty().hide();
		quote_them();	
	})
}














