﻿// TAG-CLOUD

/**
 * SWFObject v1.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
 *
 * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 *
 * **SWFObject is the SWF embed script formarly known as FlashObject. The name was changed for
 *   legal reasons.
 */
if(typeof deconcept=="undefined"){var deconcept=new Object();}
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){
if(!document.createElement||!document.getElementById){return;}
this.DETECT_KEY=_b?_b:"detectflash";
this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
this.params=new Object();
this.variables=new Object();
this.attributes=new Array();
if(_1){this.setAttribute("swf",_1);}
if(id){this.setAttribute("id",id);}
if(w){this.setAttribute("width",w);}
if(h){this.setAttribute("height",h);}
if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);
if(c){this.addParam("bgcolor",c);}
var q=_8?_8:"high";
this.addParam("quality",q);
this.setAttribute("useExpressInstall",_7);
this.setAttribute("doExpressInstall",false);
var _d=(_9)?_9:window.location;
this.setAttribute("xiRedirectUrl",_d);
this.setAttribute("redirectUrl","");
if(_a){this.setAttribute("redirectUrl",_a);}};
deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
this.attributes[_e]=_f;
},getAttribute:function(_10){
return this.attributes[_10];
},addParam:function(_11,_12){
this.params[_11]=_12;
},getParams:function(){
return this.params;
},addVariable:function(_13,_14){
this.variables[_13]=_14;
},getVariable:function(_15){
return this.variables[_15];
},getVariables:function(){
return this.variables;
},getVariablePairs:function(){
var _16=new Array();
var key;
var _18=this.getVariables();
for(key in _18){
_16.push(key+"="+_18[key]);}
return _16;
},getSWFHTML:function(){
var _19="";
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
var _1a=this.getParams();
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
var _1c=this.getVariablePairs().join("&");
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}
_19+="/>";
}else{
if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
var _1d=this.getParams();
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
var _1f=this.getVariablePairs().join("&");
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}
_19+="</object>";}
return _19;
},write:function(_20){
if(this.getAttribute("useExpressInstall")){
var _21=new deconcept.PlayerVersion([6,0,65]);
if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
this.setAttribute("doExpressInstall",true);
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
document.title=document.title.slice(0,47)+" - Flash Player Installation";
this.addVariable("MMdoctitle",document.title);}}
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
var n=(typeof _20=="string")?document.getElementById(_20):_20;
n.innerHTML=this.getSWFHTML();
return true;
}else{
if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
return false;}};
deconcept.SWFObjectUtil.getPlayerVersion=function(_23,_24){
var _25=new deconcept.PlayerVersion([0,0,0]);
if(navigator.plugins&&navigator.mimeTypes.length){
var x=navigator.plugins["Shockwave Flash"];
if(x&&x.description){_25=new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
}else{try{
var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
for(var i=3;axo!=null;i++){
axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
_25=new deconcept.PlayerVersion([i,0,0]);}}
catch(e){}
if(_23&&_25.major>_23.major){return _25;}
if(!_23||((_23.minor!=0||_23.rev!=0)&&_25.major==_23.major)||_25.major!=6||_24){
try{_25=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}
catch(e){}}}
return _25;};
deconcept.PlayerVersion=function(_29){
this.major=parseInt(_29[0])!=null?parseInt(_29[0]):0;
this.minor=parseInt(_29[1])||0;
this.rev=parseInt(_29[2])||0;};
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
if(this.major<fv.major){return false;}
if(this.major>fv.major){return true;}
if(this.minor<fv.minor){return false;}
if(this.minor>fv.minor){return true;}
if(this.rev<fv.rev){return false;}return true;};
deconcept.util={getRequestParameter:function(_2b){
var q=document.location.search||document.location.hash;
if(q){
var _2d=q.indexOf(_2b+"=");
var _2e=(q.indexOf("&",_2d)>-1)?q.indexOf("&",_2d):q.length;
if(q.length>1&&_2d>-1){
return q.substring(q.indexOf("=",_2d)+1,_2e);
}}return "";}};
if(Array.prototype.push==null){
Array.prototype.push=function(_2f){
this[this.length]=_2f;
return this.length;};}
var getQueryParamValue=deconcept.util.getRequestParameter;
var FlashObject=deconcept.SWFObject; // for backwards compatibility
var SWFObject=deconcept.SWFObject;



// EMPFEHLEN SIE DIESE SEITE WEITER

function Empfehlen(){
document.getElementById("ToolboxModulRecommend").style.display="block";
var objFrame=document.getElementById("IFrameModulRecommend");
var hostname = window.location.hostname
var pathname = window.location.pathname;
objFrame.src="http://www.apg-online.de/katholisch.de/artikel_weiterempfehlen.php?parenturl=" + hostname + pathname;
}


// BILDERSLIDESHOW

   var Bild=new Array();
      Bild[0]="bild1";
      Bild[1]="bild2";
      Bild[2]="bild3";
      Bild[3]="bild4";
      Bild[4]="bild5";
      Bild[5]="bild6";
      Bild[6]="bild7";
      Bild[7]="bild8";
      Bild[8]="bild9";
      Bild[9]="bild10";
      Bild[10]="bild11";
      Bild[11]="bild12";
      Bild[12]="bild13";
      Bild[13]="bild14";
      Bild[14]="bild15";
      Bild[15]="bild16";
      Bild[16]="bild17";
      Bild[17]="bild18";
      Bild[18]="bild19";
      Bild[19]="bild20";
      Bild[20]="bild21";
      Bild[21]="bild22";
      Bild[22]="bild23";
      Bild[23]="bild24";
      Bild[24]="bild25";

  function showBild(pos)
 {
  var nr = pos-1;
  if(nr<=24){
   for(var i=0; i<=24; i++){
    document.getElementById(Bild[i]).style.visibility='hidden';
   }
  }
    var divID1="bild"+pos;  
    document.getElementById(divID1).style.visibility='visible'; 
   }
  function oldBild(pos, limit)
 {
  var old = pos-1;
  if(pos>1){
   for(var i=0; i<=24; i++){
    document.getElementById(Bild[i]).style.visibility='hidden';
   }
    var divID1="bild"+old;  
    document.getElementById(divID1).style.visibility='visible'; 
  } else if(pos=1){
   for(var i=0; i<=24; i++){
    document.getElementById(Bild[i]).style.visibility='hidden';
   }
    var divID1="bild"+limit;  
    document.getElementById(divID1).style.visibility='visible'; 
   }
 }
  function neuBild(pos, limit)
 {
  var neu = pos+1;
  if(pos<limit){
   for(var i=0; i<=24; i++){
    document.getElementById(Bild[i]).style.visibility='hidden';
   }
    var divID1="bild"+neu;  
    document.getElementById(divID1).style.visibility='visible'; 
  } else if(pos=limit){
   for(var i=0; i<=24; i++){
    document.getElementById(Bild[i]).style.visibility='hidden';
   }
    var divID1="bild1";  
    document.getElementById(divID1).style.visibility='visible'; 
   }
 }

// KALENDERDATENBLATT
function datum()
{
var datum  =
document.Formular1.Tag.value+"."+document.Formular1.Monat.value+".20"+document.Formular1.Jahr.value;
var txt = document.getElementById("Query2"); txt.value = datum;
document.Formular2.submit()
}

// SEITE EMPFEHLEN
function defineKey(sourceForm) {
    if (event.keyCode == 13){
     defineMailto(document.mailtoForm);
    }
    else {
        sourceForm.an.focus();
 }
}
function defineMailto(sourceForm) {
    var an      = sourceForm.an.value;
    var betreff = "Folgende Seite wird Ihnen empfohlen";
    var artikel = location.href;
    var urltext = "";
    if (an != "") {
       urltext = "mailto:" + an + "?subject=" + escape(betreff) + "&body=" + escape(artikel);
    }
    else {
       alert("Tragen Sie bitte die Email-Adresse des Empfaengers ein!");
       sourceForm.an.focus();
 }
   
    var doc = urltext;
    window.location = doc;
}
// TICKER
function platformDetectaTicker() {
    document.write('<applet codebase="http://www.kna.de/webnews/ticker/" code="aTicker.class" archive="aTicker.jar" width=480 height=20 MAYSCRIPT>');
    if(navigator.appVersion.indexOf("Mac") != -1) {
        document.write('<param name="file" value="KNA_atick_apg_mac.txt">');
    }
    else { 
        document.write('<param name="file" value="KNA_atick_apg.txt">');
    }
    document.write('<param name="_file" value="s">');
    document.write('<param name="cSep" value=";">');
    document.write('<param name="speed" value="1">');
    document.write('<param name="delay" value="30">');
    document.write('<param name="bgcolor" value="16312773">');
    document.write('<param name="Font1" value="Verdana, 13, 1, 4473924">');
    document.write('<param name="Font2" value="Verdana, 13, 1, 0">');
    document.write('<a href="http://www.kna.de/webnews/kwn0_472prs865qylo/kwnews0.htm">Aktuelle Nachrichten</a> nur mit aktiviertem Java.</applet>');
}
function opennewswindow(newsuerel) {
    newswin = open(newsuerel,"newwindow","scrollbars=1,width=590,height=500");
}
 
// FAQ
function gotoFAQ() {
    var page = document.faq.questions.options[document.faq.questions.selectedIndex].value;
    parent.location.href = page;
}
// MINIMIZE MAXIMIZE BUTTON
function loadImage(name)
{
    var neuevar=new Image();
    neuevar.src=name;
    return neuevar;
}
oeffnen=loadImage("p/layout_all/open.gif");
schliessen=loadImage("p/layout_all/close.gif");
function changemode(boxId,image)
{
    if (document.getElementById(boxId + "_openBox").style.display != "none")
    {
        document.getElementById(boxId + "_openBox").style.display = "none";
        image.src = oeffnen.src;
    }
    else
    {
        document.getElementById(boxId + "_openBox").style.display = "block";
        image.src = schliessen.src;
    }
}
// FLASH
o = document.getElementsByTagName("object");  
for(i=0; i<o.length; i++) {  
    o[i].outerHTML = o[i].outerHTML;  
}



var Stil = "Standard";
var Keks = "Layout";
var Tage = 30;
// Style Switcher
function switchStyle(s) {
  if (!document.getElementsByTagName) return;
  var el = document.getElementsByTagName("link");
  for (var i = 0; i < el.length; i++ ) {
    if (el[i].getAttribute("rel").indexOf("style") != -1 && el[i].getAttribute("title")) {
      el[i].disabled = true;
      if (el[i].getAttribute("title") == s) el[i].disabled = false;
    }
  }
}
function loadStyle() {
  var c = getStyleCookie();
  if (c && c != Stil) {
    switchStyle(c);
    Stil = c;
  }
}
function setStyle(s) {
  if (s != Stil) {
    switchStyle(s);
    Stil = s;
  }
  setStyleCookie()
}
window.onload = loadStyle;

// Cookie-Funktionen
function setCookie(name, value, expdays) {   // gültig expdays Tage
  var now = new Date();
  var exp = new Date(now.getTime() + (1000*60*60*24*expdays));
  document.cookie = name + "=" + escape(value) + ";" +
                    "expires=" + exp.toGMTString() + ";" +
                    "path=/";
}
function delCookie(name) {   // expires ist abgelaufen
  var now = new Date();
  var exp = new Date(now.getTime() - 1);
  document.cookie = name + "=;" +
                    "expires=" + exp.toGMTString() + ";" + 
                    "path=/";
}
function getCookie(name) {
  var cname = name + "=";
  var dc = document.cookie;
  if (dc.length > 0) {
    var start = dc.indexOf(cname);
    if (start != -1) {
      start += cname.length;
      var stop = dc.indexOf(";", start);
      if (stop == -1) stop = dc.length;
      return unescape(dc.substring(start,stop));
    }
  }
  return null;
}
function setStyleCookie() {
  setCookie(Keks, Stil, Tage);
}
function getStyleCookie() {
  return getCookie(Keks);
}
function delStyleCookie() {
  delCookie(Keks);
}

// Stylesheet für Netscape 4
if(document.layers)
  document.writeln("<link rel='stylesheet' type='text/css' href='/nn4.css' />");
