$(document).ready(function() {
						   
	var hash = window.location.hash.substr(1);
	    var href = $('.siteList a').each(function(){
		var href = $(this).attr('href');
		if(hash==href.substr(0,href.length-5)){
			var toLoad = hash+'.html #copyHome';
			$('#copy').load(toLoad)
		}											
	});
	
	$('.siteList a').click(function(){
								  
		var toLoad = $(this).attr('href')+' #copyHome';
		$('#copyHome').slideUp('normal',loadContent);
		$('#load').remove();
		$('#wrapper').append('<span id="load"></span>');
		$('#load').fadeIn('slow');
		window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length-5);
		function loadContent() {
			$('#copyHome').load(toLoad,'',showNewContent())
		}
		function showNewContent() {
			$('#copyHome').show('normal',hideLoader());
		}
		function hideLoader() {
			$('#load').fadeOut('normal');
		}
		return false;
		
	});
});

$(document).ready(function() {
						   
	var hash = window.location.hash.substr(1);
	    var href = $('#personal a').each(function(){
		var href = $(this).attr('href');
		if(hash==href.substr(0,href.length-5)){
			var toLoad = hash+'.html #copy';
			$('#copy').load(toLoad)
		}											
	});
	
	$('#personal a').click(function(){
								  
		var toLoad = $(this).attr('href')+' #copy';
		$('#copy').slideUp('normal',loadContent);
		$('#load').remove();
		$('#wrapper').append('<span id="load"></span>');
		$('#load').fadeIn('slow');
		window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length-5);
		function loadContent() {
			$('#copy').load(toLoad,'',showNewContent())
		}
		function showNewContent() {
			$('#copy').show('normal',hideLoader());
		}
		function hideLoader() {
			$('#load').fadeOut('normal');
		}
		return false;
		
	});
});

$(document).ready(function() {
						   
	var hash = window.location.hash.substr(1);
	    var href = $('#events a').each(function(){
		var href = $(this).attr('href');
		if(hash==href.substr(0,href.length-5)){
			var toLoad = hash+'.html #copy';
			$('#copy').load(toLoad)
		}											
	});
	
	$('#events a').click(function(){
								  
		var toLoad = $(this).attr('href')+' #copy';
		$('#copy').slideUp('normal',loadContent);
		$('#load').remove();
		$('#wrapper').append('<span id="load"></span>');
		$('#load').fadeIn('slow');
		window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length-5);
		function loadContent() {
			$('#copy').load(toLoad,'',showNewContent())
		}
		function showNewContent() {
			$('#copy').show('normal',hideLoader());
		}
		function hideLoader() {
			$('#load').fadeOut('normal');
		}
		return false;
		
	});
});

$(document).ready(function() {
						   
	var hash = window.location.hash.substr(1);
	    var href = $('#siteDesign a').each(function(){
		var href = $(this).attr('href');
		if(hash==href.substr(0,href.length-5)){
			var toLoad = hash+'.html #copy';
			$('#copy').load(toLoad)
		}											
	});
	
	$('#siteDesign a').click(function(){
								  
		var toLoad = $(this).attr('href')+' #copy';
		$('#copy').slideUp('normal',loadContent);
		$('#load').remove();
		$('#wrapper').append('<span id="load"></span>');
		$('#load').fadeIn('slow');
		window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length-5);
		function loadContent() {
			$('#copy').load(toLoad,'',showNewContent())
		}
		function showNewContent() {
			$('#copy').show('normal',hideLoader());
		}
		function hideLoader() {
			$('#load').fadeOut('normal');
		}
		return false;
		
	});
});

$(document).ready(function() {
						   
	var hash = window.location.hash.substr(1);
	    var href = $('#maintenance a').each(function(){
		var href = $(this).attr('href');
		if(hash==href.substr(0,href.length-5)){
			var toLoad = hash+'.html #copy';
			$('#copy').load(toLoad)
		}											
	});
	
	$('#maintenance a').click(function(){
								  
		var toLoad = $(this).attr('href')+' #copy';
		$('#copy').slideUp('normal',loadContent);
		$('#load').remove();
		$('#wrapper').append('<span id="load"></span>');
		$('#load').fadeIn('slow');
		window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length-5);
		function loadContent() {
			$('#copy').load(toLoad,'',showNewContent())
		}
		function showNewContent() {
			$('#copy').show('normal',hideLoader());
		}
		function hideLoader() {
			$('#load').fadeOut('normal');
		}
		return false;
		
	});
});

$(document).ready(function() {
						   
	var hash = window.location.hash.substr(1);
	    var href = $('#webApps a').each(function(){
		var href = $(this).attr('href');
		if(hash==href.substr(0,href.length-5)){
			var toLoad = hash+'.html #copy';
			$('#copy').load(toLoad)
		}											
	});
	
	$('#webApps a').click(function(){
								  
		var toLoad = $(this).attr('href')+' #copy';
		$('#copy').slideUp('normal',loadContent);
		$('#load').remove();
		$('#wrapper').append('<span id="load"></span>');
		$('#load').fadeIn('slow');
		window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length-5);
		function loadContent() {
			$('#copy').load(toLoad,'',showNewContent())
		}
		function showNewContent() {
			$('#copy').show('normal',hideLoader());
		}
		function hideLoader() {
			$('#load').fadeOut('normal');
		}
		return false;
		
	});
});


