// JavaScript Document
$(document).ready(function () {
	
$('.building').css( {backgroundPosition: "20px 0px"} );
$('.fork').css( {backgroundPosition: "460px 0px"} );
// PRELOAD IMAGES	

$.preLoadImages('/ftproot/images/loader.gif',function() {
  /* Pre Load the loader gif first */
  $('<img />').attr({
  	src:'/ftproot/images/loader.gif',
  	id:'loader'
  }).appendTo('#position');
  /* now preload stuff */
  $.preLoadImages(
     [

          '/ftproot/images/if.jpg',
          '/ftproot/images/you.jpg',
          '/ftproot/images/love.jpg',
          '/ftproot/images/to.jpg',
          '/ftproot/images/eat.jpg',
          '/ftproot/images/dot.jpg',
          '/ftproot/images/then.jpg',
          '/ftproot/images/youll.jpg',
          '/ftproot/images/urban.jpg',
          '/ftproot/images/graze.jpg',
          '/ftproot/images/building.png',
          '/ftproot/images/BasaltBG.jpg',
          '/ftproot/images/UrbanGrazeBG.jpg',
          '/ftproot/images/fork.png',
          '/ftproot/images/flame.png'
     ],function(){
          $('#loader').remove();
		  $('.if').fadeIn('fast', function(){
			$('.you').fadeIn('fast', function(){
			  $('.love').fadeIn('fast', function(){
				$('.to').fadeIn('fast', function(){
				  $('.eat').fadeIn('fast', function(){
					$('.dot1').fadeIn('fast', function(){
					  $('.dot2').fadeIn('fast', function(){
						$('.dot3').fadeIn('fast', function(){
						  $('.fork').fadeIn('fast', function(){
							$('#sentence1').fadeOut('slow', function(){
							  $('.then').fadeIn('fast', function(){	
								$('.youll').fadeIn('fast', function(){
								  $('.love2').fadeIn('fast', function(){
									$('.dot4').fadeIn('fast', function(){
									  $('.dot5').fadeIn('fast', function(){
										$('.dot6').fadeIn('fast', function(){
										  $('.building').fadeIn('fast', function(){
											$('#sentence2').fadeOut('slow', function(){
											  $('.building').animate({backgroundPosition: '350px 0px'}, 1000);
												$('.fork').animate({backgroundPosition: '170px 0px'}, 1000, function(){
												$('.urban').fadeIn('fast', function(){
												  $('.graze').fadeIn('fast', function(){
													$('.flame').fadeIn('fast', function(){
													  $('.delay').fadeIn(3000, function () { window.location.href = '/admin/tp_SubscriberOptions.asp'; 
													  });
													  return false;
													});
												  });
												});
											  });
											});
										  });
										});
									  });
									});
								  });
								});
							  });
							});
						  });
						});
					  });
					});
				  });
				});
			  });
			});
		  });

	  });

	});


});





