

var phase=0;
function greyintro() {
	var phasea = new Array();
	phasea[0] = "introphase1";
	phasea[1] = "introphase2";
	phasea[2] = "introphase3";
	phasea[3] = "introphase4";
	phasea[4] = "introphase5";
	phasea[5] = "introphase6";

	if (phase <6) {
var duh = phasea[phase];	


document.getElementById("greyintro").className=duh;
phase++;

setTimeout("greyintro()",500);
	} else {
	document.getElementById("greyintro").style.display="none";
	document.getElementById("greyintrocover").style.display="none";
	}
}

function wait(time) {
setTimeout("greyintro()", time);	
}
var typeport="J/e/f/f/ /i/s/ /c/o/n/s/t/a/n/t/l/y/ /b/u/i/l/d/i/n/g/ /h/i/s/ /p/o/r/t/f/o/l/i/o/./ /E/v/e/r/y/ /d/a/y/ /i/s/ /a/ /n/e/w/ /a/d/v/e/n/t/u/r/e/./ /C/h/e/c/k/ /o/u/t/ /h/i/s/:/ /p/r/o/j/e/c/t/s/,/ /d/e/s/i/g/n/s/,/ /a/n/d/ /w/e/b/s/i/t/e/s/ /h/e/ /h/a/s/ /d/e/v/e/l/o/p/e/d";
var typeport_array=typeport.split("/");
var we;
function spitport() {
	clearTimeout(settime);
	we=0;
	document.getElementById("text").innerHTML="";
	spit();
}
	function spit() {
	if (we < typeport_array.length ) {
		document.getElementById("text").innerHTML+=typeport_array[we];
		we++;
		setTimeout("spit()",55);
	} 
	
}




	var dec = 6;	
	document.getElementById("loader").className="trans7";	
function fadeout() {

	var trans = new Array();
	trans[0] = "";
	trans[1] = "trans1";
	trans[2] = "trans2";
	trans[3] = "trans3";
	trans[4] = "trans4";
	trans[5] = "trans5";
	trans[6] = "trans6";
	if (dec > 0) {
		var transition = trans[dec];
		document.getElementById("loader").className=transition;	
		dec--;
		setTimeout("fadeout()",100);
	} else {
		document.getElementById("map").style.visibility="visible";
		document.getElementById("loader").style.visibility="hidden";
		spitwords();
	}
}

function hovercontact() {
	if ( document.getElementById("contact").className=="visible") {
	document.getElementById("contact").className="hidden"; } else {
	document.getElementById("contact").className="visible"; }	
		
	
}
function hidecontact() {
	
	document.getElementById("contact").className="hidden";
	
	
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function popout(id) {
  var i = id;
  document.getElementById(i).className="popout";
	
}

function popin(id) {
  var a = id;
  document.getElementById(a).className="popin";
	
}