var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Verarbeiten aller FSCommand-Meldungen in einem Flash-Film
function ozori_v1_DoFSCommand(command, args) {
	var ozori_v1Obj = isInternetExplorer ? document.all.ozori_v1 : document.ozori_v1;
	//
	// Geben Sie hier Ihren Code ein.
	//
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

	function displayLayers(name, status) {
  		var v,obj;

		if ((obj=MM_findObj(name))!=null) {
			v=status;
    		if (obj.style) {
				obj=obj.style;
				v=(v=='show')?'block':(v=='hide')?'none':v;
			}
    		obj.display=v;
		}
	}

// Hook für Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub ozori_v1_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call ozori_v1_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}
//-->


activeN = "";


function over(n) {
	displayLayers('navi' + n + '_1', 'show');
}

function out(n) {
	if (n!=activeN)
		displayLayers('navi' + n + '_1', 'hide');
}

function click(n) {
	if (n!=activeN)
		displayLayers('navi' + activeN + '_1', 'hide');
	activeN = n;
}

function mo(o,t) {

	if(t)newUrl = o.src.replace(/_0\./g,"_1.");
	else if(o.src!=activeN.src) newUrl = o.src.replace(/_1\./g,"_0.");
	o.src = newUrl;

}

function oc(o) {

	if(activeN==o)return;

	if(activeN)activeN.src=activeN.src.replace(/_1\./g,"_0.");
	activeN = o;

}

mein_ozori=0;

function pop(url) {
/*	if ((mein_ozori.focus != null)&(!mein_ozori.closed))
		mein_ozori.focus();
	else {

	Anm. Stefan: Musste raus, da sonst u.U. die URL nicht geladen wird!

*/

		var width  = 650;
		var height = 481;
		var startx = Math.round((screen.width-width)/2) - 170;
//		var starty = Math.round((screen.height-height)/2) - 100;
		var starty = 150;

		mein_ozori = window.open(url + "?" + php_sid,"mein_ozori","width=" + width + ",height=" + height + ",status=yes,toolbar=no,menubar=no,resizable=yes,scrollbars=yes,screenX=" + startx + ",left=" + startx + ",screenY=" + starty + ",top=" + starty + " ");
		if (! mein_ozori)
			alert('Der Mein-OZORI-Bereich konnte nicht geöffnet werden. Bitte deaktivieren Sie Ihren PopUp-Blocker!');
		else
			((mein_ozori.focus != null)&(!mein_ozori.closed))
				mein_ozori.focus();

}


function pop_showroom(url) {
/*	if ((showroom.focus != null)&(!showroom.closed))
		showroom.focus();
	else {

	Anm. Stefan: Musste raus, da sonst u.U. die URL nicht geladen wird!

*/

		var width  = 631;
		var height = 481;
		var startx = Math.round((screen.width-width)/2) - 170;
//		var starty = Math.round((screen.height-height)/2) - 100;
		var starty = 150;

		showroom = window.open(url + "?" + php_sid,"showroom","width=" + width + ",height=" + height + ",status=yes,toolbar=no,menubar=no,resizable=no,scrollbars=no,screenX=" + startx + ",left=" + startx + ",screenY=" + starty + ",top=" + starty + " ");
		if (! showroom)
			alert('Der Showroom konnte nicht geöffnet werden. Bitte deaktivieren Sie Ihren PopUp-Blocker!');
		else
			((showroom.focus != null)&(!showroom.closed))
				showroom.focus();

}


function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}