function mitoggle(what){what.nextSibling.nextSibling.style.display=(what.nextSibling.nextSibling.style.display=='none' || ( what.nextSibling.nextSibling.style.display=='' && what.parentNode.parentNode.className!='active'))?'block':'none';};function smtoggle(what){what.nextSibling.nextSibling.style.display=(what.nextSibling.nextSibling.style.display=='none'||what.nextSibling.nextSibling.style.display=='')?'block':'none';};var voteUp=new Image;voteUp.src="images/vote.gif";var voteDown=new Image;voteDown.src="images/voteDown.gif";function voteImg(s){var btn=document.getElementById('btn');btn.src=(s=='d')?voteDown.src:voteUp.src;};function fart(){var now=new Date();var num=(now.getSeconds()*now.getMinutes())%173;num++;var img=document.createElement('img');img.src='images/fall-art/'+num+'.jpg';img.alt='';var fart=document.getElementById('fartimg');fart.appendChild(img);};var a1=new Array();var q1=new Array();var a2=new Array();var q2=new Array();a1[0]="Enclave patrol:";q1[0]="Now I suppose you're going to tell me you're just out looking for a water chip. Do I look dumb?";a2[0]="";q2[0]="";a1[1]="Chosen One:";q1[1]="But people like drinking, gambling, and whoring, I know I do.";a2[1]="";q2[1]="";a1[2]="Chosen One:";q1[2]="The rocket launcher gives me all the spiritual peace I need!";a2[2]="";q2[2]="";a1[3]="New Reno Comedian:";q1[3]="Radscorpions? What's so rad about them?";a2[3]="";q2[3]="";a1[4]="Melchior:";q1[4]="I hope dad comes back soon. I miss his magic tricks.";a2[4]="";q2[4]="";a1[5]="Raider:";q1[5]="Wish I had some other map I could go to.";a2[5]="";q2[5]="";a1[6]="Tombstone:";q1[6]="Charles Cuevas. He once said: 'Give me hockey or give me death.' He didn't quite get hockey.";a2[6]="";q2[6]="";a1[7]="Broken Hills Citizen:";q1[7]="Sometimes I feel like a magic 8-ball. I just spout random sayings and walk away.";a2[7]="";q2[7]="";a1[8]="Sulik:";q1[8]="Most people have evil spirits. You? You have stupid spirits. Go see shaman, get hole in head...";a2[8]="";q2[8]="";a1[9]="NCR Shop Guard:";q1[9]="I'm here to kick ass and chew bubblegum.";a2[9]="";q2[9]="";a1[10]="Chosen One:";q1[10]="I'll get you during my next save game.";a2[10]="";q2[10]="";a1[11]="Chosen One:";q1[11]="Must break free. Strength fading. Must leave.";a2[11]="";q2[11]="";a1[12]="Marcus:";q1[12]="Wow! I feel as if I've passed some arbitrary experience value and gained more power!";a2[12]="";q2[12]="";a1[13]="Wooz:";q1[13]="I won! Fuck you! You are dumb. I have crushed you.";a2[13]="";q2[13]="";a1[14]="New Reno Citizen:";q1[14]="I always knew the President wanted to kill us all";a2[14]="";q2[14]="";a1[15]="Dave Handy:";q1[15]="When I was five, my uncle was decapitated by a watermelon.";a2[15]="";q2[15]="";a1[16]="Wooz:";q1[16]="Apples rule. If it weren't for a conspiracy on the part of fruit manufacturers we'd all have apples.";a2[16]="";q2[16]="";a1[17]="Myron:";q1[17]="You should be glad I'm with you to point out all your stupid mistakes.";a2[17]="";q2[17]="";a1[18]="Tombstone:";q1[18]="Here lies a stant hoe that should have been dead a long time ago. Rest in hell, BITCH!";a2[18]="";q2[18]="";a1[19]="Tombstone:";q1[19]="Josh Walters, 1971-2011. Died of complications during his fifth liver transplant.";a2[19]="";q2[19]="";a1[20]="Tombstone:";q1[20]="Here lies Ann Mann, who lived an old maid, but died an old Mann. Dec. 8, 1767.";a2[20]="";q2[20]="";a1[21]="Tombstone:";q1[21]="Here lies Moose, cold and dead. We found him here, without his head.";a2[21]="";q2[21]="";a1[22]="Tombstone:";q1[22]="Here lies the dumbest son of a bitch ever to set foot in New Reno.";a2[22]="";q2[22]="";a1[23]="Tombstone:";q1[23]="Here lies the body of Jonathan Blake, who stepped on the gas instead of the brake.";a2[23]="";q2[23]="";a1[24]="Tombstone:";q1[24]="Robert Hertenstein 2. His doctor tried to tell him, but he insisted: 'That's a bit too much information.'";a2[24]="";q2[24]="";a1[25]="Tombstone:";q1[25]="Rob Giampa lived his life like he liked his women: fast, cheap, and easy.";a2[25]="";q2[25]="";a1[26]="New Reno prostitute:";q1[26]="Hey, stranger! Need a guide?";a2[26]="";q2[26]="";a1[27]="Jonny:";q1[27]="Oh no! Don't you know Rose uses dog in her dishes!? Laddie is probably a burger by now.";a2[27]="";q2[27]="";a1[28]="New Reno junkie:";q1[28]="Watch out! Pink deathclaw, three o'clock!";a2[28]="";q2[28]="";a1[29]="Chosen One:";q1[29]="Look, causing that much destruction wasn't easy!";a2[29]="";q2[29]="";a1[30]="Vault Dweller:";q1[30]="Don't drink glowing water.";a2[30]="";q2[30]="";a1[31]="Tombstone:";q1[31]="Here lies Sam Pritchard. He talked too much, so we gave him a second mouth.";a2[31]="";q2[31]="";a1[32]="Tombstone:";q1[32]="She always said her feet were killing her but nobody believed her.";a2[32]="";q2[32]="";a1[33]="Tombstone:";q1[33]="Garry Platner. Killed for not making more Vault Citizen models.";a2[33]="";q2[33]="";a1[34]="Katja:";q1[34]="Wow. I wish I had a hot dog and a really long stick.";a2[34]="";q2[34]="";a1[35]="Tombstone:";q1[35]="Jay 'Potato Feet' Nielson. Musician. Passed on at the age of 104, during a drum solo.";a2[35]="";q2[35]="";a1[36]="Vault Dweller:";q1[36]="It was terrible. It had these big, pointy teeth.";a2[36]="";q2[36]="";a1[37]="Dane:";q1[37]="Love is what makes the cactus grow! Love is what makes the brahmin moo!";a2[37]="";q2[37]="";a1[38]="Tombstone:";q1[38]="Stephen Bokkes, age 25. Cut down in his prime by the slings and arrows of outrageous fortune.";a2[38]="";q2[38]="";function cite(){var index=Math.floor(Math.random()*q1.length);var pNode=document.createElement('p');var txt=document.createTextNode(a1[index]);pNode.appendChild(txt);var citeNode=document.createElement('cite');txt=document.createTextNode(q1[index]);citeNode.appendChild(txt);pNode.appendChild(citeNode);var citeBox=document.getElementById('cBg');citeBox.appendChild(pNode);if(a2[index]!=''){pNode=document.createElement('p');txt=document.createTextNode(a2[index]);pNode.appendChild(txt);citeNode=document.createElement('cite');txt=document.createTextNode(q2[index]);citeNode.appendChild(txt);pNode.appendChild(citeNode);citeBox.appendChild(pNode);};};function useTarget(){if(!document.getElementsByTagName){return;}else{var refs=document.getElementsByTagName("a");for(var i=0;i<refs.length;i++){if(refs[i].getAttribute("href") && (refs[i].getAttribute("rel")=="external" || refs[i].className=="external")){refs[i].target="_blank";};};};};function showImage(what,w,h){w=(w=='')?395:w;h=(h=='')?302:h;var imgNode=what.firstChild;var imgNodeImage=imgNode.src.substring(imgNode.src.lastIndexOf("/"),imgNode.src.length);var imgNodeSrc=imgNode.src.substring(0,imgNode.src.lastIndexOf("/")+1);var imgTitle=(imgNode.getAttribute('title')!= null)?imgNode.title:"";var imgAlt=(imgNode.getAttribute('alt')!=null)?imgNode.alt:"";var newWindow=window.open('','newWindow','width='+w+',height='+h);newWindow.document.open();newWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');newWindow.document.write('<html>');newWindow.document.write('<head>');newWindow.document.write('<base href="http://wasteland.ag.ru/test/" />');newWindow.document.write('<title>'+imgAlt+'</title>');newWindow.document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />');newWindow.document.write('<meta name="author" content="Wasteland Chronicles" />');newWindow.document.write('<meta name="generator" content="220V, ~400Hz" />');newWindow.document.write('<style type="text/css">');newWindow.document.write('body { padding: 0; margin: 0; background: #FFF;}');newWindow.document.write('</style>');newWindow.document.write('</head>');newWindow.document.write('<body onblur="self.close();">');newWindow.document.write('<img src="'+imgNodeSrc+"full/"+imgNodeImage+'" alt="'+imgAlt+'" title="'+imgTitle+'" />');newWindow.document.write('</body>');newWindow.document.write('</html>');newWindow.document.close();};function showImageBW(what,w,h,scroll){w=(w=='')?395:w;h=(h=='')?302:h;if(scroll=='yes'){w=parseInt(w)+17;h=675;};var imgNode=what.firstChild;var imgNodeImage=imgNode.src.substring(imgNode.src.lastIndexOf("/"),imgNode.src.length);var imgNodeSrc=imgNode.src.substring(0,imgNode.src.lastIndexOf("/")+1);var imgTitle=(imgNode.getAttribute('title')!=null)?imgNode.title:"";var imgAlt=(imgNode.getAttribute('alt')!=null)?imgNode.alt:"";var newWindow=window.open('','newWindow','width='+w+',height='+h+',scrollbars=yes');newWindow.document.open();newWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');newWindow.document.write('<html>');newWindow.document.write('<head>');newWindow.document.write('<base href="http://wasteland.ag.ru/test/" />');newWindow.document.write('<title>'+imgAlt+'</title>');newWindow.document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />');newWindow.document.write('<meta name="author" content="Wasteland Chronicles" />');newWindow.document.write('<meta name="generator" content="220V, ~400Hz" />');newWindow.document.write('<style type="text/css">');newWindow.document.write('body { padding: 0; margin: 0; background: #FFF;}');newWindow.document.write('</style>');newWindow.document.write('</head>');newWindow.document.write('<body>');newWindow.document.write('<img src="'+imgNodeSrc+"full/"+imgNodeImage+'" alt="'+imgAlt+'" title="'+imgTitle+'" />');newWindow.document.write('</body>');newWindow.document.write('</html>');newWindow.document.close();};function showImageLink(address,alt,w,h){w=(w=='')?768:w;h=(h=='')?1024:h;var newWindow=window.open('','newWindow','width='+w+',height='+h);newWindow.document.open();newWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');newWindow.document.write('<html>');newWindow.document.write('<head>');newWindow.document.write('<base href="http://wasteland.ag.ru/test/" />');newWindow.document.write('<title>'+alt+'</title>');newWindow.document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />');newWindow.document.write('<meta name="author" content="Wasteland Chronicles" />');newWindow.document.write('<meta name="generator" content="220V, ~400Hz" />');newWindow.document.write('<style type="text/css">');newWindow.document.write('body { padding: 0; margin: 0; background: #FFF;}');newWindow.document.write('</style>');newWindow.document.write('</head>');newWindow.document.write('<body onblur="self.close();">');newWindow.document.write('<img src="http://wasteland.ag.ru/'+address+'" alt="'+alt+'" title="'+alt+'" />');newWindow.document.write('</body>');newWindow.document.write('</html>');newWindow.document.close();};function toggle(what){var divs=what.getElementsByTagName('div');if(divs[0].style.display=='block'){divs[0].style.display='none';}else{divs[0].style.display='block';};};function showImageScalable(what,w,h,realW,realH){w=(w=='')?640:w;h=(h=='')?480:h;var rateW=parseInt(realW)/parseInt(w);var rateH=parseInt(realH)/parseInt(h);var rate=(rateH>rateW)?rateH:rateW;var scaledW=Math.round(parseInt(realW)/rate);var scaledH=Math.round(parseInt(realH)/rate);var imgNode=what.firstChild;var imgNodeImage=imgNode.src.substring(imgNode.src.lastIndexOf("/"),imgNode.src.length);var imgNodeSrc=imgNode.src.substring(0,imgNode.src.lastIndexOf("/")+1);var imgTitle=(imgNode.getAttribute('title')!=null)?imgNode.title:"";var imgAlt=(imgNode.getAttribute('alt')!=null)?imgNode.alt:"";var newWindow=window.open('','newWindow','width='+w+',height='+h+',scrollbars=yes,resizable=yes');newWindow.document.open();newWindow.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');newWindow.document.write('<html>');newWindow.document.write('<head>');newWindow.document.write('<base href="http://wasteland.ag.ru/test/" />');newWindow.document.write('<title>'+imgAlt+'</title>');newWindow.document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />');newWindow.document.write('<meta name="author" content="Wasteland Chronicles" />');newWindow.document.write('<meta name="generator" content="220V, ~400Hz" />');newWindow.document.write('<'+'sc'+'ript type="text/'+'java'+'sc'+'ript">');newWindow.document.write('function scale()');newWindow.document.write('{');newWindow.document.write('var i=document.getElementById("scalable");');newWindow.document.write('if(i.height=='+Math.round(scaledH)+')');newWindow.document.write('{');newWindow.document.write('i.height='+realH+';');newWindow.document.write('i.width='+realW+';');newWindow.document.write('}');newWindow.document.write('else');newWindow.document.write('{');newWindow.document.write('i.height='+Math.round(scaledH)+';');newWindow.document.write('i.width='+Math.round(scaledW)+';');newWindow.document.write('};');newWindow.document.write('};');newWindow.document.write('<'+'/sc'+'ript>');newWindow.document.write('<style type="text/css">');newWindow.document.write('body { padding: 0; margin: 0; background: #000;}');newWindow.document.write('</style>');newWindow.document.write('</head>');newWindow.document.write('<body>');newWindow.document.write('<p><'+'img src="'+imgNodeSrc+"full/"+imgNodeImage+'" alt="'+imgAlt+'" title="'+imgTitle+'" height="'+Math.round(scaledH)+'" width="'+Math.round(scaledW)+'" id="scalable" />');newWindow.document.write('<'+'input type="button" name="scale" value="Масштабировать" onclick="scale();" style="position:absolute;top:0;left:0;" /'+'></'+'p>');newWindow.document.write('</body>');newWindow.document.write('</html>');newWindow.document.close();};function init(){useTarget();};window.onload=init;
