var aktuell = "";
var saktuell = "";

team = new Image(); team.src = "img/nav/team.gif"
team_on = new Image(); team_on.src = "img/nav/team_on.gif"

referenzen = new Image(); referenzen.src = "img/nav/referenzen.gif"
referenzen_on = new Image(); referenzen_on.src = "img/nav/referenzen_on.gif"

bewerbung = new Image(); bewerbung.src = "img/nav/bewerbung.gif"
bewerbung_on = new Image(); bewerbung_on.src = "img/nav/bewerbung_on.gif"

preise = new Image(); preise.src = "img/nav/preise.gif"
preise_on = new Image(); preise_on.src = "img/nav/preise_on.gif"

kartei = new Image(); kartei.src = "img/nav/kartei.gif"
kartei_on = new Image(); kartei_on.src = "img/nav/kartei_on.gif"

produktion = new Image(); produktion.src = "img/nav/produktion.gif"
produktion_on = new Image(); produktion_on.src = "img/nav/produktion_on.gif"

lokation = new Image(); lokation.src = "img/nav/location.gif"
lokation_on = new Image(); lokation_on.src = "img/nav/location_on.gif"

casting = new Image(); casting.src = "img/nav/casting.gif"
casting_on = new Image(); casting_on.src = "img/nav/casting_on.gif"

kontakt = new Image(); kontakt.src = "img/nav/kontakt.gif"
kontakt_on = new Image(); kontakt_on.src = "img/nav/kontakt_on.gif"

home = new Image(); home.src = "img/nav/home.gif"
home_on = new Image(); home_on.src = "img/nav/home_on.gif"

sub_impressum = new Image(); sub_impressum.src = "img/nav/sub_impressum.gif"
sub_impressum_on = new Image(); sub_impressum_on.src = "img/nav/sub_impressum_on.gif"

sub_anfahrt = new Image(); sub_anfahrt.src = "img/nav/sub_anfahrt.gif"
sub_anfahrt_on = new Image(); sub_anfahrt_on.src = "img/nav/sub_anfahrt_on.gif"

sub_agb = new Image(); sub_agb.src = "img/nav/sub_agb.gif"
sub_agb_on = new Image(); sub_agb_on.src = "img/nav/sub_agb_on.gif"

sub_nf = new Image(); sub_nf.src = "img/nav/sub_nf.gif"
sub_nf_on = new Image(); sub_nf_on.src = "img/nav/sub_nf_on.gif"

sub_people = new Image(); sub_people.src = "img/nav/sub_people.gif"
sub_people_on = new Image(); sub_people_on.src = "img/nav/sub_people_on.gif"

sub_locations = new Image(); sub_locations.src = "img/nav/sub_locations.gif"
sub_locations_on = new Image(); sub_locations_on.src = "img/nav/sub_locations_on.gif"

sub_location = new Image(); sub_location.src = "img/nav/sub_location.gif"
sub_location_on = new Image(); sub_location_on.src = "img/nav/sub_location_on.gif"

sub_casting = new Image(); sub_casting.src = "img/nav/sub_casting.gif"
sub_casting_on = new Image(); sub_casting_on.src = "img/nav/sub_casting_on.gif"

sub_honorare = new Image(); sub_honorare.src = "img/nav/sub_honorare.gif"
sub_honorare_on = new Image(); sub_honorare_on.src = "img/nav/sub_honorare_on.gif"

sub_arbeiten = new Image(); sub_arbeiten.src = "img/nav/sub_arbeiten.gif"
sub_arbeiten_on = new Image(); sub_arbeiten_on.src = "img/nav/sub_arbeiten_on.gif"


// mouseover functions
function m_over(arg) {
	if (arg != aktuell) {
		image = eval(arg + "_on.src")
		document[arg].src = image;
	}
}
	  
function m_klick(arg) {
	if (aktuell != "") {
		image = eval(aktuell + ".src")
		document[aktuell].src = image;
	}
	image = eval(arg + "_on.src")
	document[arg].src = image;
	aktuell = arg;
}

function m_out(arg) {
	if (arg == aktuell) {
		image = eval(arg + "_on.src")
	} else {
		image = eval(arg + ".src")
	}
	document[arg].src = image;
}
//////////////////
function s_over(arg) {
	if (arg != saktuell) {
		image = eval(arg + "_on.src")
		document[arg].src = image;
	}
}
	  
function s_klick(arg) {
	if (saktuell != "") {
		image = eval(saktuell + ".src")
		document[saktuell].src = image;
	}
	image = eval(arg + "_on.src")
	document[arg].src = image;
	saktuell = arg;
}

function s_out(arg) {
	if (arg == saktuell) {
		image = eval(arg + "_on.src")
	} else {
		image = eval(arg + ".src")
	}
	document[arg].src = image;
}
// END mouseover functions
function openimg(img,title) {
	window.open("ref_print.php?img="+img+"&title="+title,"refwin","top=20,left=20,width=720,height=750");
}


function FensterOeffnen (Adresse) {
  MeinFenster = window.open(Adresse, "Zweitfenster", "width=800,height=600,left=100,top=200");
  MeinFenster.focus();
}

