
function cw(x) {return Math.round(screen.height*.052*x);}
function dw(x){document.write(x);}

dw('<style type="text/css">');
dw('TD.TopTitle { vertical-align: top; text-align: left; ');
dw('padding-top: '+cw(.05)+'px; padding-bottom: '+cw(.2)+'px; ');
dw('font-weight: bold; font-size: '+cw(.75)+'px; color: #ffffff; ');
dw('font-family: Verdana, Arial, Helvetica, sans-serif } </style>');



function scrnW()
{
 return screen.width;
}
function SizeImg(x)
{
 return (screen.width*(x/100));
}
function topImg()
{
 if(scrnW()<=640)
	return 1;
 else
   if(scrnW()<=720)
	return 2;
   else
     if(scrnW()<=800)
	 return 3;
     else
       if(scrnW()<=850)
	   return 4;
	 else
	   if(scrnW()<=1024)
		return 5;
	   else
	     if(scrnW()<=1160)
	       return 6;
	     else
	       return 7;
}
function QuickJump(x)
{	

}

function TopImg()
{
 dw('<td colspan="2" background="Top'+topImg()+'.jpg" class="TopTitle">Welcome to American Shoring </td>');
}

