// JavaScript Document

$(document).ready(function() {
	// LOGIN TABS					   
	$('div#loginbox div').hide();
	$('div#account').show();
	$('li#newsearch a').addClass('searchoff');
	$('li#myaccount a').addClass('accounton');
	var accounthover = 'false';
	var searchhover = 'true';
	
	
	$('li#newsearch a').click(function() {
		$('div#loginbox div').hide();
		$('div#search').show();
		$('li#myaccount a').removeClass('accounton');
		$('li#myaccount a').addClass('accountoff');
		$('li#newsearch a').removeClass('searchoff');
		$('li#newsearch a').addClass('searchon');
		var searchhover = 'false';
		var accounthover = 'true';
	});
	
	
	$('li#myaccount a').click(function() {
		$('div#loginbox div').hide();
		$('div#account').show();
		$('li#newsearch a').removeClass('searchon');
		$('li#newsearch a').addClass('searchoff');
		$('li#myaccount a').removeClass('accountoff');
		$('li#myaccount a').addClass('accounton');
		var accounthover = 'false';
		var searchhover = 'true';		
	});	
	
	
	/*
		if (accounthover == 'true') {
			$('li#myaccount a').hover(function() {
				$(this).addClass('accounthover');
			}, function() {
				$(this).removeClass('accounthover');
			});
		};
		
		if (searchhover == 'true') {
			$('li#newsearch a').hover(function() {
				$(this).addClass('searchhover');
			}, function() {
				$(this).removeClass('searchhover');
			});
		};
	*/
	
	// SERVICES TABS
	
	var tabContainers = $('div.tabs > div');
	tabContainers.hide().filter(':first').show();
			
	$('div.tabs ul.tabNavigation a').click(function () {
			tabContainers.hide();
			tabContainers.filter(this.hash).show();
			return false;
		}).filter(':first').click();

});



