﻿function SLIDE_start()
  {	
// 	alert("help2!!");
	xpixel = SLIDE_xpixel[SLIDE_aktuel];
	ypixel = SLIDE_ypixel[SLIDE_aktuel];
	document.SLIDE_billedeBox.width = xpixel 
  	document.SLIDE_billedeBox.height = ypixel ;
	document.images.SLIDE_billedeBox.src = SLIDE_billede[SLIDE_aktuel];
//	document.getElementById("SLIDE_textBox").innerHTML= SLIDE_text[SLIDE_aktuel];
   	var t = setTimeout("SLIDE_play()",1000);
  }

function SLIDE_play()
{
//  alert("play " + SLIDE_aktuel)
  SLIDE_aktuel++;
  SLIDE_slide();
  SLIDE_status = 'SLIDE_play';
  SLIDE_timeout = setTimeout("SLIDE_play()",SLIDE_speed);
}

function SLIDE_transition()
{
  if (document.all)
   {
//   document.getElementById("SLIDE_textBox").style.background = "transparent";
	if (SLIDE_trans[SLIDE_aktuel]  > 0)
    {
       document.images.SLIDE_billedeBox.style.filter="revealTrans(duration=0)";
       document.images.SLIDE_billedeBox.filters.revealTrans.transition=SLIDE_trans[SLIDE_aktuel];
       document.images.SLIDE_billedeBox.filters.revealTrans.Apply();    
    }
    else
    {
       document.images.SLIDE_billedeBox.style.filter="blendTrans(duration=0)";
       document.images.SLIDE_billedeBox.style.filter="blendTrans(duration=SLIDE_fade)";
       document.images.SLIDE_billedeBox.filters.blendTrans.Apply();
    }
   }
}

function SLIDE_slide()
{
   if (SLIDE_aktuel > (SLIDE_antal)) SLIDE_aktuel=1;
//
 SLIDE_transition();  
 xpixel = SLIDE_xpixel[SLIDE_aktuel];
 ypixel = SLIDE_ypixel[SLIDE_aktuel];
//
 document.images.SLIDE_billedeBox.width =  xpixel ;
 document.images.SLIDE_billedeBox.height = ypixel ;
 document.images.SLIDE_billedeBox.src = SLIDE_billede[SLIDE_aktuel];
// if (document.getElementById) document.getElementById("SLIDE_textBox").innerHTML= SLIDE_text[SLIDE_aktuel];
 if (SLIDE_trans[SLIDE_aktuel]  > 0)
  {
   if (document.all) document.images.SLIDE_billedeBox.filters.revealTrans.Play(); 
  } 
 else
  {
   if (document.all) document.images.SLIDE_billedeBox.filters.blendTrans.Play();
  }
}



