// JavaScript Document


if(screen){
	topPos=0
	leftPos=0
}
function closeVid(platz){
	document.getElementById(platz).innerHTML = "";
}
function playQuicktimeVideo(url, name, width, height, filmtext){
	document.getElementById(name).innerHTML = "<object classid=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B codebase=http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0 width='"+width+"' height='"+height+"' align=middle><param name=src value='"+url+"' /><param name=autoplay value=true /><embed src='"+url+"' width='"+width+"' height='"+height+"' align=middle bgcolor=black pluginspage=http://www.apple.com/quicktime/download/ /></embed></object>";
	
	document.getElementById(name+2).innerHTML = "<div class=filmeinstellung><div class=close><a href=?film><img src=img/close.gif />close</a></div><div class=filmbeschreibung>"+document.getElementById(filmtext).value+"</div></div>"; 
}

function playFlashVideo(url, name, width, height, filmtext){
	var so = new SWFObject("flvplayer.swf", "flv-viewer", width, height, "9", "#FFFFFF");
		so.addParam( "allowFullScreen", "true");
		so.addParam("scale", "noscale"); 
		so.addParam("salign", "TL");				
		so.addVariable("flashvideo", url);
		so.addVariable("autoplay", getQueryParamValue("autoplay"));		
		so.addVariable("loop", getQueryParamValue("loop"));			
		so.addVariable("skinfile", getQueryParamValue("skinfile"));		
		so.addVariable("captionsfile", getQueryParamValue("captionsfile"));					
		so.write(name);		
		
		document.getElementById(name+2).innerHTML = "<div class=filmeinstellung><div class=close><a href=?film><img src=img/close.gif />close</a></div><div class=filmbeschreibung>"+document.getElementById(filmtext).value+"</div></div>";
}

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";
      }
    }
  } 
}
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','342','height','291','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Halo_Skin_1&streamName=bigwallgross&autoPlay=false&autoRewind=false','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','FLVPlayer_Progressive' ); //end AC code
