var langname = Array()
langname[0] = 'Russe     '; 
langname[1] = 'Anglais   '; 
langname[2] = 'Allemand  '; 
langname[3] = 'Francais  '; 
langname[4] = 'Italien   '; 
langname[5] = 'Espagnol  '; 
langname[6] = 'Roumain   '; 
langname[7] = 'Portugais '; 
langname[8] = 'Ukrainien '; 

var langhref = Array()
langhref[0] = 'http://www.familytree.ru/ru/index.htm';
langhref[1] = 'http://www.familytree.ru/en/index.htm';
langhref[2] = 'http://www.familytree.ru/de/index.htm';
langhref[3] = 'http://www.familytree.ru/fr/index.htm';
langhref[4] = 'http://www.familytree.ru/it/index.htm';
langhref[5] = 'http://www.familytree.ru/es/index.htm';
langhref[6] = 'http://www.familytree.ru/ro/index.htm';
langhref[7] = 'http://www.familytree.ru/pt/index.htm';
langhref[8] = 'http://www.familytree.ru/ua/index.htm';

function buildLang( langsele ) { 
 document.write( '<b><font color=black>Langue:</font><br></b>' );
 document.write( '<form name=lang>' );
 document.write( '<select name="fieldname" onChange="openDir( this.form )" style="background-color: rgb(255,238,255); font-weight: bold">' );
 document.write( '' );
 for (i=0; i< langname.length; i++) {
  if (i==langsele) {
   document.write( '<OPTION value='+langhref[i]+' SELECTED>'+langname[i]+'</OPTION>' );
  } else {
   document.write( '<OPTION value='+langhref[i]+'>'+langname[i]+'</OPTION>' );
  }
 }
 document.write( '</select>' );
 document.write( '</form>' );
 document.write( '<a href=http://www.familytree.ru/ru/index.htm><IMG src="http://www.familytree.ru/icons/flag/ru.gif" border=0></a>' );
 document.write( '<a href=http://www.familytree.ru/en/index.htm><IMG src="http://www.familytree.ru/icons/flag/en.gif" border=0></a>' );
 document.write( '<a href=http://www.familytree.ru/de/index.htm><IMG src="http://www.familytree.ru/icons/flag/de.gif" border=0></a>' );
 document.write( '<a href=http://www.familytree.ru/fr/index.htm><IMG src="http://www.familytree.ru/icons/flag/fr.gif" border=0></a><br>' );
 document.write( '<a href=http://www.familytree.ru/it/index.htm><IMG src="http://www.familytree.ru/icons/flag/it.gif" border=0></a>' );
 document.write( '<a href=http://www.familytree.ru/es/index.htm><IMG src="http://www.familytree.ru/icons/flag/es.gif" border=0></a>' );
 document.write( '<a href=http://www.familytree.ru/ro/index.htm><IMG src="http://www.familytree.ru/icons/flag/ro.gif" border=0></a>' );
 document.write( '<a href=http://www.familytree.ru/pt/index.htm><IMG src="http://www.familytree.ru/icons/flag/pt.gif" border=0></a>' );
} 

var menuname = Array()
menuname[0] = 'Familytree     '; 
menuname[1] = 'Captures       '; 
menuname[2] = 'Description    '; 
menuname[3] = 'Telecharger    '; 
menuname[4] = 'Acheter        '; 
menuname[5] = 'Commencer      '; 
menuname[6] = 'Liens          '; 
menuname[7] = 'Other          '; 
menuname[8] = 'Nouvelles      '; 
menuname[9] = 'Service        '; 
menuname[10]= 'Nom            '; 
menuname[11]= 'Carte          '; 
menuname[12]= 'My Boards      '; 
menuname[13]= 'Brownie        '; 
menuname[14]= 'Cypher greffier'; 
menuname[15]= 'Multibaza      '; 
menuname[16]= 'MacroSystem    '; 

var menuhref = Array()
menuhref[0] = 'http://www.familytree.ru/fr/index.htm';
menuhref[1] = 'http://www.familytree.ru/fr/scrshot.htm';
menuhref[2] = 'http://www.familytree.ru/fr/guide.htm';
menuhref[3] = 'http://www.familytree.ru/fr/download.htm';
menuhref[4] = 'http://www.familytree.ru/fr/buy.htm';
menuhref[5] = 'http://www.familytree.ru/fr/advise.htm';
menuhref[6] = 'http://www.familytree.ru/fr/links.htm';
menuhref[7] = 'http://www.familytree.ru/fr/other.htm';
menuhref[8] = 'http://www.familytree.ru/fr/whatsnew.htm';
menuhref[9] = 'http://www.familytree.ru/fr/service.php';
menuhref[10]= 'http://www.familytree.ru/fr/dbf.htm';
menuhref[11]= 'http://www.familytree.ru/fr/maps.htm';
menuhref[12]= 'http://www.familytree.ru/fr/myboards.htm';
menuhref[13]= 'http://www.familytree.ru/fr/brownie.htm';
menuhref[14]= 'http://www.familytree.ru/fr/cipher.htm';
menuhref[15]= 'http://www.familytree.ru/fr/dbs.htm';
menuhref[16]= 'http://www.familytree.ru/fr/msystem.htm';

function buildMenu( menusele ) { 
 document.write( '<b><font color=black>Menu:</font><br></b>' );
 document.write( '<form name=menu>' );
 document.write( '<select name="fieldname" onChange="openDir( this.form )" style="background-color: rgb(255,238,255); font-weight: bold">' );
 document.write( '' );
 for (i=0; i< menuname.length; i++) {
  if (i==menusele) {
   document.write( '<OPTION value='+menuhref[i]+' SELECTED>'+menuname[i]+'</OPTION>' );
  } else {
   document.write( '<OPTION value='+menuhref[i]+'>'+menuname[i]+'</OPTION>' );
  }
 }
 document.write( '</select>' );
 document.write( '</form>' );
 document.write( '<a href=http://www.familytree.ru/fr/tree.htm><img src="http://www.familytree.ru/icons/folders.gif" border=0><b>&nbsp;Plan du site</b></a>' );
} 

function openDir( form ) { 
 var newIndex = form.fieldname.selectedIndex; 
 cururl = form.fieldname.options[ newIndex ].value; 
 window.location.assign( cururl ); 
} 

function ReadFile( filepath ) {
 var fso = new ActiveXObject("Scripting.FileSystemObject");
 var myfile = fso.OpenTextFile( filepath , 1 );
 var s = myfile.ReadAll();
 document.write( s );
 myfile.Close();
} 

/*<SCRIPT>d3("Hello!", 50,15,'red',40,800,'times')</SCRIPT>*/
function d3(text, x, y, tcolor, fsize, fweight, ffamily, zind) {
 if (!text) return null;
 if (!ffamily) ffamily='arial';
 if (!fweight) fweight=800;
 if (!fsize) fsize=36;
 if (!tcolor) tcolor='00aaff';
 if (!y) y=0;
 if (!x) x=0;
 var sd=4, hd=2;
 var xzind="";
 if (zind) xzind=";z-Index:"+zind;
 var xstyle='font-family:'+ffamily+';font-size:'+fsize+';font-weight:'+fweight+';'
 var xstr='<DIV STYLE="position:absolute; top:'+(y+sd)+'; left:'+(x+sd)+xzind+'">'
 xstr+='<P style="'+xstyle+'color:darkred">'+text+'</P></DIV>'
 xstr+='<DIV STYLE="position:absolute; top:'+y+'; left:'+x+xzind+'">'
 xstr+='<P style="'+xstyle+'color:silver">'+text+'</P></DIV>'
 xstr+='<DIV STYLE="position:absolute; top:'+(y+hd)+'; left:'+(x+hd)+xzind+'">'
 xstr+='<P style="'+xstyle+'color:'+tcolor+'">'+text+'</P></DIV>'
 document.write(xstr)
}

function buildLogo() { 
 document.write( "<SCRIPT>d3('Arbre genealogique de la famille', 250, 0,'green',25,900,'sans-serif')</SCRIPT>")
 document.write( "<SCRIPT>d3('- FamilyTree -', 350,30,'green',25,800,'times')</SCRIPT>")
} 

function buildLogoDBS() { 
 document.write( "<SCRIPT>d3('Multi-base de donnees', 250, 0,'green',35,900,'sans-serif')</SCRIPT>")
 document.write( "<SCRIPT>d3('- DBS -', 350,50,'green',25,800,'times')</SCRIPT>")
} 

function buildLogoBoards() { 
 document.write( "<SCRIPT>d3('Mes petites annonces', 250, 0,'green',35,900,'sans-serif')</SCRIPT>")
 document.write( "<SCRIPT>d3('- MyBoards -', 350,50,'green',25,800,'times')</SCRIPT>")
} 

function buildLogoCipher() { 
 document.write( "<SCRIPT>d3('Cypher greffier', 250, 0,'green',35,900,'sans-serif')</SCRIPT>")
 document.write( "<SCRIPT>d3('- Cipher -', 350,50,'green',25,800,'times')</SCRIPT>")
} 

function buildLogoBrownie() { 
 document.write( "<SCRIPT>d3('Smart House', 250, 0,'green',35,900,'sans-serif')</SCRIPT>")
 document.write( "<SCRIPT>d3('- Brownie -', 350,50,'green',25,800,'times')</SCRIPT>")
} 

function buildLogoMSystem() { 
 document.write( "<SCRIPT>d3('Systeme de macros', 250, 0,'green',35,900,'sans-serif')</SCRIPT>")
 document.write( "<SCRIPT>d3('- MacroSystem -', 350,50,'green',25,800,'times')</SCRIPT>")
} 

function Copyright() { 
 document.write( "<cite><center><font color=black>")
 document.write( "Copyright &copy; 2005-2010 Dmitriy Konyuhov. All Right Reserved.")
 document.write( "E-Mail: <a href=mailto:dvpt@narod.ru>dvpt@narod.ru</a>")
 document.write( "</font></center></cite>")
 document.write( "<hr width=70%>")
}

function view(id){
 window.open(id, "goodsinfo", "width=620, height=480, scrollbars=yes, resizable=yes");
}

function colortxt(color){
 event.srcElement.style.color = color;
}

