function shadowText() {
	if (parseInt(navigator.appVersion) >= 4) {
		var inverse = (arguments[5]==null) ? 0 : arguments[5];
		switch(inverse){
			case 0:
				var textcolor   = 'color:#' + ((arguments[0]==null) ? 'black' : arguments[0]) + ';';
				var shadowcolor = 'color:#' + ((arguments[1]==null) ? 'white'  : arguments[1]) + ';';
				break;
			case 1:
				var textcolor   = 'color:#' + ((arguments[1]==null) ? 'white'  : arguments[1]) + ';';
				var shadowcolor = 'color:#' + ((arguments[0]==null) ? 'black' : arguments[0]) + ';';
				break;
			case 'link':
				var textcolor   = 'color:#' + ((arguments[1]==null) ? 'white'  : arguments[1]) + ';';
				var shadowcolor = 'color:#' + ((arguments[0]==null) ? 'black' : arguments[0]) + ';';
				break;
		}
		var id          = (arguments[6]==null) ? '' : arguments[6];
		var fontInfo    = (arguments[2]==null) ? '' : 'font:' + arguments[2] + ';';
		var offx        = 'left:' + ((arguments[3]==null) ? 1 : arguments[3]) + 'px;';
		var offy        = 'top:'  + ((arguments[4]==null) ? 1 : arguments[4]) + 'px;';
		
		var str  = '<div style="position:absolute; left:0px; top:0px; width:200px; ' + fontInfo + '">';
		    str += '<span style="position:absolute; ' + fontInfo + shadowcolor + offx + offy + '"><b>' + this.toString() + '</b></span>';
		    str += '<span id="btn' + id + '" style="position:absolute;' + fontInfo + textcolor + ' left:0px; top:0px;"><b>' + this.toString() + '</b></span>';
		    str += '</div>';
 	}else{
   	var str  = '<div>' + this.toString() + '</div>';
 	}
 	return str;
}

String.prototype.shadow = shadowText;

function sobre(){
	var id = 'btn'+arguments[0];
	document.getElementById(id).style.color = '#FF5555';
}

function fuera(){
	var id = 'btn'+arguments[0];
	(arguments[0] <= 3) ? (document.getElementById(id).style.color = '#000000') : (document.getElementById(id).style.color = '#FFFFFF');
}

function redimFondo(){
	/*
	var body = document.body.clientHeight;
	var fondo = body+100+'px';
	document.getElementById('apDiv6').style.height = fondo;
	document.getElementById('apDiv30').style.height = fondo;
	document.getElementById('apDiv31').style.height = fondo;
	*/
   var pie = 2300;
	
	document.getElementById('apDiv6').style.height = pie;
	document.getElementById('apDiv30').style.height = pie;
	document.getElementById('apDiv31').style.height = pie;
}

redir = function (url){
	document.location.href = url;
}

function openVent(winName, theURL, features) {
  popWin = window.open(theURL,winName,features);
}