// site-wide javascript utilities

/*
Code for Netscape 4 Resize bug 
This is a workaround for a Netscape 4 bug that causes 
stylesheets to be corrupted when the window is resized.
*/

if (document.layers) {
        var widthCheck = window.innerWidth;
        var heightCheck = window.innerHeight;
        window.onResize = resizeFix;
}

function resizeFix() {
        if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
        document.location.href = document.location.href;
}

// window opener function
function openWin(winFile,winName,myWidth,myHeight) {
        myPopup = window.open(winFile,winName,'status=no,toolbar=no,scrollbars=yes,width=' + myWidth + ',height=' + myHeight);
}

// window opener function adapted for Edgesuite Flash movie
function openFlashWin(winFile,winName,myWidth,myHeight) {
        myPopup = window.open(winFile,winName,'status=no,toolbar=no,scrollbars=no,width=' + myWidth + ',height=' + myHeight);
}

// Close and move to page
function closeAndMove(targetPage) {
        opener.document.location = targetPage;
        self.close();
}





var bookmarkTitle="OMCnet - Managed Internet";
var pageURL=location.href;

function AddLesezeichen() {
if (navigator.platform.substring(0,3) == 'Win' &&
navigator.appName.substring(0,3)=='Mic') {
window.external.AddFavorite(pageURL,bookmarkTitle );
} else if (window.sidebar&&window.sidebar.addPanel){
 window.sidebar.addPanel(bookmarkTitle,pageURL,"");
} 
}




