function addBulletinzItem(givenLabel, givenHREF, isTop) {
	var bulletinzItem = new Object();
	bulletinzItem.label = givenLabel;
	bulletinzItem.href = givenHREF;
	bulletinzItem.top = isTop;
	
	return bulletinzItem;
}

function getBulletinz() {
	var bulletinzArray = new Array();
	
	bulletinzArray.push(addBulletinzItem("**NEW** Join the Search for the Magical Retriever!","bulletinz_tcg2.html", true));	
	bulletinzArray.push(addBulletinzItem("A Message from Ganz: On Account and Online Item Sales.","bulletinz_sales.html", true));
	bulletinzArray.push(addBulletinzItem("Questions about Pet of the Month? <span>Read This.</span>","bulletinz_potm.html", false));	
	bulletinzArray.push(addBulletinzItem("<strong>I cannot view the full Webkinz screen</strong>","bulletinz_fullscreen.html", false));
	bulletinzArray.push(addBulletinzItem("Problem with a pack of trading cards? Read this!","bulletinz_trading_cards_policy.html", true));
	bulletinzArray.push(addBulletinzItem("Important Message from Webkinz World","bulletinz_cheating.html", false));
	bulletinzArray.push(addBulletinzItem("Can't see the Login or New Member buttons?","bulletinz_login_issue.html", false));
	bulletinzArray.push(addBulletinzItem("Important Announcement:<br />Account Security, Responsibility and Termination","bulletinz_security.html", false));
	bulletinzArray.push(addBulletinzItem("Got a plush toy without a W? <span>Read this!</span>","bulletinz_magic_w.html", false));
	bulletinzArray.push(addBulletinzItem("Concerned about a rumor? <span>Read this!</span>","bulletinz_rumor.html", false));
	
	return bulletinzArray;
}

function listBulletinz(listAll) {
	var bulletinz = "";
	var bulletinzArray = getBulletinz();
	
	for (var i=0; i<bulletinzArray.length; i++) {
		if (!listAll && bulletinzArray[i].top) {
			bulletinz += '<a href="' + bulletinzArray[i].href + '">' + bulletinzArray[i].label + '</a>';
		} else if (listAll) {
			bulletinz += '<p class="header"><a href="' + bulletinzArray[i].href + '">' + bulletinzArray[i].label + '</a></p>';
		}
	}
	
	document.write(bulletinz);
}

