var isNav, isIE
var coll=""
var styleObj = ""

if (parseInt(navigator.appVersion) >= 4){

	if (navigator.appName == "Netscape") {
		isNav = true
	}
	else {
		isIE = true
		coll="all."
		styleObj = ".style"
	}

}

function getObjHeight(obj){

	if (isNav){
		return obj.clip.height
	}
	else{
		return obj.clientHeight
	}
}

function getObjWidth(obj){

	if (isNav){
		return obj.clip.width
	}
	else{
		return obj.clientWidth
	}
}

function getObjLeft(obj){

	if (isNav){
		return obj.left
	}
	else{
		return obj.pixelLeft
	}
}

function getObjTop(obj){

	if (isNav){
		return obj.top
	}
	else{
		return obj.pixelTop
	}
}

function getInsideWindowWidth(){

	if (isNav){
		return window.innerWidth
	}
	else {
		return document.body.clientWidth
	}

}

function getInsideWindowHeight(){

	if (isNav){
		return window.innerHeight
	}
	else {
		return document.body.clientHeight
	}

}

function show(obj){

	obj.visibility = "visible"
}

function hide(obj){
	obj.visibility = "hidden"
}

function shiftTo(obj,x,y){

	if (isNav){
		obj.moveTo(x,y)
	}
	else {
		obj.pixelLeft = x
		obj.pixelTop = y
	}

}

function shiftBy(obj,deltaX,deltaY){

	if (isNav){
		obj.moveBy(deltaX,deltaY)
	}
	else {
		obj.pixelLeft += deltaX
		obj.pixelTop += deltaY
	}

}

function ResizeTo(obj,deltaX,deltaY){

	if (isNav){
		obj.resizeTo(deltaX,deltaY)
	}
	else {
		obj.posWidth = deltaX
		obj.posHeight = deltaY
	}

}
