// JavaScript Document
jQuery(document).ready(function() {


jQuery('#silhouette img').delay(900).fadeIn(700);
jQuery('#homelogo img').show().animate({'opacity':'0'},0, function() {jQuery('#homelogo img').animate({'opacity':'1', 'top':'57px'},1200, 'easeInOutBack'); });

jQuery('a[rel^="prettyPhoto"]').each(function() {
jQuery(this).attr('title', jQuery(this).children('img').attr('alt'));
})

jQuery('#sideswrap img').fadeTo(0,0.5);


jQuery('#sideswrap li div').hover(function() {
jQuery(this).children('img').stop().fadeTo(300,1);	
}, function() {
jQuery(this).children('img').stop().fadeTo(300,0.5);	
});


jQuery('a[rel^="web"]').click(function() {
jQuery('#livechat').stop().delay(500).animate({opacity:0},0).css({'display':'block', 'background-image':'url(style/img/programmer.png)'}).animate({opacity:1,top:20}, 500).delay(4000).animate({opacity:0,top:40}, 500);	
})

jQuery('a[rel^="mixtape"]').click(function() {
jQuery('#livechat').stop().delay(500).animate({opacity:0},0).css({'display':'block', 'background-image':'url(style/img/nominated.png)'}).animate({opacity:1,top:20}, 500).delay(4000).animate({opacity:0,top:40}, 500);	
})


// On Change twitter Input
jQuery('#referselection select').change(function() {
	
if (jQuery("#refer option[value='From Imani']").attr('selected')) 	
{}else{
jQuery('#referselection').animate({'margin-top':'-65px'},300);
}
});


	
jQuery('.albumspace input').click( function() {


 if( jQuery('#sideswrap').hasClass('finished'))
	 {}else {jQuery('#selectform').delay(200).animate({'margin-top':'-158px'},300);}
	
	
});	





jQuery('#1side').click( function() {
jQuery('#sideswrap').fadeTo(300,0, function() {jQuery('#selectform').animate({'margin-top':'0px'},300);});
jQuery('#sideswrap').addClass('finished');
jQuery('#budget').attr('value','$75 - $90 lead');
jQuery('#sides').attr('value','1 sided front cover');
});	


jQuery('#2side').click( function() {
jQuery('#sideswrap').fadeTo(300,0, function() {jQuery('#selectform').animate({'margin-top':'0px'},300);});
jQuery('#sideswrap').addClass('finished');
jQuery('#budget').attr('value','$100 - $125 lead');
jQuery('#sides').attr('value','2 sided front and back cover');
});	


//animate mixtape options


});


jQuery(document).ready( function() {

	
	// Budget change based on album side selection

jQuery('.side1').click( function() {
jQuery('#ready input').attr('value','$75 - $90 lead')
});

jQuery('.side2').click( function() {
jQuery('#ready input').attr('value','$100 - $125 lead')
});

jQuery('.side3').click( function() {
jQuery('#ready input').attr('value','$175 - $200 lead')
});

jQuery('.side4').click( function() {
jQuery('#ready input').attr('value','$230 - $260 lead')
});
	});
