		// Variable Setup //
		var a=1;
		var b=1;
		var c=1;
		var d=1;
		var e=1;
		var f=1; // Got something for me STOP - START //
		var g=2; // Twitter/Facebook Update //
		
		// Widget Automatic Change - Got Something For Me and Save Articles //
		function widget_gotsomethingforme_and_savearticles_change() {
			if(f==1) {
				if (a == 1) {
					a=2;
					$('.widget_gotsomethingforme').hide();
					$('.widget_savearticles').fadeIn();
				} else {
					a=1;
					$('.widget_savearticles').hide();
					$('.widget_gotsomethingforme').fadeIn();
				}
		} else {
		
		}
		}
		
		
		// Widget Automatic Change - Live Feeds //
		function widget_livefeeds_change() {
			if (b == 1) {
				b=2;
				$('.livefeedwidget_facebook').fadeIn();
				$('.livefeedwidget_twitter').hide();
			} else {
				b=1;
				$('.livefeedwidget_twitter').fadeIn();
				$('.livefeedwidget_facebook').hide();
			}
		}
		
		// Update - Live Feeds //
		function widget_livefeeds_update() {
			if(g == 1) {
				$('ul#twitterfeed').find('li').hide();
				$('ul#twitterfeed').find('li:nth-child(1)').fadeIn();
				$('ul#facebookfeed').find('li').hide();
				$('ul#facebookfeed').find('li:nth-child(1)').fadeIn();
				g = 2;
			} else if(g == 2) {
				$('ul#twitterfeed').find('li').hide();
				$('ul#twitterfeed').find('li:nth-child(2)').fadeIn();
				$('ul#facebookfeed').find('li').hide();
				$('ul#facebookfeed').find('li:nth-child(2)').fadeIn();
				g = 3;
			} else if(g == 3) {
				$('ul#twitterfeed').find('li').hide();
				$('ul#twitterfeed').find('li:nth-child(3)').fadeIn();
				$('ul#facebookfeed').find('li').hide();
				$('ul#facebookfeed').find('li:nth-child(3)').fadeIn();
				g = 4;
			} else if(g == 4) {
				$('ul#twitterfeed').find('li').hide();
				$('ul#twitterfeed').find('li:nth-child(4)').fadeIn();
				$('ul#facebookfeed').find('li').hide();
				$('ul#facebookfeed').find('li:nth-child(4)').fadeIn();
				g = 5;
			} else if(g == 5) {
				$('ul#twitterfeed').find('li').hide();
				$('ul#twitterfeed').find('li:nth-child(5)').fadeIn();				
				$('ul#facebookfeed').find('li').hide();
				$('ul#facebookfeed').find('li:nth-child(5)').fadeIn();
				g = 1;
			} 
		}
		
		
		// Share Link Icon Change //
		function sharelink_icon_change() {
			if(e == 1) {
				$('.postbottom a.sharelink').css({"background-image":"url(http://ericnunlee.com/wp-content/themes/ericNunlee/images/shareIconDigg.jpg)"});
				e=2;
			} else if(e == 2) {
				$('.postbottom a.sharelink').css({"background-image":"url(http://ericnunlee.com/wp-content/themes/ericNunlee/images/shareIconYahooBuzz.jpg)"});
				e=3;
			} else if(e == 3) {
				$('.postbottom a.sharelink').css({"background-image":"url(http://ericnunlee.com/wp-content/themes/ericNunlee/images/shareIconFacebook.jpg)"});
				e=4;
			} else if(e == 4) {
				$('.postbottom a.sharelink').css({"background-image":"url(http://ericnunlee.com/wp-content/themes/ericNunlee/images/shareIconMixx.jpg)"});
				e=5;
			} else if(e == 5) {
				$('.postbottom a.sharelink').css({"background-image":"url(http://ericnunlee.com/wp-content/themes/ericNunlee/images/shareIconStumbleUpon.jpg)"});
				e=6;
			} else {
				$('.postbottom a.sharelink').css({"background-image":"url(http://ericnunlee.com/wp-content/themes/ericNunlee/images/shareIcon.jpg)"});
				e=1;
			}
		}
		
		
	// Document Ready //
	$(function() {
	
	
			$('.livefeedwidget_twitter a').attr("href", "http://twitter.com/ericnunlee")

	
	
		jQuery.each(jQuery.browser, function(i) {
		  if($.browser.safari){
		     $("a.toplink").css("right","13px");
		  } else if($.browser.msie){
		     $("a.toplink").css("right","14px");
		     $("#footer .bottom .credits").css("margin","30px 50px 0 50px");
		     $("#footer .bottom .credits").css("padding","0px");
		  } else {
		     $("#footer .bottom .credits").css("padding","30px 50px 0 50px");
		     $("#footer .bottom .credits").css("margin","0px");
			}
		});
		
		
		
		
			
	
		

	
		
		// setInterval("widget_gotsomethingforme_and_savearticles_change()", 10000 );
		setInterval("widget_livefeeds_change()", 7000 );
		setInterval("sharelink_icon_change()", 3000 );


		$('a.submitlink').click(function() {
			$('#gotsomethingforme').fadeIn();
			$('a.submitlink').hide();
			f=2;
			$('.widget_gotsomethingforme').css({height:"320px"});
		});
		$('a.gotsomethingforme_close').click(function() {
			$('#gotsomethingforme').fadeOut();
			$('a.submitlink').fadeIn();
			$('.widget_gotsomethingforme').css({height:"140px"});
			f=1;
		});
		
		
		
		$('a.sharelink1').click(function() {
			$('.sharebox').fadeIn();
			$('.sharebox2').hide();
			$('.sharebox3').hide();
			$('.sharebox4').hide();
			$('.sharebox5').hide();
			$('.sharebox6').hide();
			return false;
		});
		$('a.sharelink2').click(function() {
			$('.sharebox').fadeIn();
			$('.sharebox1').hide();
			$('.sharebox3').hide();
			$('.sharebox4').hide();
			$('.sharebox5').hide();
			$('.sharebox6').hide();
			return false;
		});
		$('a.sharelink3').click(function() {
			$('.sharebox').fadeIn();
			$('.sharebox1').hide();
			$('.sharebox2').hide();
			$('.sharebox4').hide();
			$('.sharebox5').hide();
			$('.sharebox6').hide();
			return false;
		});
		$('a.sharelink4').click(function() {
			$('.sharebox').fadeIn();
			$('.sharebox1').hide();
			$('.sharebox2').hide();
			$('.sharebox3').hide();
			$('.sharebox5').hide();
			$('.sharebox6').hide();
			return false;
		});
		$('a.sharelink5').click(function() {
			$('.sharebox').fadeIn();
			$('.sharebox1').hide();
			$('.sharebox2').hide();
			$('.sharebox3').hide();
			$('.sharebox4').hide();
			$('.sharebox6').hide();
			return false;
		});
		$('a.sharelink6').click(function() {
			$('.sharebox').fadeIn();
			$('.sharebox1').hide();
			$('.sharebox2').hide();
			$('.sharebox3').hide();
			$('.sharebox4').hide();
			$('.sharebox5').hide();
			return false;
		});
		$('a.sharelink_close').click(function() {
			$('.sharebox').hide();
			return false;
		});
		
		
		$('a.savelink1').hover(function() {
			$(this).html("Coming Soon");
			$('.postbottom .right1').animate({"left":"305px"});
		}, function() {
			$('.postbottom .right1').animate({"left":"260px"});
			$(this).html("Save");		
		});
		$('a.savelink2').hover(function() {
			$(this).html("Coming Soon");
			$('.postbottom .right2').animate({"left":"305px"});
		}, function() {
			$('.postbottom .right2').animate({"left":"260px"});
			$(this).html("Save");		
		});
		$('a.savelink3').hover(function() {
			$(this).html("Coming Soon");
			$('.postbottom .right3').animate({"left":"305px"});
		}, function() {
			$('.postbottom .right3').animate({"left":"260px"});
			$(this).html("Save");		
		});
		$('a.savelink4').hover(function() {
			$(this).html("Coming Soon");
			$('.postbottom .right4').animate({"left":"305px"});
		}, function() {
			$('.postbottom .right4').animate({"left":"260px"});
			$(this).html("Save");		
		});
		$('a.savelink5').hover(function() {
			$(this).html("Coming Soon");
			$('.postbottom .right5').animate({"left":"305px"});
		}, function() {
			$('.postbottom .right5').animate({"left":"260px"});
			$(this).html("Save");		
		});
		$('a.savelink6').hover(function() {
			$(this).html("Coming Soon");
			$('.postbottom .right6').animate({"left":"305px"});
		}, function() {
			$('.postbottom .right6').animate({"left":"260px"});
			$(this).html("Save");		
		});
		
		
		$('a#widget_gotsomethingforme_and_savearticles_left').click(function() {
			if (a == 1) {
				a=2;
				$('.widget_savearticles').fadeIn();
				$('.widget_gotsomethingforme').hide();
			} else {
				a=1;
				$('.widget_gotsomethingforme').fadeIn();
				$('.widget_savearticles').hide();
			}
		});
		$('a#widget_gotsomethingforme_and_savearticles_right').click(function() {
			if (a == 1) {
				a=2;
				$('.widget_savearticles').fadeIn();
				$('.widget_gotsomethingforme').hide();
			} else {
				a=1;
				$('.widget_gotsomethingforme').fadeIn();
				$('.widget_savearticles').hide();
			}
		});
		
		
		
		$('a#widget_livefeeds_left').click(function() {
			if (b == 1) {
				b=2;
				$('.livefeedwidget_facebook').fadeIn();
				$('.livefeedwidget_twitter').hide();
			} else {
				b=1;
				$('.livefeedwidget_twitter').fadeIn();
				$('.livefeedwidget_facebook').hide();
			}
		});
		$('a#widget_livefeeds_right').click(function() {
			if (b == 1) {
				b=2;
				$('.livefeedwidget_facebook').fadeIn();
				$('.livefeedwidget_twitter').hide();
			} else {
				b=1;
				$('.livefeedwidget_twitter').fadeIn();
				$('.livefeedwidget_facebook').hide();
			}
		});
		
		
		
		$('a#widget_tags_and_archives_tags').click(function() {
				$('.tags_and_archives_tags').fadeIn();
				$('.tags_and_archives_archives').hide();
				$('a#widget_tags_and_archives_archives').css({"background-image":"url(http://ericnunlee.com/wp-content/themes/ericNunlee/images/buttons/archivestab.png)"});
				$(this).css({"background-image":"url(http://ericnunlee.com/wp-content/themes/ericNunlee/images/buttons/tagstabOver.png)"});
		});
		$('a#widget_tags_and_archives_archives').click(function() {
				$('.tags_and_archives_archives').fadeIn();
				$('.tags_and_archives_tags').hide();
				$('a#widget_tags_and_archives_tags').css({"background-image":"url(http://ericnunlee.com/wp-content/themes/ericNunlee/images/buttons/tagstab.png)"});
				$(this).css({"background-image":"url(http://ericnunlee.com/wp-content/themes/ericNunlee/images/buttons/archivestabOver.png)"});

		});
		
		
		
		$('a#widget_my_favourites_web').click(function() {
				$('.widget_my_favourites_web').fadeIn();
				$('.widget_my_favourites_software').hide();
				$('a#widget_my_favourites_software').css({"background-image":"url(http://ericnunlee.com/wp-content/themes/ericNunlee/images/buttons/softwareTab.png)"});
				$(this).css({"background-image":"url(http://ericnunlee.com/wp-content/themes/ericNunlee/images/buttons/webTabOver.png)"});
		});
		$('a#widget_my_favourites_software').click(function() {
				$('.widget_my_favourites_software').fadeIn();
				$('.widget_my_favourites_web').hide();
				$('a#widget_my_favourites_web').css({"background-image":"url(http://ericnunlee.com/wp-content/themes/ericNunlee/images/buttons/webTab.png)"});
				$(this).css({"background-image":"url(http://ericnunlee.com/wp-content/themes/ericNunlee/images/buttons/softwareTabOver.png)"});
		});
		
		
	var currentItem_currentProjects = 1;
	
	
	$('a#widget_currentProjects_right').click(function() {
			if (currentItem_currentProjects == 1) {
				currentItem_currentProjects=2;
				$(".currentProjectsSliderInner").animate({left: "-320px"});
			} else {
				currentItem_currentProjects=1;
				$(".currentProjectsSliderInner").animate({left: "-0px"});
			}
	});
	
	$('a#widget_currentProjects_left').click(function() {
			if (currentItem_currentProjects == 1) {
				currentItem_currentProjects=2;
				$(".currentProjectsSliderInner").animate({left: "-320px"});
			} else {
				currentItem_currentProjects=1;
				$(".currentProjectsSliderInner").animate({left: "-0px"});
			}
	});
	
	
	
		
	var currentItem_mustSeeSites = 1;
	$('a#widget_mustSeeSites_right').click(function() {
		if(currentItem_mustSeeSites == 1) {
			currentItem_mustSeeSites = 2;
			$(".mustSeeSitesSliderInner").animate({left: "-320px"});
		} else if(currentItem_mustSeeSites == 2) {
			currentItem_mustSeeSites =3;
			$(".mustSeeSitesSliderInner").animate({left: "-640px"});
		} else if(currentItem_mustSeeSites == 3) {
			currentItem_mustSeeSites =4;
			$(".mustSeeSitesSliderInner").animate({left: "-960px"});
		} else if(currentItem_mustSeeSites == 4) {
			currentItem_mustSeeSites =5;
			$(".mustSeeSitesSliderInner").animate({left: "-1280px"});
		} else {
			currentItem_mustSeeSites =1;
			$(".mustSeeSitesSliderInner").animate({left: "-0px"});
		}
	});
	
	$('a#widget_mustSeeSites_left').click(function() {
		if(currentItem_mustSeeSites == 1) {
			currentItem_mustSeeSites = 5;
			$(".mustSeeSitesSliderInner").animate({left: "-1280px"});
		} else if(currentItem_mustSeeSites == 2) {
			currentItem_mustSeeSites =1;
			$(".mustSeeSitesSliderInner").animate({left: "-0px"});
		} else if(currentItem_mustSeeSites == 3) {
			currentItem_mustSeeSites =2;
			$(".mustSeeSitesSliderInner").animate({left: "-320px"});
		} else if(currentItem_mustSeeSites == 4) {
			currentItem_mustSeeSites =3;
			$(".mustSeeSitesSliderInner").animate({left: "-640px"});
		} else {
			currentItem_mustSeeSites =4;
			$(".mustSeeSitesSliderInner").animate({left: "-960px"});
		}
	});		
	
	
	
	var currentItem_quickFactsAboutMe = 1;
	$('a#widget_quickFactsAboutMe_right').click(function() {
		if(currentItem_quickFactsAboutMe == 1) {
			currentItem_quickFactsAboutMe = 2;
			$(".quickFactsAboutMeSliderInner").animate({left: "-320px"});
		} else if(currentItem_quickFactsAboutMe == 2) {
			currentItem_quickFactsAboutMe =3;
			$(".quickFactsAboutMeSliderInner").animate({left: "-640px"});
		} else if(currentItem_quickFactsAboutMe == 3) {
			currentItem_quickFactsAboutMe =4;
			$(".quickFactsAboutMeSliderInner").animate({left: "-960px"});
		} else if(currentItem_quickFactsAboutMe == 4) {
			currentItem_quickFactsAboutMe =5;
			$(".quickFactsAboutMeSliderInner").animate({left: "-1280px"});
		} else {
			currentItem_quickFactsAboutMe =1;
			$(".quickFactsAboutMeSliderInner").animate({left: "-0px"});
		}
	});
	
	$('a#widget_quickFactsAboutMe_left').click(function() {
		if(currentItem_quickFactsAboutMe == 1) {
			currentItem_quickFactsAboutMe = 5;
			$(".quickFactsAboutMeSliderInner").animate({left: "-1280px"});
		} else if(currentItem_quickFactsAboutMe == 2) {
			currentItem_quickFactsAboutMe =1;
			$(".quickFactsAboutMeSliderInner").animate({left: "-0px"});
		} else if(currentItem_quickFactsAboutMe == 3) {
			currentItem_quickFactsAboutMe =2;
			$(".quickFactsAboutMeSliderInner").animate({left: "-320px"});
		} else if(currentItem_quickFactsAboutMe == 4) {
			currentItem_quickFactsAboutMe =3;
			$(".quickFactsAboutMeSliderInner").animate({left: "-640px"});
		} else {
			currentItem_quickFactsAboutMe =4;
			$(".quickFactsAboutMeSliderInner").animate({left: "-960px"});
		}
	});				
	
	
	
	// Single //
	
	$('.portfolioview .bottom a.button1').click(function() {
		$('.portfolioview .top .slider').animate({left:"0px"});
		$('.portfolioview .bottom a').removeClass('active');
		$(this).addClass('active');
	});
	
	$('.portfolioview .bottom a.button2').click(function() {
		$('.portfolioview .top .slider').animate({left:"-640px"});
		$('.portfolioview .bottom a').removeClass('active');
		$(this).addClass('active');
	});
	
	$('.portfolioview .bottom a.button3').click(function() {
		$('.portfolioview .top .slider').animate({left:"-1280px"});
		$('.portfolioview .bottom a').removeClass('active');
		$(this).addClass('active');
	});
	
	$('.portfolioview .bottom a.button4').click(function() {
		$('.portfolioview .top .slider').animate({left:"-1920px"});
		$('.portfolioview .bottom a').removeClass('active');
		$(this).addClass('active');
	});
	
	
	$('a.tab1link').click(function() {
		$('.tab2page').hide();
		$('.tab3page').hide();
		$('.tab1page').fadeIn();
		$('.tabs ul#tabs a').removeClass('active');
		$(this).addClass('active');
	});
	$('a.tab2link').click(function() {
		$('.tab3page').hide();
		$('.tab1page').hide();
		$('.tab2page').fadeIn();
		$('.tabs ul#tabs a').removeClass('active');
		$(this).addClass('active');
	});
	$('a.tab3link').click(function() {
		$('.tab2page').hide();
		$('.tab1page').hide();
		$('.tab3page').fadeIn();
		$('.tabs ul#tabs a').removeClass('active');
		$(this).addClass('active');
	});
	
	
	// Writings //
	$('ul#writings ul').hide(); 
		$('ul#writings').find('li:first ul').show(); 
		$('ul#writings li h2').click(function() {
			$('#writings ul').slideUp();
			$(this).parent('li').find('ul').slideDown();
		}); 
		
	});
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	