var isNav4 = false;
var isW3C = false;
var isIE = false;

function init() {
        //window.alert(navigator.appName);
         //alert("test");
        // Browser ueberpruefen
        if (navigator.appName.indexOf("Netscape") != -1) {
                if (parseInt(navigator.appVersion) == 4) {
                        // Netscape Communicator 4.x
                        isNav4 = true;
                        //alert("nav4");
                        document.write("Funktioniert nicht mit Navigator 4.x!!!!!");
                } else if (parseInt(navigator.appVersion) >= 5) {
                        // Netscape 6 oder Mozilla
                        isW3C = true;   //alert("w3c");
                }
        } else {
                if ((parseInt(navigator.appVersion) >= 4) &&
                        (navigator.appName.indexOf("Microsoft") != -1)) {
                        // MSIE 4.x oder hoeher
                        isIE = true;  //alert("ie");
                }

                if (navigator.userAgent.indexOf("Opera 5") != -1) {
                        // Opera 5.x - wird wie MSIE behandelt
                        isIE = true;  // alert("opera");
                }
        }



	if (isW3C) {
               //obj = document.getElementById("page");
		//alert(obj.style.width);
               //if (isW3C) obj.style.width = "797px";
               
        }					


        // Event Capturing
        //if ((isNav4) || (isW3C)) {
        //        document.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP);
        //}

        //document.onmousedown = startDrag;
        //document.onmouseup = endDrag;
        //document.write("hallo");
}
