function toggleValue(obj)
	{
	if (obj.value == '1')
		{
		obj.value = '0';
		}
	else
		{
		obj.value = '1';
		}
	}



function popup(url,w,h,sb)
{
	var centerx = (screen.width/2)-(w/2);
	var centery = (screen.height/2)-(h/2);
	settings='toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars='+sb+', resizable=no, copyhistory=yes, width='+w+', height='+h+', screenX='+centerx+' ,screenY='+centery+'';
	win=window.open(url,'_blank',settings);
}

function DOMCall(name)
{
	if (document.layers) 
		return document.layers[name];
	else if (document.all)
		return document.all[name];
	else if (document.getElementById)
		return document.getElementById(name);
}


function refer()
{
	DOMCall("refer").value = parent.topFrame.referrer;
}
function refer2()
{
	DOMCall("refer2").value = parent.topFrame.referrer;
}

function showLayer(whichLayer)
	{
	var style2 = DOMCall(whichLayer).style;
	style2.display = "block";
	}

function hideLayer(whichLayer)
	{
	var style2 = DOMCall(whichLayer).style;
	style2.display = "none";
	}

function gotoPage1()
	{
	showLayer('page1');
	hideLayer('page2');
	hideLayer('page3');
	showLayer('learnmore1');
	hideLayer('learnmore2');
	showLayer('sucu1');
	hideLayer('sucu2');
	// Reset the top content
	showLayer('default');
	hideLayer('analyst_ratings_top');
	hideLayer('stocks_top');
	hideLayer('annuities_top');
	hideLayer('four0onek_top');
	hideLayer('mutual_funds_top');
	// Reset the right col content
	hideLayer('dyk_mf');
	hideLayer('dyk_aer');
	hideLayer('dyk_stocks');
	hideLayer('dyk_annuities');
	hideLayer('dyk_401k');
	showLayer('dyk_default');
	}
function gotoPage2()
	{
	hideLayer('page1');
	showLayer('page2');
	hideLayer('page3');
	showLayer('learnmore1');
	hideLayer('learnmore2');
	hideLayer('sucu1');
	showLayer('sucu2');
	}
function gotoPage3()
	{
	hideLayer('page1');
	hideLayer('page2');
	showLayer('page3');
	showLayer('learnmore1');
	hideLayer('learnmore2');
	showLayer('sucu1');
	hideLayer('sucu2');
	}
	
function gotoWP() {
	hideLayer('page1');
	hideLayer('page2');
	showLayer('page3');
	showLayer('learnmore1');
	hideLayer('learnmore2');
	hideLayer('sucu2');
	showLayer('sucu1');
}
function defaultBottom()
{
	showLayer('aboutPage');
	hideLayer('anaratPage');
	hideLayer('annuPage');
	hideLayer('mutfunPage');
	hideLayer('stocksPage');
	hideLayer('fourOonekPage');
}
function about()
	{
	// Show Page 1 Div
	gotoPage1();
	// Pages to be displayed and hid
	showLayer('aboutPage');
	hideLayer('anaratPage');
	hideLayer('annuPage');
	hideLayer('mutfunPage');
	hideLayer('stocksPage');
	hideLayer('fourOonekPage');
	// Buttons to be displayed and hid
	showLayer('about2');
	hideLayer('about1');
	showLayer('anarat1');
	hideLayer('anarat2');
	showLayer('annu1');
	hideLayer('annu2');
	showLayer('mutfun1');
	hideLayer('mutfun2');
	showLayer('stocks1');
	hideLayer('stocks2');
	showLayer('fourOonek1');
	hideLayer('fourOonek2');

	}
function anarat()
	{
	gotoPage1();
	// Pages to be displayed and hid
	hideLayer('aboutPage');
	showLayer('anaratPage');
	hideLayer('annuPage');
	hideLayer('mutfunPage');
	hideLayer('stocksPage');
	hideLayer('fourOonekPage');
	// Buttons to be displayed and hid
	showLayer('about1');
	hideLayer('about2');
	showLayer('anarat2');
	hideLayer('anarat1');
	showLayer('annu1');
	hideLayer('annu2');
	showLayer('mutfun1');
	hideLayer('mutfun2');
	showLayer('stocks1');
	hideLayer('stocks2');
	showLayer('fourOonek1');
	hideLayer('fourOonek2');
	}
function annu()
	{
	gotoPage1();
	// Pages to be displayed and hid
	hideLayer('aboutPage');
	hideLayer('anaratPage');
	showLayer('annuPage');
	hideLayer('mutfunPage');
	hideLayer('stocksPage');
	hideLayer('fourOonekPage');
	// Buttons to be displayed and hid
	showLayer('about1');
	hideLayer('about2');
	showLayer('anarat1');
	hideLayer('anarat2');
	showLayer('annu2');
	hideLayer('annu1');
	showLayer('mutfun1');
	hideLayer('mutfun2');
	showLayer('stocks1');
	hideLayer('stocks2');
	showLayer('fourOonek1');
	hideLayer('fourOonek2');
	}
function mutfun()
	{
	gotoPage1();
	// Pages to be displayed and hid
	hideLayer('aboutPage');
	hideLayer('anaratPage');
	hideLayer('annuPage');
	showLayer('mutfunPage');
	hideLayer('stocksPage');
	hideLayer('fourOonekPage');
	// Buttons to be displayed and hid
	showLayer('about1');
	hideLayer('about2');
	showLayer('anarat1');
	hideLayer('anarat2');
	showLayer('annu1');
	hideLayer('annu2');
	showLayer('mutfun2');
	hideLayer('mutfun1');
	showLayer('stocks1');
	hideLayer('stocks2');
	showLayer('fourOonek1');
	hideLayer('fourOonek2');
	}
function stocks()
	{
	gotoPage1();
	// Pages to be displayed and hid
	hideLayer('aboutPage');
	hideLayer('anaratPage');
	hideLayer('annuPage');
	hideLayer('mutfunPage');
	showLayer('stocksPage');
	hideLayer('fourOonekPage');
	// Buttons to be displayed and hid
	showLayer('about1');
	hideLayer('about2');
	showLayer('anarat1');
	hideLayer('anarat2');
	showLayer('annu1');
	hideLayer('annu2');
	showLayer('mutfun1');
	hideLayer('mutfun2');
	showLayer('stocks2');
	hideLayer('stocks1');
	showLayer('fourOonek1');
	hideLayer('fourOonek2');
	}
function fourOonek()
	{
	gotoPage1();
	// Pages to be displayed and hid
	hideLayer('aboutPage');
	hideLayer('anaratPage');
	hideLayer('annuPage');
	hideLayer('mutfunPage');
	hideLayer('stocksPage');
	showLayer('fourOonekPage');
	// Buttons to be displayed and hid
	showLayer('about1');
	hideLayer('about2');
	showLayer('anarat1');
	hideLayer('anarat2');
	showLayer('annu1');
	hideLayer('annu2');
	showLayer('mutfun1');
	hideLayer('mutfun2');
	showLayer('stocks1');
	hideLayer('stocks2');
	showLayer('fourOonek2');
	hideLayer('fourOonek1');
	}

// The other pages
	
function mutual_fund_top() {
	hideLayer('default');
	hideLayer('analyst_ratings_top');
	hideLayer('stocks_top');
	hideLayer('annuities_top');
	hideLayer('four0onek_top');
	showLayer('mutual_funds_top');
	showLayer('dyk_mf');
	hideLayer('dyk_aer');
	hideLayer('dyk_stocks');
	hideLayer('dyk_annuities');
	hideLayer('dyk_401k');
	hideLayer('dyk_default');
	defaultBottom();
}
function annuity_top() {
	hideLayer('default');
	hideLayer('analyst_ratings_top');
	hideLayer('stocks_top');
	showLayer('annuities_top');
	hideLayer('four0onek_top');
	hideLayer('mutual_funds_top');
	hideLayer('dyk_mf');
	hideLayer('dyk_aer');
	hideLayer('dyk_stocks');
	showLayer('dyk_annuities');
	hideLayer('dyk_401k');
	hideLayer('dyk_default');
	defaultBottom();
}
function analyst_ratings_top() {
	hideLayer('default');
	showLayer('analyst_ratings_top');
	hideLayer('stocks_top');
	hideLayer('annuities_top');
	hideLayer('four0onek_top');
	hideLayer('mutual_funds_top');
	hideLayer('dyk_mf');
	showLayer('dyk_aer');
	hideLayer('dyk_stocks');
	hideLayer('dyk_annuities');
	hideLayer('dyk_401k');
	hideLayer('dyk_default');
	defaultBottom();
}
function four0onek_top() {
	hideLayer('default');
	hideLayer('analyst_ratings_top');
	hideLayer('stocks_top');
	hideLayer('annuities_top');
	showLayer('four0onek_top');
	hideLayer('mutual_funds_top');
	hideLayer('dyk_mf');
	hideLayer('dyk_aer');
	hideLayer('dyk_stocks');
	hideLayer('dyk_annuities');
	showLayer('dyk_401k');
	hideLayer('dyk_default');
	defaultBottom();
}
function stock_top() {
	hideLayer('default');
	hideLayer('analyst_ratings_top');
	showLayer('stocks_top');
	hideLayer('annuities_top');
	hideLayer('four0onek_top');
	hideLayer('mutual_funds_top');
	hideLayer('dyk_mf');
	hideLayer('dyk_aer');
	showLayer('dyk_stocks');
	hideLayer('dyk_annuities');
	hideLayer('dyk_401k');
	hideLayer('dyk_default');
	defaultBottom();
}