var timer=0;

function reloadPageStart()
{
 timer=window.setTimeout("reloadPage()",500);
}


function reloadPage()
{ 
window.clearTimeout(timer);
window.location.href="/demo/index.html";

}


function getFlashVersion(){ 
  // ie 
  try { 
    try { 
      // avoid fp6 minor version lookup issues 
      // see: http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/ 
      var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6'); 
      try { axo.AllowScriptAccess = 'always'; } 
      catch(e) { return '6,0,0'; } 
    } catch(e) {} 
    return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1]; 
  // other browsers 
  } catch(e) { 
    try { 
      if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){ 
        return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1]; 
      } 
    } catch(e) {} 
  } 
  return '0,0,0'; 
} 



		function setFlashHeight(){
			var winHeight = 0;
			if( typeof( window.innerWidth ) == 'number' ) {
				winHeight = window.innerHeight;
			} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
				winHeight = document.documentElement.clientHeight;
			} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				winHeight = document.body.clientHeight;
			}
			if(winHeight > 770) {			
				//document.getElementById("flashwrapper").style.height = "100%";
				//document.getElementById("flashdiv").style.height = "100%";		
				document.getElementById("contentflash").height = "100%";
				
				
			} else {
				//document.getElementById("flashwrapper").style.height = "770px";
				//document.getElementById("flashdiv").style.height = "770px";		
				document.getElementById("contentflash").height = "770px";
			}
		}
		
	





function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}



function showCalendar(lang_id,tag,monat,jahr,atag,amonat,ajahr,session)
{
	var widthpos=(screen.width/2)-200;
        var heightpos=(screen.height/2)-250;
	var calenderWin =  window.open("/fileadmin/php/calendar.php?&m="+amonat+"&dj="+ajahr+"&lang_id="+lang_id+"&fieldtag="+tag+"&fieldmonat="+monat+"&fieldjahr="+jahr+"&atag="+atag+"&amonat="+amonat+"&ajahr="+ajahr, "calendar","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=210,height=210,left="+widthpos+",top="+heightpos);
	calenderWin.focus();
}


function showCalendar2(lang_id,datumID,atag,amonat,ajahr,session)
{
	var widthpos=(screen.width/2)-200;
        var heightpos=(screen.height/2)-250;
	var calenderWin =  window.open("/fileadmin/php/calendar2.php?&m="+amonat+"&dj="+ajahr+"&lang_id="+lang_id+"&field="+datumID+"&atag="+atag+"&amonat="+amonat+"&ajahr="+ajahr, "calendar","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=210,height=210,left="+widthpos+",top="+heightpos);
	calenderWin.focus();
}