var menuarray0 = new Array();
menuarray0[0] = new makeMenuArray("All about credit", "#", "", "", "", "");
menuarray0[1] = new makeMenuArray("Credit is a powerful tool", "uw-Credit_is_a_powerful_tool.html", "", "", "", 0);
menuarray0[2] = new makeMenuArray("Types of credit", "uw-Types_of_credit.html", "", "", "", 0);
menuarray0[3] = new makeMenuArray("Secured versus unsecured credit", "uw-Secured_versus_unsecured_credit.html", "", "", "", 0);
menuarray0[4] = new makeMenuArray("Good debt versus bad debt", "uw-Good_debt_versus_bad_debt.html", "", "", "", 0);
menuarray0[5] = new makeMenuArray("How much credit can you afford?", "uw-How_much_credit_can_you_afford.html", "", "", "", 0);
menuarray0[6] = new makeMenuArray("Protect your ability to repay credit", "uw-Protect_your_ability_to_repay_credit.html", "", "", "", 0);
menuarray0[7] = new makeMenuArray("Reducing the cost of credit", "uw-Reducing_the_cost_of_credit.html", "", "", "", 0);
menuarray0[8] = new makeMenuArray("Ten tips for managing debt", "uw-Ten_tips_for_managing_debt.html", "", "", "", 0);
menuarray0[9] = new makeMenuArray("Applying for credit", "#", "", "", "", "");
menuarray0[10] = new makeMenuArray("What lenders look for", "uw-What_lenders_look_for.html", "", "", "", 9);
menuarray0[11] = new makeMenuArray("Your credit bureau file", "uw-Your_credit_bureau_file.html", "", "", "", 9);
menuarray0[12] = new makeMenuArray("Keep your credit history healthy", "uw-Keep_your_credit_history_healthy.html", "", "", "", 9);
menuarray0[13] = new makeMenuArray("How credit cards work", "#", "", "", "", "");
menuarray0[14] = new makeMenuArray("Choosing the best card for you", "uw-Choosing_the_best_card_for_you.html", "", "", "", 13);
menuarray0[15] = new makeMenuArray("Fees and charges", "uw-Fees_and_charges.html", "", "", "", 13);
menuarray0[16] = new makeMenuArray("How interest is calculated", "uw-How_interest_is_calculated.html", "", "", "", 13);
menuarray0[17] = new makeMenuArray("Cash advances", "uw-Cash_advances.html", "", "", "", 13);
menuarray0[18] = new makeMenuArray("Balance transfers", "uw-Balance_transfers.html", "", "", "", 13);
menuarray0[19] = new makeMenuArray("Managing your credit card", "uw-Managing_your_credit_card.html", "", "", "", 13);
menuarray0[20] = new makeMenuArray("Consolidating your debt", "uw-Consolidating_your_debt.html", "", "", "", 13);
menuarray0[21] = new makeMenuArray("Mortgages", "#", "", "", "", "");
menuarray0[22] = new makeMenuArray("Mortgages - How they work", "uw-Mortgages_-_How_they_work.html", "", "", "", 21);
menuarray0[23] = new makeMenuArray("Which loan is right for you?", "uw-Which_loan_is_right_for_you.html", "", "", "", 21);
menuarray0[24] = new makeMenuArray("Refinancing traps", "uw-Refinancing_traps.html", "", "", "", 21);
menuarray0[25] = new makeMenuArray("Trouble meeting repayments?", "uw-Trouble_meeting_repayments.html", "", "", "", 21);
menuarray0[26] = new makeMenuArray("Unfair loan contracts", "uw-Unfair_loan_contracts.html", "", "", "", 21);
menuarray0[27] = new makeMenuArray("Personal loans", "#", "", "", "", "");
menuarray0[28] = new makeMenuArray("What are personal loans?", "uw-What_are_personal_loans.html", "", "", "", 27);
menuarray0[29] = new makeMenuArray("How much will it cost?", "uw-How_much_will_it_cost.html", "", "", "", 27);
menuarray0[30] = new makeMenuArray("Will I need a guarantor?", "uw-Will_I_need_a_guarantor.html", "", "", "", 27);
menuarray0[31] = new makeMenuArray("Pros and cons", "uw-Pros_and_cons.html", "", "", "", 27);
menuarray0[32] = new makeMenuArray("Line of credit loans", "#", "", "", "", "");
menuarray0[33] = new makeMenuArray("How they work", "uw-How_they_work.html", "", "", "", 32);
menuarray0[34] = new makeMenuArray("How is interest charged?", "uw-How_is_interest_charged.html", "", "", "", 32);
menuarray0[35] = new makeMenuArray("Using a line of credit", "uw-Using_a_line_of_credit.html", "", "", "", 32);
var menuarray1 = new Array();
menuarray1[0] = new makeMenuArray("Gaining financial control", "#", "", "", "", "");
menuarray1[1] = new makeMenuArray("Set some goals", "uw-Set_some_goals.html", "", "", "", 0);
menuarray1[2] = new makeMenuArray("Keeping a budget", "uw-Keeping_a_budget.html", "", "", "", 0);
menuarray1[3] = new makeMenuArray("Drawing up a budget", "uw-Drawing_up_a_budget.html", "", "", "", 0);
menuarray1[4] = new makeMenuArray("Make your budget work", "uw-Make_your_budget_work.html", "", "", "", 0);
menuarray1[5] = new makeMenuArray("Are you headed for trouble?", "uw-Are_you_headed_for_trouble.html", "", "", "", 0);
menuarray1[6] = new makeMenuArray("Getting spending under control", "uw-Getting_spending_under_control.html", "", "", "", 0);
menuarray1[7] = new makeMenuArray("Getting on top of your debt", "uw-Getting_on_top_of_your_debt.html", "", "", "", 0);
menuarray1[8] = new makeMenuArray("Handling hard times", "#", "", "", "", "");
menuarray1[9] = new makeMenuArray("Act quickly", "uw-Act_quickly.html", "", "", "", 8);
menuarray1[10] = new makeMenuArray("Losing your job", "uw-Losing_your_job.html", "", "", "", 8);
menuarray1[11] = new makeMenuArray("Separation and divorce", "uw-Separation_and_divorce.html", "", "", "", 8);
menuarray1[12] = new makeMenuArray("Relationship debt", "uw-Relationship_debt.html", "", "", "", 8);
menuarray1[13] = new makeMenuArray("Loss of a loved one", "uw-Loss_of_a_loved_one.html", "", "", "", 8);
menuarray1[14] = new makeMenuArray("Accessing financial hardship relief", "uw-Accessing_financial_hardship_relief.html", "", "", "", 8);
menuarray1[15] = new makeMenuArray("Is bankruptcy an option?", "uw-Is_bankruptcy_an_option.html", "", "", "", 8);
menuarray1[16] = new makeMenuArray("Who to turn to for help", "uw-Who_to_turn_to_for_help.html", "", "", "", 8);
menuarray1[17] = new makeMenuArray("Managing credit for retirement", "#", "", "", "", "");
menuarray1[18] = new makeMenuArray("Every cent counts", "uw-Every_cent_counts.html", "", "", "", 17);
menuarray1[19] = new makeMenuArray("Get professional advice", "uw-Get_professional_advice.html", "", "", "", 17);
menuarray1[20] = new makeMenuArray("Budget for retirement", "uw-Budget_for_retirement.html", "", "", "", 17);
menuarray1[21] = new makeMenuArray("Debt reduction tips for seniors", "uw-Debt_reduction_tips_for_seniors.html", "", "", "", 17);
menuarray1[22] = new makeMenuArray("Credit tips for retirees", "uw-Credit_tips_for_retirees.html", "", "", "", 17);
menuarray1[23] = new makeMenuArray("Managing credit for small business", "#", "", "", "", "");
menuarray1[24] = new makeMenuArray("Responsible borrowing", "uw-Responsible_borrowing.html", "", "", "", 23);
menuarray1[25] = new makeMenuArray("Always borrow responsibly", "uw-Always_borrow_responsibly.html", "", "", "", 23);
menuarray1[26] = new makeMenuArray("Sources of credit", "uw-Sources_of_credit.html", "", "", "", 23);
menuarray1[27] = new makeMenuArray("Unlock your debtors", "uw-Unlock_your_debtors.html", "", "", "", 23);
menuarray1[28] = new makeMenuArray("Managing credit for students", "#", "", "", "", "");
menuarray1[29] = new makeMenuArray("Credit and students", "uw-Credit_and_students.html", "", "", "", 28);
menuarray1[30] = new makeMenuArray("Gain experience with credit", "uw-Gain_experience_with_credit.html", "", "", "", 28);
menuarray1[31] = new makeMenuArray("Keep up regular repayments", "uw-Keep_up_regular_repayments.html", "", "", "", 28);
menuarray1[32] = new makeMenuArray("Campus loans", "uw-Campus_loans.html", "", "", "", 28);
menuarray1[33] = new makeMenuArray("Credit tips for students", "uw-Credit_tips_for_students.html", "", "", "", 28);
menuarray1[34] = new makeMenuArray("Reduce your bank fees", "#", "", "", "", "");
menuarray1[35] = new makeMenuArray("Trim your bank fees", "uw-Trim_your_bank_fees.html", "", "", "", 34);
menuarray1[36] = new makeMenuArray("Cutting the cost of everyday accounts", "uw-Cutting_the_cost_of_everyday_accounts.html", "", "", "", 34);
menuarray1[37] = new makeMenuArray("Cutting the cost of credit cards", "uw-Cutting_the_cost_of_credit_cards.html", "", "", "", 34);
menuarray1[38] = new makeMenuArray("Cutting the cost of lines of credit", "uw-Cutting_the_cost_of_lines_of_credit.html", "", "", "", 34);
var menuarray2 = new Array();
menuarray2[0] = new makeMenuArray("Fraud prevention", "#", "", "", "", "");
menuarray2[1] = new makeMenuArray("Keeping your credit safe", "uw-Keeping_your_credit_safe.html", "", "", "", 0);
menuarray2[2] = new makeMenuArray("Phishing", "uw-Phishing.html", "", "", "", 0);
menuarray2[3] = new makeMenuArray("The internet", "uw-The_internet.html", "", "", "", 0);
menuarray2[4] = new makeMenuArray("Using ATMs", "uw-Using_ATMs.html", "", "", "", 0);
menuarray2[5] = new makeMenuArray("Identity fraud", "uw-Identity_fraud.html", "", "", "", 0);
menuarray2[6] = new makeMenuArray("Dealing with identity fraud", "uw-Dealing_with_identity_fraud.html", "", "", "", 0);
menuarray2[7] = new makeMenuArray("Re-establishing your financial identity", "uw-Re-establishing_your_financial_identity.html", "", "", "", 0);
menuarray2[8] = new makeMenuArray("Your legal rights", "#", "", "", "", "");
menuarray2[9] = new makeMenuArray("National Credit Code", "uw-National_Credit_Code.html", "", "", "", 8);
menuarray2[10] = new makeMenuArray("Timing is everything", "uw-Timing_is_everything.html", "", "", "", 8);
var menuarray3 = new Array();
menuarray3[0] = new makeMenuArray("Ways to manage your debt", "#", "", "", "", "");
menuarray3[1] = new makeMenuArray("How to get the most from credit", "uw-How_to_get_the_most_from_credit.html", "", "", "", 0);
menuarray3[2] = new makeMenuArray("Money saving ideas", "#", "", "", "", "");
menuarray3[3] = new makeMenuArray("Spend wisely", "uw-Spend_wisely.html", "", "", "", 2);
menuarray3[4] = new makeMenuArray("At the supermarket", "uw-At_the_supermarket.html", "", "", "", 2);
menuarray3[5] = new makeMenuArray("Saving on big-ticket items", "uw-Saving_on_big-ticket_items.html", "", "", "", 2);
menuarray3[6] = new makeMenuArray("Around the home", "uw-Around_the_home.html", "", "", "", 2);
menuarray3[7] = new makeMenuArray("Dollars and sense", "uw-Dollars_and_sense.html", "", "", "", 2);
menuarray3[8] = new makeMenuArray("Christmas spending", "uw-Christmas_spending.html", "", "", "", 2);
menuarray3[9] = new makeMenuArray("Credit tips", "#", "", "", "", "");
menuarray3[10] = new makeMenuArray("Credit cards", "uw-Credit_cards.html", "", "", "", 9);
menuarray3[11] = new makeMenuArray("Personal loans", "uw-Personal_loans.html", "", "", "", 9);
menuarray3[12] = new makeMenuArray("Home loans", "uw-Home_loans.html", "", "", "", 9);
menuarray3[13] = new makeMenuArray("Mobile phone contracts", "#", "", "", "", "");
menuarray3[14] = new makeMenuArray("Avoid bill shock", "uw-Avoid_bill_shock.html", "", "", "", 13);
menuarray3[15] = new makeMenuArray("Unfair contracts", "uw-Unfair_contracts.html", "", "", "", 13);
menuarray3[16] = new makeMenuArray("Helpful Hints", "#", "", "", "", "");
menuarray3[17] = new makeMenuArray("Glossary", "uw-Glossary.html", "", "", "", 16);
menuarray3[18] = new makeMenuArray("Budget builder", "uw-Budget_builder.html", "", "", "", 16);
menuarray3[19] = new makeMenuArray("Who can help?", "uw-Who_can_help.html", "", "", "", 16);
menuarray3[20] = new makeMenuArray("Useful links", "uw-Useful_links.html", "", "", "", 16);
// These are the arrays for the three right-most menus.
// Any modification of the following lines will affect every page that calls this script.

////////////////////////////////////////////////////////////////////////////
//
//     Please do not edit below this section without contacting Ocean-7.
//
////////////////////////////////////////////////////////////////////////////


var lastmenu = -1;
var lastmenuitem = -1;
var menuTimer = null;
var menuTimer1 = null;
var hidedivs = null;


// Variables for menu positions
vertpos = 120;
var xpos = new Array(4);
xpos[0] = 5;
xpos[1] = 191;
xpos[2] = 377;
xpos[3] = 563;

//vertpos = 146;
//var xpos = new Array(4);
//xpos[0] = 198;
//xpos[1] = 384;
//xpos[2] = 570;
//xpos[3] = 12;

var subdivs = new Array();



// The following array is a list of the images that appear at the top of the menu.
// Modifying the following array will affect every page that calls this script.
var imgname = new Array();


imgname[0] = "images/r_menu.gif";
imgname[1] = "images/s_menu.gif";
imgname[2] = "images/br_menu.gif";
imgname[3] = "images/hh_menu.gif";


// The following variables are placeholders for the optional menu - do not modify or delete these!
var optimgname = "";
var optmenu = false;
var optmenuarray = new Array();
// End of variables for optional menu.


var styletag = "";
var clipheight = new Array();
var clipsubwidth = new Array();
var clipsubheight = new Array();
var menutops = new Array();
var menuarrays = new Array();
var menuarraysback = new Array();
var menuarraysfront = new Array();
var menusubarrays = new Array();
var menusubarraysback = new Array();
var menusubarraysfront = new Array();

var isIEMac = false;

if ( !document.layers )
{
	if ( ( navigator.appName != "Netscape" ) && ( navigator.platform != "Win32" ) )
	{
		isIEMac = true;
	}
}



// The following variables are all default values.
// They may be overwritten by the pages that call this script.
// Modifying the following variables will affect every page that calls this script, except in cases where they're overwritten by the page.

var menuforeground = '#ffffff';
var menubackground = 'images/99ccff.gif'; //'images/3399cc.gif';
var menuhighlight = 'images/subon.gif'; //'images/99ccff.gif';

var submenuforeground = '#000000';
var submenubackground = 'images/subon2.gif';
var submenuhighlight = 'images/subon1.gif';

function makeMenuArray(txt, url, linktype, height, width, par)
{
	if ( txt != "" )
	{
		this.txt = txt;
	}
	else
	{
		this.txt = "";
	}

	if ( url != "" )
	{
		this.url = url;
	}
	else
	{
		this.url = "";
	}

	if ( linktype != "" || linktype == "0" )
	{
		this.linktype = linktype;
	}
	else
	{
		this.linktype = 0;
	}

	if ( height != "" )
	{
		this.height = height;
	}
	else
	{
		this.height = "";
	}

	if ( width != "" )
	{
		this.width = width;
	}
	else
	{
		this.width = "";
	}

	if ( par != "" || par == "0" )
	{
		this.par = par;
	}
	else
	{
		this.par = -1;
	}
}


function cb_getElement(elemID)
{
	if ( document.layers )
	{
		return eval('document.layers["' + elemID + '"]');
	}
	else
	{
		if ( document.all )
		{
			return eval('document.all.' + elemID + '');
		}
		else
		{
			return document.getElementById(elemID);
		}
	}
}


function cb_getElementStyle(elemID)
{
	if ( document.layers )
	{
		return eval('document.layers["' + elemID + '"]');
	}
	else
	{
		if ( document.all )
		{
			return eval('document.all.' + elemID + '.style');
		}
		else
		{
			return document.getElementById(elemID).style;
		}
	}
}


function cb_getImage(elemID, imgID)
{
	if ( document.layers )
	{
		return eval('document.layers["' + elemID + '"].document.images["' + imgID + '"]');
	}
	else
	{
		return eval('document.images["' + imgID + '"]');
	}
}


function showmenu(num)
{
	if ( lastmenu != -1 )
	{
		eval('cb_getElementStyle("menu' + lastmenu + '").visibility = "hidden";');
		if ( !isIEMac )
		{
			eval('cb_getElementStyle("menu' + lastmenu + 'back").visibility = "hidden";');
			eval('cb_getElementStyle("menu' + lastmenu + 'front").visibility = "hidden";');
		}
		clearTimeout(menuTimer);
		hidesubmenu(lastmenu, lastmenuitem);
		lastmenuitem = -1;
	}
	lastmenu = num;

	if ( hidedivs != null )
	{
		for ( l = 0; l < hidedivs.length; l++ )
		{
			if ( eval('cb_getElement("' + hidedivs[l] + '")') )
			{
				eval('cb_getElementStyle("' + hidedivs[l] + '").visibility = "hidden";');
			}
		}
	}

	eval('cb_getElementStyle("menu' + num + '").visibility = "visible";');
	if ( !isIEMac )
	{
		eval('cb_getElementStyle("menu' + num + 'back").visibility = "visible";');
		eval('cb_getElementStyle("menu' + num + 'front").visibility = "visible";');
	}
}


function hidemenu(num)
{
	if ( hidedivs != null )
	{
		for ( l = 0; l < hidedivs.length; l++ )
		{
			if ( eval('cb_getElement("' + hidedivs[l] + '")') )
			{
				eval('cb_getElementStyle("' + hidedivs[l] + '").visibility = "visible";');
			}
		}
	}

	eval('cb_getElementStyle("menu' + num + '").visibility = "hidden";');
	if ( !isIEMac )
	{
		eval('cb_getElementStyle("menu' + num + 'back").visibility = "hidden";');
		eval('cb_getElementStyle("menu' + num + 'front").visibility = "hidden";');
	}
	hidesubmenu(lastmenu, lastmenuitem);
	lastmenuitem = -1;
}


function showsubmenu(i, j)
{
	if ( lastmenuitem != -1 )
	{
		eval('cb_getElementStyle("menu' + i + 'sub' + lastmenuitem + 'sub").visibility = "hidden";');
		if ( !isIEMac )
		{
			eval('cb_getElementStyle("menu' + i + 'sub' + lastmenuitem + 'subback").visibility = "hidden";');
			eval('cb_getElementStyle("menu' + i + 'sub' + lastmenuitem + 'subfront").visibility = "hidden";');
		}
		clearTimeout(menuTimer1);
		changeBG(i, lastmenuitem, menubackground);
	}
	lastmenuitem = j;
	eval('cb_getElementStyle("menu' + i + 'sub' + j + 'sub").visibility = "visible";');
	if ( !isIEMac )
	{
		eval('cb_getElementStyle("menu' + i + 'sub' + j + 'subback").visibility = "visible";');
		eval('cb_getElementStyle("menu' + i + 'sub' + j + 'subfront").visibility = "visible";');
	}
}


function hidesubmenu(i, j)
{
	if ( lastmenuitem != -1 )
	{
		changeBG(i, lastmenuitem, menubackground);
		eval('cb_getElementStyle("menu' + i + 'sub' + j + 'sub").visibility = "hidden";');
		if ( !isIEMac )
		{
			eval('cb_getElementStyle("menu' + i + 'sub' + j + 'subback").visibility = "hidden";');
			eval('cb_getElementStyle("menu' + i + 'sub' + j + 'subfront").visibility = "hidden";');
		}
		clearTimeout(menuTimer1);
	}
}


function menuitemover(i, j, haschildren)
{
	if ( j != lastmenuitem )
	{
		hidesubmenu(i, lastmenuitem);
	}
	else
	{
		clearTimeout(menuTimer1);
	}
	clearTimeout(menuTimer);
	changeBG(i, j, menuhighlight);
	if ( haschildren == true )
	{
		showsubmenu(i, j);
	}
}


function menuitemout(i, j, haschildren)
{
	menuTimer = eval("setTimeout('hidemenu(" + i + ")', 250);");

	if ( haschildren == true )
	{
		menuTimer1 = eval("setTimeout('hidesubmenu(" + i + ", " + j + ")', 250);");
		lastmenuitem = j;
	}
	else
	{
		changeBG(i, j, menubackground);
		lastmenuitem = -1;
	}
}


function changeBG(i, j, c)
{
	if ( j != -1 )
	{
		if ( !isIEMac )
		{
			eval('cb_getImage("menu' + i + 'back", "menu' + i + 'back' + j + '").src = "' + c + '";');
		}
	}
}

function popupURL(i, j)
{
	if ( eval('menuarray' + i + '[' + j + '].linktype') == 1 )
	{
		windowatts = 'toolbar=yes,scrollbars=yes,menubar=yes,location=yes,resizable=yes,status=yes';
		if ( eval('menuarray' + i + '[' + j + '].height') != '' )
		{
			windowatts += ',height=' + eval('menuarray' + i + '[' + j + '].height');
		}
		if ( eval('menuarray' + i + '[' + j + '].width') != '' )
		{
			windowatts += ',width=' + eval('menuarray' + i + '[' + j + '].width');
		}
		win = window.open(eval('menuarray' + i + '[' + j + '].url'), 'popup' + i + j, windowatts);
	}
	else
	{
		windowatts = 'toolbar=no,scrollbars=no,menubar=no,location=no,resizable=no,status=no';
		if ( eval('menuarray' + i + '[' + j + '].height') != '' )
		{
			windowatts += ',height=' + eval('menuarray' + i + '[' + j + '].height');
		}
		if ( eval('menuarray' + i + '[' + j + '].width') != '' )
		{
			windowatts += ',width=' + eval('menuarray' + i + '[' + j + '].width');
		}
		win = window.open(eval('menuarray' + i + '[' + j + '].url'), 'popup' + i + j, windowatts);
	}
}


function changesubBG(i, j, p, c)
{
	if ( j != -1 )
	{
		if ( !isIEMac )
		{
			eval('cb_getImage("menu' + i + 'sub' + p + 'subback", "menuback' + i + 'sub' + j + 'sub").src = "' + c + '";');
		}
	}
}


function writemenus()
{
	if ( !isIEMac )
	{
		document.write('<style>\n');
		if ( document.layers )
		{
			if ( navigator.platform == 'Win32' )
			{
				document.write('A.menu {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }\n');
				document.write('A.menu:link {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }\n');
				document.write('A.menu:active {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }\n');
				document.write('A.menu:visited {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none; }\n');
				document.write('A.menuSub {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }\n');
				document.write('A.menuSub:link {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }\n');
				document.write('A.menuSub:active {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }\n');
				document.write('A.menuSub:visited {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }\n');
			}
			else
			{
				document.write('A.menu {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }\n');
				document.write('A.menu:link {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }\n');
				document.write('A.menu:active {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }\n');
				document.write('A.menu:visited {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none; }\n');
				document.write('A.menuSub {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }\n');
				document.write('A.menuSub:link {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }\n');
				document.write('A.menuSub:active {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }\n');
				document.write('A.menuSub:visited {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }\n');
			}
		}
		else
		{
			document.write('A.menu {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }');
			document.write('A.menu:link {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }');
			document.write('A.menu:active {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }');
			document.write('A.menu:visited {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }');
			document.write('A.menuSub {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }');
			document.write('A.menuSub:link {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }');
			document.write('A.menuSub:active {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }');
			document.write('A.menuSub:visited {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }');
		}

		document.write('</style>');

		c = 4;

		styletag = '<style>\n\n';

		//TOPMENUS
		for ( i = 0; i < c; i++ )
		{
			menutops[i] = '<div id="menu' + i + 'top">';
			menutops[i] += '<table border="0" width="220" cellspacing="0" cellpadding="0">';
			menutops[i] += '<tr>';
			menutops[i] += '<td width="220" height="21"><a href="#" onmouseover="clearTimeout(menuTimer);showmenu(' + i + ');hidesubmenu(' + i + ', lastmenuitem);lastmenuitem = -1;" onmouseout="menuTimer = setTimeout(\'hidemenu(' + i + ')\', 250);"><img src="' + imgname[i] + '" height="21" width="180" border="0"></a></td>';
			menutops[i] += '</tr>';
			menutops[i] += '</table>';
			menutops[i] += '</div>';

			j_offset = 0;

			menuarrays[i] = "";
			menuarraysback[i] = "";
			menuarraysfront[i] = "";

			menusubarrays[i] = new Array();
			menusubarraysback[i] = new Array();
			menusubarraysfront[i] = new Array();

			clipsubheight[i] = new Array();
			for ( j = 0; j < eval('menuarray' + i + '.length'); j++ )
			{
				clipsubheight[i][j] = -1;
				haschildren = false;

				for ( k = 0; k < eval('menuarray' + i + '.length'); k++ )
				{
					if ( eval('menuarray' + i + '[' + k + '].par') == j )
					{
						haschildren = true;
					}
				}

				if ( haschildren == true )
				{
					styletag += '#menu' + i + 'sub' + j + 'sub { position: absolute; top: ' + ( ( ( j - j_offset ) * 25 ) + vertpos + 21 ) + 'px; left: ' + ( xpos[i] + 220 ) + 'px; visibility: hidden; z-index: 75; }\n';
					styletag += '#menu' + i + 'sub' + j + 'subback { position: absolute; top: ' + ( ( ( j - j_offset ) * 25 ) + vertpos + 21 ) + 'px; left: ' + ( xpos[i] + 220 ) + 'px; visibility: hidden; z-index: 74; }\n';
					styletag += '#menu' + i + 'sub' + j + 'subfront { position: absolute; top: ' + ( ( ( j - j_offset ) * 25 ) + vertpos + 21 ) + 'px; left: ' + ( xpos[i] + 220 ) + 'px; visibility: hidden; z-index: 76; }\n';

					menusubarrays[i][j] = '<div id="menu' + i + 'sub' + j + 'sub"><table border="0" cellpadding="0" cellspacing="0">\n';
					menusubarraysback[i][j] = '<div id="menu' + i + 'sub' + j + 'subback"><table border="0" cellpadding="0" cellspacing="0">\n';
					menusubarraysfront[i][j] = '<div id="menu' + i + 'sub' + j + 'subfront"><table border="0" cellpadding="0" cellspacing="0">\n';
				}
				else
				{
					menusubarrays[i][j] = '';
					menusubarraysback[i][j] = '';
					menusubarraysfront[i][j] = '';
				}

				if ( eval('menuarray' + i + '[' + j + '].par') == -1 )
				{
					styletag += '#menu' + i + 'sub' + j + ' { position: absolute; top: ' + ( ( j - j_offset ) * 25 ) + 'px; left: 0px; height: 25px; width: 220px; z-index: 75; }\n';

					menuarrays[i] += '<tr>\n\n<td height="25" width="165"><a href="#" class="menu"><nobr>&nbsp;&nbsp;' + eval('menuarray' + i + '[' + j + '].txt') + '&nbsp;&nbsp;</nobr></a></td><td width="15"><img src="';

					if ( haschildren == true )
					{
						menuarrays[i] += 'images/arr_rgt.gif';
					}
					else
					{
						menuarrays[i] += 'images/spacer.gif';
					}

					menuarrays[i] += '" height="21" width="15" border="0" align="right"></td>\n\n</tr>';

					menuarraysback[i] += '<tr>\n\n<td height="25" width="220"><img src="' + menubackground + '" name="menu' + i + 'back' + j + '" height="25" width="220" border="0"></td>\n\n</tr>';
					menuarraysfront[i] += '<tr>\n\n<td height="25" width="220"><a href="';

					if ( eval('menuarray' + i + '[' + j + '].url') != "" )
					{
						if ( eval('menuarray' + i + '[' + j + '].linktype') > 0 )
						{
							menuarraysfront[i] += 'javascript:popupURL(' + i + ', ' + j + ');';
						}
						else
						{
							menuarraysfront[i] += eval('menuarray' + i + '[' + j + '].url');
						}
					}
					else
					{
						menuarraysfront[i] += '#';
					}

					menuarraysfront[i] += '" onmouseover="menuitemover(' + i + ', ' + j + ', ' + haschildren + ');" onmouseout="menuitemout(' + i + ', ' + j + ', ' + haschildren + ');"><img src="images/spacer.gif" height="25" width="220" border="0"></a></td>\n\n</tr>';
				}
				else
				{
					j_offset++;

					menusubarrays[i][eval('menuarray' + i + '[' + j + '].par')] += '<tr>\n\n<td height="25"><a href="#" class="menuSub"><nobr>&nbsp;&nbsp;' + eval('menuarray' + i + '[' + j + '].txt') + '&nbsp;&nbsp;</nobr></a></td>\n\n</tr>\n';
					menusubarraysback[i][eval('menuarray' + i + '[' + j + '].par')] += '<tr>\n\n<td height="25" class=menuSub><img src="' + submenubackground + '" name="menuback' + i + 'sub' + j + 'sub" height="25" width="0220" border="0"></td>\n\n</tr>';
					menusubarraysfront[i][eval('menuarray' + i + '[' + j + '].par')] += '<tr>\n\n<td height="25"><a class=menuSub href="' + eval('menuarray' + i + '[' + j + '].url') + '" onmouseover="clearTimeout(menuTimer);clearTimeout(menuTimer1);changesubBG(' + i + ', ' + j + ', ' + eval('menuarray' + i + '[' + j + '].par') + ', submenuhighlight);" onmouseout="menuTimer1 = setTimeout(\'hidesubmenu(' + i + ', ' + eval('menuarray' + i + '[' + j + '].par') + ')\', 250);menuTimer = setTimeout(\'hidemenu(' + i + ')\', 250);changesubBG(' + i + ', ' + j + ', ' + eval('menuarray' + i + '[' + j + '].par') + ', submenubackground);"><img src="images/spacer.gif" height="25" width="0220" border="0"></a></td>\n\n</tr>';

					clipsubheight[i][j] = j_offset * 25;
				}
			}

			haschildren = false;
			lastfinishedmenu = -1;

			for ( j = 0; j < eval('menuarray' + i + '.length'); j++ )
			{
				for ( k = 0; k < eval('menuarray' + i + '.length'); k++ )
				{
					if ( ( eval('menuarray' + i + '[' + k + '].par') == j ) && ( lastfinishedmenu != j ) )
					{
						menusubarrays[i][j] += '<tr>\n\n<td height="1">';
						menusubarrays[i][j] += '<table border="0" width="100%" cellpadding="0" cellspacing="0">\n';
						menusubarrays[i][j] += '<tr>\n\n<td height="1"><img src="images/spacer.gif" name="widthtester' + i + 'sub' + j + '" height="1" width="100%" border="0"></td>\n\n</tr>\n';
						menusubarrays[i][j] += '</table>';
						menusubarrays[i][j] += '</td>\n\n</tr>\n';
						menusubarrays[i][j] += '</table></div>';
						menusubarraysback[i][j] += '</table></div>';
						menusubarraysfront[i][j] += '</table></div>';
						lastfinishedmenu = j;
					}
				}
			}

			menuarrays[i] = '<div id="menu' + i + '"><table border="0" width="220" cellspacing="0" cellpadding="0">' + menuarrays[i] + '</table></div>';
			menuarraysback[i] = '<div id="menu' + i + 'back"><table border="0" width="220" cellspacing="0" cellpadding="0">' + menuarraysback[i] + '</table></div>';
			menuarraysfront[i] = '<div id="menu' + i + 'front"><table border="0" width="220" cellspacing="0" cellpadding="0">' + menuarraysfront[i] + '</table></div>';

			styletag += '#menu' + i + 'top { position: absolute; top: ' + vertpos + 'px; left: ' + xpos[i] + 'px; z-index: 75; visibility: visible; }\n';
			styletag += '#menu' + i + ' { position: absolute; top: ' + ( vertpos + 21 ) + 'px; left: ' + xpos[i] + 'px; z-index: 75; visibility: hidden; }\n';
			styletag += '#menu' + i + 'back { position: absolute; top: ' + ( vertpos + 21 ) + 'px; left: ' + xpos[i] + 'px; z-index: 74; visibility: hidden; }\n';
			styletag += '#menu' + i + 'front { position: absolute; top: ' + ( vertpos + 21 ) + 'px; left: ' + xpos[i] + 'px; z-index: 76; visibility: hidden; }\n';
		}

		styletag += '\n</style>';

		document.write(styletag);

		for ( i = 0; i < c; i++ )
		{
			document.write(menutops[i]);
		}

		for ( i = 0; i < menuarrays.length; i++ )
		{
			document.write(menuarrays[i]);
		}
		for ( i = 0; i < menuarraysback.length; i++ )
		{
			document.write(menuarraysback[i]);
		}
		for ( i = 0; i < menuarraysfront.length; i++ )
		{
			document.write(menuarraysfront[i]);
		}

		for ( i = 0; i < menusubarrays.length; i++ )
		{
			for ( j = 0; j < menusubarrays[i].length; j++ )
			{
				if ( menusubarrays[i][j] != '' )
				{
					document.write(menusubarrays[i][j]);
				}
			}
		}
		for ( i = 0; i < menusubarrays.length; i++ )
		{
			clipsubwidth[i] = new Array();
			for ( j = 0; j < menusubarrays[i].length; j++ )
			{
				if ( menusubarrays[i][j] != '' )
				{
					clipsubwidth[i][j] = eval('cb_getImage("menu' + i + 'sub' + j + 'sub", "widthtester' + i + 'sub' + j + '").width');
				}
			}
		}
		for ( i = 0; i < menusubarraysback.length; i++ )
		{
			for ( j = 0; j < menusubarraysback[i].length; j++ )
			{
				if ( menusubarraysback[i][j] != '' )
				{
					document.write(menusubarraysback[i][j]);
					if ( document.layers )
					{
						eval('cb_getElementStyle("menu' + i + 'sub' + j + 'subback").clip.width = clipsubwidth[' + i + '][' + j + ']');
					}
					else
					{
						eval('cb_getElementStyle("menu' + i + 'sub' + j + 'subback").clip = "rect(0, ' + clipsubwidth[i][j] + ', 1000, 0)";');
					}
				}
			}
		}
		for ( i = 0; i < menusubarraysfront.length; i++ )
		{
			for ( j = 0; j < menusubarraysfront[i].length; j++ )
			{
				if ( menusubarraysfront[i][j] != '' )
				{
					document.write(menusubarraysfront[i][j]);
					if ( document.layers )
					{
						eval('cb_getElementStyle("menu' + i + 'sub' + j + 'subfront").clip.width = clipsubwidth[' + i + '][' + j + ']');
					}
					else
					{
						eval('cb_getElementStyle("menu' + i + 'sub' + j + 'subfront").clip = "rect(0, ' + clipsubwidth[i][j] + ', 1000, 0)";');
					}
				}
			}
		}
	}
	else
	{
		styletag = '<style>\n\n';
		styletag += 'A.menuClass {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }';
		styletag += 'A.menuClass:link {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }';
		styletag += 'A.menuClass:alink {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }';
		styletag += 'A.menuClass:vlink {  color: ' + menuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }';
		styletag += 'A.menuSubClass {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }';
		styletag += 'A.menuSubClass:link {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }';
		styletag += 'A.menuSubClass:alink {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }';
		styletag += 'A.menuSubClass:vlink {  color: ' + submenuforeground + '; FONT-FAMILY: arial, helvetica; FONT-SIZE: 11px; TEXT-DECORATION: none;  }';

		c = 4;

		for ( i = 0; i < c; i++ )
		{
			menutops[i] = '<div id="menu' + i + 'top">';
			menutops[i] += '<table border="0" width="220" cellspacing="0" cellpadding="0">';
			menutops[i] += '<tr>';
			menutops[i] += '<td width="220" height="21"><a href="#" onmouseover="clearTimeout(menuTimer);showmenu(' + i + ');hidesubmenu(' + i + ', lastmenuitem);lastmenuitem = -1;" onmouseout="menuTimer = setTimeout(\'hidemenu(' + i + ')\', 250);"><img src="' + imgname[i] + '" height="21" width="220" border="0"></a></td>';
			menutops[i] += '</tr>';
			menutops[i] += '</table>';
			menutops[i] += '</div>';

			j_offset = 0;

			menuarrays[i] = "";

			menusubarrays[i] = new Array();

			clipsubheight[i] = new Array();

			for ( j = 0; j < eval('menuarray' + i + '.length'); j++ )
			{
				clipsubheight[i][j] = -1;
				haschildren = false;

				for ( k = 0; k < eval('menuarray' + i + '.length'); k++ )
				{
					if ( eval('menuarray' + i + '[' + k + '].par') == j )
					{
						haschildren = true;
					}
				}

				if ( haschildren == true )
				{
					styletag += '#menu' + i + 'sub' + j + 'sub { position: absolute; top: ' + ( ( ( j - j_offset ) * 25 ) + vertpos + 21 ) + 'px; left: ' + ( xpos[i] + 220 ) + 'px; visibility: hidden; z-index: 75; }\n';

					menusubarrays[i][j] = '<div id="menu' + i + 'sub' + j + 'sub"><table border="0" cellpadding="0" cellspacing="0">\n';
				}
				else
				{
					menusubarrays[i][j] = '';
				}

				if ( eval('menuarray' + i + '[' + j + '].par') == -1 )
				{
					styletag += '#menu' + i + 'sub' + j + ' { position: absolute; top: ' + ( ( j - j_offset ) * 25 ) + 'px; left: 0px; height: 25px; width: 220px; z-index: 75; }\n';

					menuarrays[i] += '<tr>\n\n<td height="25" width="220" style="background-image: url( ' + menubackground + ' );" onmouseover="menuitemover(' + i + ', ' + j + ', ' + haschildren + ');this.style.backgroundImage = \'url( ' + menuhighlight + ' )\';" onmouseout="menuitemout(' + i + ', ' + j + ', ' + haschildren + ');this.style.backgroundImage = \'url( ' + menubackground + ' )\';"><a href="';

					if ( eval('menuarray' + i + '[' + j + '].url') != "" )
					{
						if ( eval('menuarray' + i + '[' + j + '].linktype') > 0 )
						{
							menuarrays[i] += 'javascript:popupURL(' + i + ', ' + j + ');';
						}
						else
						{
							menuarrays[i] += eval('menuarray' + i + '[' + j + '].url');
						}
					}
					else
					{
						menuarrays[i] += '#';
					}

					menuarrays[i] += '" class="menuClass"><nobr><img src="';

					if ( haschildren == true )
					{
						menuarrays[i] += 'images/arr_rgt.gif';
					}
					else
					{
						menuarrays[i] += 'images/spacer.gif';
					}

					menuarrays[i] += '" height="21" width="15" border="0" align="right">&nbsp;&nbsp;' + eval('menuarray' + i + '[' + j + '].txt') + '&nbsp;&nbsp;</nobr></a></td>\n\n</tr>';
				}
				else
				{
					j_offset++;

					menusubarrays[i][eval('menuarray' + i + '[' + j + '].par')] += '<tr>\n\n<td height="25" style="background-image: url( ' + submenubackground + ' );" onmouseover="clearTimeout(menuTimer);clearTimeout(menuTimer1);this.style.backgroundImage = \'url( ' + submenuhighlight + ' )\';" onmouseout="menuTimer1 = setTimeout(\'hidesubmenu(' + i + ', ' + eval('menuarray' + i + '[' + j + '].par') + ')\', 250);menuTimer = setTimeout(\'hidemenu(' + i + ')\', 250);this.style.backgroundImage = \'url( ' + submenubackground + ' )\';"><a href="';

					if ( eval('menuarray' + i + '[' + j + '].url') != "" )
					{
						if ( eval('menuarray' + i + '[' + j + '].linktype') > 0 )
						{
							menusubarrays[i][eval('menuarray' + i + '[' + j + '].par')] += 'javascript:popupURL(' + i + ', ' + j + ');';
						}
						else
						{
							menusubarrays[i][eval('menuarray' + i + '[' + j + '].par')] += eval('menuarray' + i + '[' + j + '].url');
						}
					}
					else
					{
						menusubarrays[i][eval('menuarray' + i + '[' + j + '].par')] += '#';
					}

					menusubarrays[i][eval('menuarray' + i + '[' + j + '].par')] += '" class="menuSubClass"><nobr>&nbsp;&nbsp;' + eval('menuarray' + i + '[' + j + '].txt') + '&nbsp;&nbsp;</nobr></a></td>\n\n</tr>\n';

					clipsubheight[i][j] = j_offset * 25;
				}
			}

			haschildren = false;
			lastfinishedmenu = -1;

			for ( j = 0; j < eval('menuarray' + i + '.length'); j++ )
			{
				for ( k = 0; k < eval('menuarray' + i + '.length'); k++ )
				{
					if ( ( eval('menuarray' + i + '[' + k + '].par') == j ) && ( lastfinishedmenu != j ) )
					{
						menusubarrays[i][j] += '</table></div>';
						lastfinishedmenu = j;
					}
				}
			}

			menuarrays[i] = '<div id="menu' + i + '"><table border="0" width="220" cellspacing="0" cellpadding="0">' + menuarrays[i] + '</table></div>';

			styletag += '#menu' + i + 'top { position: absolute; top: ' + vertpos + 'px; left: ' + xpos[i] + 'px; z-index: 75; visibility: visible; }\n';
			styletag += '#menu' + i + ' { position: absolute; top: ' + ( vertpos + 21 ) + 'px; left: ' + xpos[i] + 'px; z-index: 75; visibility: hidden; }\n';
		}

		styletag += '\n</style>';

		document.write(styletag);

		for ( i = 0; i < c; i++ )
		{
			document.write(menutops[i]);
		}

		for ( i = 0; i < menuarrays.length; i++ )
		{
			document.write(menuarrays[i]);
		}

		for ( i = 0; i < menusubarrays.length; i++ )
		{
			for ( j = 0; j < menusubarrays[i].length; j++ )
			{
				if ( menusubarrays[i][j] != '' )
				{
					document.write(menusubarrays[i][j]);
				}
			}
		}
	}
}



optmenu = false;;
optimgname = "images/r_menu.gif";
//hidedivs = [ "DROPDOWN" ];	
		

