<!-- VOCÊ ESTÁ COPIANDO UM SCRIPT QUE É DE PROPRIEDADE DO SILENT HILL NET! TODOS OS SCRIPTS E FUNÇÕES AQUI CRIADOS SÃO DE PROPRIEDADE PRIVADA, DE BRUNO HENRIQUE INACIO (JAMES SUNDERLAND). A CÓPIA DESCARADA E SEM AUTORIZAÇÃO É PROIBIDA!!! -->

function click() {
if (event.button==2||event.button==3) {
 oncontextmenu='return false';
  }
}
document.onmousedown=click
document.oncontextmenu = new Function("return false;")

window.defaultStatus="SILENT HILL NET - O pesadelo está apenas começando...";

function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

function sel(hein){
hein.filters.alpha.opacity=100;
hein.filters.gray.enabled=false;
}

function dsel(hein){
hein.filters.alpha.opacity=25;
hein.filters.gray.enabled=true;
}

function voltar(){
history.back(1);
}

function repetir(){
location.reload();
}

function comoDesl(){
alert('===========COMO INSTALAR UM FUNDO DE DESLIGAMENTO===========\n\n1. Faça um backup dos arquivos LOGOS.SYS e LOGOW.SYS da pasta C:\\Windows\n2. Deszipe o fundo escolhido na pasta C:\\Windows. Caso seja perguntado se você deseja sobrescrever o arquivo atual, clique em Sim\n3. Desligue seu computador e confira a imagem final!\n\nObservação: caso queira restaurar as imagens originais, copie-as e cole-as novamente na pasta C:\\Windows')
}

function comoSom(){
alert('INSTRUÇÕES PARA HABILITAR SOM NO BROWSER\n\n1- Entre no menu Ferramentas, Opções da Internet\n2- Selecione a guia Avançadas\n3- Na opção Multimídia, ative Tocar sons em páginas da Web\n4- Clique em OK e recarrege a página (aperte F5)')
}

function comoAnim(){
alert('============ COMO INSTALAR O FUNDO DE TELA ANIMADO ============\n\n1. Deszipe o arquivo em uma pasta qualquer\n2. Entre nas configurações de vídeo, na opção de Papel de parede\n3. Clique em Procurar e escolha o arquivo HTML que foi deszipado\n4. Clique em OK\n\nObservação: caso seja perguntado se você quer ativar o Active Desktop, clique em Sim.');
}

function alertaAbre1(){
aceita=confirm("O site é melhor visualizado com resolução de 800x600 pixels. Clique em OK para continuar ou em Cancelar para retornar à página anterior");
if (aceita){
window.open('http://gamehall.uol.com.br/abertura.shn','SILENTHILLNET','location=no, toolbar=no, menubar=no, scrollbars=no, resizable=no, fullscreen=no, width=800, height=600');
} else {
history.back(1);
}
}

function alertaAbre2(){
alert('Ligue o som e aguarde a música de fundo carregar. Aperte ESC para parar o som.');
}

function alertaCred(){
alert('Aperte ESC para remover o som de fundo');
}

function alertaSai(){
alert('Cuidado com seus passos...');
}

function abreFotos(){
window.open('http://gamehall.uol.com.br/silenthillnet/filme/filmefotos.htm', 'SHFilme','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1,width=440,height=300')
}

function abreFotos2(){
window.open('http://gamehall.uol.com.br/silenthillnet/filme/filmefotos2.htm', 'SHFilme','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1,width=440,height=300')
}

function abreFotos3(){
window.open('http://gamehall.uol.com.br/silenthillnet/filme/filmefotos3.htm', 'SHFilme','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1,width=440,height=300')
}

function abreMonstros(){
window.open('http://gamehall.uol.com.br/silenthillnet/filme/monstros.htm', 'SHFilme','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1,width=800,height=500')
}

function abreEntrev(){
window.open('http://gamehall.uol.com.br/silenthillnet/filme/entrevAvary.htm','Entrevista','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1');
}

function abreArtigos(){
window.open('http://gamehall.uol.com.br/silenthillnet/filme/artigosSH.htm','Artigos','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1,width=800,height=400');
}

function abreTSHE(){
window.open('http://gamehall.uol.com.br/silenthillnet/filme/scsTSHE.htm','ScreenshotsTSHE','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1,width=400,height=300');
}

function abreSHNP(){
window.open('http://gamehall.uol.com.br/silenthillnet/filme/SHnewspaper.htm','JornalDeSH','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1,width=800,height=600');
}

function abreSHPN(){
window.open('http://gamehall.uol.com.br/silenthillnet/filme/nphs.htm','NotasDeProdução','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1,width=400,height=600');
}

function abrePosteres(){
window.open('http://gamehall.uol.com.br/silenthillnet/filme/seretsop.htm','PosteresSHFilme','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1,width=800,height=600');
}

function abreSHO(){
window.open('http://gamehall.uol.com.br/silenthillnet/filme/scsSHO.htm','ScreenshotsSHO','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1,width=400,height=300');
}

function abreSHA(){
window.open('http://gamehall.uol.com.br/silenthillnet/fotos/SHA.html','ScreenshotsSHA','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1,width=400,height=300');
}

function abreSHC(){
window.open('http://gamehall.uol.com.br/silenthillnet/fotos/SHC.html','ScreenshotsSHC','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1,width=400,height=300');
}

function abreSH5(){
window.open('http://gamehall.uol.com.br/silenthillnet/fotos/SH5.html','ScreenshotsSH5','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1,width=400,height=300');
}

function fechar(){
self.close()
}

function abreSad(){
window.open('http://gamehall.uol.com.br/silenthillnet/sadBirthday.htm','SadBirthday','width=300, height=419, location=no, toolbar=no, menubar=no, scrollbars=no, resizable=no fullscreen=no');
}

function imprimir(){
print();
}

function detonados(){
alert('ATENÇÃO.\nTodos os Detonados pedirão uma senha ao abrir. A senha é a mesma para todas as versões: SilentHillNet\nObedeça a grafia: todas as palavras juntas e as três iniciais maiúsculas');
}

function escuro(){
	document.bgColor="black";
	document.fgColor="gray";
}

function claro(){
	document.bgColor="gray";
	document.fgColor="black";
}

function verifica1(){
	if (enigma.senha.value=="the monster lurks"){
		window.open('http://www.gamehall.com.br/silenthillnet/samgine/LisaVideo.html','VideodeLisa','width=800,height=600,menubar=0,location=0,fullscreen=0,resizable=0');
	} else {
		window.open('http://www.gamehall.com.br/silenthillnet/samgine/errado.html','Errado','width=400,height=300');
	}
}

function controle(){
	window.open('som/sfx/controle.html','Controle','location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,fullscreen=no,width=200,height=300');
}

// função de bg rand
function fundoSHN() {
nImagens = 8;
parte1 = 'http://gamehall.uol.com.br/silenthillnet/imagens/logosOfic/';
parte2 = '.jpg';
var r = Math.ceil(Math.random() * nImagens);
document.body.background=parte1+r+parte2;
}

function creditos(){
	window.open('http://www.gamehall.com.br/silenthillnet/creditos.html','Créditos','width=780,height=580,menubar=0,location=0,fullscreen=0,resizable=0');
}

function verifica2(){
	if (enigma.senha.value=="76045891"){
		window.open('http://www.gamehall.com.br/silenthillnet/samgine/2/Resultado.jpg','Resultado','menubar=0,location=0,fullscreen=0,resizable=0');
	} else {
		window.open('http://www.gamehall.com.br/silenthillnet/samgine/2/errado.html','Errado2','width=400,height=300');
	}
}

function webPlayer(estacao){
window.open('http://www.gamehall.com.br/silenthillnet/som/estacoes/'+estacao+'.html','webplayer','width=400,height=124,location=no,menubar=no,addressbar=no');
}

function abremenu (nome) {
whichpost = document.getElementById(nome);
if (whichpost.className=="shown") {
	whichpost.className="texthidden";}
else {
	whichpost.className="shown";}
}

function bannerSHN() {
nImagens = 21;
parte1 = 'http://gamehall.uol.com.br/silenthillnet/imagens/banners/';
parte2 = '.gif';
var r = Math.ceil(Math.random() * nImagens);
document.write('<img src='+parte1+r+parte2+'>');
}

function abreVid(nomeVid){
window.open('http://gamehall.uol.com.br/silenthillnet/videos/'+nomeVid+'.html', 'Vídeos','toolbar=0,fullscreen=0,resizable=0,location=0,locationbar=0,directories=0,menubar=0,scrollbars=1,width=340,height=285')
}