function DualImageRotation(ids, dirs, imgs, cwi, duration, delay, quotes) {

	var ids = ids;
	var dirs = dirs;
	var imgs = imgs;
	var cwi = cwi;
	var duration = duration;
	var delay = delay;
	quotes = typeof(quotes) != 'undefined' ? quotes : false;
	var quote = null;

	this.startRotation = function() {
		preloadImage();
	}

	 var preloadImage = function() {
		cwi++;
		if (cwi >= imgs.length) {
			cwi = 0;
		}
		
		var objImage1 = document.createElement('img');
		objImage1.style.display = 'none';
		objImage1.setAttribute('id', ids[0]+'_ImgRotate_new');
		objImage1.style.position = 'absolute';
		objImage1.src = dirs[0] + imgs[cwi][0];
		document.getElementById(ids[0]).appendChild(objImage1);
		
		var objImage2 = document.createElement('img');
		objImage2.style.display = 'none';
		objImage2.setAttribute('id', ids[1]+'_ImgRotate_new');
		objImage2.style.position = 'absolute';
		objImage2.src = dirs[1] + imgs[cwi][1];
		document.getElementById(ids[1]).appendChild(objImage2);
		
		if (quotes) {
		//	quote = new Date().getTime();
			//sIFR.replaceElement("h1", named({sFlashSrc: "/flash/helvetica_45_light.swf", sColor: "#939598", sBgColor: "#FFFFFF", sWmode: "transparent", sFlashVars: "textalign=left"}));
		}

		rotateImages.delay(delay);
		
	}

	 var tidyUpImages = function() {
		if (divObj1 = document.getElementById(ids[0]+'_ImgRotate_next')) {
			$(ids[0]+'_ImgRotate_current').setAttribute('id', ids[0]+'_ImgRotate_old');
			$(ids[0]+'_ImgRotate_old').remove();
			divObj1.setAttribute('id', ids[0]+'_ImgRotate_current');
		}
		
		if (divObj2 = document.getElementById(ids[1]+'_ImgRotate_next')) {
			$(ids[1]+'_ImgRotate_current').setAttribute('id', ids[1]+'_ImgRotate_old');
			$(ids[1]+'_ImgRotate_old').remove();
			divObj2.setAttribute('id', ids[1]+'_ImgRotate_current');
		}
		
		if (quotes) {
		//	if (qdiv = document.getElementById('quote_new')) {
		//		$('quote_current').remove();
		//		$('quote_new').style.zIndex = 10;
		//		$('quote_new').setAttribute('id', 'quote_current');
		//	}
		}
		
	}

	var rotateImages = function() {
		$(ids[0] + '_ImgRotate_new').setAttribute('id', ids[0] + '_ImgRotate_next');
		new Effect.Appear(ids[0]+'_ImgRotate_next', {duration: duration});
		new Effect.Fade(ids[0]+'_ImgRotate_current', {duration: duration});

		$(ids[1] + '_ImgRotate_new').setAttribute('id', ids[1] + '_ImgRotate_next');
		new Effect.Appear(ids[1]+'_ImgRotate_next', {duration: duration});
		new Effect.Fade(ids[1]+'_ImgRotate_current', {duration: duration});
		
		if (quotes) {
		//	new Effect.Fade('quote_current', {duration: duration});
		}
		
		/*now preload the next*/
		tidyUpImages.delay(duration);
		preloadImage();
	}
	

}
