
/* ####################### begins list of images to be used ####################### */

currentIndx3=0;

/* ##################### array for logo ################### */
MyImages3=new Array();
MyImages3[0]='images/what_cslip8.jpg';
MyImages3[1]='images/what_cslip9.jpg';
MyImages3[2]='images/what_cslip10.jpg';
MyImages3[3]='images/what_cslip11.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 ####################### */

imagesPreloaded3 = new Array(4)
for (var i = 0; i < MyImages3.length ; i++) 
{
	imagesPreloaded3[i] = new Image(296,160)
	imagesPreloaded3[i].src=MyImages3[i]
}
/*
titlePreloaded = new Array(2)
for (var j = 0; j < MyImages3.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 Nexter3(){
if (currentIndx3<imagesPreloaded3.length-1){
currentIndx3=currentIndx3+1;
document.theImage3.src=imagesPreloaded3[currentIndx3].src
/* document.theTitle.src=titlePreloaded[currentIndx3].src */
}
else {
 currentIndx3=0
document.theImage3.src=imagesPreloaded3[currentIndx3].src
/* document.theTitle.src=titlePreloaded[currentIndx3].src */

}
}

/* function for previous image */
function Backer3(){
if (currentIndx3>0){
currentIndx3=currentIndx3-1;
document.theImage3.src=imagesPreloaded3[currentIndx3].src
/* document.theTitle.src=titlePreloaded[currentIndx3].src */
}
else {
 currentIndx3=2
document.theImage3.src=imagesPreloaded3[currentIndx3].src
/* document.theTitle.src=titlePreloaded[currentIndx3].src */
}}

/* function for slieshow image */
function automaticly3() {
if (currentIndx3<imagesPreloaded3.length){
currentIndx3=currentIndx3
}
else {
 currentIndx3=0
}	
chng3(document.theImage3,imagesPreloaded3[currentIndx3].src)
currentIndx3=currentIndx3+1;
var delay = setTimeout("automaticly3()",3500)
}
function chng3(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;	
	}
}