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 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 id          = (arguments[6]==null) ? '' : arguments[6];
		var ancho       = (arguments[7]==null) ? '100px' : arguments[7];
		
		var str  = '<div style="position:absolute; left:0px; top:0px; letter-spacing:0; width:'+ ancho +'; ' + 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 div1 = document.getElementById('contenidos').style.height;
	var div2 = document.getElementById('apDiv13').style.height;
	var div3 = document.getElementById('apDiv5').style.height;
	
   //var pie = document.body.scrollHeight;
   var pie = (document.body.scrollHeight > window.innerHeight) ? document.body.scrollHeight : window.innerHeight;
   var pie = (document.body.scrollHeight > document.body.clientHeight) ? document.body.scrollHeight : document.body.clientHeight;
   
	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);
}