function FadeElementIn(inElement, inOpac) {
   {
   document.getElementById(inElement).style.visibility = 'visible';
   document.getElementById(inElement).style.opacity = inOpac / 100;
   document.getElementById(inElement + "i").style.filter = 'alpha(opacity=' + inOpac + ')';
   }
   if (inOpac<=100) {
   	inOpac++;inOpac++;inOpac++;
   	setTimeout("FadeElementIn('" + inElement + "'," + inOpac +")",10);
   }
}

function OgoPage(inPage) {
    var x = 1
    for (x = 1; x <= 20; x++)
   {
   	if (document.getElementById("oFrame" + x).style.visibility == 'visible')
   	{
   	document.getElementById("oFrame" + x).style.visibility = 'hidden';
    document.getElementById("oFrame" + x).style.position = 'absolute';
   	}
   }
	document.getElementById("oFrame" + inPage).style.visibility = 'visible';
	document.getElementById("oFrame" + inPage).style.position = 'static';
	
	FadeElementIn("oFrame" + inPage, '100');
  }
