var url; function abre(url,w,h,scr) { window.open(url,'comentarios','width='+w+',height='+h+',directories=0,location=0,menubar=0,resizable=1,scrollbars='+scr+',status=0,toolbar=0,marginleft=0,margintop=0,left=25,top=25'); } function commentText(qtd) { if(qtd == "0") {txtFinal = "("+qtd+") "+ zeroComm;} else if (qtd == "1") {txtFinal = "("+qtd+") "+ humComm;} else {txtFinal = "("+qtd+") "+ enesComm;} return txtFinal; } /* Declaração das variáveis */ var periodoMesAtual = ""; var periodoAnoAtual = ""; var k = 0; var j = 0; var periodo = new Array(); var periodoURL = new Array(); periodo[k++] = "22/04/2007 a 28/04/2007"; periodoURL[j++] = "arch2007-04-22_2007-04-28.html"; periodo[k++] = "15/04/2007 a 21/04/2007"; periodoURL[j++] = "arch2007-04-15_2007-04-21.html"; periodo[k++] = "08/04/2007 a 14/04/2007"; periodoURL[j++] = "arch2007-04-08_2007-04-14.html"; periodo[k++] = "25/03/2007 a 31/03/2007"; periodoURL[j++] = "arch2007-03-25_2007-03-31.html"; periodo[k++] = "18/03/2007 a 24/03/2007"; periodoURL[j++] = "arch2007-03-18_2007-03-24.html"; periodo[k++] = "11/03/2007 a 17/03/2007"; periodoURL[j++] = "arch2007-03-11_2007-03-17.html"; periodo[k++] = "04/03/2007 a 10/03/2007"; periodoURL[j++] = "arch2007-03-04_2007-03-10.html"; periodo[k++] = "25/02/2007 a 03/03/2007"; periodoURL[j++] = "arch2007-02-25_2007-03-03.html"; periodo[k++] = "18/02/2007 a 24/02/2007"; periodoURL[j++] = "arch2007-02-18_2007-02-24.html"; periodo[k++] = "11/02/2007 a 17/02/2007"; periodoURL[j++] = "arch2007-02-11_2007-02-17.html"; periodo[k++] = "04/02/2007 a 10/02/2007"; periodoURL[j++] = "arch2007-02-04_2007-02-10.html"; periodo[k++] = "28/01/2007 a 03/02/2007"; periodoURL[j++] = "arch2007-01-28_2007-02-03.html"; periodo[k++] = "21/01/2007 a 27/01/2007"; periodoURL[j++] = "arch2007-01-21_2007-01-27.html"; periodo[k++] = "14/01/2007 a 20/01/2007"; periodoURL[j++] = "arch2007-01-14_2007-01-20.html"; periodo[k++] = "07/01/2007 a 13/01/2007"; periodoURL[j++] = "arch2007-01-07_2007-01-13.html"; periodo[k++] = "31/12/2006 a 06/01/2007"; periodoURL[j++] = "arch2006-12-31_2007-01-06.html"; periodo[k++] = "26/11/2006 a 02/12/2006"; periodoURL[j++] = "arch2006-11-26_2006-12-02.html"; periodo[k++] = "19/11/2006 a 25/11/2006"; periodoURL[j++] = "arch2006-11-19_2006-11-25.html"; periodo[k++] = "12/11/2006 a 18/11/2006"; periodoURL[j++] = "arch2006-11-12_2006-11-18.html"; periodo[k++] = "05/11/2006 a 11/11/2006"; periodoURL[j++] = "arch2006-11-05_2006-11-11.html"; periodo[k++] = "22/10/2006 a 28/10/2006"; periodoURL[j++] = "arch2006-10-22_2006-10-28.html"; periodo[k++] = "15/10/2006 a 21/10/2006"; periodoURL[j++] = "arch2006-10-15_2006-10-21.html"; periodo[k++] = "08/10/2006 a 14/10/2006"; periodoURL[j++] = "arch2006-10-08_2006-10-14.html"; periodo[k++] = "24/09/2006 a 30/09/2006"; periodoURL[j++] = "arch2006-09-24_2006-09-30.html"; periodo[k++] = "17/09/2006 a 23/09/2006"; periodoURL[j++] = "arch2006-09-17_2006-09-23.html"; periodo[k++] = "10/09/2006 a 16/09/2006"; periodoURL[j++] = "arch2006-09-10_2006-09-16.html"; periodo[k++] = "03/09/2006 a 09/09/2006"; periodoURL[j++] = "arch2006-09-03_2006-09-09.html"; periodo[k++] = "06/08/2006 a 12/08/2006"; periodoURL[j++] = "arch2006-08-06_2006-08-12.html"; periodo[k++] = "30/07/2006 a 05/08/2006"; periodoURL[j++] = "arch2006-07-30_2006-08-05.html"; periodo[k++] = "23/07/2006 a 29/07/2006"; periodoURL[j++] = "arch2006-07-23_2006-07-29.html"; /* Acerta a altura das colunas dos meses para que não haja quebra de layout. */ function defineAlturaColunas() { var arquivo = document.getElementById("calendario").getElementsByTagName("ul"); var maiorAltura = 0; for (i = 0; i < arquivo.length; i++) { ((arquivo[i].offsetHeight > maiorAltura) ? maiorAltura = arquivo[i].offsetHeight : arquivo[i].style.height = maiorAltura); } } /* Define o nome do mês baseado pelo index */ function defineMes(numMes) { var nomeMes = new Array(); nomeMes = ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"]; return nomeMes[eval(numMes - 1)]; } /* Monta o calendário */ function montaCalendario(){ for(i in periodo) { var periodoMes = periodo[i].substr(3,2); //Mes do periodo var periodoAno = periodo[i].substr(6,4); //Ano do periodo /* Separa os anos */ if (periodoAnoAtual == "") { document.write ("
  1. " + periodoAno + "
  2. "); periodoAnoAtual = periodoAno; periodoMesAtual = ""; } else if (periodoAno != periodoAnoAtual) { document.write ("
  1. " + periodoAno + "
  2. "); periodoAnoAtual = periodoAno; periodoMesAtual = ""; } /* Separa os meses */ if (periodoMesAtual == "") { document.write ("
"); } /* Monta os períodos do arquivo no box lateral */ function montaPeriodos() { numMaximo = periodo.length; for(i = 0; i < numMaximo; i ++) { document.write ("
  • "+ periodo[i] +"
  • "); } } /* Faz o request do XML */ var http_request = false; function makeRequest(url) { http_request = false; if (window.XMLHttpRequest) { http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) { http_request.overrideMimeType('text/xml'); } } else if (window.ActiveXObject) { try { http_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!http_request) { alert('Giving up :( Cannot create an XMLHTTP instance'); return false; } http_request.onreadystatechange = alertContents; http_request.open('GET', url, true); http_request.send(null); } function alertContents() { if (http_request.readyState == 4) { if (http_request.status == 200) { mostraHistorico(); } else { //alert('Houve um problema com a requisição.'); } } } //Fim Request /* Monta a lista dos últimos posts */ function mostraHistorico() { var xmlDoc = http_request.responseXML; var item = xmlDoc.getElementsByTagName("item"); for(i = 0; i < item.length; i ++) { var link = item[i].getElementsByTagName("link")[0].firstChild.nodeValue; var titulo = item[i].getElementsByTagName("title")[0].firstChild.nodeValue.replace(/\s\-\sAutor\(.*\)$/,""); if (titulo == "") titulo = "Sem título"; var data = item[i].getElementsByTagName("pubDate")[0].firstChild.nodeValue; var er = /([a-z]{3}), ([0-9]{2}) ([a-z]{3}) ([0-9]{4}) ([0-9]{2}\:[0-9]{2}\:[0-9]{2}) -[0-9]{4}/i; data = data.match(er); var mes; switch(data[3]) { case 'Jan' : mes = '01' ; break; case 'Feb' : mes = '02' ; break; case 'Mar' : mes = '03' ; break; case 'Apr' : mes = '04' ; break; case 'May' : mes = '05' ; break; case 'Jun' : mes = '06' ; break; case 'Jul' : mes = '07' ; break; case 'Aug' : mes = '08' ; break; case 'Sep' : mes = '09' ; break; case 'Oct' : mes = '10' ; break; case 'Nov' : mes = '11' ; break; case 'Dec' : mes = '12' ; break; } } }

    [ página principal ] [ ver mensagens anteriores ]



    Meu Perfil
    BRASIL, Sudeste, CAMPINAS, Mulher, de 26 a 35 anos, Portuguese
    MSN - adriana.ccosta@hotmail.com