Ir para conteúdo
Fórum Script Brasil
  • 0

Dúvida - colocar dois scripts na mesma página


Lokk

Pergunta

Olá, galera, olha só, encontrei um menu ideal pro meu site, só que ele ocupa muuito espaço, então reduzi ele, e decidi repeti-lo três vezes, cada um com links diferentes, ou seja, basicamente eu penso em criar três menus. O problema é que quando eu copio ele em outra camada, dá erro. Como é um site bem simples, eu uso o frontpage mesmo. A mensagem de erro diz "Linha 1574; 'document.all[...].style' é nulo ou não é um objeto; Código 0". Já tentei fazer várias alterações, inclusive deletar todos os document.all que vi pela frente, mas ou davam erros de sintaxe, ou davam esse mesmo erro. To colocando aqui embaixo o código dele já reduzido, ee dentro de uma camada centralizada na página

<div style="position: absolute; width: 167px; height: 102px; z-index: 3; left: 9px; top: 192px; float:left" id="camada4">
&lt;script language=JavaScript>



self.focus();



</SCRIPT>



&lt;script>window.defaultStatus="S-C-R-I-P-T B-R-A-S-I-L"</SCRIPT>

</STYLE>

&lt;script language=javascript src=""></SCRIPT>



<P align=center><BR> <FONT face="Verdana, Arial color=" size=1><FONT

black?>

&lt;script language=javascript src=""></SCRIPT>

</FONT></FONT>

&lt;script language=javascript>

<!--

function mOver(tdEl, c)

{

if(document.all)

tdEl.style.backgroundColor = c;

}

function mOut(tdEl)

{

if(document.all)

tdEl.style.backgroundColor = '';

}

function mClick(tdEl)

{

if(document.all) {

var child = tdEl.children;

if(child.length > 0) {

var el = child[0];

if(el.tagName == "A") {

window.event.cancelBubble = true;

window.event.returnValue = true;

el.click();

return true;

}

}

}

return false;

}

//-->

</SCRIPT>



<STYLE type=text/css>.dot {

FONT-SIZE: 1px; Z-INDEX: 100; VISIBILITY: hidden; WIDTH: 6px; CURSOR: hand; POSITION: absolute; HEIGHT: 6px; BACKGROUND-COLOR: #ff0000

}

.dotoff {

FONT-SIZE: 1px; Z-INDEX: 100; VISIBILITY: hidden; WIDTH: 6px; CURSOR: default; POSITION: absolute; HEIGHT: 6px; BACKGROUND-COLOR: gray

}

.dotempty {

FONT-SIZE: 1px; VISIBILITY: hidden; WIDTH: 6px; CURSOR: hand; POSITION: absolute; HEIGHT: 6px; BACKGROUND-COLOR: orange; zindex: 100

}

.caption {

FONT-SIZE: 11px; Z-INDEX: 1; VISIBILITY: hidden; CURSOR: default; COLOR: black; FONT-FAMILY: Tahoma; POSITION: absolute; TEXT-ALIGN: center

}

BODY {

MARGIN: 0px

}

A {

COLOR: silver; TEXT-DECORATION: none

}

P {

FONT-SIZE: 10px; COLOR: black; FONT-FAMILY: tahoma

}

</STYLE>



&lt;script language=JavaScript type=text/javascript>

function lib_bwcheck(){

this.ver=navigator.appVersion

this.agent=navigator.userAgent

this.dom=document.getElementById?1:0

this.opera5=this.agent.indexOf("Opera 5")>-1

this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;

this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;

this.ie4=(document.all && !this.dom && !this.opera5)?1:0;

this.ie=this.ie4||this.ie5||this.ie6

this.mac=this.agent.indexOf("Mac")>-1

this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;

this.ns4=(document.layers && !this.dom)?1:0;

this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)

return this

}

var bw=new lib_bwcheck()







</SCRIPT>

</P><!-- START DELETE --><!-- END DELETE -->

&lt;script language=javascript1.2 type=text/javascript>

<!--



function getObjectRef(name) {

if(document.getElementById) return document.getElementById(name);

else if(document.all) return document.all[name];

else return null;

}





function show(name) {

var el = getObjectRef(name);

if(el) el.style.visibility = "visible";

}

function hide(name) {

var el = getObjectRef(name);

if(el) el.style.visibility = "hidden";

}

function getWidth(name) {

var el = getObjectRef(name);

return el.offsetWidth;

}

function getHeight(name) {

var el = getObjectRef(name);

return el.offsetHeight;

}

function moveMe(name,x,y) {

var el = getObjectRef(name);

if(el) { el.style.top = parseInt(y); el.style.left = parseInt(x); }

}

function moveBy(name,x,y) {

var el = getObjectRef(name);

if(el) { el.style.top = parseInt(el.style.top) + parseInt(y); el.style.left = parseInt(el.style.left) + parseInt(x); }

}





var menuCount = 0;

function menuObject(name,x,y,caption, r, parent) {

if ( (!document.getElementById&&!document.all) || navigator.userAgent.indexOf("Opera")>-1) return;

document.write('<div id="divDot' + menuCount + '" class="dotempty" style="top: ' + y + '; left: ' + x + '"></div>');

document.write('<div id="divCap' + menuCount + '" class="caption" style="top: 0; left: 0">' + caption + '</div>');



this.name = name;

this.parent = parent

this.ref = "divDot" + menuCount;

this.caption = "divCap" + menuCount

if® this.radius = r;

else this.radius = 0;

this.subMenus = new Array();

this.state = 0;

this.moving = false;

if(this.parent) this.action = "null";

else this.action = "toggle";

if(this.parent) this.startAngle = parent.startAngle;

else this.startAngle = 0;



getObjectRef(this.ref).objRef = this.name;



this.show = function() { show(this.ref); }

this.hide = function() { hide(this.ref); }

this.moveMe = function(x,y) { if(this.parent) { x += this.parent.x(); y += this.parent.y(); } moveMe(this.ref,x,y); }

this.moveBy = function(x,y) { moveBy(this.ref,x,y); }

this.x = function() { return parseInt(getObjectRef(this.ref).style.left); }

this.y = function() { return parseInt(getObjectRef(this.ref).style.top); }

this.w = function() { return getWidth(this.ref); }

this.h = function() { return getHeight(this.ref); }



this.showCaption = function() {

moveMe(this.caption, this.x() - (getWidth(this.caption)/2) + (this.w()/2), (this.y() + this.h()));

show(this.caption);

}

this.hideCaption = function() {

hide(this.caption);

}

this.setCaption = function© { getObjectRef(this.caption).innerHTML = c;}



this.addItem = function(c,action,r) {

getObjectRef(this.ref).className = "dot";

if(!r) r = this.radius/2;

var sub = new menuObject(this.name + ".subMenus[" + this.subMenus.length + "]",0,0,c,r,this);

sub.parent = this;

sub.action = action;

sub.moveMe(0,0);

this.subMenus[this.subMenus.length] = sub;

return sub;

}



this.expand = function() {

if(this.subMenus.length > 0) {

var p = true;

if(this.parent) {

p = !this.parent.moving;

for(var i=0; i<this.parent.subMenus.length;i++)

p = p && ((this.parent.subMenus[i].state==0) || (this.parent.subMenus[i].state==this.parent.subMenus[i].subMenus.length)) && (this.parent.subMenus[i].moving==false);

} else var o = false;





if((!this.parent || this.parent.state == this.parent.subMenus.length) && p) {

if(this.parent) this.collapseAll(this.name);



var diff = 360 / this.subMenus.length;

for(var i=0;i<this.subMenus.length;i++){

this.subMenus[i].moveMe(0,0);

this.subMenus[i].show();

this.moving = true;

this.subMenus[i].slide(this.subMenus[i].radius * cos(degToRad((diff*i)+this.startAngle)), this.subMenus[i].radius * sin(degToRad((diff*i)+this.startAngle)), this.name + ".subMenus[" + i + "].showCaption();" + this.name + ".moving=false;" + this.name + ".state+=1;");

}

if(this.parent){

getObjectRef(this.parent.ref).style.filter = "alpha (opacity=33)";

getObjectRef(this.parent.ref).style.MozOpacity = "33%";



getObjectRef(this.parent.ref).className = "dotoff";

getObjectRef(this.parent.caption).style.filter = "alpha (opacity=33)";

getObjectRef(this.parent.caption).style.MozOpacity = "33%";

for(i=0;i<this.parent.subMenus.length;i++) {

getObjectRef(this.parent.subMenus[i].ref).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.subMenus[i].ref).style.MozOpacity = "66%";

getObjectRef(this.parent.subMenus[i].caption).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.subMenus[i].caption).style.MozOpacity = "66%";

}

if(this.parent.parent) {

for(i=0;i<this.parent.parent.subMenus.length;i++) {

getObjectRef(this.parent.parent.subMenus[i].ref).style.filter = "alpha (opacity=33)";

getObjectRef(this.parent.parent.subMenus[i].ref).style.MozOpacity = "33%";

getObjectRef(this.parent.parent.subMenus[i].ref).className = "dotoff";

getObjectRef(this.parent.parent.subMenus[i].caption).style.filter = "alpha (opacity=33)";

getObjectRef(this.parent.parent.subMenus[i].caption).style.MozOpacity = "33%";

}

getObjectRef(this.parent.parent.ref).style.MozOpacity = "33%";

getObjectRef(this.parent.parent.ref).style.MozOpacity = "33%";

getObjectRef(this.parent.parent.ref).className = "dotoff";

}

}

getObjectRef(this.ref).style.filter = "alpha (opacity=66)";

getObjectRef(this.caption).style.filter = "alpha (opacity=66)";

getObjectRef(this.ref).style.MozOpacity = "66%";

getObjectRef(this.caption).style.MozOpacity = "66%";

}

}

}



this.collapse = function() {

var p = true;

p = !this.moving;

for(var i=0; i<this.subMenus.length;i++)

p = p && (this.subMenus[i].state==0) && (this.subMenus[i].moving==false);



if(p && this.subMenus.length > 0) {

for(var i=0;i<this.subMenus.length;i++){

this.subMenus[i].hideCaption();

this.moving = true;

this.subMenus[i].slide(0, 0, this.name + ".subMenus[" + i + "].hide();" + this.name + ".moving=false;" + this.name + ".state-=1;");

}

if(this.parent){

getObjectRef(this.parent.ref).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.ref).style.MozOpacity = "66%";

if(this.parent.subMenus.length != 0)

getObjectRef(this.parent.ref).className = "dot";

else

getObjectRef(this.parent.ref).className = "dotempty";

getObjectRef(this.parent.caption).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.caption).style.MozOpacity = "66%";

for(i=0;i<this.parent.subMenus.length;i++) {

getObjectRef(this.parent.subMenus[i].ref).style.filter = "alpha (opacity=100)";

getObjectRef(this.parent.subMenus[i].ref).style.MozOpacity = "100%";

if(this.parent.subMenus[i].subMenus.length != 0)

getObjectRef(this.parent.subMenus[i].ref).className = "dot";

else

getObjectRef(this.parent.subMenus[i].ref).className = "dotempty";

getObjectRef(this.parent.subMenus[i].caption).style.filter = "alpha (opacity=100)";

getObjectRef(this.parent.subMenus[i].caption).style.MozOpacity = "100%";

}

if(this.parent.parent) {

for(i=0;i<this.parent.parent.subMenus.length;i++) {

getObjectRef(this.parent.parent.subMenus[i].ref).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.parent.subMenus[i].ref).style.MozOpacity = "66%";

if(this.parent.parent.subMenus[i].subMenus.length != 0)

getObjectRef(this.parent.parent.subMenus[i].ref).className = "dot";

else

getObjectRef(this.parent.parent.subMenus[i].ref).className = "dotempty";

getObjectRef(this.parent.parent.subMenus[i].caption).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.parent.subMenus[i].caption).style.MozOpacity = "66%";

}

}

}

getObjectRef(this.ref).style.filter = "alpha (opacity=100)";

getObjectRef(this.caption).style.filter = "alpha (opacity=100)";

getObjectRef(this.ref).style.MozOpacity = "100%";

getObjectRef(this.caption).style.MozOpacity = "100%";

}

}



this.collapseAll = function(except) {

for(var i=0;i<this.parent.subMenus.length;i++) {

if(this.parent.subMenus[i].name!=except && this.parent.subMenus[i].state==this.parent.subMenus[i].subMenus.length) {

this.parent.subMenus[i].collapse();

}

}

}



this.toggle = function(e) {

if(document.all) id = window.event.srcElement;

else id = e.target;

var dot = eval(id.objRef);



if(dot.state==0 && !dot.moving) dot.expand();

else if(dot.state==dot.subMenus.length && !dot.moving) dot.collapse()

}



this.doAction = function(e) {

if(document.all) id = window.event.srcElement;

else id = e.target;

var dot = eval(id.objRef);



if(dot.action == "toggle") dot.toggle(e);

else eval(dot.action);

}





getObjectRef(this.ref).onmouseup = this.doAction;



this.slide = function(xx,yy,func) {

if(!func) func = "";

var px = this.parent.x();

var py = this.parent.y();



var x = xx - this.x() + px;

var y = yy - this.y() + py;



var d = sqrt(square(xx-this.x() + px) + square(yy-this.y() + py));



var v = d/2;

if(v<1) v = 1;



if( (Math.abs(x) < v) && (Math.abs(y) < v) ) {

moveMe(this.ref,xx + px,yy + py);

if(func != "") eval(func);

} else {

var a = round(atan(x,y));

dx = round(v * cos(degToRad(a)));

dy = round(v * sin(degToRad(a)));



this.moveBy(dx,dy);

setTimeout(this.name + ".slide(" + xx + "," + yy + ", '" + func + "');",10);

}

}



if (menuCount==0 && document.all) document.all[this.ref].style.filter = "alpha (opacity=100)";

menuCount++;

return this;

}







var pi = Math.PI;

function square(x) { return (x*x); }

function sqrt(x) { return Math.sqrt(x); }

function round(x) { return Math.round(x); }

function rand(x,y) { return (round(Math.random()*(y-x)) + x); }



function cos(x) { return Math.cos(x) }

function sin(x) { return Math.sin(x) }



function degToRad(x) { return ( x/(400/(2*pi)) ); }

function radToDeg(x) { return ( x*(400/(2*pi)) ); }





function atan(s,t) {

if( s == 0.0 && t > 0.0)

angle = 90.0;

else if(s == 0.0 && t < 0.0)

angle = 180.0;

else if (s < 0.0 )

angle = 180.0 + radToDeg(Math.atan(t/s));

else if (s > 0.0 && t < 0.0)

angle = 360.0 + radToDeg(Math.atan(t/s));

else {

if(s==0.0) s=0.00001;

angle = radToDeg(Math.atan(t/s));

}

if(angle < 0.0) angle += 360.0;

return angle;

}









if(document.all) pageWidth = document.body.offsetWidth-20;

else pageWidth = innerWidth;

if(document.all) pageHeight = document.body.offsetHeight-4;

else pageHeight = innerHeight;





var menu = new menuObject("menu",pageWidth/15,pageHeight/15,"CLIQUE",pageHeight/3);

menu.startAngle = -90;





menu.show();

menu.showCaption();



//canal 1

menu.addItem("CONTATO","window.open('falecomigo.html')");

//canal 2

menu.addItem("Capela virtual","toggle");

//canal 3

menu.addItem("Nossa História","toggle");

//canal 4

menu.addItem("Luz do Mundo!","toggle");

//canal 5

menu.addItem("Downloads","toggle");

//canal 6

menu.addItem("Nossa Paróquia","toggle");


//canal 2

menu.subMenus[1].addItem("ANIMAÇÕES","window.open('pagina.html')");

menu.subMenus[1].addItem("TEXTO","window.open('pagina.html')");

menu.subMenus[1].addItem("EFEITOS ESPECIAIS","window.open('pagina.html')");



//canal 3

menu.subMenus[2].addItem("MENUS","window.open('pagina.html')");

menu.subMenus[2].addItem("JOGOS","window.open('pagina.html')");

menu.subMenus[2].addItem("EFEITOS ESPECIAIS","window.open('pagina.html')");







//canal 4



menu.subMenus[3].addItem("MENU","window.open('pagina.html')");

menu.subMenus[3].addItem("ANIMAÇOES","window.open('pagina.html')");

menu.subMenus[3].addItem("EEITOS ESPECIAIS","window.open('pagina.html')");

menu.subMenus[3].addItem("SEGURANÇA","window.open('pagina.html')");





//canal 5

c = menu.subMenus[4].addItem("rotinas","toggle");

c.startAngle = 5;

menu.subMenus[4].addItem("jogos","window.open('pagina.html')");

menu.subMenus[4].addItem("banco de dados","window.open('pagina.html')");

menu.subMenus[4].addItem("som","toggle");



//sites mais



menu.subMenus[4].subMenus[0].addItem("seu link","window.open('http://www.soundmania.hpg.com.br')");

menu.subMenus[4].subMenus[0].addItem("seu link","window.open('http://www.topradios.kit.net')");



//janelas auxiliares

menu.subMenus[4].subMenus[3].addItem("seu link","window.open('pagina.html')");

menu.subMenus[4].subMenus[3].addItem("seu link","window.open('pagina.html')");

menu.subMenus[4].subMenus[3].addItem("seu link","window.open('pagina.html')");





//--></SCRIPT></div>[/codebox]

Esse aí de cima é o script do menu. Somente ele na página.. Ele duplicado tá aqui em baixo:

[codebox]<div style="position: absolute; width: 167px; height: 102px; z-index: 3; left: 9px; top: 192px; float:left" id="camada4">
&lt;script language=JavaScript>



self.focus();



</SCRIPT>



&lt;script>window.defaultStatus="S-C-R-I-P-T B-R-A-S-I-L"</SCRIPT>

</STYLE>

&lt;script language=javascript src=""></SCRIPT>



<P align=center><BR> <FONT face="Verdana, Arial color=" size=1><FONT

black?>

&lt;script language=javascript src=""></SCRIPT>

</FONT></FONT>

&lt;script language=javascript>

<!--

function mOver(tdEl, c)

{

if(document.all)

tdEl.style.backgroundColor = c;

}

function mOut(tdEl)

{

if(document.all)

tdEl.style.backgroundColor = '';

}

function mClick(tdEl)

{

if(document.all) {

var child = tdEl.children;

if(child.length > 0) {

var el = child[0];

if(el.tagName == "A") {

window.event.cancelBubble = true;

window.event.returnValue = true;

el.click();

return true;

}

}

}

return false;

}

//-->

</SCRIPT>



<STYLE type=text/css>.dot {

FONT-SIZE: 1px; Z-INDEX: 100; VISIBILITY: hidden; WIDTH: 6px; CURSOR: hand; POSITION: absolute; HEIGHT: 6px; BACKGROUND-COLOR: #ff0000

}

.dotoff {

FONT-SIZE: 1px; Z-INDEX: 100; VISIBILITY: hidden; WIDTH: 6px; CURSOR: default; POSITION: absolute; HEIGHT: 6px; BACKGROUND-COLOR: gray

}

.dotempty {

FONT-SIZE: 1px; VISIBILITY: hidden; WIDTH: 6px; CURSOR: hand; POSITION: absolute; HEIGHT: 6px; BACKGROUND-COLOR: orange; zindex: 100

}

.caption {

FONT-SIZE: 11px; Z-INDEX: 1; VISIBILITY: hidden; CURSOR: default; COLOR: black; FONT-FAMILY: Tahoma; POSITION: absolute; TEXT-ALIGN: center

}

BODY {

MARGIN: 0px

}

A {

COLOR: silver; TEXT-DECORATION: none

}

P {

FONT-SIZE: 10px; COLOR: black; FONT-FAMILY: tahoma

}

</STYLE>



&lt;script language=JavaScript type=text/javascript>

function lib_bwcheck(){

this.ver=navigator.appVersion

this.agent=navigator.userAgent

this.dom=document.getElementById?1:0

this.opera5=this.agent.indexOf("Opera 5")>-1

this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;

this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;

this.ie4=(document.all && !this.dom && !this.opera5)?1:0;

this.ie=this.ie4||this.ie5||this.ie6

this.mac=this.agent.indexOf("Mac")>-1

this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;

this.ns4=(document.layers && !this.dom)?1:0;

this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)

return this

}

var bw=new lib_bwcheck()







</SCRIPT>

</P><!-- START DELETE --><!-- END DELETE -->

&lt;script language=javascript1.2 type=text/javascript>

<!--



function getObjectRef(name) {

if(document.getElementById) return document.getElementById(name);

else if(document.all) return document.all[name];

else return null;

}





function show(name) {

var el = getObjectRef(name);

if(el) el.style.visibility = "visible";

}

function hide(name) {

var el = getObjectRef(name);

if(el) el.style.visibility = "hidden";

}

function getWidth(name) {

var el = getObjectRef(name);

return el.offsetWidth;

}

function getHeight(name) {

var el = getObjectRef(name);

return el.offsetHeight;

}

function moveMe(name,x,y) {

var el = getObjectRef(name);

if(el) { el.style.top = parseInt(y); el.style.left = parseInt(x); }

}

function moveBy(name,x,y) {

var el = getObjectRef(name);

if(el) { el.style.top = parseInt(el.style.top) + parseInt(y); el.style.left = parseInt(el.style.left) + parseInt(x); }

}





var menuCount = 0;

function menuObject(name,x,y,caption, r, parent) {

if ( (!document.getElementById&&!document.all) || navigator.userAgent.indexOf("Opera")>-1) return;

document.write('<div id="divDot' + menuCount + '" class="dotempty" style="top: ' + y + '; left: ' + x + '"></div>');

document.write('<div id="divCap' + menuCount + '" class="caption" style="top: 0; left: 0">' + caption + '</div>');



this.name = name;

this.parent = parent

this.ref = "divDot" + menuCount;

this.caption = "divCap" + menuCount

if® this.radius = r;

else this.radius = 0;

this.subMenus = new Array();

this.state = 0;

this.moving = false;

if(this.parent) this.action = "null";

else this.action = "toggle";

if(this.parent) this.startAngle = parent.startAngle;

else this.startAngle = 0;



getObjectRef(this.ref).objRef = this.name;



this.show = function() { show(this.ref); }

this.hide = function() { hide(this.ref); }

this.moveMe = function(x,y) { if(this.parent) { x += this.parent.x(); y += this.parent.y(); } moveMe(this.ref,x,y); }

this.moveBy = function(x,y) { moveBy(this.ref,x,y); }

this.x = function() { return parseInt(getObjectRef(this.ref).style.left); }

this.y = function() { return parseInt(getObjectRef(this.ref).style.top); }

this.w = function() { return getWidth(this.ref); }

this.h = function() { return getHeight(this.ref); }



this.showCaption = function() {

moveMe(this.caption, this.x() - (getWidth(this.caption)/2) + (this.w()/2), (this.y() + this.h()));

show(this.caption);

}

this.hideCaption = function() {

hide(this.caption);

}

this.setCaption = function© { getObjectRef(this.caption).innerHTML = c;}



this.addItem = function(c,action,r) {

getObjectRef(this.ref).className = "dot";

if(!r) r = this.radius/2;

var sub = new menuObject(this.name + ".subMenus[" + this.subMenus.length + "]",0,0,c,r,this);

sub.parent = this;

sub.action = action;

sub.moveMe(0,0);

this.subMenus[this.subMenus.length] = sub;

return sub;

}



this.expand = function() {

if(this.subMenus.length > 0) {

var p = true;

if(this.parent) {

p = !this.parent.moving;

for(var i=0; i<this.parent.subMenus.length;i++)

p = p && ((this.parent.subMenus[i].state==0) || (this.parent.subMenus[i].state==this.parent.subMenus[i].subMenus.length)) && (this.parent.subMenus[i].moving==false);

} else var o = false;





if((!this.parent || this.parent.state == this.parent.subMenus.length) && p) {

if(this.parent) this.collapseAll(this.name);



var diff = 360 / this.subMenus.length;

for(var i=0;i<this.subMenus.length;i++){

this.subMenus[i].moveMe(0,0);

this.subMenus[i].show();

this.moving = true;

this.subMenus[i].slide(this.subMenus[i].radius * cos(degToRad((diff*i)+this.startAngle)), this.subMenus[i].radius * sin(degToRad((diff*i)+this.startAngle)), this.name + ".subMenus[" + i + "].showCaption();" + this.name + ".moving=false;" + this.name + ".state+=1;");

}

if(this.parent){

getObjectRef(this.parent.ref).style.filter = "alpha (opacity=33)";

getObjectRef(this.parent.ref).style.MozOpacity = "33%";



getObjectRef(this.parent.ref).className = "dotoff";

getObjectRef(this.parent.caption).style.filter = "alpha (opacity=33)";

getObjectRef(this.parent.caption).style.MozOpacity = "33%";

for(i=0;i<this.parent.subMenus.length;i++) {

getObjectRef(this.parent.subMenus[i].ref).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.subMenus[i].ref).style.MozOpacity = "66%";

getObjectRef(this.parent.subMenus[i].caption).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.subMenus[i].caption).style.MozOpacity = "66%";

}

if(this.parent.parent) {

for(i=0;i<this.parent.parent.subMenus.length;i++) {

getObjectRef(this.parent.parent.subMenus[i].ref).style.filter = "alpha (opacity=33)";

getObjectRef(this.parent.parent.subMenus[i].ref).style.MozOpacity = "33%";

getObjectRef(this.parent.parent.subMenus[i].ref).className = "dotoff";

getObjectRef(this.parent.parent.subMenus[i].caption).style.filter = "alpha (opacity=33)";

getObjectRef(this.parent.parent.subMenus[i].caption).style.MozOpacity = "33%";

}

getObjectRef(this.parent.parent.ref).style.MozOpacity = "33%";

getObjectRef(this.parent.parent.ref).style.MozOpacity = "33%";

getObjectRef(this.parent.parent.ref).className = "dotoff";

}

}

getObjectRef(this.ref).style.filter = "alpha (opacity=66)";

getObjectRef(this.caption).style.filter = "alpha (opacity=66)";

getObjectRef(this.ref).style.MozOpacity = "66%";

getObjectRef(this.caption).style.MozOpacity = "66%";

}

}

}



this.collapse = function() {

var p = true;

p = !this.moving;

for(var i=0; i<this.subMenus.length;i++)

p = p && (this.subMenus[i].state==0) && (this.subMenus[i].moving==false);



if(p && this.subMenus.length > 0) {

for(var i=0;i<this.subMenus.length;i++){

this.subMenus[i].hideCaption();

this.moving = true;

this.subMenus[i].slide(0, 0, this.name + ".subMenus[" + i + "].hide();" + this.name + ".moving=false;" + this.name + ".state-=1;");

}

if(this.parent){

getObjectRef(this.parent.ref).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.ref).style.MozOpacity = "66%";

if(this.parent.subMenus.length != 0)

getObjectRef(this.parent.ref).className = "dot";

else

getObjectRef(this.parent.ref).className = "dotempty";

getObjectRef(this.parent.caption).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.caption).style.MozOpacity = "66%";

for(i=0;i<this.parent.subMenus.length;i++) {

getObjectRef(this.parent.subMenus[i].ref).style.filter = "alpha (opacity=100)";

getObjectRef(this.parent.subMenus[i].ref).style.MozOpacity = "100%";

if(this.parent.subMenus[i].subMenus.length != 0)

getObjectRef(this.parent.subMenus[i].ref).className = "dot";

else

getObjectRef(this.parent.subMenus[i].ref).className = "dotempty";

getObjectRef(this.parent.subMenus[i].caption).style.filter = "alpha (opacity=100)";

getObjectRef(this.parent.subMenus[i].caption).style.MozOpacity = "100%";

}

if(this.parent.parent) {

for(i=0;i<this.parent.parent.subMenus.length;i++) {

getObjectRef(this.parent.parent.subMenus[i].ref).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.parent.subMenus[i].ref).style.MozOpacity = "66%";

if(this.parent.parent.subMenus[i].subMenus.length != 0)

getObjectRef(this.parent.parent.subMenus[i].ref).className = "dot";

else

getObjectRef(this.parent.parent.subMenus[i].ref).className = "dotempty";

getObjectRef(this.parent.parent.subMenus[i].caption).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.parent.subMenus[i].caption).style.MozOpacity = "66%";

}

}

}

getObjectRef(this.ref).style.filter = "alpha (opacity=100)";

getObjectRef(this.caption).style.filter = "alpha (opacity=100)";

getObjectRef(this.ref).style.MozOpacity = "100%";

getObjectRef(this.caption).style.MozOpacity = "100%";

}

}



this.collapseAll = function(except) {

for(var i=0;i<this.parent.subMenus.length;i++) {

if(this.parent.subMenus[i].name!=except && this.parent.subMenus[i].state==this.parent.subMenus[i].subMenus.length) {

this.parent.subMenus[i].collapse();

}

}

}



this.toggle = function(e) {

if(document.all) id = window.event.srcElement;

else id = e.target;

var dot = eval(id.objRef);



if(dot.state==0 && !dot.moving) dot.expand();

else if(dot.state==dot.subMenus.length && !dot.moving) dot.collapse()

}



this.doAction = function(e) {

if(document.all) id = window.event.srcElement;

else id = e.target;

var dot = eval(id.objRef);



if(dot.action == "toggle") dot.toggle(e);

else eval(dot.action);

}





getObjectRef(this.ref).onmouseup = this.doAction;



this.slide = function(xx,yy,func) {

if(!func) func = "";

var px = this.parent.x();

var py = this.parent.y();



var x = xx - this.x() + px;

var y = yy - this.y() + py;



var d = sqrt(square(xx-this.x() + px) + square(yy-this.y() + py));



var v = d/2;

if(v<1) v = 1;



if( (Math.abs(x) < v) && (Math.abs(y) < v) ) {

moveMe(this.ref,xx + px,yy + py);

if(func != "") eval(func);

} else {

var a = round(atan(x,y));

dx = round(v * cos(degToRad(a)));

dy = round(v * sin(degToRad(a)));



this.moveBy(dx,dy);

setTimeout(this.name + ".slide(" + xx + "," + yy + ", '" + func + "');",10);

}

}



if (menuCount==0 && document.all) document.all[this.ref].style.filter = "alpha (opacity=100)";

menuCount++;

return this;

}







var pi = Math.PI;

function square(x) { return (x*x); }

function sqrt(x) { return Math.sqrt(x); }

function round(x) { return Math.round(x); }

function rand(x,y) { return (round(Math.random()*(y-x)) + x); }



function cos(x) { return Math.cos(x) }

function sin(x) { return Math.sin(x) }



function degToRad(x) { return ( x/(400/(2*pi)) ); }

function radToDeg(x) { return ( x*(400/(2*pi)) ); }





function atan(s,t) {

if( s == 0.0 && t > 0.0)

angle = 90.0;

else if(s == 0.0 && t < 0.0)

angle = 180.0;

else if (s < 0.0 )

angle = 180.0 + radToDeg(Math.atan(t/s));

else if (s > 0.0 && t < 0.0)

angle = 360.0 + radToDeg(Math.atan(t/s));

else {

if(s==0.0) s=0.00001;

angle = radToDeg(Math.atan(t/s));

}

if(angle < 0.0) angle += 360.0;

return angle;

}









if(document.all) pageWidth = document.body.offsetWidth-20;

else pageWidth = innerWidth;

if(document.all) pageHeight = document.body.offsetHeight-4;

else pageHeight = innerHeight;





var menu = new menuObject("menu",pageWidth/15,pageHeight/15,"CLIQUE",pageHeight/3);

menu.startAngle = -90;





menu.show();

menu.showCaption();



//canal 1

menu.addItem("CONTATO","window.open('falecomigo.html')");

//canal 2

menu.addItem("Capela virtual","toggle");

//canal 3

menu.addItem("Nossa História","toggle");

//canal 4

menu.addItem("Luz do Mundo!","toggle");

//canal 5

menu.addItem("Downloads","toggle");

//canal 6

menu.addItem("Nossa Paróquia","toggle");


//canal 2

menu.subMenus[1].addItem("ANIMAÇÕES","window.open('pagina.html')");

menu.subMenus[1].addItem("TEXTO","window.open('pagina.html')");

menu.subMenus[1].addItem("EFEITOS ESPECIAIS","window.open('pagina.html')");



//canal 3

menu.subMenus[2].addItem("MENUS","window.open('pagina.html')");

menu.subMenus[2].addItem("JOGOS","window.open('pagina.html')");

menu.subMenus[2].addItem("EFEITOS ESPECIAIS","window.open('pagina.html')");







//canal 4



menu.subMenus[3].addItem("MENU","window.open('pagina.html')");

menu.subMenus[3].addItem("ANIMAÇOES","window.open('pagina.html')");

menu.subMenus[3].addItem("EEITOS ESPECIAIS","window.open('pagina.html')");

menu.subMenus[3].addItem("SEGURANÇA","window.open('pagina.html')");





//canal 5

c = menu.subMenus[4].addItem("rotinas","toggle");

c.startAngle = 5;

menu.subMenus[4].addItem("jogos","window.open('pagina.html')");

menu.subMenus[4].addItem("banco de dados","window.open('pagina.html')");

menu.subMenus[4].addItem("som","toggle");



//sites mais



menu.subMenus[4].subMenus[0].addItem("seu link","window.open('http://www.soundmania.hpg.com.br')");

menu.subMenus[4].subMenus[0].addItem("seu link","window.open('http://www.topradios.kit.net')");



//janelas auxiliares

menu.subMenus[4].subMenus[3].addItem("seu link","window.open('pagina.html')");

menu.subMenus[4].subMenus[3].addItem("seu link","window.open('pagina.html')");

menu.subMenus[4].subMenus[3].addItem("seu link","window.open('pagina.html')");





//--></SCRIPT></div>

<hr>

<div style="position: absolute; width: 167px; height: 102px; z-index: 3; left: 384px; top: 191px; float:left" id="camada5">
&lt;script language=JavaScript>



self.focus();



</SCRIPT>



&lt;script>window.defaultStatus="S-C-R-I-P-T B-R-A-S-I-L"</SCRIPT>

</STYLE>

&lt;script language=javascript src=""></SCRIPT>



<P align=center><BR> <FONT

black face="Verdana, Arial color=" size="1"?>

&lt;script language=javascript src=""></SCRIPT>

</FONT>

&lt;script language=javascript>

<!--

function mOver(tdEl, c)

{

if(document.all)

tdEl.style.backgroundColor = c;

}

function mOut(tdEl)

{

if(document.all)

tdEl.style.backgroundColor = '';

}

function mClick(tdEl)

{

if(document.all) {

var child = tdEl.children;

if(child.length > 0) {

var el = child[0];

if(el.tagName == "A") {

window.event.cancelBubble = true;

window.event.returnValue = true;

el.click();

return true;

}

}

}

return false;

}

//-->

</SCRIPT>



<STYLE type=text/css>.dot {

FONT-SIZE: 1px; Z-INDEX: 100; VISIBILITY: hidden; WIDTH: 6px; CURSOR: hand; POSITION: absolute; HEIGHT: 6px; BACKGROUND-COLOR: #ff0000

}

.dotoff {

FONT-SIZE: 1px; Z-INDEX: 100; VISIBILITY: hidden; WIDTH: 6px; CURSOR: default; POSITION: absolute; HEIGHT: 6px; BACKGROUND-COLOR: gray

}

.dotempty {

FONT-SIZE: 1px; VISIBILITY: hidden; WIDTH: 6px; CURSOR: hand; POSITION: absolute; HEIGHT: 6px; BACKGROUND-COLOR: orange; zindex: 100

}

.caption {

FONT-SIZE: 11px; Z-INDEX: 1; VISIBILITY: hidden; CURSOR: default; COLOR: black; FONT-FAMILY: Tahoma; POSITION: absolute; TEXT-ALIGN: center

}

BODY {

MARGIN: 0px

}

A {

COLOR: silver; TEXT-DECORATION: none

}

P {

FONT-SIZE: 10px; COLOR: black; FONT-FAMILY: tahoma

}

</STYLE>



&lt;script language=JavaScript type=text/javascript>

function lib_bwcheck(){

this.ver=navigator.appVersion

this.agent=navigator.userAgent

this.dom=document.getElementById?1:0

this.opera5=this.agent.indexOf("Opera 5")>-1

this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;

this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;

this.ie4=(document.all && !this.dom && !this.opera5)?1:0;

this.ie=this.ie4||this.ie5||this.ie6

this.mac=this.agent.indexOf("Mac")>-1

this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;

this.ns4=(document.layers && !this.dom)?1:0;

this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)

return this

}

var bw=new lib_bwcheck()







</SCRIPT>

</P><!-- START DELETE --><!-- END DELETE -->

&lt;script language=javascript1.2 type=text/javascript>

<!--



function getObjectRef(name) {

if(document.getElementById) return document.getElementById(name);

else if(document.all) return document.all[name];

else return null;

}





function show(name) {

var el = getObjectRef(name);

if(el) el.style.visibility = "visible";

}

function hide(name) {

var el = getObjectRef(name);

if(el) el.style.visibility = "hidden";

}

function getWidth(name) {

var el = getObjectRef(name);

return el.offsetWidth;

}

function getHeight(name) {

var el = getObjectRef(name);

return el.offsetHeight;

}

function moveMe(name,x,y) {

var el = getObjectRef(name);

if(el) { el.style.top = parseInt(y); el.style.left = parseInt(x); }

}

function moveBy(name,x,y) {

var el = getObjectRef(name);

if(el) { el.style.top = parseInt(el.style.top) + parseInt(y); el.style.left = parseInt(el.style.left) + parseInt(x); }

}





var menuCount = 0;

function menuObject(name,x,y,caption, r, parent) {

if ( (!document.getElementById&&!document.all) || navigator.userAgent.indexOf("Opera")>-1) return;

document.write('<div id="divDot' + menuCount + '" class="dotempty" style="top: ' + y + '; left: ' + x + '"></div>');

document.write('<div id="divCap' + menuCount + '" class="caption" style="top: 0; left: 0">' + caption + '</div>');



this.name = name;

this.parent = parent

this.ref = "divDot" + menuCount;

this.caption = "divCap" + menuCount

if® this.radius = r;

else this.radius = 0;

this.subMenus = new Array();

this.state = 0;

this.moving = false;

if(this.parent) this.action = "null";

else this.action = "toggle";

if(this.parent) this.startAngle = parent.startAngle;

else this.startAngle = 0;



getObjectRef(this.ref).objRef = this.name;



this.show = function() { show(this.ref); }

this.hide = function() { hide(this.ref); }

this.moveMe = function(x,y) { if(this.parent) { x += this.parent.x(); y += this.parent.y(); } moveMe(this.ref,x,y); }

this.moveBy = function(x,y) { moveBy(this.ref,x,y); }

this.x = function() { return parseInt(getObjectRef(this.ref).style.left); }

this.y = function() { return parseInt(getObjectRef(this.ref).style.top); }

this.w = function() { return getWidth(this.ref); }

this.h = function() { return getHeight(this.ref); }



this.showCaption = function() {

moveMe(this.caption, this.x() - (getWidth(this.caption)/2) + (this.w()/2), (this.y() + this.h()));

show(this.caption);

}

this.hideCaption = function() {

hide(this.caption);

}

this.setCaption = function© { getObjectRef(this.caption).innerHTML = c;}



this.addItem = function(c,action,r) {

getObjectRef(this.ref).className = "dot";

if(!r) r = this.radius/2;

var sub = new menuObject(this.name + ".subMenus[" + this.subMenus.length + "]",0,0,c,r,this);

sub.parent = this;

sub.action = action;

sub.moveMe(0,0);

this.subMenus[this.subMenus.length] = sub;

return sub;

}



this.expand = function() {

if(this.subMenus.length > 0) {

var p = true;

if(this.parent) {

p = !this.parent.moving;

for(var i=0; i<this.parent.subMenus.length;i++)

p = p && ((this.parent.subMenus[i].state==0) || (this.parent.subMenus[i].state==this.parent.subMenus[i].subMenus.length)) && (this.parent.subMenus[i].moving==false);

} else var o = false;





if((!this.parent || this.parent.state == this.parent.subMenus.length) && p) {

if(this.parent) this.collapseAll(this.name);



var diff = 360 / this.subMenus.length;

for(var i=0;i<this.subMenus.length;i++){

this.subMenus[i].moveMe(0,0);

this.subMenus[i].show();

this.moving = true;

this.subMenus[i].slide(this.subMenus[i].radius * cos(degToRad((diff*i)+this.startAngle)), this.subMenus[i].radius * sin(degToRad((diff*i)+this.startAngle)), this.name + ".subMenus[" + i + "].showCaption();" + this.name + ".moving=false;" + this.name + ".state+=1;");

}

if(this.parent){

getObjectRef(this.parent.ref).style.filter = "alpha (opacity=33)";

getObjectRef(this.parent.ref).style.MozOpacity = "33%";



getObjectRef(this.parent.ref).className = "dotoff";

getObjectRef(this.parent.caption).style.filter = "alpha (opacity=33)";

getObjectRef(this.parent.caption).style.MozOpacity = "33%";

for(i=0;i<this.parent.subMenus.length;i++) {

getObjectRef(this.parent.subMenus[i].ref).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.subMenus[i].ref).style.MozOpacity = "66%";

getObjectRef(this.parent.subMenus[i].caption).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.subMenus[i].caption).style.MozOpacity = "66%";

}

if(this.parent.parent) {

for(i=0;i<this.parent.parent.subMenus.length;i++) {

getObjectRef(this.parent.parent.subMenus[i].ref).style.filter = "alpha (opacity=33)";

getObjectRef(this.parent.parent.subMenus[i].ref).style.MozOpacity = "33%";

getObjectRef(this.parent.parent.subMenus[i].ref).className = "dotoff";

getObjectRef(this.parent.parent.subMenus[i].caption).style.filter = "alpha (opacity=33)";

getObjectRef(this.parent.parent.subMenus[i].caption).style.MozOpacity = "33%";

}

getObjectRef(this.parent.parent.ref).style.MozOpacity = "33%";

getObjectRef(this.parent.parent.ref).style.MozOpacity = "33%";

getObjectRef(this.parent.parent.ref).className = "dotoff";

}

}

getObjectRef(this.ref).style.filter = "alpha (opacity=66)";

getObjectRef(this.caption).style.filter = "alpha (opacity=66)";

getObjectRef(this.ref).style.MozOpacity = "66%";

getObjectRef(this.caption).style.MozOpacity = "66%";

}

}

}



this.collapse = function() {

var p = true;

p = !this.moving;

for(var i=0; i<this.subMenus.length;i++)

p = p && (this.subMenus[i].state==0) && (this.subMenus[i].moving==false);



if(p && this.subMenus.length > 0) {

for(var i=0;i<this.subMenus.length;i++){

this.subMenus[i].hideCaption();

this.moving = true;

this.subMenus[i].slide(0, 0, this.name + ".subMenus[" + i + "].hide();" + this.name + ".moving=false;" + this.name + ".state-=1;");

}

if(this.parent){

getObjectRef(this.parent.ref).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.ref).style.MozOpacity = "66%";

if(this.parent.subMenus.length != 0)

getObjectRef(this.parent.ref).className = "dot";

else

getObjectRef(this.parent.ref).className = "dotempty";

getObjectRef(this.parent.caption).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.caption).style.MozOpacity = "66%";

for(i=0;i<this.parent.subMenus.length;i++) {

getObjectRef(this.parent.subMenus[i].ref).style.filter = "alpha (opacity=100)";

getObjectRef(this.parent.subMenus[i].ref).style.MozOpacity = "100%";

if(this.parent.subMenus[i].subMenus.length != 0)

getObjectRef(this.parent.subMenus[i].ref).className = "dot";

else

getObjectRef(this.parent.subMenus[i].ref).className = "dotempty";

getObjectRef(this.parent.subMenus[i].caption).style.filter = "alpha (opacity=100)";

getObjectRef(this.parent.subMenus[i].caption).style.MozOpacity = "100%";

}

if(this.parent.parent) {

for(i=0;i<this.parent.parent.subMenus.length;i++) {

getObjectRef(this.parent.parent.subMenus[i].ref).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.parent.subMenus[i].ref).style.MozOpacity = "66%";

if(this.parent.parent.subMenus[i].subMenus.length != 0)

getObjectRef(this.parent.parent.subMenus[i].ref).className = "dot";

else

getObjectRef(this.parent.parent.subMenus[i].ref).className = "dotempty";

getObjectRef(this.parent.parent.subMenus[i].caption).style.filter = "alpha (opacity=66)";

getObjectRef(this.parent.parent.subMenus[i].caption).style.MozOpacity = "66%";

}

}

}

getObjectRef(this.ref).style.filter = "alpha (opacity=100)";

getObjectRef(this.caption).style.filter = "alpha (opacity=100)";

getObjectRef(this.ref).style.MozOpacity = "100%";

getObjectRef(this.caption).style.MozOpacity = "100%";

}

}



this.collapseAll = function(except) {

for(var i=0;i<this.parent.subMenus.length;i++) {

if(this.parent.subMenus[i].name!=except && this.parent.subMenus[i].state==this.parent.subMenus[i].subMenus.length) {

this.parent.subMenus[i].collapse();

}

}

}



this.toggle = function(e) {

if(document.all) id = window.event.srcElement;

else id = e.target;

var dot = eval(id.objRef);



if(dot.state==0 && !dot.moving) dot.expand();

else if(dot.state==dot.subMenus.length && !dot.moving) dot.collapse()

}



this.doAction = function(e) {

if(document.all) id = window.event.srcElement;

else id = e.target;

var dot = eval(id.objRef);



if(dot.action == "toggle") dot.toggle(e);

else eval(dot.action);

}





getObjectRef(this.ref).onmouseup = this.doAction;



this.slide = function(xx,yy,func) {

if(!func) func = "";

var px = this.parent.x();

var py = this.parent.y();



var x = xx - this.x() + px;

var y = yy - this.y() + py;



var d = sqrt(square(xx-this.x() + px) + square(yy-this.y() + py));



var v = d/2;

if(v<1) v = 1;



if( (Math.abs(x) < v) && (Math.abs(y) < v) ) {

moveMe(this.ref,xx + px,yy + py);

if(func != "") eval(func);

} else {

var a = round(atan(x,y));

dx = round(v * cos(degToRad(a)));

dy = round(v * sin(degToRad(a)));



this.moveBy(dx,dy);

setTimeout(this.name + ".slide(" + xx + "," + yy + ", '" + func + "');",10);

}

}



if (menuCount==0 && document.all) document.all[this.ref].style.filter = "alpha (opacity=100)";

menuCount++;

return this;

}







var pi = Math.PI;

function square(x) { return (x*x); }

function sqrt(x) { return Math.sqrt(x); }

function round(x) { return Math.round(x); }

function rand(x,y) { return (round(Math.random()*(y-x)) + x); }



function cos(x) { return Math.cos(x) }

function sin(x) { return Math.sin(x) }



function degToRad(x) { return ( x/(400/(2*pi)) ); }

function radToDeg(x) { return ( x*(400/(2*pi)) ); }





function atan(s,t) {

if( s == 0.0 && t > 0.0)

angle = 90.0;

else if(s == 0.0 && t < 0.0)

angle = 180.0;

else if (s < 0.0 )

angle = 180.0 + radToDeg(Math.atan(t/s));

else if (s > 0.0 && t < 0.0)

angle = 360.0 + radToDeg(Math.atan(t/s));

else {

if(s==0.0) s=0.00001;

angle = radToDeg(Math.atan(t/s));

}

if(angle < 0.0) angle += 360.0;

return angle;

}









if(document.all) pageWidth = document.body.offsetWidth-20;

else pageWidth = innerWidth;

if(document.all) pageHeight = document.body.offsetHeight-4;

else pageHeight = innerHeight;





var menu = new menuObject("menu",pageWidth/15,pageHeight/15,"CLIQUE",pageHeight/3);

menu.startAngle = -90;





menu.show();

menu.showCaption();



//canal 1

menu.addItem("CONTATO","window.open('falecomigo.html')");

//canal 2

menu.addItem("Capela virtual","toggle");

//canal 3

menu.addItem("Nossa História","toggle");

//canal 4

menu.addItem("Luz do Mundo!","toggle");

//canal 5

menu.addItem("Downloads","toggle");

//canal 6

menu.addItem("Nossa Paróquia","toggle");


//canal 2

menu.subMenus[1].addItem("ANIMAÇÕES","window.open('pagina.html')");

menu.subMenus[1].addItem("TEXTO","window.open('pagina.html')");

menu.subMenus[1].addItem("EFEITOS ESPECIAIS","window.open('pagina.html')");



//canal 3

menu.subMenus[2].addItem("MENUS","window.open('pagina.html')");

menu.subMenus[2].addItem("JOGOS","window.open('pagina.html')");

menu.subMenus[2].addItem("EFEITOS ESPECIAIS","window.open('pagina.html')");







//canal 4



menu.subMenus[3].addItem("MENU","window.open('pagina.html')");

menu.subMenus[3].addItem("ANIMAÇOES","window.open('pagina.html')");

menu.subMenus[3].addItem("EEITOS ESPECIAIS","window.open('pagina.html')");

menu.subMenus[3].addItem("SEGURANÇA","window.open('pagina.html')");





//canal 5

c = menu.subMenus[4].addItem("rotinas","toggle");

c.startAngle = 5;

menu.subMenus[4].addItem("jogos","window.open('pagina.html')");

menu.subMenus[4].addItem("banco de dados","window.open('pagina.html')");

menu.subMenus[4].addItem("som","toggle");



//sites mais



menu.subMenus[4].subMenus[0].addItem("seu link","window.open('http://www.soundmania.hpg.com.br')");

menu.subMenus[4].subMenus[0].addItem("seu link","window.open('http://www.topradios.kit.net')");



//janelas auxiliares

menu.subMenus[4].subMenus[3].addItem("seu link","window.open('pagina.html')");

menu.subMenus[4].subMenus[3].addItem("seu link","window.open('pagina.html')");

menu.subMenus[4].subMenus[3].addItem("seu link","window.open('pagina.html')");





//--></SCRIPT></div>

Espero que alguém possa me ajudar, e valeu desde já!!

Link para o comentário
Compartilhar em outros sites

2 respostass a esta questão

Posts Recomendados

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,3k
    • Posts
      652,3k
×
×
  • Criar Novo...