
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
// begin absolutely positioned scrollable area object scripts 
// Extension developed by David G. Miles 
// Original Scrollable Area code developed by Thomas Brattli 
function verifyCompatibleBrowser(){ 
    this.ver=navigator.appVersion 
    this.dom=document.getElementById?1:0 
    this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0; 
    this.ie4=(document.all && !this.dom)?1:0; 
    this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
    this.ns4=(document.layers && !this.dom)?1:0; 
    this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) 
    return this 
} 
bw=new verifyCompatibleBrowser() 
 
 
var speed=50 
var loop, timer 
 
function ConstructObject(obj,nest){ 
    nest=(!nest) ? '':'document.'+nest+'.' 
    this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0; 
    this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0; 
    this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight 
    this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight 
    this.up=MoveAreaUp;this.down=MoveAreaDown; 
    this.MoveArea=MoveArea; this.x; this.y; 
    this.obj = obj + "Object" 
    eval(this.obj + "=this") 
    return this 
} 
function MoveArea(x,y){ 
    this.x=x;this.y=y 
    this.css.left=this.x 
    this.css.top=this.y 
} 
 
function MoveAreaDown(move){ 
	if(this.y>-this.scrollHeight+objContainer.clipHeight){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".down("+move+")",speed) 
	} 
} 
function MoveAreaUp(move){ 
	if(this.y<0){ 
    this.MoveArea(0,this.y-move) 
    if(loop) setTimeout(this.obj+".up("+move+")",speed) 
	} 
} 
 
 
function PerformScroll(speed){ 
	if(initialised){ 
		loop=true; 
		if(speed>0)objScroller.down(speed)

		else 
		objScroller.up(speed)
		
	} 
} 
 
function CeaseScroll(){ 
    loop=false 
    if(timer) clearTimeout(timer) 
} 
var initialised; 
function InitialiseScrollableArea(){ 
    objContainer=new ConstructObject('divContainer') 
    objScroller=new ConstructObject('divContent','divContainer') 
    objScroller.MoveArea(0,0) 
    objContainer.css.visibility='visible' 
    initialised=true; 

}
function InitialiseScrollableArea1(){ 
    objContainer=new ConstructObject('divContainer1') 
    objScroller=new ConstructObject('divContent1','divContainer1') 
    objScroller.MoveArea(0,0) 
    objContainer.css.visibility='visible' 
    initialised=true; 

}  


// end absolutely positioned scrollable area object scripts


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];}
}

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_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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];}
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function P7_Snap() { //v2.62 by PVII
  var x,y,ox,bx,oy,p,tx,a,b,k,d,da,e,el,args=P7_Snap.arguments;a=parseInt(a);
  for (k=0; k<(args.length-3); k+=4)
   if ((g=MM_findObj(args[k]))!=null) {
    el=eval(MM_findObj(args[k+1]));
    a=parseInt(args[k+2]);b=parseInt(args[k+3]);
    x=0;y=0;ox=0;oy=0;p="";tx=1;da="document.all['"+args[k]+"']";
    if(document.getElementById) {
     d="document.getElementsByName('"+args[k]+"')[0]";
     if(!eval(d)) {d="document.getElementById('"+args[k]+"')";if(!eval(d)) {d=da;}}
    }else if(document.all) {d=da;} 
    if (document.all || document.getElementById) {
     while (tx==1) {p+=".offsetParent";
      if(eval(d+p)) {x+=parseInt(eval(d+p+".offsetLeft"));y+=parseInt(eval(d+p+".offsetTop"));
      }else{tx=0;}}
     ox=parseInt(g.offsetLeft);oy=parseInt(g.offsetTop);var tw=x+ox+y+oy;
     if(tw==0 || (navigator.appVersion.indexOf("MSIE 4")>-1 && navigator.appVersion.indexOf("Mac")>-1)) {
      ox=0;oy=0;if(g.style.left){x=parseInt(g.style.left);y=parseInt(g.style.top);
      }else{var w1=parseInt(el.style.width);bx=(a<0)?-5-w1:-10;
      a=(Math.abs(a)<1000)?0:a;b=(Math.abs(b)<1000)?0:b;
      x=document.body.scrollLeft + event.clientX + bx;
      y=document.body.scrollTop + event.clientY;}}
   }else if (document.layers) {x=g.x;y=g.y;var q0=document.layers,dd="";
    for(var s=0;s<q0.length;s++) {dd='document.'+q0[s].name;
     if(eval(dd+'.document.'+args[k])) {x+=eval(dd+'.left');y+=eval(dd+'.top');break;}}}
   if(el) {e=(document.layers)?el:el.style;
   var xx=parseInt(x+ox+a),yy=parseInt(y+oy+b);
   if(navigator.appName=="Netscape" && parseInt(navigator.appVersion)>4){xx+="px";yy+="px";}
   if(navigator.appVersion.indexOf("MSIE 5")>-1 && navigator.appVersion.indexOf("Mac")>-1){
    xx+=parseInt(document.body.leftMargin);yy+=parseInt(document.body.topMargin);
    xx+="px";yy+="px";}e.left=xx;e.top=yy;}}
}

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; }
}
function sys_changepic(la_name,p_name,p_src) {
if (la_name != '') {
switch(navigator.family) {
case 'ie4':
document.images[p_name].src = p_src;
break;
case 'nn4':
document[la_name].document.images[p_name].src = p_src;
break;
default:
document.images[p_name].src = p_src;
break;
}} else {
document.images[p_name].src = p_src;
}
}
function _CF_onError(form_object, input_object, object_value, error_message)
    {
	alert(error_message);
       	return false;	
    }



function _CF_checkinteger(object_value)
    {
    //Returns true if value is a number or is NULL
    //otherwise returns false	

    if (object_value.length == 0)
        return true;

    //Returns true if value is an integer defined as
    //   having an optional leading + or -.
    //   otherwise containing only the characters 0-9.
	var decimal_format = ".";
	var check_char;

    //The first character can be + -  blank or a digit.
	check_char = object_value.indexOf(decimal_format)
    //Was it a decimal?
    if (check_char < 1)
	return _CF_checknumber(object_value);
    else
	return false;
    }



function _CF_checknumber(object_value)
    {
    //Returns true if value is a number or is NULL
    //otherwise returns false	

    if (object_value.length == 0)
        return true;

    //Returns true if value is a number defined as
    //   having an optional leading + or -.
    //   having at most 1 decimal point.
    //   otherwise containing only the characters 0-9.
	var start_format = " .+-0123456789";
	var number_format = " .0123456789";
	var check_char;
	var decimal = false;
	var trailing_blank = false;
	var digits = false;

    //The first character can be + - .  blank or a digit.
	check_char = start_format.indexOf(object_value.charAt(0))
    //Was it a decimal?
	if (check_char == 1)
	    decimal = true;
	else if (check_char < 1)
		return false;
        
	//Remaining characters can be only . or a digit, but only one decimal.
	for (var i = 1; i < object_value.length; i++)
	{
		check_char = number_format.indexOf(object_value.charAt(i))
		if (check_char < 0)
			return false;
		else if (check_char == 1)
		{
			if (decimal)		// Second decimal.
				return false;
			else
				decimal = true;
		}
		else if (check_char == 0)
		{
			if (decimal || digits)	
				trailing_blank = true;
        // ignore leading blanks

		}
	        else if (trailing_blank)
			return false;
		else
			digits = true;
	}	
    //All tests passed, so...
    return true
    }


function  _CF_checkCFForm_1(_CF_this)

    {	

    if  (!_CF_checkinteger(_CF_this.plz.value))
        {
        if  (!_CF_onError(_CF_this, _CF_this.plz, _CF_this.plz.value, "Postleitzahl falsch!"))
           {
            return false; 
            }
        }
    return true;
    }

function tmt_findObj(n){
	var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
	x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	}else{x=document.getElementById(n)}return x;
}


 

function checkFormular()
{
	
  
if(document.CFForm_1.name.value == "") {
   alert("Bitte geben Sie Ihren Namen an!");
   document.CFForm_1.name.focus();
   return false;
  }
if(document.CFForm_1.firma.value == "") {
   alert("Bitte geben Sie eine Firma an!");
   document.CFForm_1.firma.focus();
   return false;
  }

if(document.CFForm_1.adresse.value == "") {
   alert("Bitte geben Sie Ihre Straßennamen ein!");
   document.CFForm_1.adresse.focus();
   return false;
  }
  
if(document.CFForm_1.land.value == "") {
   alert("Bitte geben Sie ein Land ein!");
   document.CFForm_1.land.focus();
   return false;
  }
  
if(document.CFForm_1.plz.value == "") {
	alert("Bitte geben Sie Ihre Postleitzahl ein!");
	document.CFForm_1.plz.focus();
	return false;
}
var chkZ = 1;
 	for(i=0;i<document.CFForm_1.plz.value.length;++i)
   	if(document.CFForm_1.plz.value.charAt(i) < "0"
   	|| document.CFForm_1.plz.value.charAt(i) > "9")
     chkZ = -1;
 	if(chkZ == -1) {
   	alert("Bitte kontrollieren Sie Ihre Postleitzahl!");
   	document.CFForm_1.plz.focus();
   	return false;
  }


if(document.CFForm_1.ort.value == "") {
   alert("Bitte geben Sie einen Ort ein!");
   document.CFForm_1.ort.focus();
   return false;
  }
 
var services = false;
 var chkboxctr = 0; 
for(var i=0;i<document.CFForm_1.length;++i)
 {
  if(document.CFForm_1.elements[i].type == "checkbox")
  {
		chkboxctr++;
  	if (document.CFForm_1.elements[i].checked == true){
	    services = true;
	}
  }
 }
if (chkboxctr == 0) {
	services = true;
} 
if (services == true) 
        return true;
	else
 		{
			 alert ('Bitte wählen Sie mindestens einen unserer Service, um fortzufahren!');
			 return false;
	 }

 
}


function checkFormular_hu()
{
	
  
if(document.CFForm_1.name.value == "") {
   alert("Kérjük, adja meg nevét!");
   document.CFForm_1.name.focus();
   return false;
  }
if(document.CFForm_1.firma.value == "") {
   alert("Kérjük, adja meg cége nevét!");
   document.CFForm_1.firma.focus();
   return false;
  }

if(document.CFForm_1.adresse.value == "") {
   alert("Kérjük, adja meg az utcanevet!");
   document.CFForm_1.adresse.focus();
   return false;
  }
  
if(document.CFForm_1.land.value == "") {
   alert("Kérjük, adja meg az országot!");
   document.CFForm_1.land.focus();
   return false;
  }
  
if(document.CFForm_1.plz.value == "") {
	alert("Kérjük, adja meg irányítószámát!");
	document.CFForm_1.plz.focus();
	return false;
}
var chkZ = 1;
 	for(i=0;i<document.CFForm_1.plz.value.length;++i)
   	if(document.CFForm_1.plz.value.charAt(i) < "0"
   	|| document.CFForm_1.plz.value.charAt(i) > "9")
     chkZ = -1;
 	if(chkZ == -1) {
   	alert("Bitte kontrollieren Sie Ihre Postleitzahl!");
   	document.CFForm_1.plz.focus();
   	return false;
  }


if(document.CFForm_1.ort.value == "") {
   alert("Kérjük, adja meg a helységet!");
   document.CFForm_1.ort.focus();
   return false;
  }
 
var services = false;
  
for(var i=0;i<document.CFForm_1.length;++i)
 {
  if(document.CFForm_1.elements[i].type == "checkbox")
  {
  	if (document.CFForm_1.elements[i].checked == true){
	    services = true;
	}
  }
 }
if (services == true) 
        return true;
	else
 		{
			 alert ('Bitte wählen Sie mindestens einen unserer Service, um fortzufahren!');
			 return false;
	 }

 
}

function checkFormular_e()
{
	
  
if(document.CFForm_1.name.value == "") {
   alert("Please insert your name!");
   document.CFForm_1.name.focus();
   return false;
  }
if(document.CFForm_1.firma.value == "") {
   alert("Please insert your company name!");
   document.CFForm_1.firma.focus();
   return false;
  }

if(document.CFForm_1.adresse.value == "") {
   alert("Please insert your street name!");
   document.CFForm_1.adresse.focus();
   return false;
  }
  
if(document.CFForm_1.land.value == "") {
   alert("Please insert your country!");
   document.CFForm_1.land.focus();
   return false;
  }
  
if(document.CFForm_1.plz.value == "") {
	alert("Please insert your ZIP-Code!");
	document.CFForm_1.plz.focus();
	return false;
}
var chkZ = 1;
 	for(i=0;i<document.CFForm_1.plz.value.length;++i)
   	if(document.CFForm_1.plz.value.charAt(i) < "0"
   	|| document.CFForm_1.plz.value.charAt(i) > "9")
     chkZ = -1;
 	if(chkZ == -1) {
   	alert("Please check your ZIP-Code!");
   	document.CFForm_1.plz.focus();
   	return false;
  }


if(document.CFForm_1.ort.value == "") {
   alert("Please insert your town!");
   document.CFForm_1.ort.focus();
   return false;
  }
 
var services = false;
  
for(var i=0;i<document.CFForm_1.length;++i)
 {
  if(document.CFForm_1.elements[i].type == "checkbox")
  {
  	if (document.CFForm_1.elements[i].checked == true){
	
	    services = true;
	}
  }
 }
if (services == true) 
        return true;
	else
 		{
			 alert ('Please choose at least one of our services!');
			 return false;
	 }

 
}
  







/* System
---------*/
var flash2Installed = false; // wahr wenn flash 2 installiert ist
var flash3Installed = false; // wahr wenn flash 3 installiert ist
var flash4Installed = false; // wahr wenn flash 4 installiert ist
var flash5Installed = false; // wahr wenn flash 5 installiert ist
var flash6Installed = false; // wahr wenn flash 6 installiert ist
var flash7Installed = false; // wahr wenn flash 7 installiert ist
var maxVersion   = 7;  // die Version die momentan maximal gecheckt wird
var actualVersion  = 0;  // die version die der User hat
var hasRightVersion = false; // wahr wenn der User die richtige Version hat

var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; // TRUE wenn IE
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false; // TRUE wenn auf Windows
 
/* VB-Script Detection für Internet Explorer unter Windows -------------------------------------------------------------------*/
if(isIE && isWin){
 document.write('<SCRIPT LANGUAGE=VBScript\> \n');
 document.write('on error resume next \n');
 document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
 document.write('on error resume next \n');
 document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
 document.write('on error resume next \n');
 document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
 document.write('on error resume next \n');
 document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n'); 
 document.write('on error resume next \n');
 document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');
 document.write('on error resume next \n');
 document.write('flash7Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n'); 
 document.write('</SCRIPT\> \n');
}

/* Detect Flash
---------------*/
function detectFlash(flV) { 

 // existiert navigator.plugins
 if (navigator.plugins) {
  // check für flash 2 oder flash 3+
  if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
   var isVersion2    = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
   var flashDescription  = navigator.plugins["Shockwave Flash" + isVersion2].description;

   // alert("Flash plugin description: " + flashDescription);

   var flashVersion   = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
       flash2Installed   = flashVersion == 2;   
   flash3Installed   = flashVersion == 3;
   flash4Installed   = flashVersion == 4;
   flash5Installed   = flashVersion == 5;
   flash6Installed   = flashVersion == 6;
   flash7Installed   = flashVersion >= 7;
  }
 }

 for (var i = 2; i <= maxVersion; i++) { 
  if (eval("flash" + i + "Installed") == true) actualVersion = i;
 }

 if(navigator.userAgent.indexOf("WebTV") != -1) actualVersion = 3; 

 //  alert("version detected: " + actualVersion);

 if (actualVersion >= flV) {
  hasRightVersion = true;               
 } else { 
  hasRightVersion = false;
 }
} 

/* Schreibe Flash
-----------------*/
function writeFlash(strFlash, strNoFlash, flVersion) {
 /* steht in "strFlash" im object-Tag eine Version und diese ist
ungleich
 ** mit der bereits angegebenen Version in "flVersion" dann wird
"flVersion"
 ** auf die Version aus dem object-Tag gesetzt
 
------------------------------------------------------------------------
--*/
 var posVersion = strFlash.search(/#version=.+/);
 if(posVersion != -1) {
  var objectTagVersion =
strFlash.substring(posVersion+9,posVersion+10);
  if (objectTagVersion != flVersion) {
   flVersion = objectTagVersion;
  }
 }

 // alert(flVersion);

 // detect flash version
 detectFlash(flVersion);
 if(hasRightVersion) {
  // Flash - Version passt - Umleitung auf Flash - Seite
  // document.location.href = stringFlash;

 } else {
  // Flash - Version passt nicht - Umleitung auf No-Flash - Seite
   parent.mainFrame.location.href = stringNoFlash;
 
 }
 
}


/*
Script wird wie folgt eingebunden:
------------------------------------------------------------


*/


function chgStyle(objname, cname) {
	document.getElementById(objname).className=cname;
}
function chgInfoline(objname, itxt) {
	document.getElementById(objname).value=itxt;
}

