// JavaScript Document


function BrowserInfo()

{

  this.name = navigator.appName;

  this.codename = navigator.appCodeName;

  this.version = navigator.appVersion.substring(0,4);

  this.platform = navigator.platform;

  this.javaEnabled = navigator.javaEnabled();

  this.screenWidth = screen.width;

  this.screenHeight = screen.height;
  
  this.availWidth = screen.availWidth;
  
  this.availHeight = screen.availHeight;

}

var popUpWin=0;

function abrirVentana()

{
var b = new BrowserInfo();
var URLStr="v2007/interface.html";
var left=0;
var top=0;
var width=b.screenWidth;
var height=b.screenHeight;
var scrollbars = "no";

  if(height < 800){
     scrollbars = "yes";
  }
  width=width-10;
  height=height-65;
  if(popUpWin)

  {

    if(!popUpWin.closed) popUpWin.close();

  }

  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars='+scrollbars+',resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');

}

function findObj(theObj, theDoc)

{

  var p, i, foundObj;

  

  if(!theDoc) theDoc = document;

  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)

  {

    theDoc = parent.frames[theObj.substring(p+1)].document;

    theObj = theObj.substring(0,p);

  }

  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];

  for (i=0; !foundObj && i < theDoc.forms.length; i++) 

    foundObj = theDoc.forms[i][theObj];

  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 

    foundObj = findObj(theObj,theDoc.layers[i].document);

  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);

  

  return foundObj;

}

function setFormato(){
  var b = new BrowserInfo();
  if(b.screenWidth <=800){
     obj = findObj("interface");
     obj.width = 900;
  }
}

window.status="FrankKGomez.com";



function checkForShockwave()
{
  navigator.plugins.refresh();
  if ( navigator.plugins["Shockwave Flash"] )
    parent.location.reload();
  else
    setTimeout( "checkForShockwave()", 1000 );
}

var ShockMode = 0;
var OldVersionOfPlugin = 0;

if (navigator.mimeTypes &&
     navigator.mimeTypes["application/x-shockwave-flash"] &&
     navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)
{
  if (navigator.plugins && navigator.plugins["Shockwave Flash"])
    ShockMode = 1;
  else
    OldVersionOfPlugin = 1;
}

if (!ShockMode &&
     navigator.appName &&
     navigator.appName.indexOf("Netscape") != - 1 &&
     navigator.appVersion.indexOf("4.") != - 1 &&
     navigator.javaEnabled() &&
     netscape.softupdate.Trigger.UpdateEnabled() &&
     document.cookie.indexOf("StartedShockwaveInstall") == -1)
{
   var jarPath = new String("");

   if (navigator.platform.indexOf("Win32") >= 0 )
      jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflash32.jar"
   else if (navigator.platform.indexOf("Win16") >= 0 )
      jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflash16.jar"
   else if (navigator.platform.indexOf("MacPPC") >= 0 )
      jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflashppc.jar"

if (jarPath.length)

  {
    netscape.softupdate.Trigger.StartSoftwareUpdate (jarPath, netscape.softupdate.Trigger.FORCE_MODE);
    document.cookie='StartedShockwaveInstall;path=/;'
    setTimeout("checkForShockwave()", 1000);
  }
}

//-->

