function oprint() {
win=window.open("print_main.php?la=" + spra + "","ARTIKEL","width=" + wpop + ",height=600,left=50,top=30,resizable=yes,toolbar=yes,scrollbars=yes");
win.focus();
}

function opop(w) {
var zi = w + "&lang=" + spra;
if(fenster == 0) {
win=window.open(zi,"ARTIKEL","width=" + wpop + ",height=700,left=50,top=30,resizable=yes,toolbar=no,scrollbars=yes");
win.focus();
} else {
window.location.href = zi; 
}
}


function opdia(w,s,bgc) {
var zi2 = "diashow.php?art=" + w + "&start=" + s + "&bg=" + bgc + "&la=" + spra;
win=window.open(zi2,"Diashow","width=100%,height=100%,left=0,top=0,resizable=yes,toolbar=no,scrollbars=yes");
win.focus();
}

function odia(y) {
var bc = y.split(","); 
var w = bc[0];
var s = 1;
if(bc[1]) {
var bgc = bc[1];
} else {
var bgc = 0; 
}
var zi2 = "diashow.php?art=" + w + "&start=" + s + "&bg=" + bgc + "&la=" + spra;
win=window.open(zi2,"Diashow","width=800,height=750,left=0,top=0,resizable=yes,toolbar=no,scrollbars=yes");
win.focus();
}

function sendmail(vor,nach) {
var teil1 = "mai";
var teil2 = "lto:";
window.location.href = teil1 + teil2 + vor + "@" + nach; 
}

//Fuer Akkordeon2
function akk2(ar) {
var dom = document.getElementById('id_' + ar);

if(dom.getElementsByTagName("div")[0].style.display == "block") {
dom.getElementsByTagName("div")[0].style.display = "none"; 
dom.getElementsByTagName("img")[0].setAttribute("src", 'bilder_vor/pfeil_re1.gif');
} else {
dom.getElementsByTagName("div")[0].style.display = "block"; 
dom.getElementsByTagName("img")[0].setAttribute("src", 'bilder_vor/pfeil_re2.gif');
}
} 

function ogal(w, a) {
var zi2 = "c_diashow.php?lang=" + spra + "&art=Diashow_" + a + "&start=" + w;
win=window.open(zi2,"Diashow","width=800,height=750,left=50,top=10,resizable=yes,toolbar=no,scrollbars=yes");
win.focus();
}

function toggle_ak2(x) {
if($("#id_" + x + " div.inakko").is(':visible')) {
$("#id_" + x + " img").attr("src","bilder_vor/pfeil_re1.gif");
} else {
$("#id_" + x + " img").attr("src","bilder_vor/pfeil_re2.gif");
}
$("#id_" + x + " div.inakko").slideToggle("normal");

}


$(document).ready(function(){
/* VARIABLE LINKS  */
$(".variabel").each(function(){
var oco = $(this).attr("change");
var ocol = oco.split("::");
$(this).css({'color': "" + ocol[0] + "",
'text-decoration': 'none'});

 $(this).hover(
      function () {      
        $(this).css({'color': "" + ocol[1] + "",
        'text-decoration': "" + ocol[2] + ""});
      }, 
      function () {
        $(this).css({'color': "" + ocol[0] + "",
		'text-decoration': 'none'});
      });
 
  }); /* Ende each */


$(".eo tr:odd").css("background-color", "#F6F6F6");
$(".rundeck").append("<div class='oli'>&nbsp;</div><div class='ore'>&nbsp;</div><div class='uli'>&nbsp;</div><div class='ure'>&nbsp;</div>");

$("a").bind("focus",function(){
if(this.blur)this.blur();
});

$('a[rel*=facebox]').facebox();

});


function close() {
jQuery(document).trigger('close.facebox') 
}

/*
var err = "";
window.onload = function() {
try {
weiter(1,1);
} catch(e) {
err += e + " | "; 
}
alert(err);
}
*/


/*  Link (Funktionsname ohne Anf-Zeichen)
runOnLoad(weiter);  */

function runOnLoad(f) {
runOnLoad.funcs.push(f);
}

runOnLoad.funcs = [];

/* FUEHRT ALLE IM ARRAY GESPEICHERTEN VARIABLEN ALS FUNKTIONEN AUS */
runOnLoad.run = function() {
if(runOnLoad.funcs.length > 0) {
for (var i = 0; i < runOnLoad.funcs.length; i++) {
try  { runOnLoad.funcs[i](); }
catch(e) { return; }
} 
}
}
window.onload = runOnLoad.run;
