<body>


<script language="javascript">

if(document.body.clientWidth>='800')
{
image="big.gif";
}

else if(document.body.clientWidth>='600')
{
image="med.gif";
}

else if(document.body.clientWidth<='600')
{
image="small.gif";
}

document.write("<img src="+image+">");

</script>

</body>

</html>