//This script belong to Esben Stig Ehrenskjöld. © Copyright 2007 All rights reserved.
//<!-- Begin
function doTrans(status) {
	if( typeof( window.innerWidth ) == 'number' ) {
		if(count>imageCount){
		count=0;
		}
		else{
			count = count +1;
	 	};
		document.getElementById("img1").src = imagePath + image[count];
		setTimeout("play('play')", slideSpeed);
	}
	else {
	    //Change the transition
		myDiv.filters(0).transition = curTrans;
		myDiv.filters(0).Apply();
		//Change the picture
		if(count>imageCount){
			count=0;
		}
		else{
			count = count +1;
	 	};
		document.getElementById("img1").src = imagePath + image[count];
	
		// Resets the transition
		if (maxTrans>0){
		if (++curTrans > maxTrans) curTrans = 0;
		};
	
		setTimeout("play('play')",slideSpeed);
	}
};
// End -->