$(document).ready(function(){	
//toggle form drop-downs
	$('#newsletter').click(function(){$('#newsForm').toggle('fast',function(){	});$('#loginForm').toggle('fast',function(){	});	});
	
$('#loginLink').click(function(){	
	$('#loginForm').toggle('fast',function(){	});
	$('#newsForm').toggle('fast',function(){	});
	$('.loginNote').hide();	
});
$('#log').click(function(){
		$('.loginNote').show();	
		return false;
});
//toggle team bios and service details	
	$('.viewBio').click(function(){	showTeam($(this).attr('id'));	});
	$('.details').click(function(){	showDetails($(this).attr('id'));	});

//toggle recruitment	
	$('.viewBioRecruitment').click(function(){	showRecruit($(this).attr('id')); });

//animate the social network tabs on hover	
	$("#twitterTab").hover(function(){$(this).animate({right: '-10px'},80);	},function(){$(this).animate({right:  '5px'},300);	});	
	$("#inTab").hover(function(){$(this).animate({right:'7px'},80);},function(){	$(this).animate({right: '17px'},300);});
	$("#vimeoTab").hover(function(){$(this).animate({right:'7px'},80);},function(){	$(this).animate({right: '17px'},300);});
	$("#rssTab").hover(function(){$(this).animate({right:'7px'},80);},function(){	$(this).animate({right: '17px'},300);});

if($('#DynamicSidePanel').length!=0){$('#DynamicSidePanel').tinyscrollbar({ axis: 'y'});	}
//cross-browser placeholder attributes	
	$("textarea").placeholder(); 
	$("input:text").placeholder(); 
	$("input:password").placeholder();
	
	$(".dynamicButton").css({ opacity: 0.2 });
	$(".dynamicButton").mouseover(function(){
		$(this).css({ opacity: 1 });
		});
	$(".dynamicButton").mouseout(function(){
		$(this).css({ opacity: 0.21 });
	});
	$(".inactive").css({ opacity: 0.5 });
	
	$('.map').click(function (e) {
		jQuery.modal('<iframe src="'+this.href+'/includes/map.php"></iframe>');
		return false;
	});
	
	$('#newsForm').show();
	
});
