		
$(document).ready(function () {
  $('#homeblock1').fadeIn('300', function() {
        $('#sticker').fadeIn('slow', function() {
        // Animation complete
  		});

	  	
  		$('#box1').fadeIn('100', function() {
	        $('#box2').fadeIn('100', function() {
			    //
	  		});
	  		$('#box3').fadeIn('100', function() {
			         $('#box4').fadeIn('100', function() {
			         	//
			  		});
			  		$('#box5').fadeIn('100', function() {
							$('#box6').fadeIn('100', function() {
								
							});
							$('#box7').fadeIn('100', function() {
									$('#box8').fadeIn('100', function() {
									// Animation complete
									});
								});
				  		});
		  		});
  		});
  });
  
  

  
  
$('.rollover')
  .css('cursor', 'pointer')
  .click(
    function(){
	    if(this.id=='box1'){location.href='/2012/vote';}
	    if(this.id=='box2'){location.href='/home';}
	    if(this.id=='box3'){location.href='/2012/pastwinners';}
	    if(this.id=='box4'){location.href='/2012/vote';}
	    if(this.id=='box5'){location.href='/2012/vote';}
	    if(this.id=='box6'){location.href='/2012/vote';}
	    if(this.id=='box7'){location.href='/2012/contestdetails';}
	    if(this.id=='viewmorebutton'){location.href='/contact';}
	    if(this.id=='uploadbutton'){location.href='/contact';}
    }
  )
  .hover(
    function(){
      $(".textlabelblock", this).stop().animate({bottom:'0px'},{queue:false,duration:160});
    },
    function(){
      $(".textlabelblock", this).stop().animate({bottom:'-50px'},{queue:false,duration:160});
    }
  );
  
  $('.rolloverbutton')
  .css('cursor', 'pointer')
  .click(
    function(){
	    if(this.id=='viewmorebutton'){location.href='/2012/vote';}
	    if(this.id=='uploadbutton'){location.href='/2012/contestdetails';}
    }
  )
  .hover(
    function(){
      $(this).css({background:'#d32981'});
    },
    function(){
      $(this).css({background:'#db216c'});
    }
  );
  
  
});



