function AI_isObjectProperty(O/*ject*/, P/*roperty*/)
{
 var t/*type*/;
 if ( O && P in O )
 {
  t = typeof O[P];
  return !!(((t === 'function' || t === 'object') && O[P]) || t === 'unknown');
 }
 return false;
}

var AI_getById = function(E/*lementID*/, D/*ocument*/)
{
 var
  z,
  f/*unction*/ = function() { return null; },
  n/*ame*/ = 'AICheckGBI',
  d/*ocument*/ = D || document,
  b/*ody*/ = d.body || d.documentElement,
  e/*lement*/ = d.createElement('A');

 if ( typeof E !== 'string' ) { return E; }
 e.name = n;
 if ( AI_isObjectProperty(b, 'appendChild') )
 {
  b.appendChild(e);
 }
 if ( AI_isObjectProperty(d, 'getElementById') )
 {
  z = d.getElementById(n);
  // bug des IE qui considère les NAME comme des ID
  if ( z && AI_isObjectProperty(d, 'all') )
  {
   f = function(i,d)
   {
    var n/*ode*/;
    if ( typeof i !== 'string' ) { return i; }
    n = (d || document).all[i];
    return n && n.id == i ? n : null;
   };
  }
  else
  {
   f = function(i,d)
   {
    var n/*ode*/;
    if ( typeof i !== 'string' ) { return i; }
    n = (d || document).getElementById(i);
    return n && n.id == i ? n : null;
   };
  }
 }
 if ( AI_isObjectProperty(b, 'removeChild') )
 {
  b.removeChild(e);
 }
 return ( AI_getById = f )(E, D);
};


var AI_getByTags = function(N/*odeName*/, D/*ocument*/)
{
 var
  f/*unction*/ = function(){return null;},
  d/*ocument*/ = D || document,
  p/*IsObjectProperty*/ = AI_isObjectProperty;
 if ( p(d, 'getElementsByTagName') )
 {
  f = function(n,d) { return (AI_getById(d) || document).getElementsByTagName(n); };
 }
 else if ( p(d, 'all') && p(d.all, 'tags') )
 {
  f = function(n,d) { return (AI_getById(d) || document).all.tags(n); };
 }
 return ( AI_getByTags = f )(N,D);
};

function AI_getByTag(N/*odeName*/, I/*ndex*/, D/*ocument*/)
{
 var a/*ll*/ = AI_getByTags(N, D);
 if ( a ) { return a[I || 0]; }
 return null;
}

window.onload = function()
{
 var i, li, all = AI_getByTags('li', AI_getById('menuvitrine'));
 for ( i = 0; i < all.length; i++ )
 {
  li = all[i];
  li.onmouseover = function()
  {
   var ul = AI_getByTag('ul', 0, this);
   if ( ul ) { DOM.show(ul); }
  };
  li.onmouseout = function()
  {
   var ul = AI_getByTag('ul', 0, this);
   if ( ul ) { DOM.hide(ul); }
  };
 }
};

