// JavaScript Document

if (document.images) {
    img1 = new Image();
    img1.src = "http://execusist.com/graphics/live-web-chat-link-hover.png";
	img2 = new Image();
    img2.src = "http://execusist.com/graphics/hr-support-link-hover.png";
	img3 = new Image();
    img3.src = "http://execusist.com/graphics/back-office-link-hover.png";
	img4 = new Image();
    img4.src = "http://execusist.com/graphics/call-center-link-hover.png";
}
		

$('nav a').mouseover( function() {
	var base = "http://execusist.com/graphics/";
	var klass = $(this).attr('class');
	$('.hidden-area').css('display', 'block');
	if (klass == 'live_chat') return;
	if ($(this).hasClass('live_web_chat'))	$(this).children('img').attr('src',base+"live-web-chat-link-hover.png");
	if ($(this).hasClass('hr_support'))		$(this).children('img').attr('src',base+"hr-support-link-hover.png");
	if ($(this).hasClass('back_office'))	$(this).children('img').attr('src',base+"back-office-link-hover.png");
	if ($(this).hasClass('call_center'))	$(this).children('img').attr('src',base+"call-center-link-hover.png");
	$('.hidden_area').show();
	$('#'+klass).slideToggle(10);
	
	$('.hidden').each( function() {
		if ($(this).attr('class') != klass)
		$(this).hide();
	});
});
		
$('nav a').mouseout( function() {
	var klass = $(this).attr('class');
	$('.hidden-area').css('display', 'none');
	if (klass == 'live_chat') return;
	var base = "http://execusist.com/graphics/";
	if ($(this).hasClass('live_web_chat'))	$(this).children('img').attr('src',base+"live-web-chat-link.png");
	if ($(this).hasClass('hr_support'))		$(this).children('img').attr('src',base+"hr-support-link.png");
	if ($(this).hasClass('back_office'))	$(this).children('img').attr('src',base+"back-office-link.png");
	if ($(this).hasClass('call_center'))	$(this).children('img').attr('src',base+"call-center-link.png");

	$('.hidden').each( function() {
		$(this).hide();
	});
});



		

