/*
Sony Style Footer functions
AUTHOR: Peter Harnish
*/


/*
	Method: footerNavInit
			Sets up the 
	PRE: None
	POST: None
*/
function footerNavInit(){
	//We go through each link in the array and setup the links.
	
	$(footerNavLinksArray).each(function(e){		
		var navLink = document.createElement("A");
		$(navLink).setAttribute("href",e.linkURL);
		$(navLink).update(e.linkName);
		$(navLink).addClassName("directoryListingLink");
		
		var navList = document.createElement("LI");
		$(navList).setAttribute("rel",e.linkID);
		$(navList).setAttribute("id", "");
		$(navList).addClassName("footerDirectoryListItem");
		$(navList).appendChild(navLink);
		$('footerDirectoryListing').appendChild(navList)
	});
	// populate footer listing title with the content in the js variable setup by the backend.
	$('footerDirectoryListingTitle').update(footerNavLinkTitle)
}

/*
Closes error div created by Email Signup
*/
function closeEmailErrorPopup(){
	$('signUpResultsNotificationSection').hide();
	$('quickEmailSignupParentContainer').show();	
	$('emailSignUpSection').setStyle({ visibility: 'visible'});
}
