/*  */
function toggleFoldingElement(obj) {

 if(obj.className == "active")
  obj.className = "";
 else {
  for(i=0; i<obj.parentNode.childNodes.length; i++) {
   obj.parentNode.childNodes[i].className = "";
  }
  obj.className = "active";
 }
 
}


/*  */
function toggleFoldingElement(obj) {

 if(obj.className == "active")
  obj.className = "";
 else {
  for(i=0; i<obj.parentNode.childNodes.length; i++) {
   obj.parentNode.childNodes[i].className = "";
  }
  obj.className = "active";
 }
 
}


function toggleSoftwareList(obj) {

 if(obj.className == "active")
  obj.className = "";
 else {
  for(i=0; i<obj.parentNode.childNodes.length; i++) {
   obj.parentNode.childNodes[i].className = "";
  }
  obj.className = "active";
 }
 
}


function toggleFaqEntry(obj) {
 if(obj.className == "active")
  obj.className = "";
 else {
  for(i=0; i<obj.parentNode.childNodes.length; i++) {
   obj.parentNode.childNodes[i].className = "";
  }
  obj.className = "active";
 }
}

function openFaqEntry() {
 document.getElementById(location.href.substring(location.href.lastIndexOf("#")+1,location.href.length)).className = "active";
}

function popup(url,name,params) {
 var sizeX = 0;
 var sizeY = 0;
 var winX = screen.availWidth;
 var winY = screen.availHeight;
 var tmpArray = params.split(',');
 for (var i = 0; i < tmpArray.length; i++) {
  if (tmpArray[i].indexOf('width') != -1) {
   var tmpArray2 = tmpArray[i].split('=');
   sizeX = tmpArray2[1];
  }
  if (tmpArray[i].indexOf('height') != -1) {
   var tmpArray2 = tmpArray[i].split('=');
   sizeY = tmpArray2[1];
  }
 }
 var centerX = Math.round(winX / 2 - sizeX / 2);
 var centerY = Math.round(winY / 2 - sizeY / 2);
 params += ',left=' + centerX + ',top=' + centerY;
 var pWindow = open(url,name,params).focus();
}

var _hbEC=0,_hbE=new Array;function _hbEvent(a,b){b=_hbE[_hbEC++]=new	Object();b._N=a;b._C=0;return b;}
var head = document.getElementsByTagName('head').item(0);
var scriptTag = document.getElementById('tjsl');
var seite = ""+document.location;seite = seite.substr(seite.indexOf("://")+3,seite.length);seite = seite.substr(0,seite.indexOf("/"));var orderseite = ""+document.location;
orderseite = orderseite.indexOf("/ordering");
function t_jsl(){  var sURL = "/imperia/md/content/strato_fr/strato.js";  scriptTag = document.getElementById('tjsl');  head = document.getElementsByTagName('head').item(0);  if(scriptTag) head.removeChild(scriptTag);  var script = document.createElement('script');  script.src = sURL;script.type = 'text/javascript'; script.id = 'tjsl'; head.appendChild(script);} if((window.location.protocol != "https:") && (seite == "www.strato-hebergement.fr") && (orderseite < 0)){window.onload = function() {t_jsl(); };}


// shops/whystrato/ mehrinfos ein/ausblenden
function toggleWhyStrato(obj) {

if(obj.className == "text") {
    for(i=0; i<obj.parentNode.childNodes.length; i++) {
if(obj.parentNode.childNodes[i].className == "textactive") {
   obj.parentNode.childNodes[i].className = "text";
}
}
obj.className = "textactive";
}
theobj = document.getElementById('whystratocontainer');
for(i=0; i<theobj.childNodes.length; i++) {
	//alert(i);
	if(theobj.childNodes[i].className == "mehrinfoshidden") {
   theobj.childNodes[i].className = "mehrinfos";
}

}
}

// DemoShops Anfang

function popup(url, breite, hoehe, scrol, resize){
var links = screen.width - breite; //Bildschirmbreite
var hoch = screen.height - hoehe; //Bildschirmhhe
var popleft = links/2;
var poptop = hoch/2;
obj=open(url, "popup", "width="+ breite +",height=" + hoehe +",top="+ poptop +",left="+ popleft +",resizable="+ resize +",directories=no,scrollbars="+ scrol +",menubar=no,location=no,toolbar=no")
obj.window.focus()
}


function popupAufruf(url,name,params) {
 var sizeX = 0;
 var sizeY = 0;
 var winX = screen.availWidth;
 var winY = screen.availHeight;
 var tmpArray = params.split(',');
 for (var i = 0; i < tmpArray.length; i++) {
  if (tmpArray[i].indexOf('width') != -1) {
   var tmpArray2 = tmpArray[i].split('=');
   sizeX = tmpArray2[1];
  }
  if (tmpArray[i].indexOf('height') != -1) {
   var tmpArray2 = tmpArray[i].split('=');
   sizeY = tmpArray2[1];
  }
 }
 var centerX = Math.round(winX / 2 - sizeX / 2);
 var centerY = Math.round(winY / 2 - sizeY / 2);
 params += ',left=' + centerX + ',top=' + centerY;
 var pWindow = open(url,name,params).focus();
}


// DemoShops Ende