// Augenreiz Browser-Info 16.08.2001

window.onError = null;

var usag = navigator.userAgent.toLowerCase();
var vers = parseInt(navigator.appVersion);


var op = false;
var nn = false;
var ie = false;
var mz = false;
var mac = false;
var win = true;
var aol = false;
var xx =false;

if (usag.indexOf('win') != -1) win = true;
	else if (usag.indexOf('mac') != -1) {mac = true; win=false}
		else xx = true;

if (usag.indexOf('aol') != -1) aol = true;

if (usag.indexOf('opera') != -1) op = true;
	else if (usag.indexOf('msie') != -1) ie = true;
		else if (usag.indexOf('mozilla') != -1) nn = true;
			else xx = true;

var iewin = 0;
var iemac = 0;
var nnwin = 0;
var nnmac = 0;
var opwin = 0;
var opmac = 0;
var mzwin = 0;
var mzmac = 0;

if (op) {
	if (win) opwin = vers * 10;
	if (mac) opmac = vers * 10;
	if (usag.indexOf('opera/3') != -1) opwin = 30;
	if (usag.indexOf('opera 4') != -1) opwin = 40;
	if (usag.indexOf('opera/4') != -1) opwin = 40;
	if (usag.indexOf('opera 5') != -1 && win) opwin = 50;
	if (usag.indexOf('opera/5') != -1 && win) opwin = 50;
	if (usag.indexOf('opera 5') != -1 && mac) opmac = 50;
	if (usag.indexOf('opera/5') != -1 && mac) opmac = 50;
	if (opwin + opmac == 0) xx = true;}

if (ie) {
	if (win) iewin = vers * 10;
	if (mac) iemac = vers * 10;
	if (usag.indexOf('msie 3') != -1 && win) iewin = 30;
	if (usag.indexOf('msie 4.0') != -1 && win) iewin = 40;
	if (usag.indexOf('msie 5.0') != -1 && win) iewin = 50;
	if (usag.indexOf('msie 5.5') != -1 && win) iewin = 55;
	if (usag.indexOf('msie 3') != -1 && mac) iemac = 30;
	if (usag.indexOf('msie 4.0') != -1 && mac) iemac = 40;
	if (usag.indexOf('msie 4.5') != -1 && mac) iemac = 45;
	if (usag.indexOf('msie 5.0') != -1 && mac) iemac = 50;
	if (iewin + iemac == 0) xx = true;}

if (nn) {
	if (usag.indexOf('mozilla/2') != -1 && win) nnwin = 20;
	if (usag.indexOf('mozilla/3') != -1 && win) nnwin = 30;
	if (usag.indexOf('mozilla/4') != -1 && win) nnwin = 40;
	if (usag.indexOf('netscape6') != -1 && win) nnwin = 50;
	if (usag.indexOf('mozilla/2') != -1 && mac) nnmac = 20;
	if (usag.indexOf('mozilla/3') != -1 && mac) nnmac = 30;
	if (usag.indexOf('mozilla/4') != -1 && mac) nnmac = 45;
	if (usag.indexOf('mozilla/4.0') != -1 && mac) nnmac = 40;
	if (usag.indexOf('netscape6') != -1 && mac) nnmac = 50;
	if (nnwin + nnmac == 0) {
		if (usag.indexOf('mozilla/5') != -1 && win) mzwin = 50;
		if (usag.indexOf('mozilla/5') != -1 && mac) mzmac = 50;
		if (mzwin + mzmac == 0) xx = true;
			else {nn = false; mz = true;}}}

var sum = opwin + opmac + iewin + iemac + nnwin + nnmac + mzwin + mzmac;

var gen4up = false;
var ie4up = false;
var ie5up = false;
var ie4 = false;
var ie5 = false;
var nn4up =false;
var nn4 = false;
var nn6 = false;
var op5 = false;

if (sum >= 40) gen4up = true;
if (gen4up && ie) ie4up = true;
if (gen4up && nn) nn4up = true;
if (ie && sum == 40) ie4 = true;
if (ie && sum == 50) ie5 = true;
if (ie && sum >= 50) ie5up = true;
if (nn4up && sum < 50) nn4 = true;
if (nn4up && sum == 50) nn6 = true;
if (op && sum == 50) op5 = true;

scrX = 0;
scrY = 0;
if (window.screen) {scrX = screen.availWidth; scrY = screen.availHeight}

swfver = 0;
swf3 = false;
swf4 = false;
swf5 = false;

if (navigator.plugins)
	{
	if (navigator.plugins["Shockwave Flash"])
		{
		swfver = parseInt(navigator.plugins["Shockwave Flash"].description.charAt(navigator.plugins["Shockwave Flash"].description.indexOf(".") - 1));
		}
	}

if (iewin >= 40) with (document)
	{
	writeln ('<script language="VBscript">');
	writeln ('on error resume next');
	writeln ('swf3 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))');
	writeln ('swf4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))');
	writeln ('swf5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))');
	writeln ('<'+'/'+'script>');
	}

if (swf3) swfver = 3;
if (swf4) swfver = 4;
if (swf5) swfver = 5;


// inicio de controlar resolucion 
function resolucion(){

if ((screen.width == 640) && (screen.height == 480)) {		
	valor=600
		table1.width=valor

}

if ((screen.width == 800) && (screen.height == 600)){
		valor=760
		table1.width=valor
	}
if ((screen.width == 1024) && (screen.height == 768)){
		valor=1000
		table1.width=valor
		

	}
}

//fin de controlar resolucion 
