function html_size_width(){if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth-16;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winW = document.body.offsetWidth-20;
 }
}return winW;}function html_size_height(){if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winH = window.innerHeight-16;
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winH = document.documentElement.offsetHeight-20;
 }
}return winH;}	
/* Biblioth&egrave;que DHTML */

var DHTML = 0, DOM = 0, MS = 0, NS = 0, OP = 0;

function DHTML_init() {

 if (window.opera) {
     OP = 1;
 }
 if(document.getElementById) {
   DHTML = 1;
   DOM = 1;
 }
 if(document.all && !OP) {
   DHTML = 1;
   MS = 1;
 }
if(document.layers && !OP) {
   DHTML = 1;
   NS = 1;
 }
}

function getElem(p1,p2,p3) {
 var Elem;
 if(DOM) {
   if(p1.toLowerCase()=="id") {
     if (typeof document.getElementById(p2) == "object")
     Elem = document.getElementById(p2);
     else Elem = void(0);
     return(Elem);
   }
   else if(p1.toLowerCase()=="name") {
     if (typeof document.getElementsByName(p2) == "object")
     Elem = document.getElementsByName(p2)[p3];
     else Elem = void(0);
     return(Elem);
   }
   else if(p1.toLowerCase()=="tagname") {
     if (typeof document.getElementsByTagName(p2) == "object" ||
        (OP && typeof document.getElementsByTagName(p2) == "function"))
     Elem = document.getElementsByTagName(p2)[p3];
     else Elem = void(0);
     return(Elem);
   }
   else return void(0);
 }
 else if(MS) {
   if(p1.toLowerCase()=="id") {
     if (typeof document.all[p2] == "object")
     Elem = document.all[p2];
     else Elem = void(0);
     return(Elem);
   }
   else if(p1.toLowerCase()=="tagname") {
     if (typeof document.all.tags(p2) == "object")
     Elem = document.all.tags(p2)[p3];
     else Elem = void(0);
     return(Elem);
   }
   else if(p1.toLowerCase()=="name") {
     if (typeof document[p2] == "object")
     Elem = document[p2];
     else Elem = void(0);
     return(Elem);
   }
   else return void(0);
 }
 else if(NS) {
   if(p1.toLowerCase()=="id" || p1.toLowerCase()=="name") {
   if (typeof document[p2] == "object")
     Elem = document[p2];
     else Elem = void(0);
     return(Elem);
   }
   else if(p1.toLowerCase()=="index") {
    if (typeof document.layers[p2] == "object")
     Elem = document.layers[p2];
    else Elem = void(0);
     return(Elem);
   }
   else return void(0);
 }
}

function getCont(p1,p2,p3) {
   var Cont;
   if(DOM && getElem(p1,p2,p3) && getElem(p1,p2,p3).firstChild) {
     if(getElem(p1,p2,p3).firstChild.nodeType == 3)
       Cont = getElem(p1,p2,p3).firstChild.nodeValue;
     else
       Cont = "";
     return(Cont);
   }
   else if(MS && getElem(p1,p2,p3)) {
     Cont = getElem(p1,p2,p3).innerText;
     return(Cont);
   }
   else return void(0);
}

function getAttr(p1,p2,p3,p4) {
   var Attr;
   if((DOM || MS) && getElem(p1,p2,p3)) {
     Attr = getElem(p1,p2,p3).getAttribute(p4);
     return(Attr);
   }
   else if (NS && getElem(p1,p2)) {
       if (typeof getElem(p1,p2)[p3] == "object")
        Attr=getElem(p1,p2)[p3][p4]
       else
        Attr=getElem(p1,p2)[p4]
         return Attr;
       }
   else return void(0);
}

function setCont(p1,p2,p3,p4) {
   if(DOM && getElem(p1,p2,p3) && getElem(p1,p2,p3).firstChild)
     getElem(p1,p2,p3).firstChild.nodeValue = p4;
   else if(MS && getElem(p1,p2,p3))
     getElem(p1,p2,p3).innerText = p4;
   else if(NS && getElem(p1,p2,p3)) {
     getElem(p1,p2,p3).document.open();
     getElem(p1,p2,p3).document.write(p4);
     getElem(p1,p2,p3).document.close();
   }
}

DHTML_init();
	var defaultMenuWidth="400px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
linkset[0]='<left><a href="http://security.bfioptilas.se/%C2%A0?sid=1d8efd45cf71099b4b58f0d5a302b919/objects/1_3_1366747259/Thermal+Uncooled+Cameras-9.htm"><b>UV Cameras</b></a>'
linkset[0]+='<font color="#00386e"><ul><li>Missile plume detection</li>'
linkset[0]+='<li>Sniper detection</li>'
linkset[0]+='<li>Snow camouflage</li>'
linkset[0]+='<li>Fingerprint analysis</li>'
linkset[0]+='<li>Counterfeit currency</li></ul></font></left>'



linkset[1]='<left><a href="http://security.bfioptilas.se/%C2%A0?sid=1d8efd45cf71099b4b58f0d5a302b919/objects/1_3_1366747259/-28.htm"><b>VISIBLE CAMERAS(0.4 to 0.8&mu;m)</b></a>'
linkset[1]+='<font color="#00386e"> <ul><li>Border surveillance</li>'
linkset[1]+='<li>Law enforcement</li>'
linkset[1]+='<li>Military surveillance</li>'
linkset[1]+='<li>Airport protection</li>'
linkset[1]+='<li>Harbor protection</li></ul></font></left>'

linkset[2]='<left><a href="http://security.bfioptilas.se/%C2%A0?sid=1d8efd45cf71099b4b58f0d5a302b919/objects/1_3_1366747259/Thermal+Uncooled+Cameras-9.htm"><b>Near IR CAMERAS(0.8 to 1&mu;m)</b></a>'
linkset[2]+='<font color="#00386e"><ul><li>Low light NIR imaging</li>' 
linkset[2]+='<li>Biometrics security</li>' 
linkset[2]+='<li>NIR hyperspectral Imaging</li>' 
linkset[2]+='<li>Counterfeit paints</li>' 
linkset[2]+='<li>NIR laser illumination</li></ul></font></left>'



linkset[3]='<left><a href="http://security.bfioptilas.se/%C2%A0?sid=1d8efd45cf71099b4b58f0d5a302b919/objects/1_3_1366747259/R&D+Products-10.htm"><b>Short IR CAMERAS(1 to 2.7&mu;m)</b></a>'
linkset[3]+='<font color="#00386e"><ul><li>Low light nightvision </li>' 
linkset[3]+='<li>Target recognition</li>' 
linkset[3]+='<li>Eyesafe laser illumination</li>' 
linkset[3]+='<li>Eyesafe laser rangefinder</li>' 
linkset[3]+='<li>Covert surveillance</li></ul></font></left>' 


linkset[4]='<left><a href="http://security.bfioptilas.se/%C2%A0?sid=1d8efd45cf71099b4b58f0d5a302b919/objects/1_3_1366747259/Thermal+Uncooled+Cameras-9.htm"><b>Mid IR CAMERAS(3 to 5&mu;m)</b></a>'
linkset[4]+='<font color="#00386e"><ul><li>Very long range surveillance</li>'
linkset[4]+='<li>Coastal surveillance</li>'
linkset[4]+='<li>Marine nightvision</li>'
linkset[4]+='<li>Continuous zoom thermal imagers</li>'
linkset[4]+='<li>High temperature targets</li></ul></font></left>'

linkset[5]='<left><a href="http://security.bfioptilas.se/%C2%A0?sid=1d8efd45cf71099b4b58f0d5a302b919/objects/1_3_1366747259/Thermal+Uncooled+Cameras-9.htm"><b>Far IR CAMERAS(8 to 12&mu;m)</b></a>'
linkset[5]+='<font color="#00386e"><ul><li>Cold climate surveillance </li>' 
linkset[5]+='<li>Imaging through smoke & aerosols </li>'
linkset[5]+='<li>Short & mid-range handheld imagers</li>'
linkset[5]+='<li>Helmet mounted imagers</li>'
linkset[5]+='<li>Fire detection</li></ul></font></left>'


linkset[6]='<left><a href="http://security.bfioptilas.se/%C2%A0?sid=1d8efd45cf71099b4b58f0d5a302b919/objects/1_3_1366747259/-30.htm"><b>Perimeter Surveillance Radar</b></a>'
linkset[6]+='<font color="#00386e"> <ul><li>Border protection</li>'
linkset[6]+='<li>Critical assets surveillance</li>'
linkset[6]+='<li>All-weather surveillance</li>' 
linkset[6]+='<li>24/7 intrusion detection</li>'
linkset[6]+='<li>Target tracking</li></ul></font></left>'


linkset[7]='<left><a href="http://security.bfioptilas.se/%C2%A0?sid=1d8efd45cf71099b4b58f0d5a302b919/objects/1_3_1366747259/Radar+Through+Wall-44.htm"><b>Through-wall Radar</b></a>'
linkset[7]+='<font color="#00386e"><ul><li>Urban-combat</li>'
linkset[7]+='<li>Anti-terrorism</li>'
linkset[7]+='<li>Hostage rescuing</li>'
linkset[7]+='<li>Ambushes prevention</li>'
linkset[7]+='<li>Search & Rescue</li></ul></font></left>'


////No need to edit beyond here

var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : 

window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : 

window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu;var test=true; 

function chess_light(){
var div = document.getElementById('tp_chessboard_menu');
  if (test)
    div.childNodes[0].childNodes[0].childNodes[0].childNodes[0].style.backgroundColor = '#962f34';
  else
    div.childNodes[0].childNodes[0].childNodes[0].childNodes[0].style.backgroundColor = '#8b9fc3';
test = !test;
  window.setTimeout("chess_light()",200);
}var selected_chess = -1;
function chess_menu(){
  var div = document.getElementById("tp_chessboard_menu");
  div.replaceChild(chess_construct(), div.firstChild);
}

function chess_construct(){
  var table = document.createElement("table");
  table.style.borderWidth = "0px";
    table.style.margin = "0";
    table.style.margin = "0";
    table.cellPadding= "0";
    table.cellSpacing= "0";
  var tbody = document.createElement("tbody");
  var tr = document.createElement("tr");
  var pair = 0;
  var nb_nodes = document.getElementById("tp_chessboard_menu_ul").childNodes.length;
  for (var i=0;i<nb_nodes; i++){
    if (i<8){
      if (i==4) 
         pair = 1;
      var n = document.getElementById("tp_chessboard_menu_ul").childNodes[i];
      var link = document.createElement("a");

      link.href = n.firstChild.href;
      link.target = n.firstChild.target;
      link.innerHTML = n.firstChild.innerHTML;
      link.style.fontSize = "11px";
        if (selected_chess==i) link.style.color= "#962f34";

      var td = document.createElement("td");
      td.style.height = "57px";
      td.style.overflow = "hidden";
      td.style.textAlign = "center";
      if (pair == 0){
        td.style.background = "#c0c0c0";
        pair = 1;
      }
      else{
        td.style.background = "#CFCFCF";
        pair = 0;
      }

      var div = document.createElement("div");
      div.style.width = "100px";
      div.style.overflow = "hidden";
      div.appendChild(link);
      td.appendChild(div);
      if (i==4){
         tbody.appendChild(tr);
         var tr = document.createElement("tr");
      }
      tr.appendChild(td);
    }
  }
  tbody.appendChild(tr);
  table.appendChild(tbody);
  return table;
}

function display_contact(type){ var peremption = 1000*60*60*24*365;if (type=='open') {document.getElementById('contact_info').style.display = 'block';fixer_valeur('contactdip', '1', peremption);}if (type=='close') {document.getElementById('contact_info').style.display = 'none';fixer_valeur('contactdip', '0', peremption);}}

function fixer_valeur(indicateur, valeur, expire) {
 var maintenant = new Date();
 var temps = new Date(maintenant.getTime() + expire);
 document.cookie = indicateur+"="+valeur+"; expires="+temps.toGMTString()+";";
}

function cherche_valeur(indicateur) {
 var valeur = 1;
 if(document.cookie) {
  var valeur_depart = document.cookie.indexOf(indicateur+"=");
  if (valeur_depart != -1){
    valeur_depart +=  indicateur.length + 1;
    var sub = document.cookie.substring(valeur_depart);
    var valeur_fin = sub.indexOf(";");
    if (valeur_fin == -1)
     valeur_fin = sub.length;
    valeur = sub.substring(0,valeur_fin);

  }
 }
 return valeur;
}

function init_contactdisp(){
  if (cherche_valeur('contactdip') == 0) document.getElementById('contact_info').style.display = 'none';
  else document.getElementById('contact_info').style.display = 'block';

}

