// JavaScript Document
function fadeImage(page){
var img;
				
			switch(page)
			{
				case 'index.php':
					img = 'images/capitol.png';
					document.title = 'LeMunyon Group > Home';
/*					$('.background').load('images/capitol.png',function(){
						$('.background').attr('src','images/capitol.png');													
						$('.background').fadeIn();
					});*/
					
					break;
				case 'services.php':
					img = 'images/freedom.png';
					document.title = 'LeMunyon Group > Services';					
					break;
				case 'about.php':
					img = 'images/jefferson.png';
					document.title = 'LeMunyon Group > About';					
					break;
				case 'resources.php':
					img = 'images/pointingman.png';
					document.title = 'LeMunyon Group > Resources';						
					break;
				case 'contact.php':
					img = 'images/419.png';
					document.title = 'LeMunyon Group > Contact';						
					break;	
				default:
					img = 'images/capitol.png';	  	
				}
				
				if(screen.width<=1152){
					$('.content').css('width','600px');
					$('.footer').css('width','600px');
				}
											
				if($.browser.msie == true || $.browser.mozilla == true){					
					document.getElementById('background').setAttribute("src",img);	
					$('#background').css('display','block');					
				}else{
					$('#background').hide();
					$('#background').load(img,function(){
						$('#background').attr('src',img);													
						$('#background').fadeIn(1000);													   
					});
				}	
}


	

