﻿<!--
 var xxisie=document.all?true:false; // is Internet explorer
 var tdoc;
 var tdocclass='';
 var xxMaTo;
 var MoveTimeOutID;
 var LastMouseOver= 0;
 var mx=0;
 var my=0;
 var mdx=0;
 var mdy=0;
 var ismo=false ;  // window is moving
 var isre=false ;  // window is resizing
 var wx=0 ;
 var wy=0 ;
 var wdx=0 ;
 var wdy=0 ;
 var sdx=0 ;
 var sdy=0 ;
 var ox=0;
 var oy=0;
 var xxwwid;
 var xxwhei;
 var xxo2=null;
 var xxo5=null;
 var sw=null;
 var xxswif=null;
 var xxtabtext=new Array();
 var xxdimtab=5;
 var xxindid=0;
 var xxindtitr=1;
 var xxindtext=2;
 var xxindmenprin=4;
 var voidArray=new Array();
 var xxtabMenPri=new Array();
 var xxdimtabMenPri=2;
 var xxMoveIndexBox=0;
 var xxlocalhostp=0;
 var iframbw = 0;
 var tmpx=0;
 var tmpy=0;
 var inity=0;
 var xxMypso = new xxMyps2();
 //==============================================================================
function xxMyps2(){
 var t=this,i=0;
}
xxMyps2.prototype.nop1=function(){
// no operation, niente, void , rien
}
xxMyps2.prototype.OpenOutWindow1=function(f , x,y,dx,dy){
 OpenOutWindow1( f , x,y,dx,dy );
}
//============================================================================
function OpenOutWindow1( f , x,y,dx,dy ){
 OpenSubWindow1(f,x,y,dx,dy);
}

//============================================================================
function getget(n){
 var tos='';
 var pos=-1;
 var u=String(document.URL);
 tos='?'+n+'=';
 pos=u.indexOf(tos);
 if(pos>0){
 }else{
  tos='&'+n+'=';
  pos=u.indexOf(tos);
 }
 if(pos>=0){
  u=u.substr(pos+tos.length);
  if(u.length=0){
   return('');
  }else{
   tos='&';
   pos= u.indexOf(tos);
   if(pos>=0){
    u=u.substr(0,pos);
    return(unescape(u));
   }else{
    return(unescape(u));
   }
  }
 }
 return '';
}   

//==============================================================================
function loadText(id,titre,texte,parent,menprin){
 for(var i=xxtabtext.length-xxdimtab;i>=0;i=i-xxdimtab) if(xxtabtext[i]==id) return;
 xxtabtext.push(id);
 xxtabtext.push(titre);
 xxtabtext.push(texte);
 xxtabtext.push(parent);
 xxtabtext.push(menprin);
}
//==============================================================================
function displayText(id){
 document.getElementById('indextree').innerHTML='<br /><br /><br />';
 var idt=-1,ind1=0,ind2=0;
 var i=0;
 var t='';
 for(i=xxtabtext.length-xxdimtab;i>=0;i=i-xxdimtab){
  if(xxtabtext[i]==id){
   idt=i;
   break;
  }
 }
 if(idt==-1){
 }else{
  var pos1=xxtabtext[idt+xxindtext].indexOf('<'+'script');
  if(pos1<0){
   document.getElementById('Textbox').innerHTML='<p style="text-align:justify;"><br />'+xxtabtext[idt+xxindtext]+'</p>';
  }else{
   document.getElementById('Textbox').innerHTML='<p style="text-align:justify;"><br />';
   var t0=xxtabtext[idt+xxindtext];
   var t1='';
   var t2='';
   var pos2=0;
   while(pos1>=0){
    t1=t0.substr(0,pos1);
    document.getElementById('Textbox').innerHTML+=t1;
    ind2=0;
    for(ind1=pos1;ind1<t0.length;ind1++){
     if(t0.substr(ind1,1)=='>') break;
     ind2++;
    }
    t2=t0.substr(pos1+ind2+1);
    pos2=t2.indexOf('<'+'/script>');
    if(pos2>=0){
     t2=t2.substr(0,pos2);
     eval(t2);
     t0=t0.substr(pos1+ind2+1+pos2+9);
     var pos1=t0.indexOf('<'+'script');
     if(pos1<0){
      document.getElementById('Textbox').innerHTML+=t0;
     }
    }else{
     pos1=-1;
    }
   }
   document.getElementById('Textbox').innerHTML+='</p>';
  }
 }
 for(i=xxtabMenPri.length-1;i>=0;i--){
  t=document.getElementById('menu_'+xxtabMenPri[i]).style;
  t.backgroundColor=css__zz_action_background;
  t.color=css__zz_action_color;
  t.borderBottomWidth=css__zz_action_border_bottom_width;
 }
 if(idt>=0){
  t=document.getElementById('menu_'+xxtabtext[idt+xxindmenprin]).style;
  t.backgroundColor=css_body_background;
  t.color=css_body_color;
  t.borderBottomWidth='0px';
 }
 if(idt>=0){
  t='t=xxtree'+id+';';
  eval(t);
  if(t.isLoaded){
   document.getElementById('indextree').innerHTML=t.toString();
   t.showText(id);
  }else{
   document.getElementById('indextree').innerHTML='Patientez svp!';
   t='js_l_'+LanguageCode+'_'+id+'new_g.htm';
   xxswif.src=t;
  }
 }
}

//==============================================================================
function displayTextOlsxxx01(id){
 document.getElementById('indextree').innerHTML='<br /><br /><br />';
 var idt=-1;
 var i=0;
 var t='';
 for(i=xxtabtext.length-xxdimtab;i>=0;i=i-xxdimtab){
  if(xxtabtext[i]==id){
   idt=i;
   break;
  }
 }
 if(idt==-1){
 }else{
  var pos1=xxtabtext[idt+xxindtext].indexOf('<'+'script>');
  if(pos1<0){
   document.getElementById('Textbox').innerHTML='<p style="text-align:justify;"><br />'+xxtabtext[idt+xxindtext]+'</p>';
  }else{
   document.getElementById('Textbox').innerHTML='<p style="text-align:justify;"><br />';
   var t0=xxtabtext[idt+xxindtext];
   var t1='';
   var t2='';
   var pos2=0;
   while(pos1>=0){
    t1=t0.substr(0,pos1);
    document.getElementById('Textbox').innerHTML+=t1;
    t2=t0.substr(pos1+8);
    pos2=t2.indexOf('<'+'/script>');
    if(pos2>=0){
     t2=t2.substr(0,pos2);
     eval(t2);
     t0=t0.substr(pos1+8+pos2+9);
     var pos1=t0.indexOf('<'+'script>');
     if(pos1<0){
      document.getElementById('Textbox').innerHTML+=t0;
     }
    }else{
     pos1=-1;
    }
   }
   document.getElementById('Textbox').innerHTML+='</p>';
  }
 }
 for(i=xxtabMenPri.length-1;i>=0;i--){
  t=document.getElementById('menu_'+xxtabMenPri[i]).style;
  t.backgroundColor=css__zz_action_background;
  t.color=css__zz_action_color;
  t.borderBottomWidth=css__zz_action_border_bottom_width;
 }
 if(idt>=0){
  t=document.getElementById('menu_'+xxtabtext[idt+xxindmenprin]).style;
  t.backgroundColor=css_body_background;
  t.color=css_body_color;
  t.borderBottomWidth='0px';
 }
 if(idt>=0){
  t='t=xxtree'+id+';';
  eval(t);
  if(t.isLoaded){
   document.getElementById('indextree').innerHTML=t.toString();
   t.showText(id);
  }else{
   document.getElementById('indextree').innerHTML='Patientez svp!';
   t='js_l_'+LanguageCode+'_'+id+'new_g.htm';
   xxswif.src=t;
  }
 }
}

//==============================================================================
function dw(t){
 document.write(t); 
}

//============================================================================
function mylnk1(pa,na,nbb){
 var t='<a class="zz_ml" href="#'+pa+'" id="adoc'+pa+'" onmouseup="javascript:ddoci1(\'doc'+pa+'\');OpMe('+pa+')" style="padding:1px">';
 for(var i=0;i<nbb-1;i++) t+='<img src="dt.gif" />';
 t+='<img src="dos.gif" />'+na+'</a>';
 t+='<div id="doc'+pa+'" STYLE="display:inline;margin-top:1px;margin-bottom:1px;">';
 document.write(t);
}

//============================================================================
function mylnk2(){
 document.write('</div>');
}

//============================================================================
function mylnk3(pa,na,nbb){
 var t='<a class="zz_ml" href="#'+pa+'" id="adoc'+pa+'" onmouseup="moveindexdef();OpMe('+pa+')" style="padding:1px">';
 for(var i=0;i<nbb;i++) t+='<img src="dt.gif" />';
 t+=na+'</a>';
 document.write(t);
}

//============================================================================
function nop(){} 
//============================================================================
function lmo(n){
 if(n==LastMouseOver||n==1){
  if(n==1) LastMouseOver=1;
 }else{
  var z=tab.length;
  var founded=false;
  for(var i=0;i<z;i+=2){
   if(tab[i]==n){
    founded=true;
    break;
   }
  }
  if(founded){
   closeAll();
   dddoc3('doc'+n,tab[i+1]);
  }
  LastMouseOver = n;
 }
}
//============================================================================
function ShowWindowMain(){
 if(String(window.location).search(/www.mypitself.com/)>0){
  var message='Desole, vous installer MyPitSelf pour voir ceci.\n' ;
  message+='Sorry, you have to download and install MyPitSelf to see this.' ;
  alert(message);
  return ;
 }
 var url = new String( window.location ); 
 var count = 0 ; 
 for( i=url.length ; i > 0 ; i--){  
  if( url.charAt(i) == '/' ){  
   if( count == 2 ){ 
    break; 
   }else{ 
    count++; 
   } 
  } 
 } 
 url=url.substr(0,i)+'/'; 
 newWindow = window.open(url,'Create','width=900,height=700,top=50,left=50,location=1,directories=0,status=no,menuBar=no,scrollBars=yes,resizable=yes,dependent=no');
 newWindow.focus();
}
//============================================================================
function moveindexdef(){
 MoveTimeOutID=setTimeout('moveindex();',10);
}
//============================================================================
function moveindex(){
 window.clearTimeout(MoveTimeOutID);
 if(xxisie){
  var dy=document.body.scrollTop;
 }else{
  var dy=window.pageYOffset;
 }
 document.getElementById('indexbox').style.top=dy;
} 
//============================================================================
function dddoc3(n,p){
 if( tdocclass=='zz_mls'){
  try{
   tdoc.className='zz_ml';
  }catch(e){};
 }
 try{
  var name='';
  var x=p.replace(/--/g,'-').substr(3);
  x=x.substr(0,x.length-1);
  var y=x.split(/-/);
  var z=y.length;
//  window.status='OK 001';
  if(z>0){
   for(i=0;i<z;i++){
    if(y[i]>0){
     name='doc'+y[i];
     if(document.getElementById(name).style.display=='none'){
      document.getElementById(name).style.display='';
     }
    }
   }
  }
  try{
   document.getElementById(n).style.display='';
  }catch(e){};
  name='a'+n
  tdoc=document.getElementById(name);
  tdoc.className='zz_mls';
  tdocclass='zz_mls';
  try{window.clearTimeout(MoveTimeOutID);}catch(e){};
  try{window.clearTimeout(xxMaTo);}catch(e){};
  MoveTimeOutID=setTimeout('moveindex();',10);
  xxMaTo=setTimeout('resetclasdoc();',10000);
 }catch(e){
  alert('catch n='+n+', x='+x);
 }
}
 
//============================================================================
function resetclasdoc(){
 window.clearTimeout(xxMaTo);
 try{
  tdoc.className = 'zz_ml' ;
 }catch(e){};
}
 
//============================================================================
function ddoci1(n){
 var o=document.getElementById(n);
 if(n=='doc1'){
  o.style.display = "" ;
 }else{
  if(o.style.display=='none'){
   o.style.display='';
  }else{
   o.style.display='';
  }
 } 
}
//============================================================================
function ddoci2(n){
 var o=document.getElementById(n);
}
//============================================================================
function OpenOther(){
 var url = location.href ;
 var h=600;
 var w=800;
 var x  = 'width=' + w + ',height=' + h + ',top=50,left=50' ;
 x += ',location=1,directories=0,status=yes,menuBar=no,scrollBars=yes,resizable=yes,dependent=no' ;
 var newWindow = window.open( url + '?s=1&f=' , 'MyPitSelf' , x );
 newWindow.focus();
} 

//============================================================================
function ShowWindowItself(){
  OpenWindowMyPitSelf();
}
//============================================================================
function OpenWindowMyPitSelf(){
 if( String(window.location).search(/www.mypitself.com/) > 0 ){
  var message  = 'Desole, vous devez telecharger et installer MyPitSelf pour voir ceci.\n' ;
  message     += 'Sorry, you have to download and install MyPitSelf to see this.' ;
  alert(message);
  return ;
 }
 var url = location.href ;
 for( i = url.length ; i > 0 ; i--){
  if( url.charAt(i) == '/' )  break;
 }
 url=url.substr(0,i);
 if(url.substr(i-3,3)=='doc'){
  url=url.substr(0,i-3);    
 }else{
  url += '/' ;
 }
 var h=600;
 var w=800;
 var x='width='+w+',height='+h+',top=50,left=50';
 x += ',location=1,directories=0,status=yes,menuBar=no,scrollBars=yes,resizable=yes,dependent=no' ;
 var newWindow = window.open( url , 'MyPitSelf' , x );
 newWindow.focus();
}
//============================================================================
function OpenWindowUrl(url){
 var h=600;
 var w=800;
 var x='width='+w+',height='+h+',top=50,left=50';
 x += ',location=0,directories=0,status=yes,menuBar=no,scrollBars=yes,resizable=yes,dependent=no' ;
 var newWindow = window.open( url , 'MyPitSelf' , x );
 newWindow.focus();
}
//============================================================================
function nextDoc(to){
 var x=String(document.location);
 for(var i=x.length-1;i>0;i--){
  if(x.substr(i,1)=='#'){
   x=x.substr(0,i);
   break;
  }
 }
 var z = tab.length;
 for(i=0;i<z;i+=2){
  if(tab[i]==to){
   if(i<z-2){
    var t='doc'+tab[i+2];
    var u=tab[i+3];
    document.location=x+'#'+tab[i+2];
    dddoc3(t,u);
   }else{
    location.replace('#0');
   }
   break;
  }
 }
}
//============================================================================
function prevDoc(to){
 var x=String(document.location);
 for(var i=x.length-1;i>0;i--){
  if(x.substr(i,1)=='#'){
   x=x.substr(0,i);
   break;
  }
 }
 var z=tab.length; 
 for(i=0;i<z;i+=2){ 
  if(tab[i]==to){ 
   if(i>1){ 
    var t='doc'+tab[i-2]; 
    var u=tab[i-1]; 
    document.location=x+'#'+tab[i-2]; 
    dddoc3(t,u); 
   }else{ 
    location.replace('#0'); 
   } 
   break; 
  } 
 } 
} 

//============================================================================
function openAll(){
 var z = parentChapters.length;
 var name ;
 for(i=0;i<z;i++){
  if(parentChapters[i]>0){
   name='doc'+parentChapters[i];
   document.getElementById(name).style.display='';
  }
 }
}

//============================================================================
function closeAll(){
 var z = parentChapters.length;
 var name ;
 for(i=0;i<z;i++){
  if(parentChapters[i]>1){
   name='doc'+parentChapters[i];
   document.getElementById(name).style.display='none';
  }
 }
}
 
//============================================================================
function OpMe(n){
 var founded=false;
 var z=parentChapters.length;
 for(var i=0;i<z;i++){
  if(parentChapters[i]==n){
   founded=true;
   var state=document.getElementById('doc'+n).style.display;
   break;
  }
 }
 closeAll();
 openParents(n);
 if(founded){
  document.getElementById('doc'+n).style.display=state;
 }
}

//============================================================================
function openParents(n){
 var z=tab.length;
 for(var i=0;i<z;i+=2){
  if(tab[i]==n){
   var a=tab[i+1];
   a=a.substr(1).replace( /--/g , '-');
   a=a.substr(0,a.length-1).split(/-/);
   for(var j=1;j<a.length;j++){
    document.getElementById('doc'+a[j]).style.display='';
   }
   break;
  }
 }
}
//============================================================================
function fkeyup(e){
// window.status=e.keyCode;
 switch( e.keyCode ){
  case 33:
  case 34:
  case 38:
  case 40:
   scrollme();
   break;
 }
}
//============================================================================
function sc11(t){
 if(t.className=='zz_list'){
  t.className  ='zz_lists';
  t.onmouseover=function(event){};
  t.onmouseout =function(event){};
 }else{
  t.className  ='zz_list';
  t.onmouseover=function(event){sc(t,1)};
  t.onmouseout =function(event){sc(t,0)};
 }
 t.style.backgroundColor=css__zz_lists_background_color;
}

//============================================================================
function sc(t,c){
 if(c==0){
  t.style.backgroundColor=css__zz_list_background_color;
  t.style.color=css__zz_lists_color;
 }else{
  t.style.backgroundColor=css__zz_lists_background_color;
  t.style.color=css__zz_action_hover_color;
 } 
}
//============================================================================
function DevelopIndex(s){
 var i=0;
 document.getElementById('xxxData_0').style.display='none';
 document.getElementById('xxxBase_0').style.display='none';
 var j = parentChapters.length ;
 var parentToDevelop = '' ;
 for(i=0;i<j;i+=2){
  document.getElementById(parentChapters[i]).style.display='none';
  if(parentChapters[i]==s) parentToDevelop=parentChapters[i+1];
 }
 if(s!=''){
  if(parentToDevelop!=''){
   parentToDevelop = parentToDevelop.split(/,/);
   for(i=0;i<parentToDevelop.length;i++) document.getElementById(parentToDevelop[i]).style.display='';
  }
  document.getElementById(s).style.display='';
 }
}
//============================================================================
function scrollme(e){ 
 if(xxisie){
  if(document.documentElement.clientHeight){
   xxwwid=parseInt(document.documentElement.clientWidth);
   xxwhei=parseInt(document.documentElement.clientHeight);
  }else{
   xxwwid=parseInt(document.body.clientWidth);
   xxwhei=parseInt(document.body.clientHeight);
  }
 }else{
  xxwwid=parseInt(window.innerWidth);
  xxwhei=parseInt(window.innerHeight);
 }
 if(xxisie){
  if(document.documentElement.clientHeight){
   mdy=parseInt(document.documentElement.scrollTop);
   mdx=parseInt(document.documentElement.scrollLeft);
  }else{
   mdy=parseInt(document.body.scrollTop);
   mdx=parseInt(document.body.scrollLeft);
  }
 }else{
  mdx=parseInt(window.pageXOffset);
  mdy=parseInt(window.pageYOffset);
 }
 if(xxisie){
  mx=window.event.x;
  my=window.event.y;
 }else{
  mx =e.pageX;
  my =e.pageY;
 }
 sdx=mx;
 sdy=my;
 if(xxisie){ 
  var dy=document.body.scrollTop; 
 }else{ 
  var dy=window.pageYOffset; 
 } 
 if(xxMoveIndexBox){
  document.getElementById('indexbox').style.top=mdy+'px';
 }
// window.status='mdy='+mdy+' , my='+my+'sdy=' + sdy;

 if(xxo2.style.display==''){
  if(dy-wy>3){
   wy=dy;
   sw.style.top=wy+'px';
   xxo2.style.top=parseInt(wy+parseInt(css_iframe_border))+'px';
  } 
  if((wy+wdy)>(mdy+xxwhei)){
   wy = mdy+xxwhei-wdy;
   sw.style.top=wy+'px';
   xxo2.style.top=parseInt(wy+parseInt(css_iframe_border))+'px';
  }
 }
}
//============================================================================
function showskin(){
 OpenSubWindow1('zz_list2.htm',230,50,485,350);
}

//============================================================================
function OpenSubWindow1(f,x,y,dx,dy){
 var img1,img2,temp1;
 if(xxwhei<300){
  alert( 'the main window is too small :-( '+ xxwhei );
  return false;
 }
 if(sw.style.display==''){
  xxswif.src = '';
  sw.style.display  ='none';
  xxo2.style.display='none';
  xxo5.style.display='none';
 }else{

  y=y==0?my-100:y;
  wy=y    
  wy=wy<1?1:wy;
  x=x==0?mx+25:x;
  wx=x;
  wx=wx>400?400:wx;
  if(xxisie){
   if(document.documentElement.clientHeight){
    wy+=parseInt(document.documentElement.scrollTop);
    wx+=parseInt(document.documentElement.scrollLeft);
   }else{
    wx+=parseInt(document.body.scrollLeft);
    wy+=parseInt(document.body.scrollTop);
   }
  }else{
   wx+=parseInt(window.pageXOffset);
   wy+=parseInt(window.pageYOffset);
  }
  dx=dx==0?700:dx;
  wdx=dx;
  dy=dy==0?500:dy;
  wdy=dy;

  if(wdy>xxwhei) wdy=xxwhei-20;
  if(xxisie){
   if((wy+wdy)>(xxwhei+document.body.scrollTop)) wy=xxwhei+document.body.scrollTop-wdy-10;
  }else{
   if((wy+wdy)>(xxwhei+window.pageYOffset)) wy=xxwhei+window.pageYOffset-wdy-10;
  }
  img1='bin/chrome/zz_0_ba1.png';
  img2='bin/chrome/zz_0_ba2.png';

  sw.style.top=wy+mdy+'px';
  sw.style.left=wx+'px';
  sw.style.width=wdx+'px';
  sw.style.height=wdy+'px';
  var t=wdx-40; t=t<20?20:t;
  var t2=wdx-20;t2=t2<20?20:t2;
  temp1='<table id="YYDRAGT" border="0" cellspacing="0" cellpadding="0" width="' + t2 + '">';
  temp1+='<tr height="20"><td width="20" nowrap class="zz_headerlist" style="padding:0;border:0;">';
  temp1+='<a style="border:0;padding:0;" href="javascript:CloseSubWindow1()"><img src="'+img2+'" /></a></td>';
  temp1+='<td width="' + t + '" class="zz_headerlist" style="cursor:move;border:0;padding:0;" id="YYDRAGBAR" onMousedown="sd1(event)" height="20">';
  temp1+='<img src="'+img1+'" width="' + t + '" height="20">';
  temp1+='</td><td width="20" nowrap class="zz_listheader" style="border:0;">';
  temp1+='<a href="javascript:CloseSubWindow1()" style="border:0;padding:0"><img src="'+img2+'" /></a></td></tr></table>' ;
  xxo2.innerHTML=temp1;
  xxo2.style.left=(wx+parseInt(css__zz_ifb_border_left_width))+'px';
  xxo2.style.top=(wy+mdy+parseInt(css__zz_ifb_border_top_width))+'px';
  xxo2.style.width=wdx+'px';
  xxo2.style.height=20+'px';
  xxswif.style.width=wdx+'px';
  xxswif.style.height=wdy+'px';
  var t2=f;
  var typeimg=(t2.indexOf('.gif')>0)||(t2.indexOf('.jpg')>0);
  if(typeimg){
   t2='a0_img.htm?im='+t2;
   xxswif.src=t2;
  }else{
   xxswif.src=t2;
  }
  sw.style.display='';
  xxo2.style.display='';


  inity=-1;

 }
}

//============================================================================
function bottomdoc(){
 var t='';
 t+='<div id="SW" class="zz_ifb" style="position:absolute;display:none;top:0px;left:1px;width:200px;height:200px;z-index:1">';
 t+='<iframe id="xxswif" width="200px" height="200px" FRAMEBORDER="0" src=""></iframe>';
 t+='</div>';
 t+='<div id="SW2" style="position:absolute;display:none;top:5px;left:5px;width:5px;height:5px;z-index:1;margin:0;"></div>'; // background-color:red;
 t+='<div id="SW5" style="position:absolute;display:none;top:5px;left:5px;width:5px;height:5px;z-index:1;margin:0;"></div>';
 dw(t);
 xxswif=document.getElementById('xxswif');
 sw=document.getElementById('SW');
 xxo2=document.getElementById('SW2');
 xxo5=document.getElementById('SW5');
 if(xxisie){
  window.onscroll=scrollme;
 }else{
  document.onkeyup=fkeyup;
 }
 document.onmousemove=scrollme;
}

//============================================================================
function sd1(e){ // start drag move window
 if(!ismo){
  if(inity==-1) inity=mdy;
  tmpx=wx;
  tmpy=wy+inity;
  inity=0;
  window.status='starting sdy = ' + sdy + ' , tmpy=' + tmpy + ' , oy = ' + oy ;
  document.onmousemove=dd1;
  document.onmouseup=enddrag;
  ismo=true;
  if(!xxisie)  e.preventDefault();
 }
 return(true);
}
//============================================================================
function dd1(e){ // drag move window 
 var ttx=0,dx=0,tty=0,dy=0;
 if(xxisie){
  e=window.event;
  ox=e.x;
  oy=e.y;
  e.cancelBubble = true;
  e.returnValue = false;
 }else{
  ox=e.pageX;
  oy=e.pageY;
 }
 window.status='mooving sdy = ' + sdy + ' , tmpy=' + tmpy + ' , oy = ' + oy ;
 wx=tmpx+ox-sdx;
 wy=tmpy+oy-sdy;
 if(wx<0) wx=0;
 if(wy<0) wy=0;
 xxo2.style.left=(wx+parseInt(css__zz_ifb_border_left_width))+"px";
 xxo2.style.top=(wy+parseInt(css__zz_ifb_border_top_width))+"px";
 xxo2.style.height=(wdy+3*parseInt(css_iframe_border) +100)+"px";
 sw.style.left=wx+"px";
 sw.style.top=wy+"px";
 return(true);
}
//============================================================================
function enddrag(){
 var t=0;
 if(ismo||isre){
  ismo=false; 
  isre=false;
  xxo2.style.left=(wx+parseInt(css__zz_ifb_border_left_width))+"px";
  xxo2.style.top=(wy+parseInt(css__zz_ifb_border_top_width))+"px";
  xxo2.style.height="20px";
  sdx=ox;
  sdy=oy;
 }
 document.onmousemove=scrollme;
 ismo=false; 
 isre=false;
}

//============================================================================
function sd5(e){ // resize window
 if(!isre){
  tmpx=wdx; 
  tmpy=wdy; 
  document.onmousemove=dd5;
  document.onmouseup=enddrag ;
  if(xxisie){
   var tas=document.getElementsByTagName('select');
   var cc=null;
   for(var i=tas.length;i>0;){
    cc=tas[--i];
    cc.style.visibility="hidden";
   }
  }
  xxo2.innerHTML='';
  xxo2.style.left  =wx+"px";
  xxo2.style.top   =(wy-parseInt(css_iframe_border)-100)+"px";
  xxo2.style.width =(wdx+2*parseInt(css_iframe_border))+"px";
  xxo2.style.height=(wdy+3*parseInt(css_iframe_border) +100)+"px";
  isre=true;
 }else{
  isre=false;
 }
}
//============================================================================
function dd5(e){ // resize window
 var t=0;
 if(isre){
  if(!xxisie){
   ox=e.pageX;
   oy=e.pageY;
  }else{
   ox=window.event.x;
   oy=window.event.y;
  }
  wdx=tmpx+ox-sdx;
  wdy=tmpy+oy-sdy;
  wdx=wdx<1?1:wdx;
  wdy=wdy<1?1:wdy;
  t=(wdx<40?40:wdx);
  xxo2.style.width=(wdx+2*parseInt(css_iframe_border))+"px";
  xxo2.style.height=(wdy+3*parseInt(css_iframe_border)+100)+"px";
  xxswif.style.width=wdx+"px";
  xxswif.style.height=wdy+"px";
 }
}

//============================================================================
function OpenOutWindow( f , s ){
 var dx = parseInt(xxwwid) - 75;
 dx = dx > 800 ? 800 : dx ;
 OpenSubWindow1(f,50,50,dx,600);
}
//============================================================================
function popup(s){
 var url2='z'+s.toLowerCase()+'_lang_'+LanguageCode+'.htm';
 var dx=parseInt(xxwwid)-75;
 var dy=parseInt(xxwhei)-100;
 dx=dx>900?900:dx;
 dy=dy>900?900:dy;
 OpenSubWindow1(url2,50,50,dx,dy);
}
//============================================================================
function CloseSubWindow1(){
 xxswif.src='';
 sw.style.display='none';
 xxo2.style.display='none';
}

//============================================================================
function SvgSelectTable(c,n,b){
 var x=String(document.location);
 var founded=false ;
 for(var i=x.length-1;i>0;i--){
  if(x.substr(i,1)=='#'){
   x = x.substr(0,i);
   founded=true;
   break;
  }
 }
 if(xxisie){
  document.location=x+'#xxxTable_'+c;
 }else{
  if(founded){
   document.location=x;
   document.location=document.location+'#xxxTable_'+c;
  }else{
   document.location=document.location+'#xxxTable_'+c;
  }
 }
}
//============================================================================
function SvgT(s){
 var t=s.split(/,/);
 var x = String( document.location );
 var founded = false ;
 for(var i=x.length-1;i>0;i--){
  if(x.substr(i,1)=='#'){
   x=x.substr(0,i);
   founded=true;
   break;
  }
 }
 if(xxisie){
  document.location=x+'#xxxField_'+t[5];
 }else{
  if(founded){
   document.location=x;
   document.location=document.location+'#xxxField_'+t[5];
  }else{
   document.location=document.location+'#xxxField_'+t[5];
  }
 }
}

//============================================================================
function gtpwd(n){
 var x=String(this.document.location);
 for(var i=x.length-1;i>0;i--){
  if(x.substr(i,1)=='/'){
   x = x.substr(0,i);
   break;
  }
 }
 this.parent.document.location=x+'/index_lang_'+LanguageCode+'.htm#'+n;
}

//-->