﻿var up = document.getElementById('left');
var browser = navigator.appName;
var ver = navigator.appVersion;
var id = ver.split(";");
var ie = id[1];

//alert("sdf"+ie+"sdf");
if(browser=="Netscape")
{
    if(screen.width<="1024")
    {
        if(up!=null)
            up.style.position = "absolute";
    }
    if(screen.width=="1280")
    {
        if(up!=null)
            up.style.position = "absolute";
    }
    if(screen.width>"1280")
    {
        if(up!=null)
            up.style.position = "absolute";
    }
}
else
{
    if(ie == " MSIE 7.0")
    {
        if(screen.width<="1024")
        {
            if(up!=null)
                up.style.position = "absolute";
        }
        if(screen.width=="1280")
        {
            if(up!=null)
                up.style.position = "absolute";
        }
        if(screen.width>"1280")
        {
            if(up!=null)
                up.style.position = "absolute";
        }
    }
    else
    {
        if(screen.width<="1024")
        {
            if(up!=null)
                up.style.position = "relative";
        }
        if(screen.width=="1280")
        {
            if(up!=null)
                up.style.position = "relative";
        }
        if(screen.width>"1280")
        {
            if(up!=null)
                up.style.position = "relative";
        }
    }
}
