var boolNewPageLoad = true;

function fAuditSession() {
	var strRand = new Date();
	var strHead = "";
	var strBody = "";
	var strVars = "";
	var strAction = boolNewPageLoad ? "Page Load" : "Still On Page";
	boolNewPageLoad = false;
	$.get('ajaxAudit.php', { txtRand:strRand, txtHead:strHead, txtBody:strBody, txtVars:strVars, a:strAction}, function(strData) {
		if(strData != "") { eval(strData); }
	});
	setTimeout("fAuditSession()", 10000);
}  	

function fChat() {
	winChat = window.open("chat.php","FISChat","scrollbars=1,location=0,width=600,height=500");
	winChat.focus();
}

$(document).ready(function(){
	fAuditSession();
	//parent element hover function 
	$('li.drop').hover(
		
		//roll in
		function() { 
			//display the drop down
			$('ul', this).css('display', 'block'); 
			//keep the parent li a style 
			$(this, 'a.drop').css('background', '#46a04b');
            
		},
		//role out
		function() { 
			//remove styles
			$('ul', this).css('display', 'none'); 
			$(this, 'a.drop').css('background', 'none'); 
		}
		
	);
	
	$( 'a.toggleme1', this).click(function(){
		
		$('#driver2').slideToggle("slow")
	
		
	});
	$( 'a.toggleme2', this).click(function(){
		
		$('#driver3').slideToggle("slow")
	
		
	});
	$( 'a.toggleme3', this).click(function(){
		
		$('#car2').slideToggle("slow")
	
		
	});
	$( 'a.toggleme4', this).click(function(){
		
		$('#car3').slideToggle("slow")
		
		
	});
		
	
});

