//Navigation6.0

function cancel_bubble() {
 	// Workaround for Safari 1.0 and below
	if (navigator.userAgent.indexOf('Safari') >= 0)
	return true;
	event.cancelBubble = true; 	} 

function getStyleObject(objectId) {
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM
	return document.layers[objectId];
    } else { 	return false;     } } 

function changeObjectVisibility(objectId, newVisibility) {
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.visibility = newVisibility;
	return true;
    } else { 	return false;     } }

function moveObject(objectId, newXCoordinate, newYCoordinate) {
    var styleObject = getStyleObject(objectId);
    if(styleObject) {
	styleObject.left = newXCoordinate;
	styleObject.top = newYCoordinate;
	return true;
    } else { 	return false;     } }

function showMenu(menuNumber, eventObj) {
var menuId = 'menu' + menuNumber;
if (getStyleObject(menuId).visibility == 'visible' ||
     getStyleObject(menuId).visibility == 'show') {
     hideAllMenus();
	return false;  }
hideAllMenus();
    if(changeObjectVisibility(menuId, 'visible')) {
	eventObj.cancelBubble = true;
	return true;
    } else { 	return false;     } }

var numMenus = 2;


//MT Funktionen
function hideAllMenus() {
    for(counter = 1; counter <= numMenus; counter++) {
	changeObjectVisibility('menu' + counter, 'hidden');     } }

document.onclick = hideAllMenus;



function OpenComments (c) {
    window.open(c,
                    'comments',
                    'width=480,height=530,scrollbars=yes,status=yes');
}

function OpenTrackback (c) {
    window.open(c,
                    'trackback',
                    'width=480,height=480,scrollbars=yes,status=yes');
}



//Send entry
function openSendentry(url) {
var url = url + "?url=" + document.location
	window.open(url,"","scrollbars=no,status=yes,menubar=no,personalbar=no,width=520,height=480");
}




