
// js functions for the sochi project



// wait for the DOM to be loaded 
$(document).ready(function() {
			$('.biolink1').mouseover(function(){$('#biography1').toggle()}).mouseout(function(){$('#biography1').toggle()});
			$('.biolink2').mouseover(function(){$('#biography2').toggle()}).mouseout(function(){$('#biography2').toggle()});
			$('#sign_in').click(function(){$('#sign_in_form').toggle();});
			
			
			// wissel footer class
			$('#tac').toggle(
				function(){
					$('#contact_text').hide();
					$('#tac_text').show();
					$('#footer').css({height:"auto"});
				},
				function(){
					$('#tac_text').hide();
					$('#footer').height(21);
				}
			);
			
			
			// wissel footer class
			$('#contactlink').toggle(
				function(){
					$('#tac_text').hide();
					$('#contact_text').show();
					$('#footer').css({height:"auto"});
				},
				function(){
					$('#contact_text').hide();
					$('#footer').height(21);
				}
			);	
			
			

			    $('#login').focus(function () {
         			curval = $(this).val();
         
		         	if(curval == "Login"){
		         		$(this).val('');
		         	}
         
    			});


			    $('#password').focus(function () {
         			curval = $(this).val();
         
		         	if(curval == "Password"){
		         		$(this).val('');
		         	}
         
    			});
		
				
});