/* ***********************************************************
* Popup Window Code
*********************************************************** */
function winpopup(url,ht,wd,tb,st,sc,rz,tp,lf) 
{
	if (url == null)return(false);
	if (ht == null)ht = 400;  // Height
	if (wd == null)wd = 600;  // Width
	if (tb == null)tb = 0;    // Toolbar
	if (st == null)st = 0;    // Status bar
	if (sc == null)sc = 1;    // Scrollbars
	if (rz == null)rz = 1;    // Resizebale
	if (tp == null)tp = 0;    // Top
	if (lf == null)lf = 0;    // Left

	window.open(url,"","width="+wd+",height="+ht+",toolbar="+tb+",status="+st+",scrollbars="+sc+",resizable="+rz+",top="+tp+",left="+lf);
	return(false);
}

function tabswitch(yearon,monthon)
{
	var navtable = new Array('table1','table2','table3','table4','table5');
	var showyear=0;

	switch (yearon) 
	{
	case("mutual"):
		yearon = "1";
		break;
	case("income"):
		yearon = "2";
		break;
	case("resource"):
		yearon = "3";
		break;
	case("mbn"):
		yearon = "4";
		break;
	default:
		break;

	}

	// Display Selected Year
	showyear=eval(yearon)-1;
	document.tabindex.FundYear.selectedIndex = showyear;

	if (document.getElementById) 
	{
		for (i=0; i<5; i++) 
		{
			if (navtable[i] != null)
			{
				document.getElementById(navtable[i]).style.visibility = 'hidden';
				document.getElementById(navtable[i]).style.position = 'absolute';
			}
		}

		document.getElementById(navtable[showyear]).style.visibility = 'visible';
		document.getElementById(navtable[showyear]).style.position = 'relative';
	}
	else if (document.layers && document.layers[table1]) 
	{
		for (i=0; i<5; i++) 
		{
			if (navtable[i] != null)
			{
				document.layers[navtable[i]].visibility = 'hidden';
				document.layers[navtable[i]].position = 'absolute';
			}
		}

		document.layers(navtable[showyear]).visibility = 'visible';
		document.layers(navtable[showyear]).position = 'relative';
	}
	else if (document.all) 
	{
		for (i=0; i<5; i++) 
		{
			if (navtable[i] != null)
			{
				document.all[navtable[i]].style.visibility = 'hidden';
				document.all[navtable[i]].style.position = 'absolute';
			}
		}

		document.all(navtable[showyear]).style.visibility = 'show';
		document.all(navtable[showyear]).style.position = 'relative';
	}  

	// Display Selected Month
	if (monthon != null)
	{
		var shortmonth = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
		var navmonth = '';
		document.tabindex.FundMonth.selectedIndex = monthon;

		// Hide all months
		for (i=0; i<5; i++) 
		{
			for (j=0; j<12; j++)
			{
				navmonth = navtable[i] + shortmonth[j];
				if (document.getElementById) 
				{
					document.getElementById(navmonth).style.visibility = 'hidden';
					document.getElementById(navmonth).style.position = 'absolute';
				}
				else if (document.layers && document.layers[table1]) 
				{
					document.layers[navmonth].visibility = 'hidden';
					document.layers[navmonth].position = 'absolute';
				}
				else if (document.all) 
				{
					document.all[navmonth].style.visibility = 'hidden';
					document.all[navmonth].style.position = 'absolute';
				} 
			}
		}

		if (monthon == 0) 
		{
			for (j=0; j<12; j++)
			{
				// Show all months
				navmonth = navtable[showyear] + shortmonth[j];
				if (document.getElementById) 
				{
					document.getElementById(navmonth).style.visibility = 'visible';
					document.getElementById(navmonth).style.position = 'relative';
				}
				else if (document.layers && document.layers[table1]) 
				{
					document.layers[navmonth].visibility = 'visible';
					document.layers[navmonth].position = 'relative';
				}
				else if (document.all) 
				{
					document.all[navmonth].style.visibility = 'show';
					document.all[navmonth].style.position = 'relative';
				} 
			} 
		}
		else
		{
			// Show selected months
			navmonth = navtable[showyear] + shortmonth[monthon-1];
			if (document.getElementById) 
			{
					document.getElementById(navmonth).style.visibility = 'visible';
					document.getElementById(navmonth).style.position = 'relative';
			}
			else if (document.layers && document.layers[table1]) 
			{
				document.layers[navmonth].visibility = 'visible';
				document.layers[navmonth].position = 'relative';
			}
			else if (document.all) 
			{
				document.all[navmonth].style.visibility = 'show';
				document.all[navmonth].style.position = 'relative';
			} 
		} 
	}
}

function LmOver(elem,bg)
{
	elem.style.backgroundColor = bg;
}

function LmOut(elem)
{
	elem.style.backgroundColor = '';
}


//Load Pictures for slideshow
var gnSlideTimeout = 2;
var gnCurrPictureIndex = 0;
var lnSlides = 24;
var lcPath = "graphics/outlook/";
var lcCover = "graphics/outlook/slide0.jpg";
var gaPictures = new Array(lnSlides);
var gaTitles = new Array(lnSlides);

function ScreenNotice()
{
  lcPath = lcPath + "slide";
  for (i = 0; i <= lnSlides; i++)
  {
        gaPictures[i] = lcPath + i + ".jpg";
        gaTitles[i] = " ";
  }
}
	

