$(document).ready(function(){
	
$('.intro1').oneTime(50, function(){
	$('.intro1').fadeIn(900);
});
$('.intro1').oneTime(6500, function(){
	$('.intro1').fadeOut(400);
});
$('.intro2').oneTime(6900, function(){
	$('.intro2').fadeIn(700);
});
$('.intro2').oneTime(15000, function(){
	$('.intro2').fadeOut(400);
});
$('.intro3').oneTime(15400, function(){
	$('.intro3').fadeIn(700);
});
$('.intro3').oneTime(23500, function(){
	$('.intro3').fadeOut(400);
});
$('.intro4').oneTime(23900, function(){
	$('.intro4').fadeIn(700);
});
$('.intro4').oneTime(32000, function(){
	$('.intro4').fadeOut(400);
});
$('.intro4').oneTime(32400, function(){
	$('.intro1').fadeIn(400);
});

/*preloadimages*/
  var newPhoto1 = new Image();
  newPhoto1.src = 'http://www.turningpointcenters.com/images/main/drug_rehabctr8.jpg';
  
  var newPhoto2 = new Image();
  newPhoto2.src = 'http://www.turningpointcenters.com/images/main/drug_rehabctr1.jpg';
  
  var newPhoto3 = new Image();
  newPhoto3.src = 'http://www.turningpointcenters.com/images/main/drug_rehabctr7.jpg';


});