<!--
i = 5
cwsimages1 = new Image();
cwsimages1.src = "promo/qif-201.jpg";
cwsimages2 = new Image();
cwsimages2.src = "promo/qif-202.jpg";
cwsimages3 = new Image();
cwsimages3.src = "promo/qif-203.jpg";
cwsimages4 = new Image();
cwsimages4.src = "promo/qif-204.jpg";
cwsimages5 = new Image();
cwsimages5.src = "promo/qif-205.jpg";

link = new Array
link[1] = "product_info.php/products_id/5425/cPath/4063/papier/fotokarten-hochglanz.html"
link[2] = "product_info.php/products_id/5426/cPath/4063/papier/premium-fotokarten-hochglanz.html"
link[3] = "product_info.php/products_id/5427/cPath/4063/papier/fotopapier-hochglanz.html"
link[4] = "product_info.php/products_id/5428/cPath/4063/papier/fotopapier-hochglanz.html"
link[5] = "product_info.php/products_id/5429/cPath/4063/papier/premium-fotopapier-hochglanz.html"


function randomimages(){
	var randomnumber = Math.random();
	i = Math.round( (i - 1) * randomnumber) + 1;
	document.cwsimages.src = eval("cwsimages" + i + ".src");
}

function startTime(){

        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        closeTime=hours*3600+mins*60+secs;
        closeTime+=5;
        Timer();

}

function Timer(){
        var time= new Date();
        hours= time.getHours();
        mins= time.getMinutes();
        secs= time.getSeconds();
        curTime=hours*3600+mins*60+secs
        if (curTime>=closeTime){
                if (i < 5){
                        i++;
                        document.cwsimages.src = eval("cwsimages" + i + ".src");
                }
                else{
                        i = 1;
                        document.cwsimages.src = eval("cwsimages" + i + ".src");
                }
                startTime();
        }
        else{
                window.setTimeout("Timer()",3000)}

}

function Onlink(){
        top.location = link[i]
}


// -->

function LoadImages(ImagesObj,ImagesSrc)
  {  
	eval(ImagesObj+' = new Image()')
	eval(ImagesObj+'.src = "'+ImagesSrc+'"')
  }


LoadImages('home','/templates/xtc004_HHGPT/buttons/german/homean.gif');
LoadImages('kontakt','{$tpl_path}buttons/german/nav/kontaktan.jpg');
LoadImages('versand','{$tpl_path}buttons/german/nav/versandan.jpg');
LoadImages('impressum','{$tpl_path}buttons/german/nav/impressuman.jpg');
LoadImages('widerruf','{$tpl_path}buttons/german/nav/widerrufan.jpg');
LoadImages('service','{$tpl_path}buttons/german/nav/servicean.jpg');


