/*
// +-----------------------------------------------------------------------+
// | www.medientechnik-systemintegration.de                                |
// +-----------------------------------------------------------------------+
// | Copyright (c) 2005 Media Online GmbH, Dortmund                        |
// |                                                                       |
// | Author: Stefan Kolodzeike <kolodzeike@nrw-online.de>                  |
// +-----------------------------------------------------------------------+
//
// $Id$
*/

// +-----------------------------------------------------------------------+
// |   Browser-Ermittlung                                                  |
// +-----------------------------------------------------------------------+
var isMinNS4 = (navigator.appName.indexOf("Netscape") >= 0 && parseFloat(navigator.appVersion) < 5) ? 1 : 0;
var isNS6    = (document.getElementById && !document.all) ? 1 : 0;
var isMinIE5 = (document.getElementById && document.all && document.styleSheets) ? 1 : 0;

// +-----------------------------------------------------------------------+
// |   Seite bei Resize neu laden                                          |
// +-----------------------------------------------------------------------+
function reloadPage(init) {
    if (init == true) with (navigator) {
        if (isMinNS4 || isNS6) {
            document.pgW = innerWidth;
            document.pgH = innerHeight;
            onresize = reloadPage;
        }
    } else if (innerWidth != document.pgW || innerHeight != document.pgH) {
        location.reload();
    }
}
reloadPage(true);

// +-----------------------------------------------------------------------+
// |   Rechtsklick / Kontextmenues deaktivieren                            |
// +-----------------------------------------------------------------------+
/*
var message  = "";
function noClick(e) {
    if (isMinNS4 || isNS6) {
        if (e.which == 2 || e.which == 3) {
            (message);
            return false;
        }
    } else if (isMinIE5) {
        (message);
        return false;
    }
}
if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown = noClick;
} else {
    document.onmouseup = noClick;
    document.oncontextmenu = noClick;
}
document.oncontextmenu = new Function("return false")
*/

// +-----------------------------------------------------------------------+
// |   Markieren auf der Seite deaktivieren                                |
// +-----------------------------------------------------------------------+
/*
function disableSelect(e) {return false;}
function reEnable() {return true;}
document.onselectstart = new Function ("return false")
if (window.sidebar) {
    document.onmousedown = disableSelect;
    document.onclick = reEnable;
}
*/

// +-----------------------------------------------------------------------+
// |   Mouseover-Effekt fuer Datenreihen                                   |
// +-----------------------------------------------------------------------+
function rowOver(object) {
    if (object.className == 'rowOut') {
        object.className = 'rowOver';
    }
}

function rowOut(object) {
    if (object.className == 'rowOver') {
        object.className = 'rowOut';
    }
}

// +-----------------------------------------------------------------------+
// |   PopUp-Fenster                                                       |
// +-----------------------------------------------------------------------+
function openWindow(url,width,height) {
	popupWin = window.open(url, '', 'width='+width+',height='+height)
}

// +-----------------------------------------------------------------------+
// |                              END OF FILE                              |
// +-----------------------------------------------------------------------+

