// JavaScript Document

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

// Functions to open and close Marketing Opportunities

function openOffer(theOffer) {
	if(document.getElementById(theOffer).style.display == 'block') {
		document.getElementById(theOffer).style.display = 'none'; 
	}else{
		document.getElementById(theOffer).style.display = 'block';
	}
}
function closeOffer(theOffer) {
	document.getElementById(theOffer).style.display = 'none'; 
}
//Create an array
var allPageTags = new Array();
function openAllOffers(theClass) {
//Populate the array with all the page tags
var allPageTags=document.getElementsByTagName("*");
//Cycle through the tags using a for loop
for (i=0; i<allPageTags.length; i++) {
//Pick out the tags with our class name
if (allPageTags[i].className=='offerContainer') {
//Manipulate this in whatever way you want
allPageTags[i].style.display='block';
}
}
document.getElementById('closeAll').style.display = 'block'; 
document.getElementById('expandAll').style.display = 'none'; 
} 
function closeAllOffers(theClass) {
//Populate the array with all the page tags
var allPageTags=document.getElementsByTagName("*");
//Cycle through the tags using a for loop
for (i=0; i<allPageTags.length; i++) {
//Pick out the tags with our class name
if (allPageTags[i].className=='offerContainer') {
//Manipulate this in whatever way you want
allPageTags[i].style.display='none';
}
}
document.getElementById('closeAll').style.display = 'none'; 
document.getElementById('expandAll').style.display = 'block'; 
} 


//-->
