var qsParm = new Array(); var nParm = -1; var cNavType = ""; var cGBrowser = ""; var cLangLoginHelp = ""; var cLangSubmit; var cLangLogin; var cLangPassword; var cLangUsername; var cLangLoginMessage; var nInterval = 0; var nDeltaTime = 180000; function SendMail(cServer, cFiller, cUser) { //window.open("mailto:"+cUser+"@"+cServer); window.location.assign("mailto:"+cUser+"@"+cServer); } function qs() { var query = window.location.search.substring(1); var parms = query.split('&'); for (var i=0; i 0) { // var key = parms[i].substring(0,pos); // var val = parms[i].substring(pos+1); // qsParm[key] = val; // } } } function getRefToDiv(divID, oDoc) { if( document.getElementById ) { return document.getElementById(divID); } if( document.all ) { return document.all[divID]; } if( !oDoc ) { oDoc = document; } if( document.layers ) { if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else { for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) { y = getRefToDiv(divID,oDoc.layers[x].document); } return y; } } return false; } function clDiv(divID_as_a_string, dC) { var myReference = getRefToDiv(divID_as_a_string); if( !myReference ) { window.alert('Nothing works in this browser'); return; } if( myReference.style ) { myReference = myReference.style; } if( typeof( myReference.background ) != 'undefined' ) { myReference.background = dC; } else { if( myReference.backgroundColor ) { myReference.backgroundColor = dC; } else { if( typeof( myReference.bgColor ) != 'undefined' ) { myReference.bgColor = dC; } else { window.alert('Nothing works in this browser'); return; } } } } function GlobalChangeVisibility(id, x) { if (cGBrowser=="IE") { document.all[id].style.visibility = x; } else if (cGBrowser=="NN") { document.layers[id].visibility = x; } else { document.getElementById(id).style.visibility = x; } } function GlobalChangeContent(id, str) { if (cGBrowser=="IE") { document.all[id].innerHTML = str; } else if (cGBrowser=="NN") { document.layers[id].document.open(); document.layers[id].document.write(str); document.layers[id].document.close(); } else { document.getElementById(id).innerHTML = str; } } function ChangeContent(type, id, str) { if (type=="IE") { document.all[id].innerHTML = str; } if (type=="NN") { document.layers[id].document.open(); document.layers[id].document.write(str); document.layers[id].document.close(); } if (type=="MO" || type=="OP") { document.getElementById(id).innerHTML = str; } } function LoadPage(U, E, L, nIndex) { type = ""; //L = "POR"; if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP"; if (document.all) type="IE"; if (document.layers) type="NN"; if (!document.all && document.getElementById) type="MO"; cNavType = type; cGBrowser = type; cSendMail = "javascript:SendMail('paramim.com.br','sendthis','bissacco')"; if (L=="POR") { cLangSubmit = 'Enviar'; cLangLogin = 'Entrar'; cLangPassword = "Senha"; cLangUsername = "Usuário"; cLangPlease = 'Por favor, digite seu nome de usuário e senha.'; cLangAtt = 'Por razões de privacidade, o acesso anônimo não é permitido.'; cLangLoginHelp = 'Se você pertence à Família Bissacco, mas não possui um nome de usuário e senha válidos para acessar o site, entre em contato com o Administrador do Sistema. Note que o acesso ao site será permitido apenas aos membros da família que enviaram informações sobre seus ancestrais.'+ 'Se você esqueceu sua senha, escreva seu endereço de e-mail no campo abaixo que enviaremos a senha para sua caixa postal.'; cLangLoginMessage = 'Clique aqui para se logar...'; } else if (L=="ITA") { cLangSubmit = 'Trasmettere'; cLangLogin = 'Entrare'; cLangTitle = 'Entrata'; cLangPassword = "Parola d'accesso"; cLangUsername = "Nome uttente"; cLangPlease = "Per favore, digitare il vostri nome uttente e parola d'accesso."; cLangAtt = "Dovuto segretezza, l'accesso anonimo non è permesso!"; cLangLoginHelp = "Se siete collegati con la Famiglia Bissacco ma non avete un nome uttente valido, si prega di mettersi in contatto con il coordinatore del sistema. Notare che soltanto i membri della famiglia, che mi hanno trasmesso le informazioni sui loro parenti, pèotranno accedere a questo link."+ "Se non ricordate la vosta parola d'accesso, scrivete il vostro indirizzo mail muggito e premere il tasto Transmettere"; cLangLoginMessage = 'Clicca qui per effettuare il login...'; } else { cLangSubmit = 'Submit'; cLangLogin = 'Login'; cLangTitle = 'Login'; cLangPassword = "Password"; cLangUsername = "Username"; cLangLoginMessage = 'Click here to Login...'; cLangPlease = "Please enter a valid username/password"; cLangAtt = 'Due to privacy, anonymous access is not allowed'; cLangLoginHelp = 'If you are related to Bissacco Family but do not have a valid username, please contact the system administrator. Notice that only family members, who has sent me information about their ancestors, will be able to access this site.'+ 'If you forgot your password, use the form bellow to retrieve it. An e-mail containing your personal informal (including your password) will be sent to your mailbox.
'; } cLangLoginHelp += '
E-Mail
'; if ((U+E)!="") { //ChangeContent(type, "idtop", U+" ("+E+")"); window.setTimeout("jsCheckOnlineUser()", 500); if (L=="POR") { S = DrawMenu(nIndex==1, 'index.php', 'Bem-vindo')+ DrawMenu(nIndex==2, 'branches.php', 'Ramos')+ DrawMenu(nIndex==3, 'users.php', 'Usuários')+ DrawMenu(nIndex==4, 'search.php', 'Pesquisa')+ DrawMenu(nIndex==5, 'relationship.php', 'Parentesco')+ DrawMenu(nIndex==6, 'docs.php', 'Docs')+ DrawMenu(nIndex==7, 'pics.php?allthumb=Y', 'Fotos')+ DrawMenu(nIndex==8, 'statistics.php', 'Estat')+ DrawMenu(nIndex==9, 'curiosity.php', 'Curiosidades')+ DrawMenu(nIndex==10, 'surnamelist.php', 'Sobrenomes')+ DrawMenu(nIndex==11, 'parishes.php', 'Paróquias')+ DrawMenu(nIndex==12, 'ships.php', 'Navios')+ DrawMenu(nIndex==13, 'forum.php', 'Fórum')+ DrawMenu(nIndex==14, 'logout.php', 'Sair'); } else if (L=="ITA") { S = DrawMenu(nIndex==1, 'index.php', 'Benvenuto')+ DrawMenu(nIndex==2, 'branches.php', 'Rami')+ DrawMenu(nIndex==3, 'users.php', 'Utenti')+ DrawMenu(nIndex==4, 'search.php', 'Ricerca')+ DrawMenu(nIndex==5, 'relationship.php', 'Rapporto')+ DrawMenu(nIndex==6, 'docs.php', 'Documenti')+ DrawMenu(nIndex==7, 'pics.php?allthumb=Y', 'Foto')+ DrawMenu(nIndex==8, 'statistics.php', 'Statistiche')+ DrawMenu(nIndex==9, 'curiosity.php', 'Curiosità')+ DrawMenu(nIndex==10, 'surnamelist.php', 'Cognomi')+ DrawMenu(nIndex==11, 'parishes.php', 'Parrochie')+ DrawMenu(nIndex==12, 'ships.php', 'Navi')+ DrawMenu(nIndex==13, 'forum.php', 'Forum')+ DrawMenu(nIndex==14, 'logout.php', 'Logout'); } else { S = DrawMenu(nIndex==1, 'index.php', 'Welcome')+ DrawMenu(nIndex==2, 'branches.php', 'Branches')+ DrawMenu(nIndex==3, 'users.php', 'Users')+ DrawMenu(nIndex==4, 'search.php', 'Search')+ DrawMenu(nIndex==5, 'relationship.php', 'Relationship')+ DrawMenu(nIndex==6, 'docs.php', 'Docs')+ DrawMenu(nIndex==7, 'pics.php?allthumb=Y', 'Pictures')+ DrawMenu(nIndex==8, 'statistics.php', 'Statistics')+ DrawMenu(nIndex==9, 'curiosity.php', 'Curiosities')+ DrawMenu(nIndex==10, 'surnamelist.php', 'Surnames')+ DrawMenu(nIndex==11, 'parishes.php', 'Parishes')+ DrawMenu(nIndex==12, 'ships.php', 'Ships')+ DrawMenu(nIndex==13, 'forum.php', 'Forum')+ DrawMenu(nIndex==14, 'logout.php', 'Logout'); } ChangeContent(type, "idmenu", S); } else { if (L=="POR") { S = "Entrar"+ DrawMenu(nIndex==0, 'login.php', 'Bem-vindo')+ DrawMenu(nIndex==8, 'statistics.php', 'Estatísticas')+ DrawMenu(nIndex==10, 'surnamelist.php', 'Sobrenomes')+ DrawMenu(nIndex==11, 'parishes.php', 'Paróquias')+ DrawMenu(nIndex==12, 'ships.php', 'Navios'); } else if (L=="ITA") { S = "Entra"+ DrawMenu(nIndex==0, 'login.php', 'Benvenuto')+ DrawMenu(nIndex==8, 'statistics.php', 'Statistiche')+ DrawMenu(nIndex==10, 'surnamelist.php', 'Cognomi')+ DrawMenu(nIndex==11, 'parishes.php', 'Parrocchie')+ DrawMenu(nIndex==12, 'ships.php', 'Navi'); } else { S = "Login"+ DrawMenu(nIndex==0, 'login.php', 'Welcome')+ DrawMenu(nIndex==8, 'statistics.php', 'Statistics')+ DrawMenu(nIndex==10, 'surnamelist.php', 'Surnames')+ DrawMenu(nIndex==11, 'parishes.php', 'Parishes')+ DrawMenu(nIndex==12, 'ships.php', 'Ships'); } ChangeContent(type, "idmenu", S); } F = '    '; S = " "; if ((U+E)!="") S = U+" ("+E+")"; //S = '
'+S+''+F+'
'; //alert(S); //ChangeContent(type, "idtop", S); if ((U+E)=="") { //ChangeContent(type, "idUser", ""); //var cLoginTable; //cLoginTable = '

'+cLangAtt+'

'+cLangPlease+'

'+cLangUsername+'
'+cLangPassword+'
'; //ChangeContent(type, "idLogin", cLoginTable); //GlobalChangeVisibility("idLogin", "visible"); ChangeContent(type, "idUser", "

"+cLangLoginMessage+"

"); //ShowLoginWindow(); } else { ChangeContent(type, "idUser", U+" ("+E+")"); ChangeContent(type, "idLogin", ""); GlobalChangeVisibility("idLogin", "hidden"); } ChangeContent(type, "idLanguage", F); //ChangeContent(type, "idtop", ""); //ChangeContent(type, "idbanner", ""); S = 'SendMail("paramim.com.br","sendthis","bissacco")'; if (L=="POR") { ChangeContent(type, "idbottom", "Desenvolvido por Paulo Sergio Cardoso"); } else if (L=="ITA") { ChangeContent(type, "idbottom", "Developed by Paulo Sergio Cardoso"); } else { ChangeContent(type, "idbottom", "Developed by Paulo Sergio Cardoso"); } if (L=="POR") { ChangeContent(type, "idSiteTitle", jShowTitle("História e Genealogia da Família Bissacco", "font-family:impact;font-size:18pt;", 600, 24)+ jShowTitle("Repositório de Documentos e Fotos", "text-align:right;font-family:helvetica;font-weight:bold;font-size:10pt;", 400, 20) ); } else if (L=="ITA") { ChangeContent(type, "idSiteTitle", jShowTitle("Storia e Genealogia della Famiglia Bissacco", "font-family:impact;font-size:18pt;", 600, 24)+ jShowTitle("Deposito di Immagini e Documenti", "text-align:right;font-family:helvetica;font-weight:bold;font-size:10pt;", 400, 20) ); } else { ChangeContent(type, "idSiteTitle", jShowTitle("Bissacco Family History and Genealogy", "font-family:impact;font-size:18pt;", 600, 24)+ jShowTitle("Documents and Pictures Repository", "text-align:right;font-family:helvetica;font-weight:bold;font-size:10pt;", 400, 20) ); } } function LoadPageParam() { LoadPage(); qs(); } function DrawMenu(lType, cLink, cCaption) { var c = (lType?"2":"1"); return( "
"+ ""+cCaption+""+ "
" ); } function ShowLoginWindow() { ChangeContent(cGBrowser, "idUser", ""); var cLoginTable = '

'+cLangAtt+'

'+cLangPlease+'

'+cLangUsername+'
'+cLangPassword+'
'; ChangeContent(cGBrowser, "idLogin", cLoginTable); GlobalChangeVisibility("idLogin", "visible"); } function ShowLoginWindow2() { var cLoginTable = '

'+cLangAtt+'

'+cLangPlease+'

'+cLangUsername+'
'+cLangPassword+'
'; SmallBalloonR("idHelp", "", 16, 55, 420, 170, cLoginTable); } function SmallBalloon(id, idback, x, y, w, h, cMens) { x = x-w; GChangeSize(id, w, h); GChangePos(id, x, y); var cStr = '
'; cStr += '
'; cStr += '
'; cStr += '
'; cStr += '
'; cStr += '

'+cMens+'

'; cStr += '
'; cStr += '
'; cStr += '
'; cStr += '
'; cStr += '
'; GlobalChangeContent(id, cStr); if (idback!="") GlobalChangeVisibility(idback, "visible"); GlobalChangeVisibility(id, "visible"); } function SmallBalloonR(id, idback, x, y, w, h, cMens) { GChangeSize(id, w, h); GChangePos(id, x, y); var cStr = '
'; cStr += '
'; cStr += '
'; cStr += '
'; cStr += '
'; cStr += '

'+cMens+'

'; cStr += '
'; cStr += '
'; cStr += '
'; cStr += '
'; cStr += '
'; GlobalChangeContent(id, cStr); if (idback!="") GlobalChangeVisibility(idback, "visible"); GlobalChangeVisibility(id, "visible"); } function SmallBalloonBR(id, idback, x, y, w, h, cMens) { y = y-h; GChangeSize(id, w, h); GChangePos(id, x, y); var cStr = '
'; cStr += '
'; cStr += '
'; cStr += '
'; cStr += '
'; cStr += '

'+cMens+'

'; cStr += '
'; cStr += '
'; cStr += '
'; cStr += '
'; cStr += '
'; GlobalChangeContent(id, cStr); if (idback!="") GlobalChangeVisibility(idback, "visible"); GlobalChangeVisibility(id, "visible"); } function GChangePos(id, x, y) { if (cGBrowser=="IE") { document.all[id].style.top = y+"px"; document.all[id].style.left = x+"px"; } else if (cGBrowser=="NN") { document.layers[id].top = y+"px"; document.layers[id].left = x+"px"; } else { document.getElementById(id).style.top = y+"px"; document.getElementById(id).style.left = x+"px"; } } function GChangeSize(id, w, h) { if (cGBrowser=="IE") { document.all[id].style.width = w+"px"; document.all[id].style.height = h+"px"; } else if (cGBrowser=="NN") { document.layers[id].width = w+"px"; document.layers[id].height = h+"px"; } else { document.getElementById(id).style.width = w+"px"; document.getElementById(id).style.height = h+"px"; } } function GlobalHelpLogin() { var nX = jsFindPosX("btnHelpLogin"); var nY = jsFindPosY("btnHelpLogin"); SmallBalloon("idHelp", "", nX+10, nY+10, 400, 220, cLangLoginHelp); } function GlobalHelpLogin2() { var nX = jsFindPosX("btnHelpLogin"); var nY = jsFindPosY("btnHelpLogin"); SmallBalloonR("idHelp2", "", nX+10, nY+10, 400, 220, cLangLoginHelp); } function jsFindPosX(id) { var obj = GlobalGetObj(id); return(findPosX(obj)); } function jsFindPosY(id) { var obj = GlobalGetObj(id); return(findPosY(obj)); } function GlobalGetObj(id) { if (cGBrowser=="IE") { return(document.all[id]); } else if (cGBrowser=="NN") { return(document.layers[id]); } else { return(document.getElementById(id)); } } function findPosX(obj) { var curleft = 0; if(obj.offsetParent) while(1) { curleft += obj.offsetLeft; if(!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.x) curleft += obj.x; return curleft; } function findPosY(obj) { var curtop = 0; if(obj.offsetParent) while(1) { curtop += obj.offsetTop; if(!obj.offsetParent) break; obj = obj.offsetParent; } else if(obj.y) curtop += obj.y; return curtop; } function CloseModal(id, idback) { GlobalChangeVisibility(id, "hidden"); if (idback!="") GlobalChangeVisibility(idback, "hidden"); } function GlobalHelpLanguage() { var nX = jsFindPosX("imgLangHelp"); var nY = jsFindPosY("imgLangHelp"); var cMens = '

Não estou entendendo! Traduza para o português, por favor.

I can not understand! Translate to English, please.

Non capisco. Lo può tradurre in italiano per favore?

'; SmallBalloon("idHelp", "", nX+10, nY+10, 500, 140, cMens); } function fuvGShowDiv(id, sh) { if (cGBrowser=="IE") { document.all[id].style.display = (sh=="0")?"none":"block"; } else if (cGBrowser=="NN") { document.layers[id].display = (sh=="0")?"none":"block"; } else { document.getElementById(id).style.display = (sh=="0")?"none":"block"; } } function jShowTitle(cAux, cStyle, w, h) { return('
'+ '
'+cAux+'
'+ '
'+cAux+'
'+ '
'+cAux+'
'+ '
'+cAux+'
'+ '
'+cAux+'
'+ '
'+cAux+'
'+ '
'+ '
'); } function jsCheckOnlineUser() { var xmlHttp; var lError = 0; ++nInterval; try { xmlHttp=new XMLHttpRequest(); } catch(e) { try { xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { lError = 1; } } } if (lError==0) { xmlHttp.onreadystatechange=function() { if(xmlHttp.readyState==4) GlobalChangeContent("idOnline", xmlHttp.responseText); } } xmlHttp.open("GET","online.php",true); xmlHttp.send(null); window.setTimeout("jsCheckOnlineUser()", nDeltaTime); }