
/* ####################### begins list of images to be used ####################### */

currentIndx1=0;

/* ##################### array for logo ################### */
MyImages1=new Array();
MyImages1[0]='images/what_bcard8.jpg';
MyImages1[1]='images/what_bcard9.jpg';
MyImages1[2]='images/what_bcard10.jpg';
MyImages1[3]='images/what_bcard11.jpg';



/* ##################### array for title image ################### 
Mytitle=new Array();
Mytitle[0]='images/homeimg/title1.jpg';
Mytitle[1]='images/homeimg/title2.jpg';
*/

/* ####################### now we preload the images ####################### */

imagesPreloaded1 = new Array(4)
for (var i = 0; i < MyImages1.length ; i++) 
{
	imagesPreloaded1[i] = new Image(296,160)
	imagesPreloaded1[i].src=MyImages1[i]
}
/*
titlePreloaded = new Array(2)
for (var j = 0; j < MyImages1.length ; j++) 
{
	titlePreloaded[j] = new Image(296,38)	
titlePreloaded[j].src=Mytitle[j]
}
 */


/* ####################### we create the functions to go forward and go back ####################### */

/* function for next image */
function Nexter1(){
if (currentIndx1<imagesPreloaded1.length-1){
currentIndx1=currentIndx1+1;
document.theImage1.src=imagesPreloaded1[currentIndx1].src
/* document.theTitle.src=titlePreloaded[currentIndx1].src */
}
else {
 currentIndx1=0
document.theImage1.src=imagesPreloaded1[currentIndx1].src
/* document.theTitle.src=titlePreloaded[currentIndx1].src */

}
}

/* function for previous image */
function Backer1(){
if (currentIndx1>0){
currentIndx1=currentIndx1-1;
document.theImage1.src=imagesPreloaded1[currentIndx1].src
/* document.theTitle.src=titlePreloaded[currentIndx1].src */
}
else {
 currentIndx1=2
document.theImage1.src=imagesPreloaded1[currentIndx1].src
/* document.theTitle.src=titlePreloaded[currentIndx1].src */
}}

/* function for slieshow image */
function automaticly1() {
if (currentIndx1<imagesPreloaded1.length){
currentIndx1=currentIndx1
}
else {
 currentIndx1=0
}	
chng1(document.theImage1,imagesPreloaded1[currentIndx1].src)
currentIndx1=currentIndx1+1;
var delay = setTimeout("automaticly1()",3500)
}
function chng1(ImgName,ImgSrc) 
{ 
	if(navigator.appName == "Microsoft Internet Explorer")
	{
		ImgName.filters.blendTrans.stop(); 
		ImgName.filters.blendTrans.Apply();
		ImgName.src=ImgSrc;
		ImgName.filters.blendTrans.Play();
	}
	else
	{
		ImgName.src=ImgSrc;	
	}
}
