<!--
var i=0;
var tempGlobalVal1="pics/loft_<cfoutput>#bilderserie_1#</cfoutput>_s_col_2.jpg";
var tempGlobalVal2="pics/plaene_<cfoutput>#bilderserie_2#</cfoutput>_s_col_2.jpg";
var tempGlobalVal3="pics/projekte_<cfoutput>#bilderserie_3#</cfoutput>_s_col_2.jpg";
var tempGlobalVal4="pics/mitarbeiter_<cfoutput>#bilderserie_4#</cfoutput>_s_col_2.jpg";
function change1()
{
	var firstPart = tempGlobalVal1.substring(0,tempGlobalVal1.lastIndexOf("/")+1);	
	var lastPart = tempGlobalVal1.substring(tempGlobalVal1.lastIndexOf("/")+1,tempGlobalVal1.length);
	var lastPartImage = lastPart.substring(0,lastPart.lastIndexOf("."));
	lastPartImage =lastPartImage+"_2"+".jpg";
	document.slideshow.BILD.src=firstPart+lastPartImage;
}

function change2()
{
	
	var firstPart = tempGlobalVal2.substring(0,tempGlobalVal2.lastIndexOf("/")+1);	
	var lastPart = tempGlobalVal2.substring(tempGlobalVal2.lastIndexOf("/")+1,tempGlobalVal2.length);
	var lastPartImage = lastPart.substring(0,lastPart.lastIndexOf("."));
	lastPartImage =lastPartImage+"_2"+".jpg";
	document.slideshow.BILD.src=firstPart+lastPartImage;

	
}

function change3()
{

	var firstPart = tempGlobalVal3.substring(0,tempGlobalVal3.lastIndexOf("/")+1);	
	var lastPart = tempGlobalVal3.substring(tempGlobalVal3.lastIndexOf("/")+1,tempGlobalVal3.length);
	var lastPartImage = lastPart.substring(0,lastPart.lastIndexOf("."));
	lastPartImage =lastPartImage+"_2"+".jpg";
	document.slideshow.BILD.src=firstPart+lastPartImage;

}

function change4()

{

	var firstPart = tempGlobalVal4.substring(0,tempGlobalVal4.lastIndexOf("/")+1);	
	var lastPart = tempGlobalVal4.substring(tempGlobalVal4.lastIndexOf("/")+1,tempGlobalVal4.length);
	var lastPartImage = lastPart.substring(0,lastPart.lastIndexOf("."));
	lastPartImage =lastPartImage+"_2"+".jpg";
	document.slideshow.BILD.src=firstPart+lastPartImage;
}
//-->

//var tempGlobalVal1="pics/loft_01_s_col_2.jpg";

function MultiSwap1(imgRef, period) 
{
 this.period=period;  
 this.timer=null;
 this.index=0;
 this.theElem=document.getElementById(imgRef);
 this.defSrc=this.theElem.src;
 this.imgData=[];

 for(var i=2,j=0; i<arguments.length; i++,j++)
 {
  this.imgData[j]=new Image();
  this.imgData[j].src=arguments[i];

 }

 this.trigElem = (this.theElem.parentNode.tagName=='A' ? this.theElem.parentNode : this.theElem);

 this.trigElem.onmouseout=this.trigElem.onblur=(function(obj){ return function()
 
 { clearInterval(obj.timer);
   obj.theElem.src=obj.defSrc; 
   obj.index=0;
   
  
 }})(this);

 this.trigElem.onmouseover=this.trigElem.onfocus=(function(obj){return function()
 {
  obj.trigElem.onmouseout();
  
  obj.timer=setInterval( (function(inst){return function(){inst.swap()}})(obj), obj.period);

 }})(this);

 this.swap=function(/*73637269707465726C61746976652E636F6D*/)
 {
  if(this.index==this.imgData.length)
  this.index=0;  
  this.theElem.src=this.imgData[ this.index++ ].src;
  tempGlobalVal1 = this.theElem.src;

 }
}

//var tempGlobalVal2="pics/plaene_01_s_col_2.jpg";


function MultiSwap2(imgRef, period) 
{
 this.period=period;  
 this.timer=null;
 this.index=0;
 this.theElem=document.getElementById(imgRef);
 this.defSrc=this.theElem.src;
 this.imgData=[];

 for(var i=2,j=0; i<arguments.length; i++,j++)
 {
  this.imgData[j]=new Image();
  this.imgData[j].src=arguments[i];
 }

 this.trigElem = (this.theElem.parentNode.tagName=='A' ? this.theElem.parentNode : this.theElem);

 this.trigElem.onmouseout=this.trigElem.onblur=(function(obj){ return function()
 
 { clearInterval(obj.timer);
   obj.theElem.src=obj.defSrc; 
   obj.index=0;
 }})(this);

 this.trigElem.onmouseover=this.trigElem.onfocus=(function(obj){return function()
 {
  obj.trigElem.onmouseout();
  obj.timer=setInterval( (function(inst){return function(){inst.swap()}})(obj), obj.period);

 }})(this);

 this.swap=function(/*73637269707465726C61746976652E636F6D*/)
 {
  if(this.index==this.imgData.length)
   this.index=0;  
  this.theElem.src=this.imgData[ this.index++ ].src;
  tempGlobalVal2 = this.theElem.src;
 }
}
//var tempGlobalVal3="pics/projekte_01_s_col_2.jpg";

function MultiSwap3(imgRef, period) 
{
 this.period=period;  
 this.timer=null;
 this.index=0;
 this.theElem=document.getElementById(imgRef);
 this.defSrc=this.theElem.src;
 this.imgData=[];

 for(var i=2,j=0; i<arguments.length; i++,j++)
 {
  this.imgData[j]=new Image();
  this.imgData[j].src=arguments[i];
 }

 this.trigElem = (this.theElem.parentNode.tagName=='A' ? this.theElem.parentNode : this.theElem);

 this.trigElem.onmouseout=this.trigElem.onblur=(function(obj){ return function()
 
 { clearInterval(obj.timer);
   obj.theElem.src=obj.defSrc; 
   obj.index=0;
 }})(this);

 this.trigElem.onmouseover=this.trigElem.onfocus=(function(obj){return function()
 {
  obj.trigElem.onmouseout();
  obj.timer=setInterval( (function(inst){return function(){inst.swap()}})(obj), obj.period);

 }})(this);

 this.swap=function(/*73637269707465726C61746976652E636F6D*/)
 {
  if(this.index==this.imgData.length)
   this.index=0;  
  this.theElem.src=this.imgData[ this.index++ ].src;
  tempGlobalVal3 = this.theElem.src;
 }
}
//var tempGlobalVal4="pics/mitarbeiter_01_s_col_2.jpg";
function MultiSwap4(imgRef, period) 
{
 this.period=period;  
 this.timer=null;
 this.index=0;
 this.theElem=document.getElementById(imgRef);
 this.defSrc=this.theElem.src;
 this.imgData=[];

 for(var i=2,j=0; i<arguments.length; i++,j++)
 {
  this.imgData[j]=new Image();
  this.imgData[j].src=arguments[i];
 }

 this.trigElem = (this.theElem.parentNode.tagName=='A' ? this.theElem.parentNode : this.theElem);

 this.trigElem.onmouseout=this.trigElem.onblur=(function(obj){ return function()
 
 { clearInterval(obj.timer);
   obj.theElem.src=obj.defSrc; 
   obj.index=0;
 }})(this);

 this.trigElem.onmouseover=this.trigElem.onfocus=(function(obj){return function()
 {
  obj.trigElem.onmouseout();
  obj.timer=setInterval( (function(inst){return function(){inst.swap()}})(obj), obj.period);

 }})(this);

 this.swap=function(/*73637269707465726C61746976652E636F6D*/)
 {
  if(this.index==this.imgData.length)
   this.index=0;  
  this.theElem.src=this.imgData[ this.index++ ].src;
  tempGlobalVal4 = this.theElem.src;
 }
}
function BilderVorladen()
{
    document.Vorladen = new Array();

    if(document.images)
    {
        for(var i = 0; i < BilderVorladen.arguments.length; i++)
        {
            document.Vorladen[i] = new Image();
            document.Vorladen[i].src = BilderVorladen.arguments[i];
        }
    }
}
