<!--

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  if(document.getElementById){
   for (i=0; i<(args.length-2); i+=3){
   obj=document.getElementById(args[i]);v=args[i+2];
v=(v=='show')?'visible':(v='hide')?'hidden':v;
   if(obj)obj.style.visibility=v;
   }
  }
  else{
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
 }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function downloadClient() {
    if(detect()) { 
    	top.location = "http://my.infotriever.com/download/getinfotriever.html";
	} else {
		top.location = "http://my.infotriever.com/download/nsgetinfotriever.html";
	}
}

function getInfo(formid)
{
   document.ifbstoreformid.formid.value=formid;
   window.open ('ifbwaiting.html','postpopWin','width=600,height=575,toolbar=no,menubar=no,resizable=1,titlebar=yes,location=no,scrollbars=yes');
}

function register()
{
  if (detect()) {
	try {  
    	if (!Inforbit.clientInstalled) {
      		top.location = "https://my.infotriever.com/portal?cmd=RegistrationBlocked";
    	} else {
      		Inforbit.RequestRegistration ();
    	}
	} catch (ex) {
	    top.location = "https://my.infotriever.com/portal?cmd=RegistrationBlocked";
	}
    
  } else { 
    if (!detectNSBrowserPluginR()) {
      top.location = "https://my.infotriever.com/portal?cmd=RegistrationBlocked";
    } else {
      window.open('https://my.infotriever.com/download/nsreqregistration.html?','addsigWin','width=10,height=10,left=3000,top=0,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
    }
  }
}

// Original JavaScript code by Duncan Crombie: dcrombie@chirp.com.au
// Please acknowledge use of this code by including this header.
 

  var bikky = document.cookie;
 
  function getCookie(name) { // use: getCookie("name");
    var index = bikky.indexOf(name + "=");
    if (index == -1) return null;
    index = bikky.indexOf("=", index) + 1; // first character
    var endstr = bikky.indexOf(";", index);
    if (endstr == -1) endstr = bikky.length; // last character
    return unescape(bikky.substring(index, endstr));
  }
 
  var IsRegistered = getCookie("InfotrieverIsRegistered");
 
function openwindowlink(WhichFile) {
 var TargetPage;
 if (WhichFile == 1) TargetPage = "infotriever.pdf";
 else TargetPage = "flash_demo_web.html";
 
 if (IsRegistered){
   if (WhichFile==1) self.location.href="infotriever.pdf";
   else newwin = window.open(TargetPage,"flash","height=400,width=640,directories=yes,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no");
 }
 else {
   self.location.href = "registration_form.asp";
 }  
}

function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="images/titles/quote.gif"
myimages[2]="images/titles/quote2.gif"
myimages[3]="images/titles/quote4.gif"
myimages[4]="images/titles/quote4.gif"

//specify corresponding links below
var imagelinks=new Array()
imagelinks[1]="testimonials.asp"
imagelinks[2]="testimonials.asp"
imagelinks[3]="testimonials.asp"
imagelinks[4]="press_release13.asp"

var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>')
}

function random_header(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="images/menu_flashheader1.jpg"
myimages[2]="images/menu_flashheader2.jpg"
myimages[3]="images/menu_flashheader3.jpg"
myimages[4]="images/menu_flashheader4.jpg"

//specify corresponding links below
var imagelinks=new Array()
imagelinks[1]="press_release12.asp"
imagelinks[2]="press_release12.asp"
imagelinks[3]="press_release12.asp"
imagelinks[4]="press_release12.asp"

var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<a href='+'"'+imagelinks[ry]+'"'+'><img src="'+myimages[ry]+'" border=0></a>')
}

function flashdemo() 
{ 
self.name = "Parent_Window"; 
window.open('flash_demo_web.html','DEMO','width=600,height=440,toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=0,copyhistory=0');
}

function businesses() 
{ 
window.open('http://www.infotriever.com/partners.asp','BIZ','toolbar=0,directories=0,menubar=0,status=0,resizable=0,location=0,scrollbars=1,copyhistory=0');
}

//-->

