// Startseite Äuflösung checken:
function checkResolution(){
  if(screen.width < 1024){
    window.location.href = "flash/index-smallscreen.htm";
  } else {
    window.location.href = "flash/?"+screen.width+"x"+screen.height;
  }
}

// popup für Modell-drucken öffnen:
function printModell(ordner,bild){
  window.open("../modell-drucken.htm?"+ordner+"/big/"+bild,"druckwnd","width=400,height=460,left=80,top=80,menubar=yes");
}

// Bild laden:
function loadBild(param, jahr){
	self.focus();
	param = param.split("?")[1];
	document.bildgross.src = "fotos"+jahr+"/"+param;
	temp = param.split("/")[0]+param.split("/")[2];
	document.getElementById("titel").innerHTML = " "+temp; 
	window.print();
}

//
function newsItem(param) {
	param = (param*1);
	switch(param) {
		case 4: // Modeschau 2005:
 		window.open("../fotos-modenschau2005.htm?01","fotosmodes05","width=800,height=440,left=80,top=80,menubar=yes,resizable=yes,status=yes");
 		break;
 		default: // nicht gefunden:
 		alert("News-Funktion nicht definiert!\n item: "+param);
 		break;
	}
}

// Lageplan Fenster öffnen:
function openLageplan(){
  window.open("../lageplan.htm","lagplanwnd","width=450,height=520,left=80,top=80,menubar=yes");
}

// Routenplaner Fenster öffnen:
function openRoute(strasse, zip, ort){
  strasse = escape(strasse);
  zip = escape(zip);
  ort = escape(ort);
  window.open("../routenplaner-gosch-wiener-neustadt.htm?"+strasse+"_"+zip+"_"+ort,"rtnplnwnd");
}

// Routenplaner laden:
function loadRoute(){
	self.focus();
	param = unescape(window.location.search.split("?")[1]);
	paramTeile = param.split("_");
	if(paramTeile[0] != ""){
		document.link2map.sstreet.value = paramTeile[0];
	}
		if(paramTeile[1] != ""){
		document.link2map.szip.value = paramTeile[1];
	}
		if(paramTeile[2] != ""){
		document.link2map.scity.value = paramTeile[2];
	}
}

// Modeschau-Galerie Foto laden:
function zeigeFoto(){	
	self.focus();
	param = unescape(window.location.search.split("?")[1]);
	if(param != ""){
		document.getElementById("imgBig").src = "images/modeschau-01-05/modeschau-2005-"+param+".jpg";
	} else {
		document.getElementById("imgBig").src = "images/modeschau-01-05/modeschau-2005-01.jpg";
	}
}



function initFade(){
	if(document.all){
			document.all.aktion.style.visibility = "hidden";
	}
}

function showAktion(){
		if(document.all){
	document.all.aktion.filters.revealTrans.Apply();
	document.all.aktion.style.visibility = "visible";
	document.all.aktion.filters.revealTrans.Play();
		}
}

function closeAktion(){
	document.getElementById("aktion").style.display = "none";
}
