//feature drop down - ping
function expandBox(alertBoxId, dropDownValue) {
	//return;
	var cookievalue = getCookie ('wa2feature');
	//alert(cookievalue);
	//document.write(document.cookie);
	if (cookievalue != null) {
		cookievalue = cookievalue.substring(0, 10);
	}
	if (cookievalue == dropDownValue || dropDownValue == '') return;
	
	var alertBox = document.getElementById(alertBoxId);
	var contentBox = document.getElementById('boxContent');
	var maxHeight = 80;

	var moveBy = 10;
	var intId = setInterval(function() {

		var curHeight = alertBox.offsetHeight;

		var newHeight = curHeight + moveBy;
		if (newHeight < maxHeight)
			alertBox.style.height = newHeight + "px";
		else {
			clearInterval(intId);
			contentBox.style.display = 'block';
		}

	}, 30);	
};
function collapseBox(alertBoxId, cookieStoreValue) {
	var alertBox = document.getElementById(alertBoxId);
	var contentBox = document.getElementById('boxContent');
	var minHeight = 0;

	var moveBy = 10;
	contentBox.style.display = 'none';
	var intId = setInterval(function() {
		var curHeight = alertBox.offsetHeight;
		var newHeight = curHeight - moveBy;

		if (newHeight >= minHeight)
			alertBox.style.height = newHeight + "px";
		else {
			clearInterval(intId);			
		}

	}, 30);
	//collpasing will set cookie to disable drop feature
	setCookie('wa2feature', cookieStoreValue, exp)
};

<!--
function setCookie(name, value, expires) { 
	document.cookie = name + "=" + escape(value) + "; path=/" + ((expires == null) ? "" : "; expires=" + expires.toGMTString()); 
} 

var exp = new Date();     //set new date object 
exp.setTime(exp.getTime() + (1000 * 60 * 60 * 24 * 60));     //set it 60 days ahead

function getCookie (name) { 
	var dc = document.cookie;
	var cname = name + "="; 
	if (!dc) return;
	if (dc.length > 0) { 
		begin = dc.indexOf(cname); 
		if (begin != -1) { 
			begin += cname.length; 
			end = dc.indexOf(" ", begin);
			if (end == -1) end = dc.length;
			//alert(begin + '-' +end + '- ' + dc.length);
			return unescape(dc.substring(begin, end));
		} 
	} 
	return null; 
}

//-->