// ==============================
// Setting variables
// ==============================

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 9000;

var Picture = new Array();

// Image files

Picture[1]  = '/img/top/01.jpg';
Picture[2]  = '/img/top/02.jpg';
Picture[3]  = '/img/top/03.jpg';
Picture[4]  = '/img/top/04.jpg';

// =====================================
// Do not edit anything below this line!
// =====================================

//	moduri tranzitie pentru functia crosswipe()
var transition_modes = new Array();
	transition_modes[1] = 'lr';
	transition_modes[2] = 'rl';
	transition_modes[3] = 'tb';
	transition_modes[4] = 'bt';
	transition_modes[5] = 'tlbr';
	transition_modes[6] = 'trbl';
	transition_modes[7] = 'bltr';
	transition_modes[8] = 'cve';
	transition_modes[9] = 'che';
	transition_modes[10] = 'cc';

var random_num;

var tss;
var iss;
var jss = 1;
var total_pictures = Picture.length - 1;

var preLoad = new Array();

for (iss = 1; iss < total_pictures + 1; iss++) {

	preLoad[iss] = new Image();
	preLoad[iss].src = Picture[iss];
}

function runSlideShow(){

	//document.images.PictureBox.src = preLoad[jss].src;

// random transition
	random_num = (Math.round((Math.random() * (transition_modes.length))+1));

//	crosswipe(document.getElementById('top_image'), preLoad[jss].src, '1', transition_modes[random_num], 'Imobiliare Ovidiu');
	swapfade(document.getElementById('top_image'), preLoad[jss].src, '1', 'Imobiliare Ovidiu')
//	crossfade(document.getElementById('top_image'), preLoad[jss].src, '2', 'Imobiliare Ovidiu')

//	next picture
	jss = jss + 1;
	if (jss > (total_pictures)) jss = 1;

	tss = setTimeout('runSlideShow()', SlideShowSpeed);
}
function testss() {

//	alert("asfds");
	random_num = (Math.round((Math.random() * (transition_modes.length))+1));
//	crosswipe(document.getElementById('top_image2'), preLoad[jss].src, '2', transition_modes[random_num], 'Imobiliare Ovidiu');
//	crosswipe(document.getElementById('top_image2'), Picture[3], '2', transition_modes[random_num], 'Imobiliare Ovidiu');
	swapfade(document.getElementById('top_image2'), Picture[3], '1', 'Accessible Website Menu [purple]')
}