// Bilddwechsel
function Bildwechsel(Bildnr,Bildobjekt)
{
window.document.images[Bildnr].src = Bildobjekt.src;
}
normal1 = new Image();
normal1.src = "../../../images/sm_dot_red.gif";
high1 = new Image();
high1.src = "../../../images/sm_ani_red.gif";

normal2 = new Image();
normal2.src = "../../../images/up1.gif";

function change_to(element) {
element.style.backgroundColor ='#FF8254';
element.style.color ='#FFFFFF';
}
function change_back(element) {
element.style.backgroundColor ='#F7EDC8';
element.style.color ='#CE691D';
}

// Tabellenhintergrund in verschiedenen Tabellen wechseln
function cheatOver(num, xx, yy) {
  if (!document.getElementById) return;
  var col = '#9C0F1D';
  var td = document.getElementById('cheatTd' + num + '_' + xx + '_' + yy);
  td.style.backgroundColor = col;
//  td.style.fontWeight = 'bold';
  td.style.color = '#FFFFFF';
  td.style.backgroundColor = '#FF8254';
  var td = document.getElementById('cheatTd' + num + '_' + '0' + '_' + yy);
  td.style.backgroundColor = col;
  var td = document.getElementById('cheatTd' + num + '_' + xx + '_' + '0');
}
function cheatOut(num, xx, yy) {
  if (!document.getElementById) return;
  var td = document.getElementById('cheatTd' + num + '_' + xx + '_' + yy);
  td.style.backgroundColor = '#F7EDC8';
//  td.style.fontWeight = 'normal';
  td.style.color = '#CE691D';
  td.style.backgroundColor = '#F7EDC8';
  var td = document.getElementById('cheatTd' + num + '_' + '0' + '_' + yy);
  td.style.backgroundColor = '#F7EDC8';
}

// Tabellenhintergrund GAMES
function cheatOver2(num, xx, yy) {
  if (!document.getElementById) return;
  var col = '#FFFFFF';                       // Hover gesamter Hintergrund
  var td = document.getElementById('cheat2Td' + num + '_' + xx + '_' + yy);
  td.style.backgroundColor = col;
  td.style.color = '#FFFFFF';                // Hover Text
  td.style.backgroundColor = '#FF8254';      // Hintergrund
  var td = document.getElementById('cheat2Td' + num + '_' + '0' + '_' + yy);
  td.style.backgroundColor = col;
  var td = document.getElementById('cheat2Td' + num + '_' + xx + '_' + '0');
}
function cheatOut2(num, xx, yy) {
  if (!document.getElementById) return;
  var td = document.getElementById('cheat2Td' + num + '_' + xx + '_' + yy);
  td.style.backgroundColor = '#FFFFFF';
  td.style.color = '#9C0F1D';              // Text
  td.style.backgroundColor = '#FFFFFF';    // Hintergrund
  var td = document.getElementById('cheat2Td' + num + '_' + '0' + '_' + yy);
  td.style.backgroundColor = '#FFFFFF';
}

// Show-Tip der ersten 8 Tabellen
function showtip(tip){
document.tool.tip.value=tip
}

// DROPDOWN-MENUE - GAMES
var refer=true;
function combo() {
if (refer) {
  document.all.contents.style.visibility="visible";
  refer=false;
}
else {
  document.all.contents.style.visibility="hidden";
  refer=true;
}
}

/*     Zu den Spielen ;-)  **************************
DOM Image rollover: by Chris Poole -  http://chrispoole.com -  Script featured on http://www.dynamicdrive.com - Keep this notice intact to use it :-)
*************************************************** */

function init() {
  if (!document.getElementById) return
  var imgOriginSrc;
  var imgTemp = new Array();
  var imgarr = document.getElementsByTagName('img');
  for (var i = 0; i < imgarr.length; i++) {
    if (imgarr[i].getAttribute('hsrc')) {
        imgTemp[i] = new Image();
        imgTemp[i].src = imgarr[i].getAttribute('hsrc');
        imgarr[i].onmouseover = function() {
            imgOriginSrc = this.getAttribute('src');
            this.setAttribute('src',this.getAttribute('hsrc'))
        }
        imgarr[i].onmouseout = function() {
            this.setAttribute('src',imgOriginSrc)
        }
    }
  }
}
onload=init;

