// JavaScript Document
function _get(id){
	return document.getElementById(id);
}

function _getHeight(id){
	return parseInt(_get(id).style.height);
}

function _getWidth(id){
	return parseInt(_get(id).style.width);
}

function _setHeight(id, height){
	_get(id).style.height = height + "px";
}

function _setWidth(id, width){
	_get(id).style.width = width + "px";
}

function _getMarginTop(id){
	return parseInt(_get(id).style.marginTop);
}

function _setMarginTop(id, top){
	_get(id).style.marginTop = top + "px";
}

function _setDisplay(id, disp){
	_get(id).style.display = disp;
}

function _getDisplay(id){
	return _get(id).style.display;
}

function setOpacity(obj, opac){
	obj.style.opacity = opac / 100;
	obj.style.filter = "alpha(opacity=" + opac + ")";
}

function getWindowWidth(){
	if (parseInt(navigator.appVersion) > 3){
		if (navigator.appName=="Netscape"){
			return window.innerWidth;
		}
		if (navigator.appName.indexOf("Microsoft") != -1){
			return document.body.offsetWidth;
		}
	}
	
	return null;
}

function getWindowHeight(){
	if (parseInt(navigator.appVersion) > 3){
		if (navigator.appName=="Netscape"){
			return window.innerHeight;
		}
		if (navigator.appName.indexOf("Microsoft") != -1){
			return document.body.offsetHeight;
		}
	}
	
	return null;
}

function _create(element){
	return document.createElement(element);
}