var refs,refh,avaiheight,color=0,colorn,cbcc,t;
function showmenu(ref) {
	if (ref == "fa") {
		document.getElementById("fatext").style.visibility = "visible" ;
		}else {
			document.getElementById("entext").style.visibility = "visible" ;
			}
			animationshow();
	}
function hidemenu(ref) {
	if (ref == "fa") {
		document.getElementById("fatext").style.visibility = "hidden" ;
		}else {
			document.getElementById("entext").style.visibility = "hidden" ;
			}
			animationhide();
	}
function footer() {

if (window.innerHeight < 675 ) {
	document.getElementById("footer").style.margin ="0 0 0 0"   ; 
	} else {
		avaiheight = window.innerHeight- 750;
		document.getElementById("footer").style.margin =avaiheight+" 0 0 0"   ;
		
		}
	}
function animationshow() {
	document.getElementById("animation").style.visibility = "visible";
	}
function animationhide() {
	document.getElementById("animation").style.visibility = "hidden";
	}
function cbcr() {
	if (!cbcc){
		cbc();
		}
	}
function cbc() {
	cbcc = 1;
	switch (color){
	case 0: colorn = "blue"; break;
	 case 1 : colorn = "green"; break;
	 case 2 : color = 0; colorn = "black"; break;
	 }
	document.getElementById("page_bg").style.background = colorn;
	color = color +1;
	t=setTimeout("cbc()",1000);
	
	}
function scbc() {
	clearTimeout(t);
	cbcc = 0;
	document.getElementById("page_bg").style.background = "white";
	}
