alfa = new Image()
alfa.src = "images/xx.gif"

contain1 = 1;
contain2 = 1;
function hh(){
	hhh = 210
	qqq = 147
	if (arguments.length > 0){
		if(arguments[0] == 1){
			hhh = 140
			qqq = 217
		}
		else{
			hhh = 160
			qqq = 227
		}
	}
	contain1=contain2;
	zz=350;
	ih=65;
	td=10;
	yy=400;
	if(document.layers){
		contain2=window.pageYOffset;
		if(contain1==contain2){
			document.layers["menu"].visibility='visible';
			td=10;
		}
		else{
			document.layers["menu"].visibility='hidden';
			td=200;
		}
		s = window.innerHeight
		t = (window.innerWidth / 2) - qqq
		if (t < hhh) {t = hhh}
		if(s > 500){s =( (s - 500) / 2) + 500}
		yy=s+window.pageYOffset-ih;
		if (yy<=zz){
			yy=zz
		}
		document.layers["menu"].top=yy;
		document.layers["menu"].left=t;
	}
	else if(document.all){
		contain2=document.body.scrollTop;
		if(contain1==contain2){
			document.all.menu.style.visibility='visible';
			td=10;
		}
		else{
			document.all.menu.style.visibility='hidden';td=200;
		}
		s = document.body.clientHeight
		t = (document.body.clientWidth / 2) - qqq
		
		if (t < hhh) {t = hhh}
		if(s > 500){s =( (s - 500) / 2) + 500}
		yy=s+document.body.scrollTop-ih;
		if(yy<=zz){
			yy=zz
		}
		document.all.menu.style.top=yy;
		document.all.menu.style.left=t ;
	}
	else{
		contain2=window.pageYOffset;
		if(contain1==contain2){
			document.getElementById("menu").style.visibility='visible';td=10;
		}
		else{
			document.getElementById("menu").style.visibility='hidden';td=200;
		}
		s = window.innerHeight
		if(s > 500){s =( (s - 500) / 2) + 500}
		yy=s+window.pageYOffset-ih;
		
		t = (window.innerWidth / 2) - qqq
		if (t < hhh) {t = hhh}
		
		if(yy<=zz){
			yy=zz
		}
		document.getElementById("menu").style.top=yy;
		document.getElementById("menu").style.left=t;
	}
	if (arguments.length > 0){
			setTimeout("hh(1)",td)
	}
	else{
		setTimeout("hh()",td)
	}
}




xcontain1 = 1;
xcontain2 = 1;
function xhh(){
	xhhh = 545
	xqqq = 250
	
	xcontain1=xcontain2;
	br = 45
	minder= 60
	xzz=310;
	xih=230;
	xtd=10;
	xyy=370;
	if(document.layers){
		xcontain2=window.pageYOffset;
		if(xcontain1==xcontain2){
			document.layers["colofon"].visibility='visible';
			xtd=10;
		}
		else{
			document.layers["colofon"].visibility='hidden';
			xtd=200;
		}
		xs = (window.innerHeight - 500) / 2
		if (xs < 0){xs = 0}
		xs = xs + xyy
		xt = (window.innerWidth  / 2) - br
		if (xt < xzz){xt = xzz}
	
		document.layers["colofon"].top = parseInt(document.layers["menu"].top) - minder
		document.layers["colofon"].left=xt;
	}
	else if(document.all){
		xcontain2=document.body.scrollTop;
		if(xcontain1==xcontain2){
			document.all.colofon.style.visibility='visible';
			xtd=10;
		}
		else{
			document.all.colofon.style.visibility='hidden';xtd=200;
		}
		xs = (document.body.clientHeight - 500) /2
		if (xs < 0){xs = 0}
		xs = xs + xyy
		xt = (document.body.clientWidth / 2) - br
		if (xt < xzz){xt = xzz}
		document.all.colofon.style.top = parseInt(document.all.menu.style.top) - minder;
		document.all.colofon.style.left=xt ;
	}
	else{
		xcontain2=window.pageYOffset;
		if(xcontain1==xcontain2){
			document.getElementById("colofon").style.visibility='visible';xtd=10;
		}
		else{
			document.getElementById("colofon").style.visibility='hidden';xtd=200;
		}
		xt = (window.innerWidth / 2) - br 
		if (xt < xzz){xt = xzz}
		document.getElementById("colofon").style.top=parseInt(document.getElementById("menu").style.top) - minder;
		document.getElementById("colofon").style.left=xt;
	}
	setTimeout("xhh()",xtd)
}


function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM(objStr,x,cmdName,frameNum) { 
  var obj=MM_findObj(objStr);
  if (obj) eval('obj.'+cmdName+'('+((cmdName=='GotoFrame')?frameNum:'')+')');
}
