function go()
{
setTimeout('fadeoutimg1("mast",100,0,500)',5000);
}

//change the opacity for different browsers 
function changeOpac(opacity, id)
{ 
var object = document.getElementById(id).style; 
object.opacity = (opacity / 100); 
object.MozOpacity = (opacity / 100); 
object.KhtmlOpacity = (opacity / 100); 
object.filter = "alpha(opacity=" + opacity + ")"; 
} 
function changeDisp(id)
{
var object = document.getElementById(id).style;
var browser=navigator.appName;
if (browser=="Microsoft Internet Explorer")
	{
	object.display="inline-block";
	}
else
	{
	object.display="table-cell";
	}
}
function fadeoutimg1(id, opacStart, opacEnd, millisec)
{ 
//speed for each frame 
var speed = Math.round(millisec / 100); 
var timer = 0;
//determine the direction for the blending, if start and end are the same nothing happens 
if(opacStart > opacEnd)
	{ 
	for(i = opacStart; i >= opacEnd; i--)
		{ 
        setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
        timer++;
        } 
	if(opacEnd=opacStart)
		{
		setTimeout('banner1out()',500);
		}
    }
}
function banner1out()
{
document.getElementById("mast").src='img/bomast3.jpg';
setTimeout('fadeinimg2("mast",0,100,500)',500);
}
function fadeinimg2(id, opacStart, opacEnd, millisec)
{ 
//speed for each frame 
var speed = Math.round(millisec / 100); 
var timer = 0;
//determine the direction for the blending, if start and end are the same nothing happens 
if(opacStart < opacEnd)
	{ 
	for(i = opacStart; i <= opacEnd; i++)
		{ 
        setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
        timer++;
        } 
	if(opacStart=opacEnd)
		{
		setTimeout('fadeoutimg2("mast",100,0,500)',5000);
		}
    }
}
function fadeoutimg2(id, opacStart, opacEnd, millisec)
{ 
//speed for each frame 
var speed = Math.round(millisec / 100); 
var timer = 0;
//determine the direction for the blending, if start and end are the same nothing happens 
if(opacStart > opacEnd)
	{ 
	for(i = opacStart; i >= opacEnd; i--)
		{ 
        setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
        timer++;
        } 
	if(opacEnd=opacStart)
		{
		setTimeout('banner2out()',500);
		}
    }
}
function banner2out()
{
document.getElementById("mast").src='img/bomast4.jpg';
setTimeout('fadeinimg3("mast",0,100,500)',500);
}
function fadeinimg3(id, opacStart, opacEnd, millisec)
{ 
//speed for each frame 
var speed = Math.round(millisec / 100); 
var timer = 0;
//determine the direction for the blending, if start and end are the same nothing happens 
if(opacStart < opacEnd)
	{ 
	for(i = opacStart; i <= opacEnd; i++)
		{ 
        setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
        timer++;
        } 
	if(opacStart=opacEnd)
		{
		setTimeout('fadeoutimg3("mast",100,0,500)',5000);
		}
    }
} 
function fadeoutimg3(id, opacStart, opacEnd, millisec)
{ 
//speed for each frame 
var speed = Math.round(millisec / 100); 
var timer = 0;
//determine the direction for the blending, if start and end are the same nothing happens 
if(opacStart > opacEnd)
	{ 
	for(i = opacStart; i >= opacEnd; i--)
		{ 
        setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
        timer++;
        } 
	if(opacEnd=opacStart)
		{
		setTimeout('banner3out()',500);
		}
    }
}
function banner3out()
{
document.getElementById("mast").src='img/bomast1.jpg';
setTimeout('fadeinimg1("mast",0,100,500)',500);
}
function fadeinimg1(id, opacStart, opacEnd, millisec)
{ 
//speed for each frame 
var speed = Math.round(millisec / 100); 
var timer = 0;
//determine the direction for the blending, if start and end are the same nothing happens 
if(opacStart < opacEnd)
	{ 
	for(i = opacStart; i <= opacEnd; i++)
		{ 
        setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed)); 
        timer++;
        } 
	if(opacStart=opacEnd)
		{
		setTimeout('fadeoutimg1("mast",100,0,500)',5000);
		}
    }
} 




function changeFontSize(inc)

{
  var p = document.getElementsByTagName('div');
  for(n=0; n<p.length; n++) {
    if(p[n].style.fontSize) {
       var size = parseInt(p[n].style.fontSize.replace("px", ""));
    } else {
       var size = 16;
    }
    p[n].style.fontSize = size+inc + 'px';
   }
}

