//v 2.0
// Eduard Prats Molner
// NO ES NECESSARI INCLUIR checkbrowser libray
//Note: remember to include the checkbrowser library with this document

function mostra(id){
	if (document.getElementById) document.getElementById(id).style.visibility = 'visible';
	else if (document.layers) document.layers[id].visibility = 'visible';
	else if (document.all) document.all[id].style.visibility = 'visible';
	else alert("Browser Not Supported!");
}

function oculta(id){
	if (document.getElementById) document.getElementById(id).style.visibility = 'hidden';
	else if (document.layers) document.layers[id].visibility = 'hidden';
	else if (document.all) document.all[id].style.visibility = 'hidden';
	else alert("Browser Not Supported!");
}

function setPos(id,X,Y){
	if(document.all) {
	    var x = X+" px";
		var y = Y+" px";
		document.all[id].style.left = x;
		document.all[id].style.top = y;
	}
	else if(document.getElementById) {
		document.getElementById(id).style.left = X.toString() +"px";
		document.getElementById(id).style.top = Y.toString() +"px";
		}
	else if(document.layers){
		document.layers[id].left = X;
		document.layers[id].top = Y;
		}
	else alert("Browser Not Supported!");
}

function posiciona(id,offsetX,offsetY){
	if(document.all) {
		var x = (parseInt(document.all[id].style.left)+offsetX)+" px";
		var y = (parseInt(document.all[id].style.top)+offsetY)+" px";
		document.all[id].style.left = x;
		document.all[id].style.top = y;
	}
	else if(document.getElementById) {
		var x = (parseInt(document.getElementById(id).style.left)+offsetX)+"px";
		var y = (parseInt(document.getElementById(id).style.top)+offsetY)+"px";
		document.getElementById(id).style.left = x;
		document.getElementById(id).style.top = y;
		}
	else if(document.layers){
			document.layers[id].left += offsetX;
			document.layers[id].top += offsetY;
		}
	else alert("Browser Not Supported!");
}

/*function carga(id,iframe,url){
	if (is.ns) (is.ns6)?document.getElementById(id).load(url,null):document.layers[id].load(url,null);
	else parent.eval(iframe).document.location = url;
}*/
