  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;
  }
  myWidth=myWidth-30;
  var borderwidth= Math.floor((myWidth-760)/2);
  var bimagewidth= Math.floor(borderwidth*.75);
  var bbwidth=Math.floor((borderwidth-bimagewidth)*.1)+bimagewidth
  if (bimagewidth>150) bimagewidth=150;
  var do_border_pictures=borderwidth>99;
  if (do_border_pictures ) {
    document.write('<table border=0 cellpadding=0 cellspacing=0 style="width:'+myWidth+'px;" align=center><tr> '+
                 "<td >"+
		 "<center>Napa Electric Truck</center>"+
                 '<table align=center><tr><td>'+

		 '<table align=center class="border-item-border">'+
   		 '<tr><td  >'+
		 '<img src="images/border-images/before1-napaelectrictruck.jpg" width='+bimagewidth+' class=shadowed-item>'+
   		 "</td></tr>"+
   		 '<tr><td >'+
		 '<img src="images/border-images/after1-napaelectrictruck.jpg" width='+bimagewidth+' class=shadowed-item>'+
   		 "</td></tr>"+
		 '</table><br><br><br></tr></td>'+
                 '<tr><td><br><br><br><center>Volvo Station Wagon</center><table class="border-item-border">'+
   		 '<tr><td >'+
		 '<img src="images/border-images/before1-volvowagen.jpg" width='+bimagewidth+' class=shadowed-item>'+
   		 "</td></tr>"+
   		 '<tr><td >'+
                 '<img src="images/border-images/after1-volvowagen.jpg" width='+bimagewidth+' class=shadowed-item>'+
   		 "</td></tr>"+
		 '</table>'+


                 "</td></tr></table>"+
		 "</td>"+
                 "<td width=760 class=shadowed-item>");
  }

