// JavaScript Document

//Code by Lloyd Baker
$(document).ready(function(){
	

$(function(){
	
	$('#promoFooter li')
		.hover(function(){
		$('#promoFooterLineTest02').stop().animate({ backgroundColor: "#1b5e8b" }, 400);
		
		}, function(){
			
			$('#promoFooterLineTest03').stop().animate({opacity: "0"}, 1, function(){$('#promoFooterLineTest03').animate({opacity: "1"}, 200);});
			
			});
		
	});

$(function(){
		   
	$('.hardware').hover(function(){
			$('#promoFooterLineTest03').stop().animate({opacity: "0"}, 100, function(){
						$('#promoFooterLineTest03').animate({opacity: "1"}, 100);
						
						$('#descript').replaceWith( '<span id="descript">Hardware - We supply and maintain all hardware needed.</span>' );
						$('#descript').css('color', 'white');							   
				});
			
			}, function(){ })
	 });

$(function(){
		   
	$('.software').hover(function(){
			$('#promoFooterLineTest03').stop().animate({opacity: "0"}, 100, function(){
						$('#promoFooterLineTest03').animate({opacity: "1"}, 100);
						
						$('#descript').replaceWith( '<span id="descript">Software - As experienced engineers we can install and maintain all software we support</span>' );
						$('#descript').css('color', 'white');							   
				});
			
			}, function(){ })
	 });

$(function(){
		   
	$('.networks').hover(function(){
			$('#promoFooterLineTest03').stop().animate({opacity: "0"}, 100, function(){
				$('#promoFooterLineTest03').animate({opacity: "1"}, 100);
				$('#descript').replaceWith( '<span id="descript">Networks - We set up and manage small business networks that are fast and efficient.</span>' );
				$('#descript').css('color', 'white');							   
			});}, function(){ })
	 });

$(function(){
		   
	$('.internet').hover(function(){
			$('#promoFooterLineTest03').stop().animate({opacity: "0"}, 100, function(){
				$('#promoFooterLineTest03').animate({opacity: "1"}, 100);
				$('#descript').replaceWith( '<span id="descript">Internet - We can supply your business with ADSL lines and make sure you stay connected.</span>' );
				$('#descript').css('color', 'white');							   
			});}, function(){ })
	 });
$(function(){
		   
	$('.websites').hover(function(){
			$('#promoFooterLineTest03').stop().animate({opacity: "0"}, 100, function(){
				$('#promoFooterLineTest03').animate({opacity: "1"}, 100);
				$('#descript').replaceWith( '<span id="descript">Websites - We can supply unique logos and websites, contact to find out what we can do for you!</span>' );
				$('#descript').css('color', 'white');							   
			});}, function(){ })
	 });

$(function(){
		   
	$('.support').hover(function(){
			$('#promoFooterLineTest03').stop().animate({opacity: "0"}, 100, function(){
				$('#promoFooterLineTest03').animate({opacity: "1"}, 100);
				$('#descript').replaceWith( '<span id="descript">Support - We are on call 24/7 to solve your computer needs, just call David or Darren at any time and they will be there to help.</span>' );
				$('#descript').css('color', 'white');							   
			});}, function(){ })
	 });

$(function(){
		   
	$('.accounts').hover(function(){
			$('#promoFooterLineTest03').stop().animate({opacity: "0"}, 100, function(){
				$('#promoFooterLineTest03').animate({opacity: "1"}, 100);
				$('#descript').replaceWith( '<span id="descript">Accounts - We are certified Opera and Sage resellers and have years of experience with both these applications.</span>' );
				$('#descript').css('color', 'white');							   
			});}, function(){ })
	 });

$(function(){
		   
	$('.phoneSystems').hover(function(){
			$('#promoFooterLineTest03').stop().animate({opacity: "0"}, 100, function(){
				$('#promoFooterLineTest03').animate({opacity: "1"}, 100);
				$('#descript').replaceWith( '<span id="descript">Phones - We can supply your company with both phone lines and phone systems.</span>' );
				$('#descript').css('color', 'white');							   
			});}, function(){ })
	 });

$(function(){
		   
	$('.blackberry').hover(function(){
			$('#promoFooterLineTest03').stop().animate({opacity: "0"}, 100, function(){
				$('#promoFooterLineTest03').animate({opacity: "1"}, 100);
				$('#descript').replaceWith( '<span id="descript">Blackberry - We can supply and manage blackberry phones and phone servers, allowing those important emails to come straight to your phone.</span>' );
				$('#descript').css('color', 'white');							   
			});}, function(){ })
	 });

$(function(){
		   
	$('.training').hover(function(){
			$('#promoFooterLineTest03').stop().animate({opacity: "0"}, 100, function(){
				$('#promoFooterLineTest03').animate({opacity: "1"}, 100);
				$('#descript').replaceWith( '<span id="descript">Training - Any system we supply we can create a personally tailored training package to support your staff.</span>' );
				$('#descript').css('color', 'white');							   
			});}, function(){ })
	 });

$(function(){
	
	$('#promoFooter ul')
		.hover(function(){
						$('#descriptMain').replaceWith( '<span id="descript"></span>' );
						$('.arrow').css('display', 'none');
						}, function(){
			$('#promoFooterLineTest02').stop().animate({ backgroundColor: "#FBC559" }, 200);
			$('#descript').replaceWith( '<span id="descriptMain">Highlight any of our areas of expertise to learn more.</span>' );
			$('.arrow').css('display', 'inline');
			});
		   });
});						
						
