// JavaScript Document
if (document.images){			
	image1on = new Image(); image1on.src = "ap_web/image/main_navi/agentur_on.gif";
	image2on = new Image(); image2on.src = "ap_web/image/main_navi/komp_on.gif";
	image3on = new Image(); image3on.src = "ap_web/image/main_navi/folio_on.gif";
	image4on = new Image(); image4on.src = "ap_web/image/main_navi/kont_on.gif";
	image5on = new Image(); image5on.src = "ap_web/image/main_navi/news_on.gif";
	
	image1off = new Image(); image1off.src = "ap_web/image/main_navi/agentur_off.gif";
	image2off = new Image(); image2off.src = "ap_web/image/main_navi/komp_off.gif";
	image3off = new Image(); image3off.src = "ap_web/image/main_navi/folio_off.gif";
	image4off = new Image(); image4off.src = "ap_web/image/main_navi/kont_off.gif";
	image5off = new Image(); image5off.src = "ap_web/image/main_navi/news_off.gif";			
}

function turnOn(imageName){
	if (document.images) {
		document[imageName].src = eval(imageName + "on.src");
	}
}

function turnOff(imageName){
	if (document.images) {
		document[imageName].src = eval(imageName + "off.src");
	}
}

function NewWindow(mypage, myname, w, h, scroll){
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+''
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4){
		win.window.focus();
	}
}