function sendeBild(x,y){
	parent.pano.location.href="../../ecard_e/index.php?bildnr="+x;
}

var a;
if(navigator.userAgent.search(/Mac.+/) != -1) { a = "mac"; }

function panorama(url,name,eigenschaften){
	if(!(a=="mac")){

		if( typeof(parent.pano.document.ptviewer) == "object"){
        	parent.pano.document.ptviewer.stopAutoPan();
	        parent.pano.location.href = "../../fullscreen/wait1.html";
        }//if

        if(parent.qtpresent==1){

	        if(parent.qtversion>4){
 	           my = window.open(url,'Panoramabild','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0');
    	       my.focus();
        	}//if
            else{
    		    check=confirm("Quicktime-Version " + parent.qtversion + " installiert. Sie benötigen min. Version 5. \nWollen Sie kostenfrei die aktuellste Version laden?");
        	    if(check==true){ window.open("http://www.apple.com/de/quicktime/download/"); }
	        }//else

		}//if
        else{
        	check=confirm("Sie haben kein Quicktime installiert. \nWollen Sie kostenfrei die aktuellste Version laden?");
        	if(check==true){ window.open("http://www.apple.com/de/quicktime/download/"); }
        }//else

  }//if
  else {
	  my = window.open(url,'Panoramabild','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0');
      my.focus();
  }//else

}//panorama()

  function fullscreen(){panorama('../../fullscreen/cyprianer_'+parent.bild+'.html')}
  function low_l(){alert("The low version is activ now.")}
  function high_l(){parent.top.location.href="../../deutsch/high/popup.html"}
  function high_h(){alert("The high version is activ now.")}
  function low_h(){parent.top.location.href="../../deutsch/low/popup.html"}
  function ecard(){sendeBild(parent.bild,parent.room)}
  function unten(){parent.pano.document.ptviewer.startAutoPan(0,-0.3,1.0);}
  function oben(){parent.pano.document.ptviewer.startAutoPan(0,0.3,1.0);}
  function left(){parent.pano.document.ptviewer.startAutoPan(-0.2,0,1.0);}
  function rechts(){parent.pano.document.ptviewer.startAutoPan(0.2,0,1.0);}


