function monthlyCSS()
{

//ENABLE MONTHLY
today=new Date();
thisMonth=today.getMonth() +1;

/*
//ENABLE RANDOMIZATION
thisMonth = Math.floor(Math.random()*12) + 1;
*/

//WRITE CSS FILE
document.write('<link rel="stylesheet" href="css/months/' + thisMonth + '.css" type="text/css" />');

}







function fixHeight()
{var side = document.getElementById('LeftSidebar');
var middle = document.getElementById('ContentArea');

if (side.offsetHeight > middle.offsetHeight)
{
	side.style.pixelHeight = middle.style.pixelHeight = side.offsetHeight + "px";
}
if (middle.offsetHeight > side.offsetHeight)
{
	middle.style.height = side.style.height = middle.offsetHeight + "px";
}
}

function themeTest()
{
var mth = prompt("Please enter a month number between 1 - 12", "");
document.write('<link rel="stylesheet" href="css/months/' + mth + '.css" type="text/css" />');
}



function writeTop()
{
	document.write('<div class="wrapper">');
	document.write('<div class="upperLeftLogo">');
	//document.write('<a class="loginLink" href="#">Associate Portal Login</a>');
	document.write('</div><div class="upperRightSeason monthColor"></div><div class="inSeasonArea"></div>');
	document.write('<div class="navigationBar">');
	document.write('<a class="navLink" href="index.htm">AMERIFRESH</a>');
	document.write('<a class="navLink" href="branches.htm">BRANCHES</a>');
	document.write('<a class="navLink" href="marketreport.aspx">MARKET REPORT</a>');
	document.write('<a class="navLink" href="snoboy.htm">SNOBOY</a>');
	document.write('<a class="navLink" href="safety.htm">FOOD SAFETY</a>');
	//document.write('<a class="navLink" href="transportation.htm">TRANSPORTATION</a>');
	document.write('</div><div class="middleWrapper">');		
}


function writeBottom()
{
	document.write('</div><div class="gutterWrapper"><div class="bottomLinks">');
	document.write('<a class="gutterLink">Copyright &copy; 2010 Amerifresh. All Rights Reserved.</a>');
	document.write('<a class="gutterLink" href="privacy.htm">Privacy Policy</a>');
	document.write('<a class="gutterLink" href="terms.htm">Terms of Use</a>');
	document.write('<a class="gutterLink" href="contact.htm">Contact Us</a>');
	document.write('<a class="gutterLink" href="sitemap.htm">Site Map</a>');
	document.write('</div><div class="rightGutterBorder monthColor"></div></div></div>');

	fixHeight();
}

function makeBold(el)
{
	document.getElementById(el).className = 'blink-bold';
}

function unBold(el)
{
	document.getElementById(el).className = 'blink';
}

function initAssociates()
{

document.write('<div class="associateInfo" id="AssociateInfo">');
document.write('<a href="#" onclick="closeAssociate()"><div class="closeBtn monthColor">X</div></a>');
document.write('<div id="AssociateName" class="associateName"></div>');
document.write('<div id="AssociateTitle" class="associateTitle"></div>');
document.write('<div id="AssociatePhone" class="associatePhone"></div>');
document.write('<div id="AssociateEmail" class="associateEmail"></div>');
document.write('<div id="AssociatePic" class="associatePic"></div></div>');

}

function associateInfo(fName, lName, title, phone, pic)
{
	email = fName + '_' + lName + '@amerifresh.com';
	
	document.getElementById('AssociateInfo').style.display = 'block';

	document.getElementById('AssociateName').innerHTML =
	fName + ' ' + lName;
	
	
	document.getElementById('AssociateTitle').innerHTML =
	title;

	document.getElementById('AssociateEmail').innerHTML =
	'<a class="associateEmail" href="mailto:' + email + '">Click here to email ' + fName + ' at</a><br/>' + email; 

	document.getElementById('AssociatePhone').innerHTML = 
	'Phone: ' + phone;

	document.getElementById('AssociatePic').innerHTML =
	'<img src="images/associates/' + pic + '"/>';

}

function closeAssociate()
{
document.getElementById('AssociateInfo').style.display = 'none';

}