$(document).ready(function() {	//fade in/out effects		$("body").css("display", "none");	$("body").fadeIn(1000);    $('a.transition').click(function(event){		event.preventDefault();		linkLocation = this.href;		$("body").fadeOut(300, redirectPage);		});		function redirectPage() {		window.location = linkLocation;		}		//home and navigation hover effects			$('#about, .aboutnav').hover(function() {		$(this).css('cursor', 'pointer');								  		$(this).stop().animate({ backgroundColor: '#abc8e2'}, 600);		$('#about .abouttop, .aboutnav .navaboutoff').stop().animate({"opacity": "0"}, 600);		}, function() {		$(this).stop().animate({ backgroundColor: '#fff'}, 600);		$('#about .abouttop, .aboutnav .navaboutoff').stop().animate({"opacity": "1"}, 600);	});	$('#portfolio, .portnav').hover(function() {		$(this).css('cursor', 'pointer');		$(this).stop().animate({ backgroundColor: '#183152'}, 600);		$('#portfolio .porttop, .portnav .navportoff').stop().animate({"opacity": "0"}, 600);		}, function() {		$(this).stop().animate({ backgroundColor: '#fff'}, 600);		$('#portfolio .porttop, .portnav .navportoff').stop().animate({"opacity": "1"}, 600);	});	$('#contact, .contactnav').hover(function() {		$(this).css('cursor', 'pointer');		$(this).stop().animate({ backgroundColor: '#42729f'}, 600);		$('#contact .contacttop, .contactnav .navcontactoff').stop().animate({"opacity": "0"}, 600);		}, function() {		$(this).stop().animate({ backgroundColor: '#fff'}, 600);		$('#contact .contacttop, .contactnav .navcontactoff').stop().animate({"opacity": "1"}, 600);			});	$('#home, .homenav').hover(function() {		$(this).css('cursor', 'pointer');		$(this).stop().animate({ backgroundColor: '#dcecfa'}, 600);		$('.homenav .navhomeoff').stop().animate({"opacity": "0"}, 600);		}, function() {		$(this).stop().animate({ backgroundColor: '#fff'}, 600);		$('.homenav .navhomeoff').stop().animate({"opacity": "1"}, 600);	});	$('#hireme').hover(function(){		$('#hireme .hiretop').stop().animate({"opacity": "0"}, 50);		}, function() {		$('#hireme .hiretop').stop().animate({"opacity": "1"}, 350);	});	  $('#about, #portfolio, #contact, .aboutnav, .homenav, .portnav, .contactnav, #logo').click(function(){		$(this).stop().animate({ backgroundColor: '#fff'}, 600);		$('#about .abouttop, #portfolio .porttop, #contact .contacttop, .aboutnav .navaboutoff, .homenav .navhomeoff, .portnav .navportoff, .contactnav navcontactoff').stop().animate({"opacity": "1"}, 600);		var url = $(this).find('a').attr('href');        window.location=url;		});//shaded bordervar sideBorder = RUZEE.ShadedBorder.create({ corner:8, shadow:16, border:2 });	sideBorder.render($("#container"));	//hover effects on contact links		$('.emailhover').hover(function(){		$('.emailtexthover').addClass('hoverunderline');		}, function() {		$('.emailtexthover').removeClass('hoverunderline');									});	$('.facebookhover').hover(function(){		$('.facebooktexthover').addClass('hoverunderline');		}, function() {		$('.facebooktexthover').removeClass('hoverunderline');									});	$('.twitterhover').hover(function(){		$('.twittertexthover').addClass('hoverunderline');		}, function() {		$('.twittertexthover').removeClass('hoverunderline');									});	$('.resumehover').hover(function(){		$('.resumetexthover').addClass('hoverunderline');		}, function() {		$('.resumetexthover').removeClass('hoverunderline');									});	$('.menu').initMenu();	//portfolio subnavigation	$('#webheading .web').hover(function(){		$('#webheading .weboff').stop().animate({"opacity": "0"}, 300);		$('#webheading .webon').stop().animate({"opacity": "1"}, 300);		$('#webheading .web').click(function(){			$(this).addClass('on');			$('#printheading .print, #flashheading .flash').removeClass('on');			$('#printheading .printon, #flashheading .flashon').stop().animate({"opacity": "0"}, 300);				$('#webheading .webon, #printheading .printoff, #flashheading .flashoff').stop().animate({"opacity": "1"}, 300);		});		}, function() {		if($('#webheading .web').hasClass('on')) {					} else {		$('#webheading .weboff').stop().animate({"opacity": "1"}, 300);		$('#webheading .webon').stop().animate({"opacity": "0"}, 300);		}	});		$('#printheading .print').hover(function(){		$('#printheading .printoff').stop().animate({"opacity": "0"}, 300);		$('#printheading .printon').stop().animate({"opacity": "1"}, 300);		$('#printheading .print').click(function(){			$(this).addClass('on');			$('#webheading .web, #flashheading .flash').removeClass('on');			$('#webheading .webon, #flashheading .flashon').stop().animate({"opacity": "0"}, 300);				$('#printheading .printon, #webheading .weboff, #flashheading .flashoff').stop().animate({"opacity": "1"}, 300);		});		}, function() {		if($('#printheading .print').hasClass('on')) {					} else {		$('#printheading .printoff').stop().animate({"opacity": "1"}, 300);		$('#printheading .printon').stop().animate({"opacity": "0"}, 300);		}	});	$('#flashheading .flash').hover(function(){		$('#flashheading .flashoff').stop().animate({"opacity": "0"}, 300);		$('#flashheading .flashon').stop().animate({"opacity": "1"}, 300);		$('#flashheading .flash').click(function(){			$(this).addClass('on');			$('#webheading .web, #printheading .print').removeClass('on');			$('#webheading .webon, #printheading .printon').stop().animate({"opacity": "0"}, 300);				$('#flashheading .flashon, #webheading .weboff, #printheading .printoff').stop().animate({"opacity": "1"}, 300);		});		}, function() {		if($('#flashheading .flash').hasClass('on')) {					} else {		$('#flashheading .flashoff').stop().animate({"opacity": "1"}, 300);		$('#flashheading .flashon').stop().animate({"opacity": "0"}, 300);		}	});	//portfolio gallery	$('.portfoliocaption').css('opacity', '.90');	$('.portcontentoff').hide();		var arr=['1', '2', '3', '4', '5', '6']	$.each(arr, function(i) {		if($('#weblarge'+i).hasClass('portcontenton')) {			$('.webthumb'+i).parent().addClass('arrow');		}		$('.webthumb'+i).click(function(){			if($('#weblarge'+i).hasClass('portcontenton')) {			} else {			$('.arrow').removeClass('arrow');			$('.webthumb'+i).parent().addClass('arrow');			$('.portcontenton').hide('slide', {direction: "right"}, 750);			$('.portcontenton').removeClass('portcontenton');			$('#weblarge'+i).addClass('portcontenton');			$('#webcaption'+i).addClass('portcontenton');			$('#weblarge'+i).show('slide', {direction: "right"}, 750);			$('#webcaption'+i).show('slide', {direction: "right"}, 750);			}		});	});			var arr=['1', '2', '3', '4', '5', '6']	$.each(arr, function(i) {		if($('#printlarge'+i).hasClass('portcontenton')) {			$('.printthumb'+i).parent().addClass('arrow');		}		$('.printthumb'+i).click(function(){			if($('#printlarge'+i).hasClass('portcontenton')) {			} else {				$('.arrow').removeClass('arrow');				$('.printthumb'+i).parent().addClass('arrow');				$('.portcontenton').hide('slide', {direction: "right"}, 750);				$('.portcontenton').removeClass('portcontenton');				$('#printlarge'+i).addClass('portcontenton');				$('#printcaption'+i).addClass('portcontenton');				$('#printlarge'+i).show('slide',  {direction: "right"}, 750);				$('#printcaption'+i).show('slide',  {direction: "right"}, 750);			}			});			});	var arr=['1', '2', '3', '4', '5', '6']	$.each(arr, function(i) {			if($('#flashlarge'+i).hasClass('portcontenton')) {			$('.flashthumb'+i).parent().addClass('arrow');		}		$('.flashthumb'+i).click(function(){			if($('#flashlarge'+i).hasClass('portcontenton')) {			} else {				$('.arrow').removeClass('arrow');				$('.flashthumb'+i).parent().addClass('arrow');				$('.portcontenton').hide('slide', {direction: "right"}, 750);				$('.portcontenton').removeClass('portcontenton');				$('#flashlarge'+i).addClass('portcontenton');				$('#flashcaption'+i).addClass('portcontenton');				$('#flashlarge'+i).show('slide',  {direction: "right"}, 750);				$('#flashcaption'+i).show('slide',  {direction: "right"}, 750);			}			});			});//remove links from portfolio submenu so javascript menu will work$('.acitem a').attr('href', '#').attr('target', "");//add reflection to portfolio$('.largecontent img').reflect({height: .12});//remove scroll bar from portfolio sub navigation$('#portsubnav').css('overflow', 'visible');	});
