
		
		// jQuery ------------------------------------
		
		var ta_activeSlide = 0;
		var ta_slides = Array();
		
		$(document).ready(function(){	
			
			if( $.cookie("age_confirmation") == 'confirmed' ){
				$('#age_confirmation').hide();
			}
			
			populateDropDown( '#ac_dd_day', 1, 31 );
			populateDropDown( '#ac_dd_month', 1, 12 );
			populateDropDownReverse( '#ac_dd_year', 2010, 1910 );
			
			$('div#age_confirmation div.ac_content div.ac_forms a.ac_enter').click(function(){
				
				var isVal = true;
				var d = new Date();
				
				if( $('#ac_dd_year').val() == 1992 ){
					
					if(d.getMonth()+1 == $('#ac_dd_month').val() ){
						
						if( $('#ac_dd_day').val() < d.getDate() ){
							isVal = false;
						}
						
					}else if( $('#ac_dd_month').val() < d.getMonth()+1 ){
						isVal = false;
					}
					
					 
				}else if( $('#ac_dd_year').val() > 1992 ){
					isVal = false;
				}
				
				if( isVal == true ){
					$('#age_confirmation').hide();
					$.cookie("age_confirmation", 'confirmed', { expires: 1 });
				}else{
					$('div#age_confirmation div.ac_content div.ac_error').show();
				}
				
			});
					
		});
		
		$(window).resize(function(){
			
			
			
		});		
		
		
		function populateDropDown( div, start, end ) {
			
			for (var i=start; i < end+1; i++) {
				
				var d = i;
				
				if( i <= 9 ){ d = "0"+i }
				
				$(div).html( $(div).html() + '<option value="'+i+'">'+d+'</option>' );
				
			};
			
		}
		
		function populateDropDownReverse( div, start, end ) {
			
			for (var i=start; i > end-1; i--) {
				
				var d = i;
				
				if( i <= 9 ){ d = "0"+i }
				
				$(div).html( $(div).html() + '<option value="'+i+'">'+d+'</option>' );
				
			};
			
		}
