 var available_width, available_height;
 var origWidth, origHeight;

 function Is() {
  var agent = navigator.userAgent.toLowerCase();
  this.major = parseInt(navigator.appVersion);
  this.minor = parseFloat(navigator.appVersion);
  this.ns = ((agent.indexOf('mozilla') != -1) &&
  (agent.indexOf('spoofer') == -1) &&
  (agent.indexOf('compatible') == -1) &&
  (agent.indexOf('opera') == -1) &&
  (agent.indexOf('webtv') == -1));
  this.ns2 = (this.ns && (this.major == 2));
  this.ns3 = (this.ns && (this.major == 3));
  this.ns4 = (this.ns && (this.major == 4));
  this.ns6 = (this.ns && (this.major >= 5));
  this.ie = (agent.indexOf("msie") != -1);
  this.ie3 = (this.ie && (this.major < 4));
  this.ie4 = (this.ie && (this.major >= 4) &&
  (agent.indexOf("msie 5.0") == -1));
  this.ie5 = (this.ie && (this.major == 4) &&
  (agent.indexOf("msie 5.0") != -1));
  this.ieX = (this.ie && !this.ie3 && !this.ie4);
 }

 function obj_0(id,idp){
  return document.getElementById(id).style;
 }

 function obj_1(id,idp){
  return document.all[id].style;
 }

 function obj_3(id,idp){
  if(idp!="")
   return document.layers[idp].document.layers[id];
  else
   return document.layers[id];
 }

 function show(id){
  eval("sh_"+t3+"(obj_"+t1+"(id,''), 1)");
 }

 function hide(id){
  eval("sh_"+t3+"(obj_"+t1+"(id,''), 0)");
 }

 function sh_0(obj, v){
  obj.visibility = (v==1)?'visible':'hidden';
 }

 function sh_1(obj, v){
  obj.visibility = (v==1)?'show':'hide';
 }

 function init_lay_0(id, cont, t, l){
  document.write("<div id="+id+" style='position:absolute;top:"+t+"px;visibility:hidden'>"+cont+"</div>");
  eval("var myobj = obj_"+t1+"('"+id+"','');");
  myobj.left = l;
 }

 function init_lay_1(id, cont, t, l){
  document.write("<layer bgcolor='#66CC33' name="+id+" top="+t+" visibility=\"hide\"'>"+cont+"</layer>");
  eval("var myobj = obj_"+t1+"(id,'');");
  myobj.left = l;
 }

 function init_screen_0(){
  available_width=document.body.clientWidth;
  available_height=document.body.clientHeight;
  onresize = function() { history.go(0); }
 }

 function init_screen_1(){
  available_width=innerWidth;
  available_height=innerHeight;
  origWidth = window.innerWidth;
  origHeight = window.innerHeight;
  onresize = function() { if(innerWidth != origWidth || innerHeight != origHeight) history.go(0); }
 }

 function init(){
  eval("init_screen_"+t2+"()");
 }

 var is = new Is();

 var type = (is.ie4) + 2*(is.ie5) +3*(is.ns4) + 4*(is.ns6);
 var t1 =  Math.round(Math.floor(((type%2)%2)*type));
 var t2 =  Math.round(Math.floor(type/3));
 var t3 =  Math.round(Math.floor((t1+t2)/4));
 
 function init_disc_col(t, l){
//  eval("init_screen_"+t2+"()");
  eval("init_lay_"+t3+"('disc_col', disc_col_lay, t, l)");
 }

 function init_disc_lyc(t, l){
//  eval("init_screen_"+t2+"()"); 	
  eval("init_lay_"+t3+"('disc_lyc', disc_lyc_lay, t, l)");
 }

 if(is.ie || is.ns5)
  document.write("<link rel='stylesheet' type='text/css' href='/commun/css/iestyle.css'>");
 else if(is.ns)
  document.write("<link rel='stylesheet' type='text/css' href='/commun/css/nnstyle.css'>");

