function positiondivHorizontal() {
    menuwidth = parseInt(crossmain.offsetWidth)
    mainobjoffsetW = getposOffset(crossmain, "left")
    statusdiv.style.left = menu_width + mainobjoffset + 10 + "px"
}

function divMoveLeft() {
    scrollspeed = 2;
    if (window.uptime) clearTimeout(uptime)
    if (movestate != "left") moveLeft()
}

function divMoveRight() {
    scrollspeed = 2;
    if (window.downtime) clearTimeout(downtime)
    if (movestate != "right") moveRight()
}

function moveRight() {
    if (loadedyes) {
        movestate = "right"
        if (iedom && parseInt(cross_scrollHorizontal.style.left) < 0) {
            cross_scrollHorizontal.style.left = parseInt(cross_scrollHorizontal.style.left) + scrollspeed + "px"
            showhidediv("hidden")
        }
        else
            showhidediv("visible")
    }
    uptime = setTimeout("moveRight()", 10)
}

function moveLeft() {
    if (loadedyes) {
        movestate = "left"
        if (iedom && parseInt(cross_scrollHorizontal.style.left) > (menu_width - actualwidth)) {
            cross_scrollHorizontal.style.left = parseInt(cross_scrollHorizontal.style.left) - scrollspeed + "px"
            showhidediv("hidden")
        }
        else
            showhidediv("visible")
    }
    downtime = setTimeout("moveLeft()", 10)
}

function fillupHorizontal() {
    if (iedom) {
        crossmain = document.getElementById ? document.getElementById("motioncontainerHorizontal") : document.all.motioncontainer
        menu_width = parseInt(crossmain.style.width)
        mainobjoffset = getposOffset(crossmain, "top")
        cross_scrollHorizontal = document.getElementById ? document.getElementById("motiongalleryHorizontal") : document.all.motiongallery
        actualwidth = cross_scrollHorizontal.offsetWidth
        crossmain.onmousemove = function(e) {
            motionengine(e)
        }

        crossmain.onmouseout = function(e) {
            stopmotion(e)
            showhidediv("hidden")
        }
    }
    if (window.opera) {
        cross_scrollHorizontal.style.left = menu_width - actualwidth + 'px'
        setTimeout('cross_scrollHorizontal.style.left=0', 10)
    }
    loadedyes = 1
    if (endofgallerymsg != "") {
        creatediv()
        positiondivHorizontal()
    }
}
//window.onload = fillupHorizontal