var docwin;
var preswin;
var helpwin;

function jsOpenDoc(url)
{
   var i;

   if(url != '')
   {
      i = url.indexOf('.pdf');
     
      
      if(window.screen.width >=1024){
         docwin = window.open(url,'doc','left=10,top=10,width=665,height=690,menubar=no,toolbar=no,resizable=yes,scrollbars=yes,dependant=yes');
      } else {
         docwin = window.open(url,'doc','left=10,top=10,width='+(window.screen.width-30)+',height='+(window.screen.height-70)+',menubar=no,toolbar=no,resizable=yes,scrollbars=yes,dependant=yes');
      }
      docwin.window.focus();
      docwin.focus();
      if(i!=-1) {
         window.open('/clientresources/documentation/documents/_loading.html','','left='+(window.screen.width-200)/2+',top='+(window.screen.height-50)/2+',width=200,height=150,menubar=no,toolbar=no,resizeable=no,scrollbars=no,dependant=yes');
      }
  }
}

function jsOpenResource(url)
{
   if(url != '')
   {
      docwin = window.open(url,'doc','left=10,top=10,width='+(window.screen.width-30)+',height='+(window.screen.height-70)+',menubar=no,toolbar=no,resizable=yes,scrollbars=yes,dependant=yes');
      docwin.window.focus();
      docwin.focus();
   }
}

function jsOpenPresentation(url)
{
   if(url != '')
   {   	
   	  if(window.screen.width >= 1024){  
         preswin = window.open(url,'pres','left=10,top=10,width='+(window.screen.width-260)+',height='+(window.screen.height-300)+',menubar=no,toolbar=no,resizable=yes,scrollbars=yes,dependant=yes');
      } else {
      	preswin = window.open(url,'pres','left=10,top=10,width='+(window.screen.width-30)+',height='+(window.screen.height-70)+',menubar=no,toolbar=no,resizable=yes,scrollbars=yes,dependant=yes');
      }
      preswin.window.focus();
      preswin.focus();
   }
}

function jsOpenGlossary()
{
   helpwin = window.open('/Sitehelp/default.asp?leftframe=/Sitehelp/HelpNav.asp&mainframe=/Sitehelp/Glossary.asp','SiteHelp','width=420,height=340');
   helpwin.window.focus();
   helpwin.focus();
}

function MM_controlShockwave(objStrNS,objStrIE,cmdName,frameNum) { //v2.0
  var objStr = (navigator.appName=='Netscape')?objStrNS:objStrIE;
  if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
      (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
    objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
  if (eval(objStr) != null)
    eval(objStr+'.'+cmdName+'('+((cmdName=='GotoFrame')?frameNum:'')+')');
}