//alert("The screen width is: "+screen.availWidth);
//alertSize();

function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  window.alert( 'Width = ' + myWidth );
  //window.alert( 'Height = ' + myHeight );
}

if( screen.availWidth < 1040 ) {
	document.write( '<link rel="stylesheet" type="text/css" href="../styles/res1024.css" />' );
} 

function changeImg(stylePassed){

		if(stylePassed=="banner-home"){
			
			if( screen.availWidth < 1040 ) {
				document.write('<span><img src="images/'+stylePassed+'-sm.jpg" alt=""/><span>	');
			} else{
				document.write('<span><img src="images/'+stylePassed+'.jpg" alt=""/><span>	');
			}
		}else{
	
			if( screen.availWidth < 1040 ) {
				document.write('<span><img src="../images/'+stylePassed+'-sm.jpg" alt=""/><span>	');
			} else{
				document.write('<span><img src="../images/'+stylePassed+'.jpg" alt=""/><span>	');
			}
		}

/*	if( screen.availWidth < 1040 ) {
		var bodyId = this.document.body;	
		var bodyStyle = bodyId.className;
		
		var bannerObj = this.document.getElementById("banner");	
		var allImg = bannerObj.getElementsByTagName("img");
		var imgObj = allImg[0];
		//var imgObjSrc = allImg[0].src;
		
		if(bodyStyle=="mnBss"){
				
		}else if(bodyStyle=="mnBss"){
			
		}else if(bodyStyle=="mnBos"){
			
		}else if(bodyStyle=="mnBcs"){
			
		}else if(bodyStyle=="mnBcn"){
			
		}else if(bodyStyle=="mnBre"){
			
		}else if(bodyStyle=="snBge"){
			
		}else if(bodyStyle=="snBes"){		//ethics
									//imgObj.src = '../images/banner-ethics-sm.jpg';
		}else if(bodyStyle=="snBas"){
			
		}else if(bodyStyle=="snBfq"){
			
		}else if(bodyStyle=="snBct"){
			
		}

		
		
	}else{
		
	}*/
}









