/* JavaScript Document */

/*


	Copyright 2008 pkage design

	mail@pkage.com
      

*/

function off()
{
showHideLayers('menuhome','','hide')
}
function on()
{
showHideLayers('menuhome','','show')
}

function overmenu0()
{
menu = new Tween(document.getElementById('pkgmenu0').style,'bottom',Tween.strongEaseInOut,0,40,0.3,'px');
menu.start()
}
function outmenu0()
{
menu = new Tween(document.getElementById('pkgmenu0').style,'bottom',Tween.strongEaseInOut,40,0,0.6,'px');
menu.start()
}

function overmenu1()
{
menu = new Tween(document.getElementById('pkgmenu1').style,'bottom',Tween.strongEaseInOut,0,40,0.3,'px');
menu.start()
}
function outmenu1()
{
menu = new Tween(document.getElementById('pkgmenu1').style,'bottom',Tween.strongEaseInOut,40,0,0.6,'px');
menu.start()
}

function overmenu2()
{
menu = new Tween(document.getElementById('pkgmenu2').style,'bottom',Tween.strongEaseInOut,0,40,0.3,'px');
menu.start()
}
function outmenu2()
{
menu = new Tween(document.getElementById('pkgmenu2').style,'bottom',Tween.strongEaseInOut,40,0,0.6,'px');
menu.start()
}

function overmenu3()
{
menu = new Tween(document.getElementById('pkgmenu3').style,'bottom',Tween.strongEaseInOut,0,40,0.3,'px');
menu.start()
}
function outmenu3()
{
menu = new Tween(document.getElementById('pkgmenu3').style,'bottom',Tween.strongEaseInOut,40,0,0.6,'px');
menu.start()
}

function overmenu4()
{
menu = new Tween(document.getElementById('pkgmenu4').style,'bottom',Tween.strongEaseInOut,0,40,0.3,'px');
menu.start()
}
function outmenu4()
{
menu = new Tween(document.getElementById('pkgmenu4').style,'bottom',Tween.strongEaseInOut,40,0,0.6,'px');
menu.start()
}

function overmenu5()
{
menu = new Tween(document.getElementById('pkgmenu5').style,'bottom',Tween.strongEaseInOut,0,40,0.3,'px');
menu.start()
}
function outmenu5()
{
menu = new Tween(document.getElementById('pkgmenu5').style,'bottom',Tween.strongEaseInOut,40,0,0.6,'px');
menu.start()
}

function overmenu6()
{
menu = new Tween(document.getElementById('pkgmenu6').style,'bottom',Tween.strongEaseInOut,0,40,0.3,'px');
menu.start()
}
function outmenu6()
{
menu = new Tween(document.getElementById('pkgmenu6').style,'bottom',Tween.strongEaseInOut,40,0,0.6,'px');
menu.start()
}

function overmenu7()
{
menu = new Tween(document.getElementById('pkgmenu7').style,'bottom',Tween.strongEaseInOut,0,40,0.3,'px');
menu.start()
}
function outmenu7()
{
menu = new Tween(document.getElementById('pkgmenu7').style,'bottom',Tween.strongEaseInOut,40,0,0.6,'px');
menu.start()
}

function down()
{
enviar1 = new Tween(document.getElementById('div_down').style,'bottom',Tween.strongEaseInOut,385,-6,1.6,'px');
enviar2 = new Tween(document.getElementById('div_downenviar').style,'bottom',Tween.strongEaseInOut,786,340,1.6,'px');
enviar3 = new OpacityTween(document.getElementById('div_downenviar'),Tween.strongEaseIn, 100, 0, 0.5);
enviar1.start();enviar2.start();enviar3.start()
}

function up()
{
enviar1 = new Tween(document.getElementById('div_down').style,'bottom',Tween.strongEaseInOut,-6,385,1.6,'px');
enviar2 = new Tween(document.getElementById('div_downenviar').style,'bottom',Tween.strongEaseInOut,340,786,1.5,'px');
enviar3 = new OpacityTween(document.getElementById('div_downenviar'),Tween.strongEaseIn, 0, 100, 1.8);
enviar1.start();enviar2.start();enviar3.start()
}

<!-- Botão voltar -->
function voltaron()
{
enviar1 = new Tween(document.getElementById('voltar').style,'width',Tween.strongEaseInOut,24,229,0.3,'px');
enviar1.start()
}

function voltaroff()
{
enviar1 = new Tween(document.getElementById('voltar').style,'width',Tween.strongEaseInOut,229,24,0.3,'px');
enviar1.start()
}

<!-- Botão rodar -->
function rodaron()
{
enviar1 = new Tween(document.getElementById('rodar').style,'width',Tween.strongEaseInOut,23,48,0.3,'px');
enviar1.start()
}

function rodaroff()
{
enviar1 = new Tween(document.getElementById('rodar').style,'width',Tween.strongEaseInOut,48,23,0.3,'px');
enviar1.start()
}

<!-- Tempo para desaparecer div´s -->
var contador = 3;
function conta1() {
		document.getElementById('pkg_ghost').style.visibility="hidden";
	if (contador != 0){
	}
}

var contador = 3;
function conta2() {
		document.getElementById('pkg_ghost_ficha').style.visibility="hidden";
	if (contador != 0){
	}
}

function time1() {
	setTimeout("conta1()", 1000*contador);
}

function time2() {
	setTimeout("conta2()", 1000*contador);
}

<!-- Escolher um passeio aleatoriamente -->
function go_to(url) {
	window.location=url;
}
function rand() {
var a;
a = 1+Math.round(Math.random()*21);
if (a==1) go_to("passeios/CE.html");
if (a==2) go_to("passeios/CEE.html");
if (a==3) go_to("passeios/CL.html");
if (a==4) go_to("passeios/CO.html");
if (a==5) go_to("passeios/CS.html");
if (a==6) go_to("passeios/CST.html");
if (a==7) go_to("passeios/DVE.html");
if (a==8) go_to("passeios/ELA.html");
if (a==9) go_to("passeios/GPN.html");
if (a==10) go_to("passeios/LM.html");
if (a==11) go_to("passeios/MITM.html");
if (a==12) go_to("passeios/MPA.html");
if (a==13) go_to("passeios/NCE.html");
if (a==14) go_to("passeios/OE.html");
if (a==15) go_to("passeios/RF.html");
if (a==16) go_to("passeios/RL.html");
if (a==17) go_to("passeios/RN.html");
if (a==18) go_to("passeios/SET.html");
if (a==19) go_to("passeios/TP.html");
if (a==20) go_to("passeios/TPB.html");
if (a==21) go_to("passeios/VCE.html");
}



/*var links = new Array(3)
links[0] = "http://www.sapo.pt"
links[1] = "http://www.pkage.com"
links[2] = "http://www.google.com"
links[3] = "quote4.htm"
links[4] = "quote5.htm"
links[5] = "quote6.htm"
links[6] = "quote7.htm"
links[7] = "quote8.htm"
links[8] = "quote9.htm"
links[9] = "quote10.htm"
function rand() {
var a = 1+Math.round(Math.random()*3)
var i = a
location = links[i]
}*/
