$(document).ready(function(){
	
	
	
// Dropdown Controls
	
	$(".central_nav").change(function() {
	
		if ( $(this).val() === "art") {
			$('.page_outer').css('height', 'auto');
			$('.page_inner').css('height', 'auto');
			$('.center_parent_td').css('height', 'auto');
			$('.center_parent').css('height', 'auto');
			$('body').css('height', 'auto');
			$('.art_content').fadeIn();
			$('.network_button_01').css('left', '1000%');
			$('.network_button_02').css('left', '1000%');
			$('.network_button_03').css('left', '1000%');
			$('.network_content').hide();
			$('.page_inner').css('background-color', '#FFF5EB');
			$('.cody_pallo_logo').fadeIn();
			$('.fine_print').fadeIn();
			}
		
		if ( $(this).val() === "resume"){
			document.location.href="/media/pdfs/codypallo_artist_resume.pdf"
			}
			
		if ( $(this).val() === "music") {
	      	document.location.href="http://www.mixingnumbers.com"
	      	}	
		
		if ( $(this).val() === "toys"){
			document.location.href="http://www.utopiankey.com"
			}
			
		if ( $(this).val() === "blog") {
	      	document.location.href="http://www.chimesandrhymes.com"
	      	}
	      	
		if ( $(this).val() === "pinterest") {
	      	document.location.href="http://pinterest.com/codypallo/"
	      	}	      				
		
		if ( $(this).val() === "network"){
			$('.art_content').hide();
			$('.network_content').fadeIn();
			$('.page_inner').css('background-color', '#ffffff');
			$('.page_outer').css('height', '50%');
			$('.fine_print').hide();
			$('.cody_pallo_logo').fadeIn();
			$('.network_button_01').animate({left: "-60px"}, 500);
			setTimeout(function(){$('.network_button_02').animate({left: "-18px"}, 500);},500);
			setTimeout(function(){$('.network_button_03').animate({left: "24px"}, 500);},1000);
			}
		
		if ( $(this).val() === "curation") {
	      	document.location.href="http://www.burningturnip.com"
	      	}
	      	
		if ( $(this).val() === "") {
	      	$(this).val('----- Cody Pallo -----');
			$('.page_inner').css('background-color', '#ffffff');
			$('.center_parent_td').css('height', '100%');
			$('.center_parent').css('height', '100%');
			$('.page_inner').css('height', '100%');
			$('body').css('height', '100%');
			$('.page_outer').css('height', '80%');
			$('.cody_pallo_logo').hide();
			$('.fine_print').hide();
			$('.art_content').hide();
			$('.network_button_01').css('left', '1000%');
			$('.network_button_02').css('left', '1000%');
			$('.network_button_03').css('left', '1000%');
			$('.network_content').hide();
	      	}
	      	
		if ( $(this).val() === "//////////////////////") {
	      	$(this).val('----- Cody Pallo -----');
			$('.page_inner').css('background-color', '#ffffff');
			$('.center_parent_td').css('height', '100%');
			$('.center_parent').css('height', '100%');
			$('.page_inner').css('height', '100%');
			$('body').css('height', '100%');
			$('.page_outer').css('height', '80%');
			$('.cody_pallo_logo').hide();
			$('.fine_print').hide();			
			$('.art_content').hide();
			$('.network_content').fadeOut();
	      	}
	      	
		if ( $(this).val() === "----- Cody Pallo -----") {	      	
			$('.page_inner').css('background-color', '#ffffff');
			$('.center_parent_td').css('height', '100%');
			$('.center_parent').css('height', '100%');
			$('.page_inner').css('height', '100%');
			$('body').css('height', '100%');
			$('.page_outer').css('height', '80%');
			$('.cody_pallo_logo').hide();
			$('.fine_print').hide();
			$('.art_content').hide();
			$('.network_button_01').css('left', '1000%');
			$('.network_button_02').css('left', '1000%');
			$('.network_button_03').css('left', '1000%');
			$('.network_content').hide();

	      	}	      	
		});		
	
	
	
// Uniform
	
	$("select, input:checkbox, input:radio, input:file").uniform();
	

	
// Spritely
	
	$('.art_item_slider').pan({fps: 100, speed: .7, dir: 'left'});	
	
	
	});

	
// Radio Button Controls

function art_item_07() {
	$('.art_item_container').animate({height: "395px", width: "600px", speed: 50000});
	$('.art_item_slider').animate({left: "0px"}, 1000);
	$('#art_item_01').fadeOut();
	$('#art_item_02').fadeOut();
	$('#art_item_03').fadeOut();
	$('#art_item_04').fadeOut();
	$('#art_item_05').fadeOut();
	$('#art_item_06').fadeOut();		
	setTimeout(function(){$('#art_item_07').fadeIn();},1400);
	$('.art_dot_07').addClass('visited');	
	}
	
function art_item_06() {
	$('.art_item_container').animate({height: "375px", width: "600px", speed: 50000});
	$('.art_item_slider').animate({left: "0px"}, 1000);
	$('#art_item_01').fadeOut();
	$('#art_item_02').fadeOut();
	$('#art_item_03').fadeOut();
	$('#art_item_04').fadeOut();
	$('#art_item_05').fadeOut();
	setTimeout(function(){$('#art_item_06').fadeIn();},1400);	
	$('#art_item_07').fadeOut();		
	$('.art_dot_06').addClass('visited');	
	}
	
function art_item_05() {
	$('.art_item_container').animate({height: "425px", width: "600px", speed: 50000});
	$('.art_item_slider').animate({left: "0px"}, 1000);
	$('#art_item_01').fadeOut();
	$('#art_item_02').fadeOut();
	$('#art_item_03').fadeOut();
	$('#art_item_04').fadeOut();
	setTimeout(function(){$('#art_item_05').fadeIn();},1400);	
	$('#art_item_06').fadeOut();
	$('#art_item_07').fadeOut();		

	$('.art_dot_05').addClass('visited');	
	}
	
function art_item_04() {
	$('.art_item_container').animate({height: "600px", width: "461px", speed: 50000});
	$('.art_item_slider').animate({left: "-1000px"}, 1000);
	$('#art_item_01').fadeOut();
	$('#art_item_02').fadeOut();
	$('#art_item_03').fadeOut();
	setTimeout(function(){$('#art_item_04').fadeIn();},1400);
	$('#art_item_05').fadeOut();
	$('#art_item_06').fadeOut();
	$('#art_item_07').fadeOut();		
	$('.art_dot_04').addClass('visited');	
	}
	
function art_item_03() {
	$('.art_item_container').animate({height: "374px", width: "550px", speed: 50000});
	$('.art_item_slider').animate({left: "-2000px"}, 1000);
	$('#art_item_01').fadeOut();
	$('#art_item_02').fadeOut();
	setTimeout(function(){$('#art_item_03').fadeIn();},1400);
	$('#art_item_04').fadeOut();
	$('#art_item_05').fadeOut();
	$('#art_item_06').fadeOut();
	$('#art_item_07').fadeOut();		
	$('.art_dot_03').addClass('visited');	
	}
	
function art_item_02() {
	$('.art_item_container').animate({height: "519px", width: "400px", speed: 50000});
	$('.art_item_slider').animate({left: "-3000px"}, 1000);
	$('#art_item_01').fadeOut();
	setTimeout(function(){$('#art_item_02').fadeIn();},1400);
	$('#art_item_03').fadeOut();
	$('#art_item_04').fadeOut();
	$('#art_item_05').fadeOut();
	$('#art_item_06').fadeOut();
	$('#art_item_07').fadeOut();		
	$('.art_dot_02').addClass('visited');
	}
	
function art_item_01() {
	$('.art_item_container').animate({height: "504px", width: "400px", speed: 50000});
	$('.art_item_slider').animate({left: "-4000px"}, 1000);
	setTimeout(function(){$('#art_item_01').fadeIn();},1400);
	$('#art_item_02').fadeOut();
	$('#art_item_03').fadeOut();
	$('#art_item_04').fadeOut();
	$('#art_item_05').fadeOut();
	$('#art_item_06').fadeOut();
	$('#art_item_07').fadeOut();	
	$('.art_dot_01').addClass('visited');
	}		
	
function clear_dots() {	
	$('.visited').removeClass('visited');	
	}
	
	
	
	
	
// Art Item Fade Out	
	
function art_item_fade_out() {	
	$('#art_image_01').fadeTo('slow', 1);
	$('#art_image_label_01').fadeOut();	
	$('#art_image_02').fadeTo('slow', 1);
	$('#art_image_label_02').fadeOut();	
	$('#art_image_03').fadeTo('slow', 1);
	$('#art_image_label_03').fadeOut();	
	$('#art_image_04').fadeTo('slow', 1);
	$('#art_image_label_04').fadeOut();	
	$('#art_image_05').fadeTo('slow', 1);
	$('#art_image_label_05').fadeOut();	
	$('#art_image_06').fadeTo('slow', 1);
	$('#art_image_label_06').fadeOut();	
	$('#art_image_07').fadeTo('slow', 1);
	$('#art_image_label_07').fadeOut();						
	}
