$(function()
{	
	var $main = $('#main');
	
	$('#about a').click(function()
	{
		var $main = $('#main');
		
		if ($main.hasClass('about'))
			$main.removeClass('about');
		else
			$main.addClass('about');
	});
	
	$('p.switch').delegate('a','click',function()
	{
		$('#about a').trigger('click');
	});
	
	if (window.location.hash == '#about')
	{
		$('#about a').trigger('click');
	}
	
	NewWindow.init();
});

var NewWindow =
{
	init:function()
	{
		var $links = $('a[href^="http://"], a[href^="https://"]');

		$links.click(function()
		{	
			var $this = $(this);
			var href = $this.attr('href');

			if (href.indexOf('netoptions.se') == -1 && href.indexOf('bizwizard.dev') == -1)
			{
				window.open(href);
				return false;
			}
		});
	}
};
