// Generic Cookie functies

function setCookie(sName, sValue, sPath, sExpires)
{
	if (!sPath)
		sPath = '/';

	if (!sExpires)
		sExpires = 'Fri, 31 Dec 2099 23:59:59 GMT';
	else if (sExpires instanceof Date)
		sExpires = sExpires.toGMTString();

	document.cookie = sName + '=' + escape(sValue) + '; expires=' + sExpires + '; path=' + sPath + '; domain=.' + document.domain;
}

function hideOldBrowserWarning(img)
{
	// 3 month's expiry
	var expires = new Date(new Date().getTime() + 90 * 86400000);
	setCookie('hideobwarning', '1', null, expires);
	img.parentNode.style.display = 'none';

}