// OpenPopup 2009 by Daniel Gronewold
function openpopup(what, width, height){
   winpops=window.open(what,"","width=" + width + ",height=" + height + ",status,menubar,")
}

//
// © 2009 by Daniel Gronewold
// Fading-URL Script v.1.1
//
// Darf auf keinen Fall für den Eigengebrauch verwendet werden!
//
var col1_start = new Array("#d8ecf5", "#d8dcf5", "#ccccfc", "#bbbbfb", "#aaaafa", "#9999f9", "#99a9f9", "#9995f9");
var col1_hover = new Array("#9995f9", "#99a5f9", "#99b0f9", "#99b5f9", "#99c0f9", "#99c5f9", "#99d0f9", "#99d5f9", "#99e0f9", "#99e5f9", "#99f0f9", "#99f5f9", "#99fff9");
var xstart = 0;
var activeelem = 0;
var ctime;
function hovercolor_hover(elemid, colstart, colhover, status_calc) {
      var elem = document.getElementById(elemid);

      var evalstr = "var colors_hover = " + colstart + "_hover;";
      eval(evalstr);
      var colorhover_count = (colors_hover.length);
      elem.style.color = colors_hover[xstart];

      if(xstart!=colorhover_count && status_calc=='plus') {
         xstart = xstart + 1;
      } else {
         status_calc='minus';
      }
      if(xstart!=0 && status_calc=='minus') {
         xstart = xstart - 1;
      } else {
         status_calc='plus';
      }

      activeelem = 1;
      ctime = setTimeout("hovercolor_hover('"+elemid+"', '"+colstart+"', '"+colhover+"', '"+status_calc+"')",50);
}
function hovercolor_start(elemid, colstart, colhover) {
      var elem = document.getElementById(elemid);

      var evalstr = "var colors_start = " + colstart + "_start;";
      eval(evalstr);
      var colorstart_count = (colors_start.length);
      elem.style.color = colors_start[xstart];

      xstart = xstart + 1;
      if(xstart!=colorstart_count) {
         activeelem = 1;
         ctime = setTimeout("hovercolor_start('"+elemid+"', '"+colstart+"', '"+colhover+"')",50);
      } else {
         xstart = 0;
         ctime = setTimeout("hovercolor_hover('"+elemid+"', '"+colstart+"', '"+colhover+"', 'plus')",50);
      }
}
function hoverout(elemid, colstart) {
      clearTimeout(ctime);
      activeelem = 0;
      xstart = 0;
      var elem = document.getElementById(elemid);

      eval("var colors_start = " + colstart + "_start;");
      elem.style.color = colors_start[0];
}
function hovercolor(elemid, colstart, colhover) {
   if(activeelem==0) { hovercolor_start(elemid, colstart, colhover); }
}

