function flashpopoverShow() {
	document.getElementById("flashpopover").style.display = "block";

	var current_date = new Date;
    setCookie( "tango_flashpopover", 1, current_date.getFullYear(), current_date.getMonth(), current_date.getDate()+1);
}

function flashpopoverHide() {
	document.getElementById("flashpopover").style.display = "none";
}

function setCookie ( name, value, exp_y, exp_m, exp_d, path, domain, secure )
{
	var cookie_string = name + "=" + escape ( value );

	if ( exp_y ) {
		var expires = new Date ( exp_y, exp_m, exp_d );
		cookie_string += "; expires=" + expires.toGMTString();
	}

	if (path) cookie_string += "; path=" + escape ( path );
	if (domain) cookie_string += "; domain=" + escape ( domain );
	if (secure) cookie_string += "; secure";

	document.cookie = cookie_string;
}

function getCookie ( name )
{
	var results = document.cookie.match ( '(^|;) ?' + name + '=([^;]*)(;|$)' );

	if ( results )
		return ( unescape ( results[2] ) );
	else
		return null;
}