<!-- Google Analytics -->
/*
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
try {
var pageTracker = _gat._getTracker("UA-7849073-1");
pageTracker._trackPageview();
} catch(err) {}
*/

<!-- TEMPLATE SCRIPTS/CSS BEGIN  -->
function CSEcssscript (nbCol) {
  var tmp = "";
     tmp = tmp + '<link href="/css/base.css" media="screen, print" rel="stylesheet" type="text/css" />'

     if (nbCol == 3) {
       tmp = tmp + '<link href="/css/3col.css" media="screen, print" rel="stylesheet" type="text/css" />'    
     }else{
       tmp = tmp + '<link href="/css/2col.css" media="screen, print" rel="stylesheet" type="text/css" />' 
     };

     tmp = tmp +  '<style type="text/css" media="all">@import url(/css/base2.css);</style>'
     tmp = tmp + '<link href="/css/base-institution.css" media="screen, print" rel="stylesheet" type="text/css" />'

     tmp = tmp +  '<link href="/css/institution.css" media="screen, print" rel="stylesheet" type="text/css" />'
     tmp = tmp +  '<link href="/css/pf-if.css" rel="stylesheet" type="text/css" />'
  
  document.write (tmp)
}
<!-- TEMPLATE Search SCRIPTS/CSS BEGIN  -->
function SearchCSEcssscript (nbCol) {
  var tmp = "";
     tmp = tmp + '<link href="/css/base.css" media="screen, print" rel="stylesheet" type="text/css" />'

     if (nbCol == 3) {
       tmp = tmp + '<link href="/css/3col.css" media="screen, print" rel="stylesheet" type="text/css" />'    
     }else{
       tmp = tmp + '<link href="/css/2col.css" media="screen, print" rel="stylesheet" type="text/css" />' 
     };

     tmp = tmp +  '<style type="text/css" media="all">@import url(/css/base2.css);</style>'
     tmp = tmp + '<link href="/css/base-institution.css" media="screen, print" rel="stylesheet" type="text/css" />'

     tmp = tmp +  '<link href="/css/institution.css" media="screen, print" rel="stylesheet" type="text/css" />'
     tmp = tmp +  '<link href="/css/pf-if.css" rel="stylesheet" type="text/css" />'
  
  document.write (tmp)
}


<!-- OPEN BODY DIV BEGIN  -->
function CSEbody () {
  var tmp = "";
     tmp = tmp + '<div class="page">'
     tmp = tmp + '<div class="core">'
 
  document.write (tmp)
}

<!-- CLOSE BODY DIV BEGIN  -->
function CSEbodyend () {
  var tmp = "";
     tmp = tmp + '</div>'
     tmp = tmp + '</div>'

     
  document.write (tmp)
}


<!-- CLOSE COLLAYOUT  -->
function CSEclosecolLayout () {
  var tmp = "";
     tmp = tmp + '</div>'
     tmp = tmp + '</div>'

     
  document.write (tmp)
}

<!-- FIP HEADER  -->
function CSEfip () {
  var tmp = "";
  if (lang.toLowerCase() == "e") {
     tmp = tmp + '<div class="fip">'
     tmp = tmp + '<a name="tphp" id="tphp"><img src="/img/cse-e.jpg" width="372" height="20" alt="image: Communications Security Establishment Canada, Centre de la sécurité des télécommunications Canada" /></a>'
     tmp = tmp +  '</div>'
     tmp = tmp + '<div class="cwm"><img src="/img/wmms.gif" width="83" height="20" alt="image: Canada" />'
     tmp = tmp +  '</div>'
      
  }else{

 tmp = tmp + '<div class="fip">'
     tmp = tmp + '<a name="tphp" id="tphp"><img src="/img/cse-f.jpg" width="372" height="20" alt="image: Centre de la sécurité des télécommunications Canada, Communications Security Establishment Canada" /></a>'
     tmp = tmp +  '</div>'
     tmp = tmp + '<div class="cwm"><img src="/img/wmms.gif" width="83" height="20" alt="image: Canada" />'
     tmp = tmp +  '</div>'
}

  document.write (tmp)
}



<!-- INSTITUTIONAL BANNER  -->
function CSEbanner () {
  var tmp = "";
  if (lang.toLowerCase() == "e") {
     tmp = tmp + '<div class="banner">'
     tmp = tmp + '<img src="/img/lffl.gif" class="lf" height="65" width="65" alt="image:CSEC Banner" />'
     tmp = tmp +  '<p class="main">Communications Security Establishment Canada</p>'
     tmp = tmp + '<p class="siteuri">www.cse-cst.gc.ca</p>'
     tmp = tmp +  '</div>'
      
  }else{

     tmp = tmp + '<div class="banner">'
     tmp = tmp + '<img src="/img/lffl.gif" class="lf" height="65" width="65" alt="image:Bannière du CSTC" />'
     tmp = tmp +  '<p class="main">Centre de la s&eacute;curit&eacute; des t&eacute;l&eacute;communications Canada</p>'
     tmp = tmp + '<p class="siteuri">www.cse-cst.gc.ca</p>'
     tmp = tmp +  '</div>'
}

  document.write (tmp)
}



<!-- NAVIGATION AID  -->
function CSEnavaid () {
  var tmp = "";
  if (lang.toLowerCase() == "e") {
     tmp = tmp + '<div class="navaid">'
     tmp = tmp + '<a href="#cont">Skip to content</a> |'
     tmp = tmp +  '<a href="#il">Skip to institutional links</a>'
     tmp = tmp +  '</div>'
      
  }else{

     tmp = tmp + '<div class="navaid">'
     tmp = tmp + '<a href="#cont">Passer au contenu</a> |'
     tmp = tmp +  '<a href="#il">Passer aux liens institutionnels</a>'
     tmp = tmp +  '</div>'
}

  document.write (tmp)
}

<!-- CONTENT  -->
function CSEcontent () {
  var tmp = "";
  if (lang.toLowerCase() == "e") {
     tmp = tmp + '<div class="center">'
     tmp = tmp + '<div class="blackborder" id="box1">'
     tmp = tmp +  '</div>'
     tmp = tmp +  '</div>'
      
  }else{

     tmp = tmp + '<div class="center">'
     tmp = tmp + '<div class="blackborder" id="box1">'
     tmp = tmp +  '</div>'
     tmp = tmp +  '</div>'
}

  document.write (tmp)
}


<!-- COMMON MENU BLACK NAVIGATION BAR TITLE BEGINS | DEBUT DU TITRE DE LA BARRE NOIR DE NAVIGATION DE MENU COMMUNE -->
function blackNavBar () {
  var tmp = "";
  if (lang.toLowerCase() == "e") {
     tmp = tmp + '<div class="fp">'
     tmp = tmp + '<h1 class="navaid">Common menu bar links</h1>'
     tmp = tmp + '<ul class="commonbar">'
     tmp = tmp + '<li class="fiptexta"><div><a  href="javascript:goLang(fileToGo,lang);" lang="fr" xml:lang="fr" title="Fran&ccedil;ais - Version fran&ccedil;aise de cette page"><font color="white">Fran&ccedil;ais</font></a></div></li>'
     tmp = tmp + '<li class="fiptext"><div><a  href="/index-eng.html" title="CSEC Homepage"><font color="white">Home</font></a></div></li>'
     tmp = tmp + '<li class="fiptextc"><div><a  href="/contact-contactez-eng.html" title="Contact Us - Institutional contact information"><font color="white">Contact Us</font></a></div></li>'
     tmp = tmp + '<li class="fiptext"><div><a  href="/help-aide-eng.html" title="Help - Information about using the institutional Web site"><font color="white">Help</font></a></div></li>'
     tmp = tmp + '<li class="fiptext"><div><a  href="http://search.cse-cst.gc.ca/search?output=xml_no_dtd&client=english_frontend&q=&site=default_collection&proxystylesheet=english_frontend&proxyreload=1" title="Search - Search the institutional Web site"><font color="white">Search</font></a></div></li>'
     //tmp = tmp + '<li class="fiptext"><div><a  href="/search-recherche-eng.html" title="Search - Search the institutional Web site"><font color="white">Search</font></a></div></li>'	 
     tmp = tmp + '<li class="fiptextb"><div><a  href="http://www.canada.gc.ca/home.html" title="canada.gc.ca - Government of Canada Web site"><font color="white">canada.gc.ca</font></a></div></li>'
     tmp = tmp + '</ul>'
     tmp = tmp +  '</div>'
      
  }else{

    tmp = tmp + '<div class="fp">'
     tmp = tmp + '<h1 class="navaid">Liens de la barre de menu commune</h1>'
      tmp = tmp + '<ul class="commonbar">'
      tmp = tmp + '<li class="fiptexta"><div><a  href="javascript:goLang(fileToGo,lang);" lang="en" xml:lang="en" title="English - English version of the Web page"><font color="white">English</font></a></div></li>'
     tmp = tmp + '<li class="fiptext"><div><a  href="/index-fra.html" title="Accueil du CSTC"><font color="white">Accueil</font></a></div></li>'
     tmp = tmp + '<li class="fiptextc"><div><a  href="/contact-contactez-fra.html" title="Contactez-nous - Communiquez avec l\'institution"><font color="white">Contactez-nous</font></a></div></li>'
     tmp = tmp + '<li class="fiptext"><div><a  href="/help-aide-fra.html" title="Aide - Renseignements sur la fa&ccedil;on d\'utiliser le site Web institutionnel"><font color="white">Aide</font></a></div></li>'
     //tmp = tmp + '<li class="fiptext"><div><a  href="/search-recherche-fra.html" title="Recherche - Recherche dans le site Web institutionnel"><font color="white">Recherche</font></a></div></li>'	 	 
     tmp = tmp + '<li class="fiptext"><div><a  href="http://search.cse-cst.gc.ca/search?output=xml_no_dtd&client=french_frontend&q=&site=default_collection&proxystylesheet=french_frontend&proxyreload=1" title="Recherche - Recherche dans le site Web institutionnel"><font color="white">Recherche</font></a></div></li>'	 	 	 
     tmp = tmp + '<li class="fiptextb"><div><a  href="http://www.canada.gc.ca/accueil.html" title="canada.gc.ca - Site Web du gouvernement du Canada"><font color="white">canada.gc.ca</font></a></div></li>'
    tmp = tmp + '</ul>'
    tmp = tmp + '</div>'

  }

  document.write (tmp)
}

function blackNavBarForGoogle () {
  var tmp = "";
  if (lang.toLowerCase() == "e") {
     tmp = tmp + '<div class="fp">'
     tmp = tmp + '<h1 class="navaid">Common menu bar links</h1>'
     tmp = tmp + '<ul class="commonbar">'
     tmp = tmp + '<li class="fiptexta"><div><a  href="javascript:goLangGoogle();" lang="fr" xml:lang="fr" title="Fran&ccedil;ais - Version fran&ccedil;aise de cette page"><font color="white">Fran&ccedil;ais</font></a></div></li>'
     tmp = tmp + '<li class="fiptext"><div><a  href="/index-eng.html" title="CSEC Homepage"><font color="white">Home</font></a></div></li>'
     tmp = tmp + '<li class="fiptextc"><div><a  href="/contact-contactez-eng.html" title="Contact Us - Institutional contact information"><font color="white">Contact Us</font></a></div></li>'
     tmp = tmp + '<li class="fiptext"><div><a  href="/help-aide-eng.html" title="Help - Information about using the institutional Web site"><font color="white">Help</font></a></div></li>'
     tmp = tmp + '<li class="fiptext"><div><a  href="http://search.cse-cst.gc.ca/search?output=xml_no_dtd&client=english_frontend&q=&site=default_collection&proxystylesheet=english_frontend&proxyreload=1" title="Search - Search the institutional Web site">Search</a></div></li>'
     //tmp = tmp + '<li class="fiptext"><div><a  href="/search-recherche-eng.html" title="Search - Search the institutional Web site"><font color="white">Search</font></a></div></li>'	 
     //tmp = tmp + '<li class="fiptext"><div><a  href="http://search.cse-cst.gc.ca/search?output=xml_no_dtd&client=english_frontend&q=&site=default_collection&proxystylesheet=english_frontend&proxyreload=1" title="Search - Search the institutional Web site"><font color="white">Search</font></a></div></li>'	 
     tmp = tmp + '<li class="fiptextb"><div><a  href="http://www.canada.gc.ca/home.html" title="canada.gc.ca - Government of Canada Web site"><font color="white">canada.gc.ca</font></a></div></li>'
     tmp = tmp + '</ul>'
     tmp = tmp +  '</div>'
      
  }else{

    tmp = tmp + '<div class="fp">'
     tmp = tmp + '<h1 class="navaid">Liens de la barre de menu commune</h1>'
      tmp = tmp + '<ul class="commonbar">'
      tmp = tmp + '<li class="fiptexta"><div><a  href="javascript:goLangGoogle();" lang="en" xml:lang="en" title="English - English version of the Web page"><font color="white">English</font></a></div></li>'
     tmp = tmp + '<li class="fiptext"><div><a  href="/index-fra.html" title="Accueil du CSTC"><font color="white">Accueil</font></a></div></li>'
     tmp = tmp + '<li class="fiptextc"><div><a  href="/contact-contactez-fra.html" title="Contactez-nous - Communiquez avec l\'institution"><font color="white">Contactez-nous</font></a></div></li>'
     tmp = tmp + '<li class="fiptext"><div><a  href="/help-aide-fra.html" title="Aide - Renseignements sur la fa&ccedil;on d\'utiliser le site Web institutionnel"><font color="white">Aide</font></a></div></li>'
     tmp = tmp + '<li class="fiptext"><div><a  href="http://search.cse-cst.gc.ca/search?output=xml_no_dtd&client=english_frontend&q=&site=default_collection&proxystylesheet=english_frontend&proxyreload=1" title="Search - Search the institutional Web site">Search</a></div></li>'
     //tmp = tmp + '<li class="fiptext"><div><a  href="/search-recherche-fra.html" title="Recherche - Recherche dans le site Web institutionnel"><font color="white">Recherche</font></a></div></li>'
     //tmp = tmp + '<li class="fiptext"><div><a  href="http://search.cse-cst.gc.ca/search?output=xml_no_dtd&client=french_frontend&q=&site=default_collection&proxystylesheet=french_frontend&proxyreload=1" title="Recherche - Recherche dans le site Web institutionnel"><font color="white">Recherche</font></a></div></li>'	 	 	 	 
     tmp = tmp + '<li class="fiptextb"><div><a  href="http://www.canada.gc.ca/accueil.html" title="canada.gc.ca - Site Web du gouvernement du Canada"><font color="white">canada.gc.ca</font></a></div></li>'
    tmp = tmp + '</ul>'
    tmp = tmp + '</div>'

  }

  document.write (tmp)
}




<!-- FOOTER  -->
function CSEfooter () {
  var tmp = "";
  if (lang.toLowerCase() == "e") {
     tmp = tmp + '<div class="footer">'
     tmp = tmp + '<div class="footerline"></div>'
     tmp = tmp +  '<div class="foot1">'
     tmp = tmp + '<td>Last Modified: '+lastUpdate+'</td>'
     tmp = tmp +  '</div>'
     tmp = tmp +  '<div class="foot2"><a href="#tphp" title="Return to Top of Page"><img class="uparrow" src="/img/tphp.gif" width="22" height="15" alt="Top of Page" /><br />Top of Page</a></div>'
     tmp = tmp +  '<div class="foot3"><a href="/in-ai-eng.html">Important Notices</a></div>'
     tmp = tmp +  '</div>'
     
  }else{

     tmp = tmp + '<div class="footer">'
     tmp = tmp + '<div class="footerline"></div>' 
     tmp = tmp +  '<div class="foot1">'
     tmp = tmp + '<td>Mise &agrave; jour : '+lastUpdate+'</td>'
	 tmp = tmp +  '</div>'
     tmp = tmp +  '<div class="foot2"><a href="#tphp" title="Haut de la page"><img class="fleche vers le haut" src="/img/tphp.gif" width="22" height="15" alt="Haut de la page" /><br />Haut de la page</a></div>'
     tmp = tmp +  '<div class="foot3"><a href="/in-ai-fra.html">Avis importants</a></div>'
     tmp = tmp +  '</div>'
}

  document.write (tmp)
}

 function goLang(url,lang){
  var msg = "";
  if (url!="") {
    document.location = url;
  } else {
    if (lang.toUpperCase() == "F") {
       msg += "\n\n" + "La version française de cette page n'est pas encore disponible.\n\n";
       msg += "Si vous avez des questions ou commentaires, veuillez communiquer avec la personne responsable du SOUTIEN TECHNIQUE indiquée au bas de cette page.\n\n";
    } else {
       msg += "\n\n" + "The English version of this page is not yet available.\n\n";
       msg += "If you have any questions or concerns, please contact the TECHNICAL SUPPORT person specified at the bottom of this page.\n\n";
    };
    alert (msg);
  }; 
}

function displayW3CValidation (withValidation) {
  if (withValidation) {
    var tmp = ""
    tmp = tmp + "<br /><br /><p>";
    tmp = tmp + '<a href="http://validator.w3.org/check/referer"><img border="0" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!" height="31" width="88"></a>';
    tmp = tmp + "</p><br /><br />";
    document.writeln (tmp)    
  };
};

var withMenu = true;
var withoutMenu = false;
var withBanner = true;
var withoutBanner = false;
 
function metatags () {
 var tmp = "";
 tmp = tmp + '<meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> ';
 if (htmlTitle != ""){ 
   tmp = tmp + '<title>'+ htmlTitle +'</title>';
  }   
 if (metaTitle != ""){
   tmp = tmp + '<meta name="title" content="'+ metaTitle +'">';
 }
 if (originator != ""){ 
   tmp = tmp + '<meta name="originator" content='+ originator +'>';
 }
 
 var keywords = generalKeywords;
 
 if (keywords != "") {
   if (specificKeywords != "" ) {
     keywords = keywords + "," + specificKeywords
   }
 }else{
   keywords = specificKeywords
 }
 
 if (keywords != ""){  
   tmp = tmp + '<meta name="keywords" content='+ keywords +'>'; 
 }
 if (controlledSubjectTerms != ""){   
   tmp = tmp + '<meta name="controlled_subject_terms" content='+ controlledSubjectTerms +'>'; 
 }
 if (languageOfResource != ""){    
   tmp = tmp + '<meta name="Language_of_resource" content='+ languageOfResource +'>'; 
 }   
 if (dateCreated != ""){     
   tmp = tmp + '<meta name="Date_created" content='+ dateCreated +'>'; 
 }
 if (dateModified != ""){     
   tmp = tmp + '<meta name="Date_Modified" content='+ dateModified +'>'; 
 }
 document.writeln (tmp);
}

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_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 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_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 goLangGoogle () {
  var frenchFrontEnd = /french_frontend/g;
  var englishFrontEnd = /english_frontend/g;
  var defaultFrontEnd = /default_frontend/g;  
  var curUrl = document.URL.toLowerCase();
  if ( (curUrl.indexOf("english_frontend") > 0) || ((curUrl.indexOf("default_frontend") > 0)) ) {
     curUrl = curUrl.replace(englishFrontEnd, "french_frontend")
     curUrl = curUrl.replace(defaultFrontEnd, "french_frontend")	 
  }else{
     curUrl = curUrl.replace(frenchFrontEnd, "english_frontend")  
  }
  if (curUrl != document.URL.toLowerCase() ) {
    document.location = curUrl;
  };
}
