/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var defaultMenuWidth="400px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

linkset[0]='<table><tr><td width=15 align=left><img src="http://www.sigmap.gouv.ci/jnice/images/fleche_orange.gif" border=0 /></td><td align=left><A HREF="http://www.sigmap.gouv.ci/cgi-bin/search.cgi?g=PREPARATION_DES_DAO%2FProposition_de_statut_a_march_eacute_s_des_lignes_budg_eacute_taires_par_ann_eacute_e%2Findex.html&sb=PSML_GESTION&so=DESC&catid=2&Title=Link">Proposition de statut &agrave; march&eacute;s des lignes budg&eacute;taires par ann&eacute;e</A></td></tr></table>'
linkset[0]+='<table><tr><td width=15 align=left><img src="http://www.sigmap.gouv.ci/jnice/images/fleche_orange.gif" border=0 /></td><td align=left><A HREF="http://www.sigmap.gouv.ci/cgi-bin/search.cgi?g=PREPARATION_DES_DAO%2FDemande_de_modification_de_statut_de_march_eacute_%2Findex.html&sb=DMS_DEM_DTE_DEM&so=DESC&catid=4&Title=Link">Demande de modification de statut de march&eacute;</A></td></tr></table>'
linkset[0]+='<table><tr><td width=15 align=left><img src="http://www.sigmap.gouv.ci/jnice/images/fleche_orange.gif" border=0 /></td><td align=left><A HREF="http://www.sigmap.gouv.ci/cgi-bin/search.cgi?g=PREPARATION_DES_DAO%2FPlanning_de_passation_des_march_eacute_s%2Findex.html&sb=PPR_EPL_CODE&so=DESC&catid=3&Title=Link">Planning de passation des march&eacute;s</A></td></tr></table>'
linkset[0]+='<table><tr><td width=15 align=left><img src="http://www.sigmap.gouv.ci/jnice/images/fleche_orange.gif"  border=0 /></td><td align=left><A HREF="http://www.sigmap.gouv.ci/cgi-bin/search.cgi?g=PREPARATION_DES_DAO%2FPr_eacute_paration_des_DAO%2Findex.html&sb=PDAO_PV_DTE_PV&so=DESC&catid=5&Title=Link">Pr&eacute;paration des DAO</A></td></tr></table>'
linkset[0]+='<table><tr><td width=15 align=left><img src="http://www.sigmap.gouv.ci/jnice/images/fleche_orange.gif"  border=0 /></td><td align=left><A HREF="http://www.sigmap.gouv.ci/cgi-bin/search.cgi?g=PUBLICATION%2FProgrammation_des_Appels_d_Offres_nouveaux%2Findex.html&sb=AON_BUL_CODE&so=DESC&catid=8&Title=Link">Programmation des Appels d Offres nouveaux</A></td></tr></table>'
linkset[0]+='<table><tr><td width=15 align=left><img src="http://www.sigmap.gouv.ci/jnice/images/fleche_orange.gif" border=0 /></td><td align=left><A HREF="http://www.sigmap.gouv.ci/cgi-bin/search.cgi?g=PUBLICATION%2FConsultation_restreinte_autoris_eacute_e%2Findex.html&sb=CRA_DEM_NUM&so=DESC&catid=9&Title=Link">Consultation restreinte autoris&eacute;e</A></td></tr></table>'
linkset[0]+='<table><tr><td width=15 align=left><img src="http://www.sigmap.gouv.ci/jnice/images/fleche_orange.gif" border=0 /></td><td align=left><A HREF="http://www.sigmap.gouv.ci/cgi-bin/search.cgi?g=OUVERTURE%2FOuverture_des_plis%2Findex.html&sb=OP_NUM_SEQ&so=DESC&catid=11&Title=Link">Ouverture des plis</A></td></tr></table>'
linkset[0]+='<table><tr><td width=15 align=left><img src="http://www.sigmap.gouv.ci/jnice/images/fleche_orange.gif" border=0 /></td><td align=left><A HREF="http://www.sigmap.gouv.ci/cgi-bin/search.cgi?g=ATTRIBUTIONS%2FR_eacute_sultats_des_Appels_d_Offres_Jug_eacute_s%2Findex.html&sb=RAOJ_AAO_NUM_SEQ&so=DESC&catid=13&Title=Link">R&eacute;sultats des Appels d Offres Jug&eacute;s</A></td></tr></table>'
linkset[0]+='<table><tr><td width=15 align=left><img src="http://www.sigmap.gouv.ci/jnice/images/fleche_orange.gif" border=0 /></td><td align=left><A HREF="http://www.sigmap.gouv.ci/cgi-bin/search.cgi?g=ATTRIBUTIONS%2FMarch_eacute_s_de_gr_eacute____gr_eacute__Autoris_eacute_s%2Findex.html;sb=MGG_REF_AVIS_MIN&so=DESC&catid=14&Title=Link">March&eacute;s de gr&eacute; &agrave; gr&eacute; Autoris&eacute;s</A></td></tr></table>'
linkset[0]+='<table><tr><td width=15 align=left><img src="http://www.sigmap.gouv.ci/jnice/images/fleche_orange.gif" border=0 /></td><td align=left><A HREF="http://www.sigmap.gouv.ci/cgi-bin/search.cgi?g=APPROBATION_DES_MARCHES%2FMarch_eacute_s_Approuv_eacute_s%2Findex.html&catid=16&Title=Link">March&eacute;s Approuv&eacute;s</A></td></tr></table>'
linkset[0]+='<table><tr><td width=15 align=left><img src="http://www.sigmap.gouv.ci/jnice/images/fleche_orange.gif" border=0 /></td><td align=left><A HREF="http://www.sigmap.gouv.ci/cgi-bin/search.cgi?g=EXECUTION%2FAvenants%2Findex.html&sb=AV_MAR_CODE&so=DESC&catid=24&Title=Link">Avenants</A>'



////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






// this function is needed to work around 
  // a bug in IE related to element attributes
  function hasClass(obj) {
     var result = false;
     if (obj.getAttributeNode("class") != null) {
         result = obj.getAttributeNode("class").value;
     }
     return result;
  }   

 function stripe(id) {

    // the flag we'll use to keep track of 
    // whether the current row is odd or even
    var even = false;
  
    // if arguments are provided to specify the colours
    // of the even & odd rows, then use the them;
    // otherwise use the following defaults:
    var evenColor = arguments[1] ? arguments[1] : "#fff";
    var oddColor = arguments[2] ? arguments[2] : "#eee";
  
    // obtain a reference to the desired table
    // if no such table exists, abort
    var table = document.getElementById(id);
    if (! table) { return; }
    
    // by definition, tables can have more than one tbody
    // element, so we'll have to get the list of child
    // &lt;tbody&gt;s 
    var tbodies = table.getElementsByTagName("tbody");

    // and iterate through them...
    for (var h = 0; h < tbodies.length; h++) {
    
     // find all the &lt;tr&gt; elements... 
      var trs = tbodies[h].getElementsByTagName("tr");
      
      // ... and iterate through them
      for (var i = 0; i < trs.length; i++) {

        // avoid rows that have a class attribute
        // or backgroundColor style
        if (! hasClass(trs[i]) &&
            ! trs[i].style.backgroundColor) {
 		  
          // get all the cells in this row...
          var tds = trs[i].getElementsByTagName("td");
        
          // and iterate through them...
          for (var j = 0; j < tds.length; j++) {
        
            var mytd = tds[j];

            // avoid cells that have a class attribute
            // or backgroundColor style
            if (! hasClass(mytd) &&
                ! mytd.style.backgroundColor) {
        
              mytd.style.backgroundColor =
                even ? evenColor : oddColor;
            
            }
          }
        }
        // flip from odd to even, or vice-versa
        even =  ! even;
      }
    }
  }


  
  