<%
bigurl = "bigscreen.htm"
smallurl = "smallscreen.htm"
a = lcase(request.servervariables("http_user_agent"))
if instr(a,"msie 5")>0 or instr(a,"msie 4")>0 then
%>
<script language="javascript">
var w = document.body.clientwidth;
if (w>=650)
{
window.location.href="<%=bigurl%>";
}
else
{
window.location.href="<%=smallurl%>";
}
</script>
<%
elseif instr(a,"msie 3")>0 then
smallurl = "smallscreen.htm"
bigurl = "bigscreen.htm"
a = request("http_ua_pixels")
url = smallurl
if instr(a,"x")>0 then
a = split(a,"x")
if clng(a(0)) >= 650 then
url = bigurl
end if
end if
response.redirect(url)
elseif instr(a,"zilla/4")>0 then
%>
<script language="javascript">
var w = document.body.clientwidth;
if (w>=650)
{
window.location.href="<%=bigurl%>";
}
else
{
window.location.href="<%=smallurl%>";
}
</script>
<%
elseif instr(a,"zilla/3")>0 then
%>
<script language="javascript">
var sizer=java.awt.toolkit.getdefaulttoolkit();
var scrsize=sizer.getscreensize();
var scrw=scrsize.width;
if (scrw>=650)
{
window.location.href="<%=bigurl%>";
}
else
{
window.location.href="<%=smallurl%>";
}
</script>
<%
else
respose.redirect(smallurl)
end if
%>
