$(document).ready(function(){

	$("a").hover(
		function(){
			$(this).css('opacity', '0.5');
		}, function(){
			$(this).css('opacity', '1');
		}
	);
	
	/*
$("#footlinks a").click(function(e){
		e.preventDefault();
	});
*/
	$(".page_content").each(function(){
		$("p:first", this).css('margin-top' ,'12px');
		var para = $("p", this).length;
		if(para > 1){
			//$("p:first", this).css('margin-top' ,'12px');
		}
	
	});
	
	//$(".page").animate({ opacity: 0 }, 1000).css('border', '1px solid red');
	//$(".page:not(.onDisplay)").fadeTo(0,0);
	//$(".page").css('display', 'block');
	
	$(".onDisplay").css('display', 'block');

	$("#pressTogglers a").each(function(i){
	
		$(this).click(function(e){
			e.preventDefault();
			$("#pressTogglers a").removeClass('active');
			$(this).addClass('active');
			$("#pg_press .thumbReel").hide();
			$("#pg_press .thumbReel:eq(" + i + ")").show();
		});
	
	});
	
	$("#webTogglers a").each(function(i){
	
		$(this).click(function(e){
			e.preventDefault();
			$("#webTogglers a").removeClass('active');
			$(this).addClass('active');
			$("#pg_web .innerWebSlide").hide();
			$("#pg_web .innerWebSlide:eq(" + i + ")").show();
		});
	
	});

});

$(window).load(function(){

	

});

function reveal(target){
	//$(".page").fadeOut('slow');
	$(".page:not(#" + target + ")").css('display', 'none');
	$("#" + target).css('display', 'block');
	/*
$(".page:not(#" + target + ")").animate({
	
		opacity: 0
	
	}, 'slow');
	$("#" + target).animate({
		opacity: 1
	}, 'slow');
*/
}