<!--
function swap_img(img_name,img_path,new_src,status) {
document.images[img_name].src = img_path + new_src;
}

function load_img() {
var img_path="images/";
var img_suffix="gif";
var imgs = new Array("intro");
var imgs_o = new Array;
window.status = "Lade Bilder...";
        for (i=0;i<imgs.length;i++)
                {
                imgs_o[imgs[i]] = new Image();
                imgs_o[imgs[i]].src = img_path + imgs[i]+"." + img_suffix;
                imgs_o[imgs[i]+"_o"] = new Image();
                imgs_o[imgs[i]+"_o"].src = img_path + imgs[i]+"_o" +'.' + img_suffix;
                window.status = window.status + ".";
                }
        window.status = "Seite geladen";
}

function playsound(audiosrc) {

var soundwin = window.open("","playsound","dependent=yes,location=no,menubar=no,directories=no,status=no,height=4,width=30,left=400,top=500");

soundwin.focus();
var arg_loop="1";
var arg_delay="5";
var arg_auto="true";
var arg_hidden="true";
var arg_height="0";
var arg_width="0";
soundwin.document.write("<HTML>");
soundwin.document.write("<BODY bgcolor=\"#000000\" text=\"000000\" link=\"FF0000\" alink=\"FF0000\" vlink=\"FF0000\" >");
sound_tag = "<EMBED src=\"" + audiosrc + "\" " + "height=" + "\"" + arg_height + "\" " + "width=" + "\"" + arg_width + "\" " + "autostart=\"" + arg_auto + "\" " + "hidden=\""  + arg_hidden + "\" " + "loop=\"" + arg_loop + "\" " + "delay=\"" + arg_delay + "\">";
//alert(sound_tag);
soundwin.document.write(sound_tag);
soundwin.document.write('<A NAME=\"stopit\"></a>');
soundwin.document.write('<FORM>');
soundwin.document.write('<INPUT TYPE=\"button\" value=\"SILENT MODE\" onClick=\"JavaScript:window.close()\">');
soundwin.document.write('</INPUT>');
soundwin.document.write('</FORM>');
//soundwin.document.write('<A HREF="" onClick=\"soundwin.close()\">Silent Alert</a>');
soundwin.document.write('</BODY>');
soundwin.document.write('</html>');
}



function hrefto(listname) {

	var selform=document.forms[listname];
	var sel=selform.listitem.selectedIndex;
	var url=selform.listitem.options[sel].value;

	targetwin=document.open(url, "ImageGal", "width=1024,height=800,toolbar=1,location=1,directories=1,status=1,menuBar=1,scrollBars=1,resizable=1");
	targetwin.focus();
}

function bl_default_loop(whichid,which_bgcolor,first,last) {

if (first) {

for (lii=first;lii<=last;lii++) {
  var whichidnr=whichid+lii;
  bl_high(whichidnr,which_bgcolor);
  }
}
}


function bl_high_loop(whichid,which_h_bgcolor,which_n_bgcolor,from_bl,to_bl,first,last) {

//alert(whichid + ':' + which_h_bgcolor);
if (first) {

for (lii=first;lii<=last;lii++) {
  var whichidnr=whichid+lii;
  bl_high(whichidnr,which_n_bgcolor);
  }

}

if (from_bl) {

for (lii=from_bl;lii<=to_bl;lii++) {
  var whichidnr=whichid+lii;
  bl_high(whichidnr,which_h_bgcolor);
  }
}
}

function bl_high(whichid,which_bgcolor) {
// alert(whichid + ' : ' + which_bgcolor)
var elem=fetch_Element(whichid);
elem.style.backgroundColor=which_bgcolor;

}


function loop_color(whichid,idfrom,idto) {

if(typeof cii=='undefined') { cii = 0 }


//alert(cii + '/' + cii_max);
bl_high_loop(whichid,bgcolors[cii],'',idfrom,idto);
var retard=window.setTimeout("loop_color(" + "'" + whichid + "','" + idfrom + "','" + idto + "')",1000);
cii = cii + 1;
if (cii>=cii_max) {
   clearTimeout(retard);
   cii=0;
   }
}


function init_bgcolors(cellname,maxids) {

var bgi=1;
while (bgi<=maxids) {

var colindex = (cii_max + bgi - 1) % (cii_max);
    cellid=cellname+bgi;
    bl_high(cellid,bgcolors[colindex]);
    bgi=bgi+1;
   }

}

function rotate_bgcolors(cellname,maxids) {

if(typeof cii=='undefined') { cii = 1 }

   cellid_next = cellname + (((maxids + cii) % (maxids)) + 1)
   cellid=cellname + cii;
      if (cii==1) {
      savcolor=document.getElementById(cellid).style.backgroundColor;

      }
/* Zell-Offset fuer Nachfolger festlegeb
*/

/* Farbe vom Nachfolger holen
*/
   if(cii==maxids) {
      get_color=savcolor;
      alert(savcolor);
      }
   else {
      get_color=document.getElementById(cellid_next).style.backgroundColor;
   }
   bl_high(cellid,get_color);
   cii = cii + 1;
   if (cii>maxids) {
     cii=1;
   }

   var retard=window.setTimeout("rotate_bgcolors(" + "'" + cellname + "','" + maxids + "')",100);



}
/*
var retard=window.setTimeout("bl_high_loop(" + "'" + whichid + "','" + bgcolors[cii] + "','" + "','" + idfrom + "','" + idto + "')",1000);
*/






// -->
