function activateFlash (containerID)
{
    if (getInternetExplorerVersion () != -1)
    {
        var container = document.getElementById (containerID);
        var html = container.innerHTML; 
        container.innerHTML = html;
    }
}

function getInternetExplorerVersion()
{
    var rv = -1;
    if (navigator.appName == 'Microsoft Internet Explorer')
    {
        var ua = navigator.userAgent;
        var re  = new RegExp ("MSIE ([0-9]{1,}[\.0-9]{0,})");
        if (re.exec (ua) != null)
        {
        	rv = parseFloat (RegExp.$1);
        }
    }
    return rv;
}
function swap_content( span, span2, span3 ) {
	displayType = ( document.getElementById( span ).style.display == 'none' ) ? 'block' : 'none';
	document.getElementById( span ).style.display = displayType;
	displayType = ( document.getElementById( span2 ).style.display == 'none' ) ? 'block' : 'none';
	document.getElementById( span2 ).style.display = displayType;
	displayType = ( document.getElementById( span3 ).style.display == 'inline-block' ) ? 'none' : 'inline-block';
	document.getElementById( span3 ).style.display = displayType;
}
function popUp(URL) {
id = "pop";
x_ = 800;
y_ = 280;
scroll_ = 1;
l_ = (screen.width-x_)/2;
t_ = (screen.height-y_)/2;
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=' + scroll_ + ',location=0,statusbar=0,menubar=0,resizable=0,width=' + x_ + ',height=' + y_ + ',left=' + l_ + ',top=' + t_);onclick:page" + id + ".focus();");
}

function popUpFoto(URL) {
id = "pop2";
x_ = 700;
y_ = 740;
scroll_ = 1;
l_ = (screen.width-x_)/2;
t_ = (screen.height-y_)/2;
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=' + scroll_ + ',location=0,statusbar=0,menubar=0,resizable=0,width=' + x_ + ',height=' + y_ + ',left=' + l_ + ',top=' + t_);onclick:page" + id + ".focus();");
}