function loadAjaxPage(url)
{
	//Effect.SlideUp('content',{duration:3});
	if(url==undefined || url=='id=0')
	{
		url = 'id=0';
	}
	
	
	
	
	new Ajax.Request(
		'jscontent.php',
		{
			method: 'post',
			postBody: url,
			encoding: 'UTF-8',
			onSuccess: function(t,json)
			{
				
				eval(t.responseText);
				
				if (json.side == "koti")
				{
					$('private').src = "img/common/private_koti.png";
				}
				else if (json.side == "yritys")
				{
					$('private').src = "img/common/private_yritys.png";
				}
				
				
				if (json.side == "etusivu") /* Etusivun tunnistus jsonista */
				{
					$('private').src = "img/common/private.png";
					
					if ($('content') == null)
					{
						$('container').appendChild(Builder.node('div',{id:'content'}));
					}
					if($('menu')!=null)
					{
						$('menu').hide();
					}
					$('content').update(json.content);
					
					if($('footer')==null)
					{
						$('container').appendChild(Builder.node('div',{id:'footer'}));
					}
	
					$('footer').update(json.footer);
					
				}
				else
				{
				
					
					
					if($('menu')==null)
					{
						if ($('content') != null) $('content').remove();
						if ($('footer') != null) $('footer').remove();
						
						$('container').appendChild(Builder.node('ul',{id:'menu'}));
					}
					else
					{
						$('menu').show();
					}
	
	
					if($('content')==null)
					{
						$('container').appendChild(Builder.node('div',{id:'content'}));
					}
	
					$('content').update(json.content);
	
	
					if(json.footer!='')
					{
						if($('footer')==null)
						{
							$('container').appendChild(Builder.node('div',{id:'footer'}));
						}
	
						$('footer').update(json.footer);
					}else
					{
						if($('footer')!=null)
						{
							$('footer').remove();
						}
					}
	
	
					if(json.menu!='')
					{
						$('menu').update(json.menu);
					}else
					{
						var lis=$('menu').immediateDescendants();
	
						lis.each(function(item)
						{
							item.removeClassName('selected');
						});
	
	
					}
				}
				/**
				 * Google Analytics
				 */
				if (json.path.length > 9)
					urchinTracker(json.path.substring(10, json.path.length));
				else
					urchinTracker();
			}
		}
	);
}