/* -------------------------------------------------------------------------------------------------
      tipp3-soccerdome.at
      JavaScript Functions
      by codeworks webagency 2006
      www.codeworks.cc
                                                                                                    */


function openImage(url)
{
    var newWidth = 400;
    var newHeight = 250;

    if(newWidth>screen.width-100) { newWidth = screen.width-100; }
    if(newHeight>screen.height-100) { newHeight = screen.height-100; }
    var left = (screen.width - newWidth) / 2;
    var top = (screen.height - newHeight) / 2;

    popUpWin = window.open('/showpic.php?url=' + url, 'popUpWin', 'status=1,toolbar=0,location=0,scrollbars=1,menubar=0,resizable=1,width=' + newWidth + ',height=' + newHeight + ',left=' + left + ',top=' + top);
    popUpWin.focus();

    return false;
}


function flip(span_id)
{
    display = ( document.getElementById( span_id ).style.display == 'none' ) ? 'block' : 'none';
    document.getElementById( span_id ).style.display = display;
    return false;
}


