
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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 MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//check von Flashversion

function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}

//Bannerrotation

function ranMov() {
var myFlash = new Array()
myFlash[0] = "../flash/werbebanner.swf";
myFlash[1] = "../flash/werbebanner2.swf";
myFlash[2] = "../flash/werbebanner3.swf";
var ranNum = Math.floor(Math.random() * 2);
document.write("<script type='text/javascript'> AC_FL_RunContent2('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','468','height','60','title','Banner','src','"+myFlash[ranNum]+"','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','"+myFlash[ranNum]+"' ); //end AC code </script><noscript><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='468' height='60' title='Banner'> <param name='movie' value='"+myFlash[ranNum]+"' /><param name='quality' value='high' /><embed src='"+myFlash[ranNum]+"' quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width='468' height='60'></embed></object></noscript>");
}

//Galeriebild Popup Funktion

function showpic(imageName,scrWidth,scrHeight){
var w = screen.width;
var h = screen.height;
left = (w-scrWidth)/2;
postop = (h-scrHeight)/2;
newWindow = window.open("test.html","newWindow","width="+scrWidth+",height="+scrHeight+",left="+left+",top="+postop);
newWindow.document.open();
newWindow.document.write('<html><title>Produktbild</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor=#ffffff onBlur="self.close()" onClick="self.close()">');
newWindow.document.write('<table width='+scrWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td align="center">');
newWindow.document.write('<img src="'+imageName+'" alt="Zum schließen auf das Bild klicken !" >');
newWindow.document.write('<br />zum schlie&szlig;en bitte ins Fenster klicken!');
newWindow.document.write('</td></tr></table></body></html>');
newWindow.document.close();
newWindow.focus();
}

function showVideo(videoName,scrWidth,scrHeight,titel){
var w = screen.width;
var h = screen.height;
left = (w-scrWidth)/2;
postop = (h-scrHeight)/2;
newWindow = window.open("test.html","newWindow","width="+scrWidth+",height="+scrHeight+",left="+left+",top="+postop);
newWindow.document.open();
newWindow.document.write('<html><title>'+titel+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor=#000000 onBlur="self.close()">');
newWindow.document.write('<table width='+scrWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td align="center">');
newWindow.document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+scrWidth+'" height="'+scrHeight+'" id="FLVPlayer">');
newWindow.document.write('<param name="movie" value="FLVPlayer_Progressive.swf" /><param name="salign" value="lt" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Corona_Skin_3&streamName='+videoName+'&autoPlay=true&autoRewind=true" />');
newWindow.document.write('<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Corona_Skin_3&streamName='+videoName+'&autoPlay=true&autoRewind=true" quality="high" scale="noscale" width="'+scrWidth+'" height="'+scrHeight+'" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" /></object>');
newWindow.document.write('</td></tr></table></body></html>');
newWindow.document.close();
newWindow.focus();
}

function showVideo2(videoName,scrWidth,scrHeight,titel){
var w = screen.width;
var h = screen.height;
left = (w-scrWidth)/2;
postop = (h-scrHeight)/2;
newWindow = window.open("test.html","newWindow","width="+scrWidth+",height="+scrHeight+",left="+left+",top="+postop);
newWindow.document.open();
newWindow.document.write('<html><title>'+titel+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor=#000000>');
newWindow.document.write('<table width='+scrWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td align="center">');
newWindow.document.write('<object width="'+scrWidth+'" height="'+scrHeight+'"><param name="allowFullSreen" value="'+videoName+'"></param><param name="allowFullScreen" value="true"></param><embed src="'+videoName+'" type="application/x-shockwave-flash" allowFullscreen="true" width="'+scrWidth+'" height="'+scrHeight+'"></embed></object>');
newWindow.document.write('</td></tr></table></body></html>');
newWindow.document.close();
newWindow.focus();
}

function showVideo3(videoName,scrWidth,scrHeight,titel){
var w = screen.width;
var h = screen.height;
left = (w-scrWidth)/2;
postop = (h-scrHeight)/2;
newWindow = window.open("test.html","newWindow","width="+scrWidth+",height="+scrHeight+",left="+left+",top="+postop);
newWindow.document.open();
newWindow.document.write('<html><head><script type="text/javascript" src="http://www.rollschuh-berlin.de/flowplayer/example/flowplayer-3.2.6.min.js"></script><title>'+titel+'</title></head><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor=#000000>');
newWindow.document.write('<table width='+scrWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td align="center">');
newWindow.document.write('<a href="http://www.rollschuh-berlin.de/videos/'+videoName+'" style="display:block;width:'+scrWidth+';height:'+scrHeight+'" id="player"></a> ');
newWindow.document.write('<script>flowplayer("player", "http://www.rollschuh-berlin.de/flowplayer/flowplayer-3.2.7.swf",{ clip: { scaling: "fit" } });</script></td></tr></table></body></html>');
newWindow.document.close();
newWindow.focus();
}

function zweiLinks(ziel1,ziel2){

document.getElementById('zelle2').src=ziel1;
document.getElementById('zelle3').src=ziel2;
}
