//set the wrapper height by the amount of content
function setHeight()
{
	var contentheight = document.getElementById('mainContent').clientHeight;
	var navheight = document.getElementById('leftnavmenu').clientHeight;
	var fillheight;
	
	fillheight = contentheight - navheight - 14;
	if (fillheight >= 0) 
	{
		document.getElementById('leftnavfill').style.height = fillheight + 'px';
	}
}

function setCookie(c_name,value,expiredays)
{
	var exdate = new Date()
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}
function getCookie(c_name)
{
	if (document.cookie.length > 0)
	{
		c_start=document.cookie.indexOf(c_name + "=");
		if (c_start != -1)
		{ 
			c_start = c_start + c_name.length + 1;
			c_end = document.cookie.indexOf(";", c_start);
			if (c_end == -1)
				{c_end = document.cookie.length;
			}
			return unescape(document.cookie.substring(c_start,c_end));
		} 
	}
	return "";
}
function checkSignoff()
{
	// update for individual site - cookie name (2 places), swf file name (2 places), width, and background color
	// puts flash in div container with id="signoff_switch"
	// call this function in the body onload event
	var viewed
	viewed=getCookie('azzolordview');
	if (viewed == null || viewed == '')
	{
		var so = new SWFObject('/flash/az_signature_ani-white.swf', 'azsignoff_swf', '763', '100%', '6');
        so.addParam('allowScriptAccess', 'sameDomain');
        so.addParam('movie', '/flash/az_signature_ani-white.swf');
        so.addParam('loop', 'false');
        so.addParam('quality', 'high');
        so.addParam('salign', 'r');
        so.addParam('bgcolor', '#007CC3');
        so.addParam('wmode', 'transparent');
        so.write('signoff_switch');
		setCookie('azzolordview','Yes',1);
	}
}