$(document).ready(function(){
						   $(".latest_img").fadeTo("slow", 0.3); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $(".latest_img").hover(function(){
						   $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("slow", 0.3); // This should set the opacity back to 30% on mouseout
						   });
						   
						
						//-------------------------------WORKS MENU (UPDATE)
						   
						   
						   
						   
						   
						   
						    var id = 1; //def work

						  
						  
						   
						   
						   $("#work_" + id).show(); //default work
						   
						    $("#but_1").click(function(){
								if ( $('#work_1').is(':hidden') ) 
									{
									$("#work_"+ id).fadeTo("1000", 0, function(){$(this).hide(); 
									$("#work_1").css({opacity: 0});														  
									$("#work_1").show();													 
									$("#work_1").fadeTo("1000", 1.0);						
									id = 1;														 
																							 });
											
									}
										
    						});	
						   $("#but_2").click(function(){
								if ( $('#work_2').is(':hidden') ) 
									{
									$("#work_"+ id).fadeTo("1000", 0, function(){$(this).hide(); 
									$("#work_2").css({opacity: 0});																  
									$("#work_2").show();													 
									$("#work_2").fadeTo("1000", 1.0);						
									id = 2;														 
																							 });
											
									}
										
    						});
						   $("#but_3").click(function(){
								if ( $('#work_3').is(':hidden') ) 
									{
									$("#work_"+ id).fadeTo("1000", 0, function(){$(this).hide(); 
									$("#work_3").css({opacity: 0});									
									$("#work_3").show();													 
									$("#work_3").fadeTo("1000", 1.0);						
									id = 3;														 
																							 });
								
									
									
									}
										
    						});
						   $("#but_4").click(function(){
								if ( $('#work_4').is(':hidden') ) 
									{
									$("#work_"+ id).fadeTo("1000", 0, function(){$(this).hide(); 
									$("#work_4").css({opacity: 0});									
									$("#work_4").show();													 
									$("#work_4").fadeTo("1000", 1.0);						
									id = 4;														 
																							 });
											
									}
										
    						});
						   $("#but_5").click(function(){
								if ( $('#work_5').is(':hidden') ) 
									{
									$("#work_"+ id).fadeTo("1000", 0, function(){$(this).hide(); 
									$("#work_5").css({opacity: 0});									
									$("#work_5").show();													 
									$("#work_5").fadeTo("1000", 1.0);						
									id = 5;														 
																							 });
											
									}
										
    						});
						   $("#but_6").click(function(){
								if ( $('#work_6').is(':hidden') ) 
									{
									$("#work_"+ id).fadeTo("1000", 0, function(){$(this).hide(); 
									$("#work_6").css({opacity: 0});									
									$("#work_6").show();													 
									$("#work_6").fadeTo("1000", 1.0);						
									id = 6;														 
																							 });
											
									}
										
    						});
						   $("#but_7").click(function(){
								if ( $('#work_7').is(':hidden') ) 
									{
									$("#work_"+ id).fadeTo("1000", 0, function(){$(this).hide(); 
									$("#work_7").css({opacity: 0});									
									$("#work_7").show();													 
									$("#work_7").fadeTo("1000", 1.0);						
									id = 7;														 
																							 });
											
									}
										
    						});
						   $("#but_8").click(function(){
								if ( $('#work_8').is(':hidden') ) 
									{
									$("#work_"+ id).fadeTo("1000", 0, function(){$(this).hide(); 
									$("#work_8").css({opacity: 0});									
									$("#work_8").show();													 
									$("#work_8").fadeTo("1000", 1.0);						
									id = 8;														 
																							 });
											
									}
										
    						});
						   $("#but_9").click(function(){
								if ( $('#work_9').is(':hidden') ) 
									{
									$("#work_"+ id).fadeTo("1000", 0, function(){$(this).hide(); 
									$("#work_9").css({opacity: 0});									
									$("#work_9").show();													 
									$("#work_9").fadeTo("1000", 1.0);						
									id = 9;														 
																							 });
											
									}
							
							
							
    						});
						   $("#but_10").click(function(){
								if ( $('#work_10').is(':hidden') ) 
									{
									$("#work_"+ id).fadeTo("1000", 0, function(){$(this).hide(); 
									$("#work_10").css({opacity: 0});									
									$("#work_10").show();													 
									$("#work_10").fadeTo("1000", 1.0);						
									id = 10;														 
																							 });
											
									}
							
    						});
						   $("#but_11").click(function(){
								if ( $('#work_11').is(':hidden') ) 
									{
									$("#work_"+ id).fadeTo("1000", 0, function(){$(this).hide(); 
									$("#work_11").css({opacity: 0});									
									$("#work_11").show();													 
									$("#work_11").fadeTo("1000", 1.0);						
									id = 11;														 
																							 });
											
									}	
								});
							$("#but_12").click(function(){
								if ( $('#work_12').is(':hidden') ) 
									{
									$("#work_"+ id).fadeTo("1000", 0, function(){$(this).hide(); 
									$("#work_12").css({opacity: 0});									
									$("#work_12").show();													 
									$("#work_12").fadeTo("1000", 1.0);						
									id = 12;														 
																							 });
											
									}	
								});
							$("#but_13").click(function(){
								if ( $('#work_13').is(':hidden') ) 
									{
									$("#work_"+ id).fadeTo("1000", 0, function(){$(this).hide(); 
									$("#work_13").css({opacity: 0});									
									$("#work_13").show();													 
									$("#work_13").fadeTo("1000", 1.0);						
									id = 13;														 
																							 });
											
									}	
								});
						   
						  //----------------------------------
						 
						
								  $(".work").hover(function(){
										$(this).animate({ opacity: "1.0", paddingLeft: "30px", color: "#FFFFFF"}, 200 );

								   },function(){
									 	$(this).animate({ opacity: "0.6", paddingLeft: "15px"}, 200 );
								   });
						  
						  
						  
						  

						  
						  
						   
						   });

$(document).ready(function(){
						   $(".fade").fadeTo("slower", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   
						   });


$(document).ready(function(){
						   $(".fade").fadeTo("fast", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   
						   });


$(document).ready(function(){
						   $(".error").fadeTo("slower", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   
						   });

$(document).ready(function(){
						   $(".confirm").fadeTo("slower", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   
						   });
						   


$(document).ready(function(){
						   
						   $(".gallery_min").hover(function(){
						   $(this).fadeTo("med", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("med", 0.6); // This should set the opacity back to 30% on mouseout
							   	});
						   });	

						   
$(document).ready(function(){
						   $(".work_desc").fadeTo("slower", 1.0); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   
						   });	   	
        	   
        
		
function player()
{
	document.getElementById('player1').style.display='';
}

function player_close()
{
	document.getElementById('player1').style.display='none';
}
     