/*
var message="";

function clickIE()
 
{if (document.all)
{(message);return false;}}
 
function clickNS(e) {
if
(document.layers||(document.getElementById&&!document.all))
{
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.  onmousedown=clickNS;}
else
{document.onmouseup=clickNS;document.oncontextmenu  =clickIE;}
 
document.oncontextmenu=new Function("return false")
*/

  //P: Change class of an element, identified by layer id
  //I: lyr: Layer id
  //   newClass: Class name to apply to layer
  function setClass(lyr,newClass) {
    document.getElementById(lyr).className = newClass;
  }



    function rotate() {
      
      var rotatorTxt= new Array(4);
      rotatorTxt[0]="Palsgaard emulsifiers and stabilizer blends"; 
      rotatorTxt[1]="Palsgaard emulsifiers and stabilizer blends";
      rotatorTxt[2]="Palsgaard emulsifiers and stabilizer blends"; 
      rotatorTxt[3]="Palsgaard emulsifiers and stabilizer blends";

      // var randomNumber=Math.floor(Math.random()*4); 
      var randomNumber=Math.floor(Math.random()*3); 
      document.getElementById("frontpage_image").innerHTML="<img alt=\"" + rotatorTxt[randomNumber] +"\" src=\"/Files/Billeder/frontpage_0" + (randomNumber + 1)+".jpg\"/>";
   }