
n = 0;
currentDiv = 0;
var scrolling;
var iScroll;
function getHeight(){
	var h;
	if(self.innerHeight){
		h = self.innerHeight;
	} else if(document.documentElement && document.documentElement.clientHeight){
		h = document.documentElement.clientHeight;
	} else if(document.body){
		h = document.body.clientHeight;
	}
	return h;
}

function flashLoaded(){
	s = document.location.search;
	document.getElementById("csf").SetVariable("_root.src", s.substring(s.indexOf('src=')+4,s.length));
	if((""+document.location).indexOf('?frame=') != -1){
		num = (""+document.location).substring((""+document.location).indexOf('?frame=')+7, (""+document.location).indexOf('&'));
		document.getElementById("csf").GotoFrame(num);
		if(num >= 5){
			document.getElementById("parttwo").style.display = "inline";
		}
		if(num >= 7){
			document.getElementById("partthree").style.display = "inline";
		}
		if(num >= 8){
			document.getElementById("partfour").style.display = "inline";
		}
		if(num >= 10){
			document.getElementById("partfive").style.display = "inline";
		}
	}
}

function scrolly(i){
	document.getElementById(i).style.display = "inline";
	currentDiv = i;
	n = document.getElementById("content").scrollTop;
	if(scrolling){
		clearInterval(scrolling);
	}
	scrolling = setInterval("scrollit()", 10);
}

function scrollit(){
	n +=5;
	document.getElementById("content").scrollTop = n;
	if(n >= document.getElementById("content").scrollHeight - getHeight()){
		clearInterval(scrolling);
	}
}

function hideId(i){
	document.getElementById(i).style.display = "none";
	document.getElementById("content").scrollTop = document.getElementById("content").scrollHeight;
}

function highlight(){
	document.getElementById('hl1').className = "highlighted";
	document.getElementById('hl3').className = "highlighted";
	document.getElementById('hl4').className = "highlighted";
	document.getElementById('hl5a').className = "highlighted";
	document.getElementById('hl5b').className = "highlighted";
	document.getElementById('hl5c').className = "highlighted";
	document.getElementById('hl6').className = "highlighted";
}

function openRef(){
	window.open("references.html", "ed_ref", "width=400,height=500,toolbar=no,status=no,scollbars=no,resizable=yes");
}

function openPri(){
	window.open("privacy.html", "ed_pri", "width=600,height=500,toolbar=no,status=no,scollbars=no,resizable=yes");
}

function openAni(url){
	window.open(url, "ed_ani", "width=600,height=400,toolbar=no,status=no,scollbars=no,resizable=yes");
}

window.onload = function(){
	if(document.getElementById('flash').scrollHeight > 530){
		
	}
}