
// Global variables


var isMinV1_NS4 = (navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) >= 4 && parseFloat(navigator.appVersion) < 5) ? 1 : 0;
var isMinV1_IE4 = (document.all) ? 1 : 0;
var isMinV1_IE5 = (isMinV1_IE4 && navigator.appVersion.indexOf("5.") >= 0) ? 1 : 0;
var isMinV1_IE55 = (isMinV1_IE5 && navigator.appVersion.indexOf("5.5") >= 0) ? 1 : 0;
var isMinV1_NS6 = (navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) >= 5) ? 1 : 0;

var isNav4, isIE4
var range = ""
var styleObj = ""
if (parseInt(navigator.appVersion) >= 4) {
    if (navigator.appName == "Netscape") { 
       
	isNav4 = true
    
	} else {
        isIE4 = true
        range = "all."
        styleObj = ".style"
   
	}
}

// Convert object name string or object reference
// into a valid object reference
function getObject(obj) {
    var theObj
    if (typeof obj == "string") {
        theObj = eval("document." + range + obj + styleObj)
    } else {
        theObj = obj
    }
    return theObj
}

// Positioning an object at a specific pixel coordinate
function shiftTo(obj, x, y) {
    var theObj = getObject(obj)
    if (isNav4) {
        theObj.moveTo(x,y)
    } else {
        theObj.pixelLeft = x
        theObj.pixelTop = y
    }
}

