function navOver(theElement) {
	if(theElement) {
		theSource = theElement.src;
		newSource = theSource.replace(/_pas./,"_act.");
		theElement.src = newSource;
	}
}

function navOut(theElement) {
	if(theElement) {
		theSource = theElement.src;
		newSource = theSource.replace(/_act./,"_pas.");
		theElement.src = newSource;
	}
}


function navOverBg(theElement) {
	if(theElement) {
		theElement.style.backgroundImage = 'url(img/verkehrsmittelbg_act.jpg)';	
	}
}

function navOutBg(theElement) {
	if(theElement) {
		theElement.style.backgroundImage = 'url(img/verkehrsmittelbg_pas.jpg)';	
	}
}

function navOverBgFahrt(theElement) {
	if(theElement) {
		theElement.style.backgroundImage = 'url(img/buttons/fahrttyp_act_03.gif)';	
	}
}

function navOutBgFahrt(theElement) {
	if(theElement) {
		theElement.style.backgroundImage = 'url(img/buttons/fahrttyp_pas_03.gif)';	
	}
}

function popWindow(url,name,w,h,left,top) {
	theWindow = window.open(url,name,"width="+w+",height="+h+",top="+top+",left="+left+",scrollbars=yes");
	theWindow.focus();
}

function updatePage(theAction,theForm) {
	document.forms[theForm].action = theAction;
	document.forms[theForm].submit();
}

theImages = new Array();
function preloadImages() {
    for (i=0;i<preloadImages.arguments.length;i++) {
        theImages[i] = new Image();
        theImages[i].src = preloadImages.arguments[i];
    }
}

function openPartner(url) {
	pWindow = window.open(url,"partnerWin","width=1000,height=700,top=10,left=10,scrollbars=yes,resizable=yes");
	pWindow.focus();
}