function StyleManager(){

	//	return the style object for an element, using its id
	this.getStyle = function(objectId) {

		//	if it's DOM-compliant...
		if(document.getElementById && document.getElementById(objectId)) {
			return document.getElementById(objectId).style;

		//	else if it's IE 4
		} else if (document.all && document.all(objectId)) {
			return document.all(objectId).style;

		//	else if it's NN 4
		} else if (document.layers && document.layers[objectId]) {
			return document.layers[objectId];

		} else {
			return false;
		}
	} 

	this.setVisOfObj = function(objectId, vis) {
		//	get the style object if possible
		var style = this.getStyle(objectId);

		//	if we got a style object, change visibility
		if(style) {
			style.visibility = vis;
			return true;

		//	else, return false since DHTML doesn't work here
		} else {
			return false;
		}

	}

	this.setXLocOfObj = function(objectId, x) {

		//	get the style object if possible
		var style = this.getStyle(objectId);

		//	if we got a style object, change visibility
		if(style) {
			style.left = x;
			return true;

		//	else, return false since DHTML doesn't work here
		} else {
			return false;
		}
	}

	this.setYLocOfObj = function(objectId, y) {

		//	get the style object if possible
		var style = this.getStyle(objectId);

		//	if we got a style object, change visibility
		if(style) {
			style.top = y;
			return true;

		//	else, return false since DHTML doesn't work here
		} else {
			return false;
		}
	}

	this.setLocOfObj = function(objectId, x, y) {

		//	get the style object if possible
		var style = this.getStyle(objectId);

		//	if we got a style object, change visibility
		if(style) {
			style.left = x;
			style.top = y;
			return true;

		//	else, return false since DHTML doesn't work here
		} else {
			return false;
		}
	}
}
