/*
$(function() {
	$('nav a').click(function(e) {
		e.preventDefault();
		$(this).parent().parent().children('li').removeClass('current');
		$(this).parent().addClass('current');
		var nextPage = $(this).attr('href');
		changeContents(nextPage);
		window.history.pushState(null, null, nextPage);
	});
	//戻る・進むボタンを押したとき
	onpopstate = function(event) {
		changeContents(location.pathname);
	}
	//コンテンツの切り替え
	function changeContents(url) {
		$('#main').load(url+' #mainContainer',function(){
			$('.project a').click(function(e) {
				e.preventDefault();
				var nextPage = $(this).attr('href');
				changeContents2(nextPage);
				window.history.pushState(null, null, nextPage);
			});
			function changeContents2(url2) {
				$('#main').load(url2+' #mainContainer',function(){					
					$('#featured').orbit({
						directionalNav: false,
						'bullets' : true,
						advanceSpeed: 4500,
						animation:'fade'
					});
					
				});
			}
		});
	}
});
*/




/*
$(function() {

	$('div#headerContainer ul li a,div.project a').click(function(e) {
		e.preventDefault();
	});

	$('div.project a').bind("click",function() {
		var siteview = $(this).attr('href');
		$('#procon').load(siteview+' #mainContainer',function(){
		});
	});

	$('div#headerContainer ul li a').not('nav a.contact').bind("click",function(){
		var nextPage = $(this).attr('href');
		changeContents(nextPage);
		window.history.pushState(null, null, nextPage);
	});
	//戻る・進むボタンを押したとき
	onpopstate = function(event) {
		changeContents(location.pathname);
	}
	//$('article').fadeIn("slow");
	//コンテンツの切り替え
	function changeContents(url) {
		$.ajaxSetup({
			beforeSend: function(){
				// $('article').fadeOut("fast");
			},
			success: function(){
			}
		});

		$('#main').load(url+'#mainContainer',function(){
		
			$('div.project a').bind("click",function(e) {
				e.preventDefault();
				var siteview = $(this).attr('href');
				window.history.pushState(null, null, siteview);
				$('#main').load(siteview+'#mainContainer',function(){
					alert("aaa");
					slideon();
				});
			});
			
		});
	};
	
	function slideon(){
		$('#featured').orbit({
			directionalNav: false,
			'bullets' : true,
			advanceSpeed: 4500,
			animation:'fade'
		});
	}

});
*/

