

var speed = 4000;
var crossFadeDuration = 2;
var Pic = new Array();

Pic[0] = 'http://localhost/manali/images/inner/showpeice.jpg';
Pic[1] = 'http://localhost/manali/images/inner/lamps.jpg';
Pic[2] = 'http://localhost/manali/images/inner/artwork.jpg';
Pic[3] = 'http://localhost/manali/images/inner/carpets.jpg';
Pic[4] = 'http://localhost/manali/images/inner/electronics.jpg';
Pic[5] = 'http://localhost/manali/images/inner/furniture.jpg';
Pic[6] = 'http://localhost/manali/images/inner/cds.jpg';
Pic[7] = 'http://localhost/manali/images/inner/books.jpg';


var t;
var j = 0;
var p = Pic.length;

var preLoad = new Array();
for (i = 0; i < p; i++){
   preLoad[i] = new Image();
   preLoad[i].src = Pic[i];}
   
function runSlideShow(){

if (document.all){
    document.getElementById('jasmine').style.filter="blendTrans(duration=crossFadeDuration)";
    document.getElementById('jasmine').filters.blendTrans.Apply();
    document.getElementById('jasmine').filters.blendTrans.Play();}  

if (document.getElementById('jasmine')){
	//alert(Pic[j]);
	document.getElementById('jasmine').setAttribute('background',Pic[j]);
//   document.getElementById('jasmine').style.backgroundImage = Pic[j];    
    j = j + 1
    if (j > (p-1)) j=0
    t = setTimeout('runSlideShow()', speed)}    

}


