function showdivs()
{
	var x=document.getElementsByTagName("div");
	for (i=7;i<x.length;i++){
		x[i].style.display='block';
	}
}

function hidedivs()
{
	var x=document.getElementsByTagName("div");
	for (i=7;i<x.length;i++){
		x[i].style.display='none';
	}
}

function showhide(id)
{
	el=document.getElementById(id).style; 
	if (el.display=='block') {
		el.display='none';
	}else{
		el.display='block';
	}
}
function initialize1()
{
	window.setTimeout("locations(1);",2000);
	window.setTimeout("locations(2);",4000);
	window.setTimeout("locations(3);",6000);
	window.setTimeout("startanimlocations();",10000);
	window.setInterval("anim();",10000);
}

function initialize2()
{
	window.setTimeout("locations(1);",2000);
	window.setTimeout("locations(2);",4000);
	window.setTimeout("locations(3);",6000);
	window.setTimeout("startanimlocations();",10000);
}

function startanimlocations()
{
	window.setInterval("animlocations();",1000);	
}

function animlocations()
{
	locations(0);
	window.setTimeout("locations(1);",100);
}

function locations(n)
{
	if (n==0){
		el=document.getElementById("locations").style;
		el.visibility='hidden';
	}
	if (n==1){
		el=document.getElementById("locations").style; 
		el.visibility='visible';
	}	
	if (n==2){
		document.images[0].src="./PICS/locations2.jpg";
	}
	if (n==3){
		document.images[0].src="./PICS/locations3.jpg";
	}
}


function anim()
{
	img=document.images[4].src;
	img=img.substring(img.length-6,img.length);
	if (img=="1a.jpg"){
		document.images[4].src="./PICS/1.jpg";
	}else{
		document.images[4].src="./PICS/1a.jpg";
	}

	window.setTimeout("anim1();",50);
	window.setTimeout("anim2();",100);
	window.setTimeout("anim3();",150);
	window.setTimeout("anim4();",200);
}


function anim1()
{
	img=document.images[5].src;
	img=img.substring(img.length-6,img.length);
	if (img=="2a.jpg"){
		document.images[5].src="./PICS/2.jpg";
	}else{
		document.images[5].src="./PICS/2a.jpg";
	}
}

function anim2()
{
	img=document.images[6].src;
	img=img.substring(img.length-6,img.length);
	if (img=="3a.jpg"){
		document.images[6].src="./PICS/3.jpg";
	}else{
		document.images[6].src="./PICS/3a.jpg";
	}
}

function anim3()
{
	img=document.images[7].src;
	img=img.substring(img.length-6,img.length);
	if (img=="4a.jpg"){
		document.images[7].src="./PICS/4.jpg";
	}else{
		document.images[7].src="./PICS/4a.jpg";
	}
}

function anim4()
{
	img=document.images[8].src;
	img=img.substring(img.length-6,img.length);
	if (img=="5a.jpg"){
		document.images[8].src="./PICS/5.jpg";
	}else{
		document.images[8].src="./PICS/5a.jpg";
	}
}