




function NavTab(URL, ImgOn, ImgOnWidth, ImgOnHeight, ImgOff, ImgOffWidth, ImgOffHeight, ALT, base) {	
	this.imgOn = new MCImage(relative(ImgOn, base), ImgOnWidth, ImgOnHeight);
	this.imgOff = new MCImage(relative(ImgOff, base), ImgOffWidth, ImgOffHeight);
	this.hasImage = (ImgOff.length > 0)?true:false;
	this.key = URL;
	this.url = relative(URL, base);
	this.alt = ALT;
	this.inPath = false;
	this.subnav = new Array();	
}

function MCImage(s, w, h) {
	this.src = s;
	this.width = new Number(w);
	this.height = new Number(h);	
}

function NavLink(URL, Label, base) {
	this.label = Label;
	this.key = URL;
	this.url = relative(URL, base);
	this.inPath = false;
	this.subnav = new Array();	
}

function NavSystem() {
	this.nPrimary = null;
	this.nSecondary = null;
	this.nTertiary = null;
	this.baseURL = "";
	this.subnav = new Array();
}		

function writeNavTabs() {
	var navObj = getNavObject(this.baseURL, this);
	baseURLTokens = this.baseURL.split("/");
	
	if (navObj) navObj.url = baseURLTokens[baseURLTokens.length-1];
							
	function getNavObject(key, base) {
		var i; 
		var myKey = key;
		var myBase = base;
		var myObj = null;
		for (i=0; i < myBase.subnav.length; i++) {		
			if (myKey == myBase.subnav[i] || myKey == myBase.subnav[i] + "index.html") {
				setNavPath(myBase.subnav[i].item);
			 	return myBase.subnav[i].item;
			} 
			if (myBase.subnav[i].item.subnav.length) {
				myObj = getNavObject(myKey, myBase.subnav[i].item)
				if (myObj != null) {
					setNavPath(myObj);
					return myObj;
				}
			}					
		}
	}
	
	function setNavPath($obj) {
		var obj = $obj;
		obj.inPath = true;
		if (obj.parent) setNavPath(obj.parent);
	}			
	
	document.write("<table border='0' cellpadding='0' cellspacing='0'>");
	document.write("<tr>");
	var selectedTabIdx;

	// Primary Navigation Tabs	

	var wp = new Array();
	var wpi = new Array();	
		
		for (i=0; i < this.subnav.length; i++) {
			if (this.subnav[i].item.inPath) {		
				if (this.subnav[i].item.hasImage) document.write("<td><a href='" + this.subnav[i].item.url + "'><img src='" + this.subnav[i].item.imgOn.src + "' alt='" + this.subnav[i].item.alt + "' width='" + this.subnav[i].item.imgOn.width + "' height='" + this.subnav[i].item.imgOn.height + "' border='0'></a></td>");	
				//if (this.subnav[i].item.hasImage) document.write("<td><a href='" + this.subnav[i].item.url + "' onClick='javascript:setCurrentTab(" + i + ");'" + "><img src='" + this.subnav[i].item.imgOn.src + "' alt='" + this.subnav[i].item.alt + "' width='" + this.subnav[i].item.imgOn.width + "' height='" + this.subnav[i].item.imgOn.height + "' border='0'></a></td>");
				this.nPrimary = this.subnav[i].item;
				this.nPrimaryIMG = this.subnav[i].item.url;
				wpi[i] = this.subnav[i].item.url;
				wp[i] = this.subnav[i].item.imgOn.width;
				wsstag_category = this.subnav[i].item.alt;						
				selectedTabIdx = i;
			} else {
			if (this.subnav[i].item.hasImage) document.write("<td><a href='" + this.subnav[i].item.url + "'><img src='" + this.subnav[i].item.imgOff.src + "' alt='" + this.subnav[i].item.alt + "' width='" + this.subnav[i].item.imgOff.width + "' height='" + this.subnav[i].item.imgOff.height + "' border='0'></a></td>");	
			//if (this.subnav[i].item.hasImage) document.write("<td><a href='" + this.subnav[i].item.url + "' onClick='javascript:setCurrentTab(" + i + ");'" + "><img src='" + this.subnav[i].item.imgOff.src + "' alt='" + this.subnav[i].item.alt + "' width='" + this.subnav[i].item.imgOff.width + "' height='" + this.subnav[i].item.imgOff.height + "' border='0'></a></td>");
						this.nPrimaryIMG = this.subnav[i].item.url;
						wpi[i] = this.subnav[i].item.url;
			wp[i] = this.subnav[i].item.imgOn.width;
		}				
	}
	
	document.write("<td width='100%' background='" + relative("/au/images/nav_rule.gif", this.baseURL) + "'><img src='" + relative("/au/images/nav_rule.gif", this.baseURL) + "' alt='rule' width='100%' height='16' border='0'></td>");
	document.write("</tr>");
	document.write("</table>");
	
	document.write("<table width='100%' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF'>");
	document.write("<tr>");	
	
	// Secondary Navigation Tabs			
	if (this.nPrimary && this.nPrimary.subnav.length) {
		var L = 0;
		for (i=0; i < this.nPrimary.subnav.length; i++) {
			L += this.nPrimary.subnav[i].item.imgOff.width;
		}
				
				var secondNavTabWidth = (L/2);
				var currentPrimaryTabWidth = getWidth(selectedTabIdx,wp);

		
//		document.write("<td><img src='" + this.spacer.src + "' width='" + (((2*this.nPrimary.index+1)*this.subnav[this.nPrimary.index].item.imgOff.width-L)/2) + "' height='26' alt='' border='0'></td>");
	
			if ((currentPrimaryTabWidth - secondNavTabWidth) != -1 ) {
				document.write("<td><img src='" + this.spacer.src + "' width='" + (currentPrimaryTabWidth - secondNavTabWidth) + "' height='26' alt='' border='0'></td>");
			}
			else {
				if (( currentPrimaryTabWidth - secondNavTabWidth ) > window.screen.availWidth) {
				document.write("<td><img src='" + this.spacer.src + "' width='" + (window.screen.availWidth - (secondNavTabWidth*2)) + "' height='26' alt='' border='0'></td>");
			}}

	
        if (this.nPrimary.subnav[0].item.hasImage)
            document.write("<td><img src='" + relative("/au/images/nav_sub_left-border.gif", this.baseURL) + "' width='1' height='16' border='0' alt=''></td>");

		for (i=0; i < this.nPrimary.subnav.length; i++) {
			if (this.nPrimary.subnav[i].item.inPath) {
				if (this.nPrimary.subnav[i].item.hasImage) document.write("<td><img src='" + this.nPrimary.subnav[i].item.imgOn.src + "' width='" + this.nPrimary.subnav[i].item.imgOn.width + "' height='" + this.nPrimary.subnav[i].item.imgOn.height + "' alt='" + this.nPrimary.subnav[i].item.alt + "' border='0'></td>");
				this.nSecondary = this.nPrimary.subnav[i].item;
			} else {
				if (this.nPrimary.subnav[i].item.hasImage) document.write("<td><a href='" + this.nPrimary.subnav[i].item.url + "'><img src='" + this.nPrimary.subnav[i].item.imgOff.src + "' width='" + this.nPrimary.subnav[i].item.imgOff.width + "' height='" + this.nPrimary.subnav[i].item.imgOff.height + "' alt='" + this.nPrimary.subnav[i].item.alt + "' border='0'></a></td>");	
			}				
		}
	
		document.write("<td width='100%'>&nbsp;</td>");
		document.write("</tr>");
		document.write("<tr>");
		document.write("<td width='100%' bgcolor='#FFFFFF' colspan='" + (this.nPrimary.subnav.length + 3) + "'><img src='" + this.spacer.src + "' width='1' height='26' alt='' border='0'></td>");
		document.write("</tr>");
		
	} else {
		document.write("<td width='100%' bgcolor='#FFFFFF'><img src='" + this.spacer.src + "' width='1' height='26' alt='' border='0'></td>");
		document.write("</tr>");
	}
	
	document.write("</table>");
	document.write("</td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td bgcolor='#FFFFFF' valign='top'>");
}

function writeSubNav() {
	if (this.nSecondary && this.nSecondary.subnav.length) {
		document.write("<table border='0' cellspacing='0' cellpadding='0' width='200'>");
		document.write("<tr>");
		document.write("<td rowspan='100%'><img src='" + this.spacer.src + "' width='25' height='1' alt='' border='0'/></td>");
		document.write("<td><img src='" + this.spacer.src + "' width='15' height='15' alt='' border='0'/></td>");
		document.write("<td width='100%'><img src='" + this.spacer.src + "' width='1' height='1' alt='' border='0'/></td>");
		document.write("<td rowspan='100%'><img src='" + this.spacer.src + "' width='15' height='1' alt='' border='0'/></td>");
		document.write("</tr>");
		for (i=0; i < this.nSecondary.subnav.length; i++) {
			if (this.nSecondary.subnav[i].item.inPath) {
				this.nTertiary = this.nSecondary.subnav[i].item;
				document.write("<tr>");
				document.write("<td valign='top'><img src='/au/images/arrow_down.gif' width='13' height='8' alt='' border='0' vspace='3'></td>");
				document.write("<td>");
				document.write("<a href='" + this.nSecondary.subnav[i].item.url + "' class='linkselected'>" + this.nSecondary.subnav[i].item.label + "</a>");
				if (this.nTertiary.subnav.length) {
					for (j=0; j < this.nTertiary.subnav.length; j++) {
						document.write("<br /><img src='/au/images/arrow_right_small.gif' width='9' height='7' alt='' border='0'><a href='" + this.nTertiary.subnav[j].item.url + "' class='linksmall'>" + this.nTertiary.subnav[j].item.label + "</a>");
					}
				}
				document.write("</td>");
				document.write("</tr>");
			} else {
				document.write("<tr>");
				document.write("<td valign='top'><img src='/au/images/arrow_right_large.gif' width='6' height='11' alt='' border='0' hspace='3' vspace='3'></td>");
				document.write("<td><a href='" + this.nSecondary.subnav[i].item.url + "' class='link'>" + this.nSecondary.subnav[i].item.label + "</a></td>");
				document.write("</tr>");
			}
			document.write("<tr>");
			document.write("<td colspan='2'><img src='" + this.spacer.src + "' width='1' height='3' alt='' border='0'></td>");
			document.write("</tr>");		
		}
		document.write("<tr>");
		document.write("<td colspan='2'><img src='" + this.spacer.src + "' width='1' height='20' alt='' border='0'></td>");
		document.write("</tr>");
		document.write("</table>");
	}
}

function writeFooterLinks() {
	var home = this.subnav[0].item;
	for (i=0; i<home.subnav.length; i++) {
		document.write("<a href='" + home.subnav[i].item.url + "' class='globalHeaderLinks'>" + home.subnav[i].item.alt + "</a>");
		if (i != home.subnav.length-1) document.write(" | ");
	}	
}

function getCookie(name) {
	var allcookies = document.cookie;
	var pos = allcookies.indexOf(name+"=");
	var value = "";
	if (pos != -1) {
		var start = pos + name.length + 1;
		var end = allcookies.indexOf(";", start);
		if (end == -1) end = allcookies.length;
		var value = allcookies.substring(start, end);
		value = unescape(value);
	}
	return value;
}

function setCookie(name, value) {
	var nextyear = new Date();
	nextyear.setFullYear(nextyear.getFullYear() + 1);
	
	var sCookie = name + "=" + escape(value);
	sCookie += "; expires=" + nextyear.toGMTString();
	sCookie += "; path=/";
	//sCookie += "; domain=mastercard.com";
	
	document.cookie = sCookie;
}

function deleteCookie(name) {
	var lastyear = new Date();
	lastyear.setFullYear(lastyear.getFullYear() - 1);
	
	document.cookie = name + "=; expires=" + lastyear.toGMTString();
}

function pop(url) {
	var h = 540; // height of the window
	var w = 410; // width of the window
	var winleft = 75;
  	var wintop = 125;
	if(parseInt(navigator.appVersion)>=4) {
		winleft = (screen.width-w)/2;
		wintop = (screen.height-h)/2;
	}
	settings='height=' + h + ',width=' + w + ',top=' + wintop + ',left=' + winleft + ',scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes,dependent=no'
	window.open(url,"PopUp",settings);
	return void(null);

}

function relative(resourceURL, locationURL) {
	var relativePath = "";
	
	if ((resourceURL.indexOf("http://") == 0)||(resourceURL.indexOf("https://") == 0)) {
		relativePath = 'javascript:pop("' + resourceURL + '")';
		return relativePath;
	}
	
	aResource = resourceURL.substring(1, resourceURL.length).split("/");
	aLocation = locationURL.substring(1, locationURL.length).split("/");

	// first, remove anything in either path that is common
	var start = 0;
	
	for (m=0; m<aResource.length; m++) {
		if (m <= aLocation.length && aResource[m] != aLocation[m]) {
			start = m;			
			break;					
		}
	}
	
	aResource = aResource.slice(start, aResource.length);
	aLocation = aLocation.slice(start, aLocation.length);
	
	// then, get the relativePathative path from locationURL to the root
	var n = 0;
	while (n < aLocation.length-1) {
		relativePath += "../";
		n++;		
	}

	// lastly, add each remaining element of the resource path to the relativePath path.
	for (p=0; p<aResource.length; p++) {
		relativePath = (p==aResource.length-1)?relativePath + aResource[p]:relativePath + aResource[p] + "/";
	}

	return relativePath;
}

function addNavSystemObject(obj) {
	index = this.subnav.length;
	key = this.subnav[index] = new String(obj.key);
	key.item = obj;
	key.item.index = index;
	return key.item;
}

function addNavTabObject(obj) {
	index = this.subnav.length;
	key = this.subnav[index] = new String(obj.key);
	obj.parent = this;
	//if(!obj.hasImage) this.imgOn = this.imgOff;
	key.item = obj;
	return key.item;
}

function addNavLinkObject(obj) {
	index = this.subnav.length;
	key = this.subnav[index] = new String(obj.key);
	obj.parent = this;
	key.item = obj;
	return key.item;
}

function setBaseURL(URL) {
	glbBaseURL = URL;
	this.baseURL = URL;
	this.glbBaseURL = URL;
	this.spacer = new Image();
	this.spacer.src = relative("/au/images/spacer.gif", this.baseURL);
		



	
			
			
			navL1 = this.add(new NavTab("/au/index.html","/au/wce/GIF/4739_home_on.gif","113","16","/au/wce/GIF/4738_home_off.gif","113","16","Home ", this.baseURL));

			


				


						navL2 = navL1.add(new NavTab("/au/general/aboutus/","","","","","","","About Us", this.baseURL));
							
								
						navL3 = navL2.add(new NavLink("/au/general/aboutus/","About Us", this.baseURL));			
											
								
							
								
						navL3 = navL2.add(new NavLink("/au/general/aboutus/corporate_overview.html","Corporate Overview", this.baseURL));			
											
								
							
								
						navL3 = navL2.add(new NavLink("/au/general/aboutus/innovations.html","Innovation & Technology", this.baseURL));			
											
								
							
								
						navL3 = navL2.add(new NavLink("/au/general/aboutus/press_office.html","Press Office", this.baseURL));			
											
								
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/general/copyright.html","","","","","","","Copyright", this.baseURL));
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/general/faqs/index.html","","","","","","","FAQs", this.baseURL));
							
								
						navL3 = navL2.add(new NavLink("/au/general/faqs/faq_current.html","Current MasterCard Cardholder", this.baseURL));			
											
								
							
								
						navL3 = navL2.add(new NavLink("/au/general/faqs/faq_applying.html","Applying for a Card", this.baseURL));			
											
								
							
								
						navL3 = navL2.add(new NavLink("/au/general/faqs/faq_atm.html","ATM", this.baseURL));			
											
								
							
								
						navL3 = navL2.add(new NavLink("/au/general/faqs/faq_cardholder.html","Cardholder Disputes", this.baseURL));			
											
								
							
								
						navL3 = navL2.add(new NavLink("/au/general/faqs/faq_privacy.html","Privacy", this.baseURL));			
											
								
							
								
						navL3 = navL2.add(new NavLink("/au/general/faqs/faq_lost.html","Lost or Stolen Card", this.baseURL));			
											
								
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/general/privacy_policy.html","","","","","","","Privacy Policy", this.baseURL));
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/general/site_map.html","","","","","","","Site Map", this.baseURL));
							
					
			
		



	
			
			
			navL1 = this.add(new NavTab("/au/findacard/index.html","/au/wce/GIF/4733_findacard_on.gif","113","16","/au/wce/GIF/4732_findacard_off.gif","113","16","Find a Card", this.baseURL));

			


				


						navL2 = navL1.add(new NavTab("/au/findacard/cardprofiles/","/au/wce/GIF/4729_findacard_cardprofiles_on.gif","107","17","/au/wce/GIF/4728_findacard_cardprofiles_off.gif","107","17","Compare All Cards", this.baseURL));
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/findacard/standard/","/au/wce/GIF/4737_findacard_standard_mc_on.gif","122","17","/au/wce/GIF/4737_findacard_standard_mc_off.gif","122","17","Standard MasterCard", this.baseURL));
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/findacard/creditcard/gold_card.html","/au/wce/GIF/4731_findacard_gold_on.gif","70","17","/au/wce/GIF/4730_findacard_gold_off.gif","70","17","Gold Card", this.baseURL));
							
								
						navL3 = navL2.add(new NavLink("/au/findacard/creditcard/gold_card_benefits.html","Benefits", this.baseURL));			
											
								
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/findacard/creditcard/platinum_card.html","/au/wce/GIF/4735_findacard_platinum_on.gif","88","17","/au/wce/GIF/4734_findacard_platinum_off.gif","88","17","Platinum Card", this.baseURL));
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/findacard/debit/","/au/wce/GIF/14426_findacard_debt_on.gif","77","17","/au/wce/GIF/14427_findacard_debt_off.gif","77","17","Debit", this.baseURL));
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/findacard/Cirrus/","/au/wce/GIF/15074_cirrus_tab_selecta.gif","77","17","/au/wce/GIF/15073_cirrus_tab.gif","77","17","Cirrus", this.baseURL));
							
					
			
		



	
			
			
			navL1 = this.add(new NavTab("/au/cardholderservices/","/au/wce/GIF/4723_cardholderservices_on.gif","113","16","/au/wce/GIF/4722_cardholderservices_off.gif","113","16","Cardholder Services", this.baseURL));

			


				


						navL2 = navL1.add(new NavTab("/au/cardholderservices/securecode/index.html","/au/images/securecode_on.gif","141","17","/au/images/securecode_off.gif","141","17","MasterCard SecureCode™", this.baseURL));
							
								
						navL3 = navL2.add(new NavLink("/au/cardholderservices/securecode/index.html","Introducing MasterCard SecureCode™", this.baseURL));			
											
								
							
								
						navL3 = navL2.add(new NavLink("/au/cardholderservices/securecode/faqs.html","Frequently Asked Questions", this.baseURL));			
											
								
							
								
						navL3 = navL2.add(new NavLink("/au/cardholderservices/securecode/sc_newbie.html","Secure Shopping 101", this.baseURL));			
											
								
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/cardholderservices/automaticbillpayment/index.html","/au/wce/GIF/8661_automaticbillpay_on.gif","134","25","/au/wce/GIF/8660_automaticbillpay_off.gif","134","25","Automatic Bill Payment", this.baseURL));
							
								
						navL3 = navL2.add(new NavLink("/au/cardholderservices/automaticbillpayment/index.html","Automatic Bill Payment", this.baseURL));			
											
								
							
								
						navL3 = navL2.add(new NavLink("/au/cardholderservices/automaticbillpayment/faq.html","Frequently Asked Questions", this.baseURL));			
											
								
							
					
			


				


						navL2 = navL1.add(new NavTab("http://www.mastercard.com/atmlocator/cobrand/index.jsp?lang=en&country=AUS&var=COBRAND","/au/wce/GIF/4757_atmlocator_on.gif","82","17","/au/wce/GIF/4756_atmlocator_off.gif","82","17","ATM Locator", this.baseURL));
							
								
						navL3 = navL2.add(new NavLink("/au/cardholderservices/atm/atm-tips.html","ATM Tips", this.baseURL));			
											
								
							
								
						navL3 = navL2.add(new NavLink("/au/cardholderservices/atm","ATM Locator Home", this.baseURL));			
											
								
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/cardholderservices/paypass/index.html","/au/wce/GIF/paypass-locator_on.gif","100","17","/au/wce/GIF/paypass-locator_off.gif","100","17","PayPass Locator", this.baseURL));
							
					
			


				


						navL2 = navL1.add(new NavTab("/cgi-bin/rgn_emergserv.cgi?rgn=au","/au/wce/GIF/4759_emergencyservices_on.gif","111","17","/au/wce/GIF/4758_emergencyservices_off.gif","111","17","Emergency Services", this.baseURL));
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/cardholderservices/globalnetwork/benefits.html","/au/wce/GIF/4761_globalnetwork_on.gif","96","17","/au/wce/GIF/4760_globalnetwork_off.gif","96","17","Global Network", this.baseURL));
							
								
						navL3 = navL2.add(new NavLink("/au/cardholderservices/globalnetwork/benefits.html","Global Network Benefits", this.baseURL));			
											
								
							
					
			
		



	
			
			
			navL1 = this.add(new NavTab("/au/exclusives/","/au/wce/GIF/4727_exclusives_on.gif","113","16","/au/wce/GIF/4726_exclusives_off.gif","113","16","Exclusives", this.baseURL));

			


				


						navL2 = navL1.add(new NavTab("/au/exclusives/applause/","/au/wce/GIF/7290_applause_on.gif","61","17","/au/wce/GIF/7289_applause_off.gif","61","17","applause", this.baseURL));
							
					
			
		



	
			
			
			navL1 = this.add(new NavTab("/au/education/","/au/wce/GIF/4725_education_on.gif","112","16","/au/wce/GIF/4724_education_off.gif","112","16","Consumer Education", this.baseURL));

			


				


						navL2 = navL1.add(new NavTab("/au/education/applying/","/au/wce/GIF/4773_applyingforcreditcard_on.gif","141","17","/au/wce/GIF/4772_applyingforcreditcard_off.gif","141","17","Applying for Credit Cards", this.baseURL));
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/education/chipcard/","/au/wce/GIF/nav_sub_chip-cards_on.gif","78","17","/au/wce/GIF/nav_sub_chip-cards_off.gif","78","17","Chip Cards", this.baseURL));
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/education/privacy/","/au/wce/GIF/4775_yourprivacy_on.gif","78","17","/au/wce/GIF/4774_yourprivacy_off.gif","78","17","Your Privacy", this.baseURL));
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/education/shoponline/","/au/wce/GIF/4777_safeshopping_on.gif","122","17","/au/wce/GIF/4776_safeshopping_off.gif","122","17","Safe Shopping Online", this.baseURL));
							
								
						navL3 = navL2.add(new NavLink("/au/education/shoponline/ewallet.html","Find out the benefits of e-Wallet", this.baseURL));			
											
								
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/budgetbasics/index.html","/au/wce/GIF/13575_budgetbasics_on.gif","89","17","/au/wce/GIF/13576_budgetbasics_off.gif","89","17","Budget Basics", this.baseURL));
							
								
						navL3 = navL2.add(new NavLink("/au/budgetbasics/index.html","Budget Basics", this.baseURL));			
											
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/budgetingstep1.html","Budgeting Step 1", this.baseURL));			
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/smartsteps.html","10 Smart Steps", this.baseURL));			
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/rewardsofgettingout.html","Rewards of Budgeting", this.baseURL));			
								
							
								
						navL3 = navL2.add(new NavLink("/au/budgetbasics/debtwarningsigns.html","Debt Warning Signs", this.baseURL));			
											
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/causesoffinancial.html","Causes of Financial Crisis", this.baseURL));			
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/quiz.html","Quiz", this.baseURL));			
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/howtohelp.html","Helping Your Friends and Family", this.baseURL));			
								
							
								
						navL3 = navL2.add(new NavLink("/au/budgetbasics/assessyourdebt.html","Assess Your Debt", this.baseURL));			
											
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/manageyourdebt.html","Manage Your Debt", this.baseURL));			
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/paymorethan.html","Pay More Than The Minimum", this.baseURL));			
								
							
								
						navL3 = navL2.add(new NavLink("/au/budgetbasics/knowyourcredithistory.html","Know Your Credit History", this.baseURL));			
											
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/requestyourcredit.html","Request Your Credit Report", this.baseURL));			
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/disputeerrors.html","Dispute Errors", this.baseURL));			
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/buildgood.html","Build Good Credit", this.baseURL));			
								
							
								
						navL3 = navL2.add(new NavLink("/au/budgetbasics/payoffyourdebt.html","Pay Off Your Debt", this.baseURL));			
											
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/waystosave.html","Ways To Save", this.baseURL));			
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/gettinghelp.html","Getting Help", this.baseURL));			
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/whatisdebtreduction.html","Debt Reduction Settlements", this.baseURL));			
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/filingforbankruptcy.html","Filiing For Bankruptcy", this.baseURL));			
								
							
								
						navL3 = navL2.add(new NavLink("/au/budgetbasics/debtresources.html","Debt Resources", this.baseURL));			
											
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/debtquestions.html","Debt Questions", this.baseURL));			
								
						navL4 = navL3.add(new NavLink("/au/budgetbasics/helpfullinks.html","Helpful Links", this.baseURL));			
								
							
					
			


				


						navL2 = navL1.add(new NavTab("/au/education/glossary/","/au/wce/GIF/4781_glossary_on.gif","59","17","/au/wce/GIF/4780_glossary_off.gif","59","17","Glossary", this.baseURL));
							
					
			
		



	
			
			
			navL1 = this.add(new NavTab("/au/moments/index.html","/au/wce/GIF/12880_moments_on.gif","112","16","/au/wce/GIF/12877_moments_off.gif","112","16","MasterCard Moments", this.baseURL));

			
		



	
			
			
			navL1 = this.add(new NavTab("/au/promotions/index.html","/au/wce/GIF/4742_promotions_on.gif","113","16","/au/wce/GIF/4741_promotions_off.gif","113","16","Promotions", this.baseURL));

			


				


						navL2 = navL1.add(new NavTab("/au/happyfeet/index.html","","","","","","","", this.baseURL));
							
					
			
		

}

NavSystem.prototype.setBaseURL = setBaseURL;
NavSystem.prototype.writeNavTabs = writeNavTabs;
NavSystem.prototype.writeSubNav = writeSubNav;
NavSystem.prototype.writeFooterLinks = writeFooterLinks;
NavSystem.prototype.add = addNavSystemObject;
NavTab.prototype.add = addNavTabObject;
NavLink.prototype.add = addNavLinkObject;

function getTabNumber(selectedTabUrl, tabUrls) {
	alert("Selected Tab Url: " +selectedTabUrl);
	
	for(m=0; m < tabNames.length; m++) {
	alert("Current Loop Tab Url: " +tabUrls[m]);
		if (selectedTabUrl == tabUrls[m])  {
//			wpt += (wp[m]/2);
			alert("M " +m);
			return m;
//			document.write("<td><img src='" + this.spacer.src + "' width='" + (wpt-b) + "' height='26' alt='' border='0'></td>");	
		}
	}
}	





// this function is called whenever a tab is clicked in order to obtain the index of the selected tab
function setCurrentTab(tabIdx) {
    this.selectedTabIdx = tabIdx;
    //alert("tabIndex: " + tabIdx);
//    alert("tabIndex: " + this.selectedTabIdx);
}


// obtain the width for the currently selected tab
function getWidth(tabIdx,wp) {

   var width = wp[tabIdx]/2;
//   alert("last tab width: " + width);
   
   if( tabIdx > 0 ) {
      for( var i=0; i < tabIdx; i++ ) {
         width = width + wp[i];
//         alert("width + tabIdx(" + i + "): " + width);
      }
   }
   
   return width;   
}



var nav = new NavSystem();



