<!--
function checkBrowser()
{
 //alert(navigator.userAgent);
 //alert(navigator.appVersion);

 this.ver=(navigator.userAgent.indexOf('Firefox')>-1)?'Firefox':navigator.appVersion
 this.SeaMonkey=(navigator.userAgent.indexOf('SeaMonkey')>-1)?1:0;
 this.firefox=(navigator.userAgent.indexOf("Firefox")>-1)?1:0;
 this.Opera=(navigator.userAgent.indexOf('Opera')>-1)?1:0;
 this.Netscape=(navigator.userAgent.indexOf('Netscape/')>-1)?1:0;
 this.dom=document.getElementById?1:0;
 this.ie8=(this.ver.indexOf("MSIE 8")>-1)?1:0;
 this.ie7=(this.ver.indexOf("MSIE 7")>-1)?1:0;
 this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
 this.ie55=((this.ver.indexOf("MSIE 5.5")>-1 || this.ie6) && this.dom)?1:0;
 this.ie5=((this.ver.indexOf("MSIE 5")>-1 || this.ie5 || this.ie6) && this.dom)?1:0;
 this.ie4=(document.all && !this.dom)?1:0;
 this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
 this.ns4=(document.layers && !this.dom)?1:0;
 this.ie4plus=(this.ie8 || this.ie7 || this.ie6 || this.ie5 || this.ie4);
 this.ie5plus=(this.ie8 || this.ie7 || this.ie6 || this.ie5)
 this.ie=(this.ie8 || this.ie7 || this.ie6 || this.ie5 || this.ie55 || this.ie4);
 this.bw=(this.ie4plus || this.ns4 || this.ns5);
 this.Mozilla=(navigator.userAgent.indexOf('Mozilla')<0 ||this.SeaMonkey || this.firefox || this.Opera || this.Netscape || this.ie4plus || this.ie55)?0:1;
 return this;
}

function getObjectById(ID)
{
 // var obj;
 if (bw.dom)
  return document.getElementById(ID);
 else
  if (bw.ie4)
   return document.all(ID);
  else
   if (bw.ns4)
    return eval('document.' + ID);
}

function getObjectByIdParent(ID)
{
 // var obj;
 if (bw.dom)
  return parent.document.getElementById(ID);
 else
  if (bw.ie4)
   return parent.document.all(ID);
  else
   if (bw.ns4)
    return eval('parent.document.' + ID);
}

function fChangeClass(ps_id, ps_class)
{
 var obj = getObjectById(ps_id);
 obj.className=ps_class;
}

function namosw_init_scrolltext()
{
 list = new Array();
 for (var i = 0, top = 0; i < namosw_init_scrolltext.arguments.length; i += 2)
 {
  obj = eval('document.'+namosw_init_scrolltext.arguments[i]);
  if (obj == null) continue;
  list[top++] = obj;
  for (str = '', j = 0; j < namosw_init_scrolltext.arguments[i+1]; j++) str += ' ';
  str += obj.value;
  obj.value = str;
 }
 if (top > 0)
 {
  document.namosw_scrolltext_list = list;
  setTimeout('namosw_scrolltext()', 100);
 }
}

function namosw_scrolltext()
{
 for (i = 0; i < document.namosw_scrolltext_list.length; i++)
 {
  obj   = document.namosw_scrolltext_list[i];
  str   = obj.value.substring(1, obj.value.length);
  str  += obj.value.substring(0, 1);
  obj.value = str;
 }
 setTimeout('namosw_scrolltext()', 100);
}

function fclicktoprint(p_title,ps_id)
{
 var d = getObjectById(ps_id);
 O_Date2 = new Date();

 w = window.open('', 'Impression');
 w.document.write('<html><head>\n');
 w.document.write('<title>'+p_title+'</title>\n');
 w.document.write('<link href="../css/shop_styles.css" rel="stylesheet" type="text/css" />\n');
 w.document.write('<link href="../css/site_styles.css" rel="stylesheet" type="text/css" />\n');
 w.document.write('</head>\n'); 
 w.document.write('<body style="background-color:#CAE8FF;">\n');
 w.document.write('<div class="CORPS" style="top:10px;">\n');
 w.document.write('<div class="header_page" style="width:100%;">\n');
 w.document.write(p_title + '<br />\n(Printed : ' + O_Date2.toLocaleString() + ')\n');
 w.document.write('<div id="ALIMENT" style="width:700px;overflow:none;height:auto;border-style:none;">\n');
 w.document.write(d.innerHTML + '\n'); 
 w.document.write('</div>\n');
 w.document.write('</div>\n');
 w.document.write('</div>\n');
 w.document.write('</body></html>\n');
 w.document.close();
 w.window.print();
 w.window.close();

}

function getParms()
{
 if(window.location.search.length > 1)
 {
  var parms = window.location.search.substring(1).split("&");

  var parmList = new Array();
  for(var i = 0; i < parms.length; i++)
  {
   parmList[i] = new Object;
   parmList[i].name = parms[i].substring(0,parms[i].indexOf("="));
   parmList[i].value = unescape(parms[i].substring(parms[i].indexOf("=")+1).replace(/\+/g,  " "));
   }
   return parmList;
  }
  
 else return null;
}

function fAutoMiddle(pn_size, pid)
{
 var vn_size = document.body.clientWidth;
 var vn_width =  (vn_size > pn_size ? Math.round((vn_size - pn_size) / 2) : pn_size); 
 
 var obj = getObjectById(pid);
 obj.style.left=vn_width+'px';
}
//-->

