emeio=('&#99;&#111;&#110;&#116;&#97;&#116;&#111;' + '&#64;&#114;&#97;&#113;&#117;&#101;&#108;&#114;&#111;&#99;&#104;&#97;&#101;&#115;&#99;&#114;&#105;&#116;&#111;&#114;&#97;&#46;&#99;&#111;&#109;')

function printmeio(){
	document.write('<input type=hidden name="recipient" value='+ emeio +'>')
}

function openwindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//Autor: Bruno Suárez Laffargue 
//Versao: 1.1 

//Definimos as variaveis necessarias 
variable=1;//Havera que estabelecer 

//Capturamos a URL 
var callingURL = document.URL; 

//Separamos os parametros 
var cgiString = callingURL.substring(callingURL.indexOf('?')+1,callingURL.length); 

//Observamos o separador entre parametros 
var DELIMETER = '&'; 

//Eliminamos a almofadinha, se existir... cortamos por prevencao! 
if (cgiString.indexOf('#')!=-1){ 
    cgiString=cgiString.slice(0,cgiString.indexOf('#')); 
} 

//Partimos o cgiString ja limpo, separando cada par variable=valor 
//em uma das posicoes do array 
var arrayParams=cgiString.split(DELIMETER); 

//Percorremos o array de parametros avaliando cada um dos pares variable=valor 
for (var i=0;i<arrayParams.length;i++){ 
    eval(arrayParams[i].substring(0,arrayParams[i].indexOf('=')+1)+"\""+ 
    arrayParams[i].substring(arrayParams[i].indexOf('=')+1,arrayParams
     [i].length)+"\""); 
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function removeElement()
{
	if (arrayParams == 2){
		document.getElementById("form1").style.display = 'none';
		document.getElementById("form2").style.display = 'block';
	}
	if (arrayParams == 3){
		document.getElementById("form1").style.display = 'none';
		document.getElementById("form3").style.display = 'block';
	}
}

function mostrameianoite()
{
	if (arrayParams == 1){document.getElementById("form1").style.display = 'block';}
	if (arrayParams == 2){document.getElementById("form2").style.display = 'block';}
	if (arrayParams == 3){document.getElementById("form3").style.display = 'block';}
}

function mostrasubir(){
document.getElementById("subir").style.display='block';
}

function somepoesias(){
document.getElementById("textopoesia1").style.display='none';
document.getElementById("textopoesia2").style.display='none';
document.getElementById("textopoesia3").style.display='none';
document.getElementById("textopoesia4").style.display='none';
document.getElementById("textopoesia5").style.display='none';
document.getElementById("textopoesia6").style.display='none';
document.getElementById("textopoesia7").style.display='none';
document.getElementById("textopoesia8").style.display='none';
document.getElementById("textopoesia9").style.display='none';
document.getElementById("textopoesia10").style.display='none';
document.getElementById("textopoesia11").style.display='none';
document.getElementById("textopoesia12").style.display='none';
document.getElementById("textopoesia13").style.display='none';
mostrasubir();
}

function abrirpoesia(){
	if (arrayParams == 1){mostrasubir();document.getElementById("textopoesia1").style.display = 'block';}
	if (arrayParams == 2){mostrasubir();document.getElementById("textopoesia2").style.display = 'block';}
	if (arrayParams == 3){mostrasubir();document.getElementById("textopoesia3").style.display = 'block';}
	if (arrayParams == 4){mostrasubir();document.getElementById("textopoesia4").style.display = 'block';}
	if (arrayParams == 5){mostrasubir();document.getElementById("textopoesia5").style.display = 'block';}
	if (arrayParams == 6){mostrasubir();document.getElementById("textopoesia6").style.display = 'block';}
	if (arrayParams == 7){mostrasubir();document.getElementById("textopoesia7").style.display = 'block';}
	if (arrayParams == 8){mostrasubir();document.getElementById("textopoesia8").style.display = 'block';}
	if (arrayParams == 9){mostrasubir();document.getElementById("textopoesia9").style.display = 'block';}
	if (arrayParams == 10){mostrasubir();document.getElementById("textopoesia10").style.display = 'block';}
	if (arrayParams == 11){mostrasubir();document.getElementById("textopoesia11").style.display = 'block';}
	if (arrayParams == 12){mostrasubir();document.getElementById("textopoesia12").style.display = 'block';}
	if (arrayParams == 13){mostrasubir();document.getElementById("textopoesia13").style.display = 'block';}
}

function somecontos(){
document.getElementById("textoconto1").style.display='none';
document.getElementById("textoconto2").style.display='none';
document.getElementById("textoconto3").style.display='none';
document.getElementById("textoconto4").style.display='none';
document.getElementById("textoconto5").style.display='none';
document.getElementById("textoconto6").style.display='none';
document.getElementById("textoconto7").style.display='none';
document.getElementById("textoconto8").style.display='none';
document.getElementById("textoconto9").style.display='none';
mostrasubir();
}

function abrirconto(){
	if (arrayParams == 1){mostrasubir();document.getElementById("textoconto1").style.display = 'block';}
	if (arrayParams == 2){mostrasubir();document.getElementById("textoconto2").style.display = 'block';}
	if (arrayParams == 3){mostrasubir();document.getElementById("textoconto3").style.display = 'block';}
	if (arrayParams == 4){mostrasubir();document.getElementById("textoconto4").style.display = 'block';}
	if (arrayParams == 5){mostrasubir();document.getElementById("textoconto5").style.display = 'block';}
	if (arrayParams == 6){mostrasubir();document.getElementById("textoconto6").style.display = 'block';}
	if (arrayParams == 7){mostrasubir();document.getElementById("textoconto7").style.display = 'block';}
	if (arrayParams == 8){mostrasubir();document.getElementById("textoconto8").style.display = 'block';}
	if (arrayParams == 9){mostrasubir();document.getElementById("textoconto9").style.display = 'block';}
}

function somecronicas(){
document.getElementById("textocronica1").style.display='none';
document.getElementById("textocronica2").style.display='none';
document.getElementById("textocronica3").style.display='none';
document.getElementById("textocronica4").style.display='none';
mostrasubir();
}

function abrircronica(){
	if (arrayParams == 1){mostrasubir();document.getElementById("textocronica1").style.display = 'block';}
	if (arrayParams == 2){mostrasubir();document.getElementById("textocronica2").style.display = 'block';}
	if (arrayParams == 3){mostrasubir();document.getElementById("textocronica3").style.display = 'block';}
	if (arrayParams == 4){mostrasubir();document.getElementById("textocronica4").style.display = 'block';}
}

function somepapokbca(){
document.getElementById("textopapokbca1").style.display='none';
document.getElementById("textopapokbca2").style.display='none';
document.getElementById("textopapokbca3").style.display='none';
document.getElementById("textopapokbca4").style.display='none';
document.getElementById("textopapokbca5").style.display='none';
document.getElementById("textopapokbca6").style.display='none';
document.getElementById("textopapokbca7").style.display='none';
document.getElementById("textopapokbca8").style.display='none';
document.getElementById("textopapokbca9").style.display='none';
document.getElementById("textopapokbca10").style.display='none';
document.getElementById("textopapokbca11").style.display='none';
document.getElementById("textopapokbca12").style.display='none';
document.getElementById("textopapokbca13").style.display='none';
document.getElementById("textopapokbca14").style.display='none';
document.getElementById("textopapokbca15").style.display='none';
document.getElementById("textopapokbca16").style.display='none';
mostrasubir();
}

function abrirpapokbca(){
	if (arrayParams == 1){mostrasubir();document.getElementById("textopapokbca1").style.display = 'block';jsplayer('bob_sinclar_together')}
	if (arrayParams == 2){mostrasubir();document.getElementById("textopapokbca2").style.display = 'block';jsplayer('blind_melon_no_rain')}
	if (arrayParams == 3){mostrasubir();document.getElementById("textopapokbca3").style.display = 'block';jsplayer('buddhist_monks_my_spirit_flies_to_you')}
	if (arrayParams == 4){mostrasubir();document.getElementById("textopapokbca4").style.display = 'block';jsplayer('u2_stuck_in_a_moment')}
	if (arrayParams == 5){mostrasubir();document.getElementById("textopapokbca5").style.display = 'block';jsplayer('macy_gray_i_try')}
	if (arrayParams == 6){mostrasubir();document.getElementById("textopapokbca6").style.display = 'block';jsplayer('van_halen_cant_stop_lovin_you')}
	if (arrayParams == 7){mostrasubir();document.getElementById("textopapokbca7").style.display = 'block';jsplayer('rem_at_my_most_beautiful')}
	if (arrayParams == 8){mostrasubir();document.getElementById("textopapokbca8").style.display = 'block';jsplayer('suzanne_vega_book_of_dreams')}
	if (arrayParams == 9){mostrasubir();document.getElementById("textopapokbca9").style.display = 'block';jsplayer('michael_jackson_thriller')}
	if (arrayParams == 10){mostrasubir();document.getElementById("textopapokbca10").style.display = 'block';jsplayer('tlc_unpretty')}
	if (arrayParams == 11){mostrasubir();document.getElementById("textopapokbca11").style.display = 'block';jsplayer('sinatra_bono_ive_got_you_under_my_skin')}
	if (arrayParams == 12){mostrasubir();document.getElementById("textopapokbca12").style.display = 'block';jsplayer('coldplay_viva_la_vida')}
	if (arrayParams == 13){mostrasubir();document.getElementById("textopapokbca13").style.display = 'block';jsplayer('fabio_junior_sorri')}
	if (arrayParams == 14){mostrasubir();document.getElementById("textopapokbca14").style.display = 'block';jsplayer('michael_jackson_ben')}
	if (arrayParams == 15){mostrasubir();document.getElementById("textopapokbca15").style.display = 'block';jsplayer('alanis_morissette_ironic')}
	if (arrayParams == 16){mostrasubir();document.getElementById("textopapokbca16").style.display = 'block';jsplayer('michael_they_dont_care_about_us')}
}

function someacontece(){
document.getElementById("textoacontece1").style.display='none';
document.getElementById("textoacontece2").style.display='none';
document.getElementById("textoacontece3").style.display='none';
document.getElementById("textoacontece4").style.display='none';
mostrasubir();
}

function abriracontece(){
	if (arrayParams == 1){mostrasubir();document.getElementById("textoacontece1").style.display = 'block';}
	if (arrayParams == 2){mostrasubir();document.getElementById("textoacontece2").style.display = 'block';}
	if (arrayParams == 3){mostrasubir();document.getElementById("textoacontece3").style.display = 'block';}
	if (arrayParams == 4){mostrasubir();document.getElementById("textoacontece4").style.display = 'block';}
}

function someconcurso(){
document.getElementById("textoconcurso1").style.display='none';
document.getElementById("textoconcurso2").style.display='none';
document.getElementById("textoconcurso3").style.display='none';
mostrasubir();
}

function abrirconcurso(){
	if (arrayParams == 1){mostrasubir();document.getElementById("textoconcurso1").style.display = 'block';}
	if (arrayParams == 2){mostrasubir();document.getElementById("textoconcurso2").style.display = 'block';}
	if (arrayParams == 3){mostrasubir();document.getElementById("textoconcurso3").style.display = 'block';}
}

function someparceria(){
document.getElementById("textoparceria1").style.display='none';
mostrasubir();
}

function abrirparceria(){
	if (arrayParams == 1){mostrasubir();document.getElementById("textoparceria1").style.display = 'block';}
}

function somedicas(){
document.getElementById("textodica1").style.display='none';
document.getElementById("textodica3").style.display='none';
mostrasubir();
}

function abrirdicas(){
	if (arrayParams == 1){mostrasubir();document.getElementById("textodica1").style.display = 'block';}
	if (arrayParams == 3){mostrasubir();document.getElementById("textodica3").style.display = 'block';}
}

window.defaultStatus = "Raquel Rocha - Site oficial da escritora"

function jsplayer(video){
  var s1 = new SWFObject('player/player.swf','ply','400','300','9','#');
  s1.addParam('allowfullscreen','true');
  s1.addParam('allowscriptaccess','always');
  s1.addParam('wmode','opaque');
  s1.addParam('flashvars','&image=player/videos/'+video+'.jpg&file=videos/'+video+'.flv&autostart=true&skin=player/skins/overlay.swf&frontcolor=ffffff&lightcolor=cc9900&controlbar=over&stretching=fill');
  s1.write('preview');
}
