//
// (c)2000 fotograf4u
//

// Rollover Buttons

var loaded = new Array();

function F_loadRollover(image,imageName) {
	if (image && image.src &&
		(null == image.out || typeof(image.out) == typeof(void(0)))) {
		s = image.src;
		image.out = new Image();
		image.out.src = s;
		image.over = new Image();
		if (imageName.lastIndexOf('/') >= 0 || imageName.lastIndexOf('\\') >= 0) {
			s = imageName;
		} else {
			i = s.lastIndexOf('/');
			if (i<0) i = s.lastIndexOf('\\');
			if (i<0) { s = imageName; }
			else	 { s = s.substring(0,i+1) + imageName; }
		}
		image.over.src = s;
		loaded[image.name] = image;
	}
	return true;
}

function F_roll(imageName,over) {
	if (document.images) {
	image = loaded[imageName];
	if (over) { imageObject = "over";}
	else	  { imageObject = "out";}
	if (image) {
		ref = eval("image."+imageObject);
		if (ref) image.src = eval("image."+imageObject+".src");
	}
	if (window.event)
		window.event.cancelBubble = true;
	}
}

function popmap()
{
// karte = window.open("http://www.fotograf4u.de/cgi-bin/ax.cgi?http://www.yellowmap.de/KartenService/KartenService.asp?RADIUS=1000&DBName=YellowMapDB&Kennung=910017754&CSS=","fotograf4u_Lageplan","width=680,height=500,toolbar=no,resizable=yes,scrollbars=yes,menubar=yes,status=yes");
// karte = window.open("http://www.fotograf4u.de/cgi-bin/ax.cgi?http://www.stadtplandienst.de/query;ORT=m;LL=11.374799x48.199200;GR=3;IMGTXT=fotograf4u-Studio;TXT=fotograf4u-Studio+im+Tiroler+Hof,+Gr%C3%B6benzell.+Parkpl%C3%A4tze+finden+Sie+in+der+Mozartstra%C3%9Fe+und+in+der+Eschenriederstra%C3%9Fe.","fotograf4u_Lageplan","toolbar=no,resizable=yes,scrollbars=yes,menubar=yes,status=yes");

karte = window.open("http://www.fotograf4u.de/cgi-bin/ax.cgi?http://www.mapquest.de/cgi-bin/ia_find?uid=&link=btwn%2Ftwn-map_results&SNVData=3mad3-96%2Chr%253brg9f10%253du2x0a1%253bpq%257cs9z%2Cp7%253b8aq.hqu%253b%2528O%2512MLPXSGV%2514%2517GFJ%253a%2516%2518XVSR%2516D%2513C%253dVV%2516JNL_502wq%253a%2515M%253dwynhfz_9ubalf%2528nl.fhxqs-tbhm-oxiw.qc%2528sqvx8c3mw0%252b%2529%252bGvfqdi%2524om-7n0m%25241w-u.wf7%253bxcx5sf7.grfe%257cs%2524jdvnd%257c9xjqu47u5f%252b_%252b%251379rvbuf7n%2540%252b1y%252b.%252branhw%252bU4%25f6pmwkscn&pcat=&MAP_AB_LABELS=&WORK=&mouse_mode=move_icon&map.x=251&map.y=286","fotograf4u_Lageplan","toolbar=no,resizable=yes,scrollbars=yes,menubar=yes,status=yes");

karte.focus();
}

function pophtml(url,name,x,y)
{
	params = "width="+x+",height="+y+",toolbar=no,resizable=no,scrollbars=no,menubar=no,status=no";
	serie = window.open(url,name,params);
	serie.focus();
}

var popimg_win=null;
function popimg(url,name,x,y)
{
	y2=eval(y)+24;
	if ( popimg_win ) popimg_win.close();
	params = "width="+x+",height="+y2+",toolbar=no,resizable=no,scrollbars=no,menubar=no,status=no";
	popimg_win = window.open(null,name,params);
	popimg_win.focus();
	popimg_win.document.write("<head><title>Preview "+name+"</title></head><body leftmargin=0 topmargin=0 bgcolor=#000000>");
	popimg_win.document.write("<center><table border=0 cellpadding=0 cellspacing=0 width="+x+">");
	popimg_win.document.write("<tr><td colspan=2 width="+x+" height="+y+"><img src="+url+" width="+x+" height="+y+" alt='name'></td></tr>");
	popimg_win.document.write("<tr><td width=1 height=24><img src=/cp.gif width=1 height=24></td><td align=right><a href='javascript:window.close();' title='Fenster schließen'><font face='Verdana,Arial' color=#C8C8C8 valign=middle><u>Fenster schlie&szlig;en</u></font></a></td></tr>");
	popimg_win.document.write("</table></center></body></html>");
	if (window.event) {
		window.event.cancelBubble = true;
	}

}
