var temp_i = GetRandom(0,9);

function menu_show(id,hidden){
  document.getElementById(hidden).style.display ='block';
  document.getElementById(id).style.backgroundColor='#E0E6EB';
  document.getElementById(id).style.opacity='0.7';
  //document.getElementById(id).style.filter = "alpha(opacity=0)";

  document.getElementById(id+"_u").style.color="black";
  
}

function menu_hide(id,hidden){
 document.getElementById(hidden).style.display ='none';
 document.getElementById(id).style.backgroundColor='#ffffff';
 document.getElementById(id).style.opacity='1';
 document.getElementById(id+"_u").style.color="grey";
 
}
function link(site){
  window.location.href = site;
}

function picture() {
  arr = new Array("hp","lancom","vmware","kaspersky","symantec","astaro","wortmann","snom","microsoft","avm");
  var link;

  if(arr[temp_i] == "hp")
  {
    link = "www.hp.de";
  }else if(arr[temp_i] == "lancom")
  {
    link = "www.lancom-systems.de/";
  }else if(arr[temp_i] == "vmware")
  {
    link = "www.vmware.com/de/";
  }else if(arr[temp_i] == "kaspersky")
  {
    link = "www.kaspersky.com/de/";
  } else if(arr[temp_i] == "symantec")
  {
    link = "www.symantec.com/de/de";
  } else if(arr[temp_i] == "astaro")
  {
    link = "www.astaro.com/de-de";
  } else if(arr[temp_i] == "wortmann")
  {
    link = "www.wortmann.de";
  } else if(arr[temp_i] == "snom")
  {
    link = "www.snom.com";
  } else if(arr[temp_i] == "microsoft")
  {
    link = "www.microsoft.de";
  }else if(arr[temp_i] == "avm")
  {
    link = "www.avm.de";
  }
  
  document.getElementById("partner").innerHTML = "<a href=http://"+link+" target=_blank><img src=img/p_"+arr[temp_i]+".png border=0 ></a>";
  
  if((arr.length - 1) == temp_i)
    temp_i = 0;
  else 
    temp_i++;
  
  setTimeout("picture()",3000);
}

function GetRandom( min, max ) {
  if( min > max ) {
    return( -1 );
  }
  if( min == max ) {
    return( min );
  }
  return min + parseInt( Math.random() * ( max-min+1 ));
}

