4
	

$(window).load(function () { 
			

		$("div#About").animate({opacity:'0'});
			$("div#Contact").animate({opacity:'0'});
    		$("div#Services").animate({opacity:'0'});
    		$("div#Prices").animate({opacity:'0'});
    		$("div#Clients").animate({opacity:'0'});
			
			$("#viewerContent").easySlider({
					prevText: 'previous',
					nextText: 'next',
					speed: 750,
					easing: 'easeInOutExpo'
				});

		 
		
			/* make sure that only one overlay is showing
			this code needs sorting out as it's horribly inefficient! */
		
			$("a.about").livequery('click', function(event) {

				if ($('#Services') && $('#Services').css('opacity') > 0) {
					$("#Services").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#Prices') && $('#Prices').css('opacity') > 0) {
					$("#Prices").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#Clients') && $('#Clients').css('opacity') > 0) {
					$("#Clients").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#Contact') && $('#Contact').css('opacity') > 0) {
					$("#Contact").animate({height: "0px", opacity: "0"}, "slow");
				};
				
				
				if ($('#About') && $('#About').css('opacity') > 0) {
					$("#About").animate({height: "0px", opacity: "0"}, "slow");
				} else {
					$("#About").animate({height: "620px", opacity: "1"}, "slow");
				}
			});
		
		
			$('a.services').livequery('click', function(event) {

				if ($('#About') && $('#About').css('opacity') > 0) {
					$("#About").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#Prices') && $('#Prices').css('opacity') > 0) {
					$("#Prices").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#Clients') && $('#Clients').css('opacity') > 0) {
					$("#Clients").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#Contact') && $('#Contact').css('opacity') > 0) {
					$("#Contact").animate({height: "0px", opacity: "0"}, "slow");
				};
				
				
				if ($('#Services') && $('#Services').css('opacity') > 0) {
					$("#Services").animate({height: "0px", opacity: "0"}, "slow");
				} else {
					$("#Services").animate({height: "620px", opacity: "1"}, "slow");
				}
		
			});
			
			$("a.prices").livequery('click', function(event) {

				if ($('#Services') && $('#Services').css('opacity') > 0) {
					$("#Services").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#About') && $('#About').css('opacity') > 0) {
					$("#About").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#Clients') && $('#Clients').css('opacity') > 0) {
					$("#Clients").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#Contact') && $('#Contact').css('opacity') > 0) {
					$("#Contact").animate({height: "0px", opacity: "0"}, "slow");
				};
				
				
				
				
				if ($('#Prices') && $('#Prices').css('opacity') > 0) {
					$("#Prices").animate({height: "0px", opacity: "0"}, "slow");
				} else {
					$("#Prices").animate({height: "620px", opacity: "1"}, "slow");
				}
			});
			
			
			$("a.clients").livequery('click', function(event) {

				if ($('#Services') && $('#Services').css('opacity') > 0) {
					$("#Services").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#Prices') && $('#Prices').css('opacity') > 0) {
					$("#Prices").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#About') && $('#About').css('opacity') > 0) {
					$("#About").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#Contact') && $('#Contact').css('opacity') > 0) {
					$("#Contact").animate({height: "0px", opacity: "0"}, "slow");
				};
				
				
				if ($('#Clients') && $('#Clients').css('opacity') > 0) {
					$("#Clients").animate({height: "0", opacity: "0"}, "slow");
				} else {
					$("#Clients").animate({height: "620px", opacity: "1"}, "slow");
				}
			});
			
			$("a.contact").livequery('click', function(event) {

				if ($('#Services') && $('#Services').css('opacity') > 0) {
					$("#Services").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#Prices') && $('#Prices').css('opacity') > 0) {
					$("#Prices").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#Clients') && $('#Clients').css('opacity') > 0) {
					$("#Clients").animate({height: "0px", opacity: "0"}, "slow");
				};
				if ($('#About') && $('#About').css('opacity') > 0) {
					$("#About").animate({height: "0px", opacity: "0"}, "slow");
				};
				
				
				if ($('#Contact') && $('#Contact').css('opacity') > 0) {
					$("#Contact").animate({height: "0px", opacity: "0", display: "inlie"}, "slow");
				} else {
					$("#Contact").animate({height: "620px", opacity: "1"}, "slow");
				}
			});
			
			
			
			
			
			/* get rid of overlays if you click them */
		
			$('#About').livequery('click', function(event) {
				$("#About").animate({height: "0px", opacity: "0"}, "slow");
			});
			
			$('#Services').livequery('click', function(event) {
				$("#Services").animate({height: "0px", opacity: "0"}, "slow");
			});
			
			$('#Prices').livequery('click', function(event) {
				$("#Prices").animate({height: "0px", opacity: "0"}, "slow");
			});
			
			
			$('#Clients').livequery('click', function(event) {
				$("#Clients").animate({height: "0px", opacity: "0"}, "slow");
			});
			
	
			
			
		});


$(window).load(function () { 
			$("#statusBar").hide();
			$("#viewerContent").fadeIn("slow");
});




