/*This page is developed an designed by e8media - agency for digital media, mailto:info@e8media
 * Contact: Oliver Meding, Goerreshof 152, D-53347 Alfter, Germany, Phone +49 2222 922568
 *
 * Development & source code & CSS-Styles by Tobias Kivelip, mailto:tobias@kivelip.net
 * Screendesign by Stefan Weber, mailto:stefan@infectiousarts.de
 *
 * Copyright: The copyright for any material created by the author is reserved.
*/
// ---------------- Add hover-effect for all list items, necessary for all IE ----------------
addHover = function()
{
    // ---- Get all list items
    var liItems = document.getElementsByTagName("LI");
    // ---- Pass through all list items
    for (var i=0; i < liItems.length; i++)
    {
        // ---- Add mouseover-function
        liItems[i].onmouseover = function()
        {
            this.className += " hoverIt";
        }
        // ---- Add mouseout-function
        liItems[i].onmouseout =function ()
        {
            this.className = this.className.replace(" hoverIt", "");
        }
    }
}

// ------------ Load hover-function if browser is IE ----------------
if (document.all && document.getElementById)
{
    window.onload = addHover;
}

// ----- PopUp Funktion -----
function pop(file)
{
    var x_size = window.screen.width;
    x_size = x_size - 500;
    x_size = x_size / 2;
    x_size = Math.round(x_size);

    var y_size = window.screen.height;
    y_size = y_size - 630;
    y_size = y_size / 2;
    y_size = Math.round(y_size);
    y_size -= 30;

    popupwindow = window.open(file,"pophelp","scrollbars=no, toolbar=no,location=no,directories=no,status=no,menubar=no,width=500,height=630, left=" + x_size + ",top=" + y_size);
    popupwindow.focus();
    return false;
}

function tellAFriend (side)
{
    var seite;
    seite = "tellAFriend.php?side=" + side;
    pop(seite);
    return false;
}







