// JavaScript Document


function book(nome){

	  var ar = new Array(25);
	  var ok = new Array(25);

	  ar[0] = "zahir";
	  ok[0] = "The Zahir";
	  ar[1] = "comorio";
	  ok[1] = "Like the Flowing River";
	  ar[2] = "alchemist";
	  ok[2] = "The Alchemist";
	  ar[3] = "witch";
	  ok[3] = "The Witch of Portobello";
	  ar[4] = "warrior";
	  ok[4] = "Manual of the Warrior of Light";
	  ar[5] = "11minutos";
	  ok[5] = "Eleven Minutes";
	  ar[6] = "river";
	  ok[6] = "By the River Piedra I Sat Down and Wept";
	  ar[7] = "prym";
	  ok[7] = "The Devil and Miss Prym";
	  ar[8] = "veronika";
	  ok[8] = "Veronika Decides to Die";
	  ar[9] = "fifth";
	  ok[9] = "The Fifth Mountain";
  	  ar[10] = "pilgrim";
	  ok[10] = "The Pilgrimage";
	  ar[11] = "brida";
	  ok[11] = "Brida";
	  ar[12] = "valkyries";
	  ok[12] = "The Valkyries";
	  ar[13] = "maktub";
	  ok[13] = "Maktub";
	  ar[14] = "supremo";
	  ok[14] = "O Dom Supremo (The Gift)";
	  ar[15] = "letters";
	  ok[15] = "Love Letters from a Prophet";
	  ar[16] = "survivor";
	  ok[16] = "The Survivor";
	  ar[17] = "confessions";
	  ok[17] = "Paulo Coelho: The Confessions of a Pilgrim";
	  ar[18] = "school_alch";
	  ok[18] = "School Editions: The Alchemist";
	  ar[19] = "school_vero";
	  ok[19] = "School Editions: Veronika Decides to Die";
	  ar[20] = "school_seventh";
	  ok[20] = "School Editions: On the Seventh Day";
	  ar[21] = "genie";
	  ok[21] = "The Genie and the Roses";
	  ar[22] = "fathers";
	  ok[22] = "Fathers, Sons and Grandsons";
	  ar[23] = "art_book";
	  ok[23] = "Revived Paths";
	  ar[24] = "themagus";
	  ok[24] = "A Warrior's Life, Fernando Morais";
	  ar[25] = "winner";
	  ok[25] = "The Winner Stands Alone";
	  ar[26] = "stat_diary";
	  ok[26] = "INSPIRATIONS: Diary 2010";
	  ar[27] = "stat_love";
	  ok[27] = "LOVE: Selected Quotations";
	  ar[28] = "stat_life";
	  ok[28] = "LIFE: Selected Quotations";


	for (var i = 0; nome != ar[i]; i++) {
		if (i > 25) return "Paulo Coelho";
	}

	return ok[i];

}

function NewWindow(mypage,myname,w,h,scroll){
	LeftPosition = 0;
	TopPosition = 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
	win = window.open(mypage,myname,settings);
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function abrir(janela){
	window.open(janela,'_blank','width=630,height=460,top=30,left=30,scrollbars=no');
}
