if ((navigator.appVersion.substring(0,1) < 5) && (navigator.appName == 'Netscape')) fg = 121652; else top.document.title = document.title;

function init(picnum, len, wid)
{
eval ("but"+picnum+"l = new Image("+len+","+wid+")");
eval ("but"+picnum+"h = new Image("+len+","+wid+")");
eval ("but"+picnum+"w = new Image()");
eval ("but"+picnum+"l.src = './images/but"+picnum+"l.gif'");
eval ("but"+picnum+"h.src = './images/but"+picnum+"h.gif'");
return true;
}

x = init(1,124,23);
x = init(2,124,23);
x = init(3,124,23);
x = init(4,124,23);
x = init(5,124,23);
but1w = "Back to HomePage...";
but2w = "Learn more about DoEOPTIMIZER...";
but3w = "Check out our Resource Room...";
but4w = "Visit our FAQ section...";
but5w = "ANSYS section...";

function lowlight(imagename)
 {
 document[imagename].src = eval(imagename + "l.src");
 window.status='Document: Done';
 }

function highlight(imagename)
 {
 document[imagename].src = eval(imagename + "h.src");
 window.status = eval(imagename + 'w');
 }

function backbutton()
 {
 if (navigator.appName == 'Netscape' && navigator.appVersion.substr(0,1) < '5')
  {
  back();
  }
 else
  {
  top.history.back();
  }
 }

function rollover(place,imagename,stat)
 {
 document[place].src = eval(imagename+".src");
 if (stat == 'over')
  {window.status = eval(imagename + 'w');}
 else
  {window.status='Document: Done';}
 }

function popup(loc,h,w,tname)
 {
 newWindow = window.open(loc,tname,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+w+',height='+h+'');
 if (!newWindow.closed) newWindow.close();
 newWindow = window.open(loc,tname,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+w+',height='+h+'');
 }

function popone(loc,h,w,tname)
 {
 newWindow = window.open(loc,tname,'toolbar=no,screenX=1,screenY=1,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width='+w+',height='+h+'');
 }

function popmax(doc)
 {
 hsize = window.screen.availHeight - 30;
 wsize = window.screen.availWidth - 10;
 popone(doc,hsize,wsize,'Docs');
 }

function getvals()
 {
 margins = 20;
 headerheight = 134;
 if (document.body.clientWidth) realwidth = document.body.clientWidth - margins; else realwidth = 788 - margins;
 if (document.body.clientHeight) realheight = document.body.clientHeight - (headerheight + margins); else realheight = 420 - (headerheight + margins);
 if (navigator.userAgent.indexOf("Firefox") > 0)
  {
  realheight = realheight - 4;
  realwidth = realwidth - 4;
  }
 }
