<!--
/*======================================================================================================*/
document.write("<div class=\"blender\">")
document.write("<div id=\"imgdiv1\" class=\"imgdiv\"></div>")
document.write("<div id=\"imgdiv2\" class=\"imgdiv\"></div>")
document.write("</div>")
document.write("<input type=\"hidden\" name=\"xopacdiv\" id=\"xopacdiv\" value=\"\" />")
/*======================================================================================================*/
ARRxIMG=new Array();
ARRxLNK=new Array();
ARRxIMG[0]='<img src="/images/blender/00.jpg" width="590" height="200" alt="Test Chamber" border="0" />';
ARRxIMG[1]='<img src="/images/blender/01.jpg" width="590" height="200" alt="Test Chamber" border="0" />';
ARRxIMG[2]='<img src="/images/blender/02.jpg" width="590" height="200" alt="Test Chamber" border="0" />';
ARRxIMG[3]='<img src="/images/blender/03.jpg" width="590" height="200" alt="Test Chamber" border="0" />';
ARRxIMG[4]='<img src="/images/blender/04.jpg" width="590" height="200" alt="Test Chamber" border="0" />';
var xRandom=0;
/*======================================================================================================*/
function setRandomImage(xDiv) {
	xDiv=document.getElementById(xDiv)
	xRandom=Math.floor(Math.random()*ARRxIMG.length);
	if (xRandom>=ARRxIMG.length) {xRandom=0};
	xImageHTML=ARRxIMG[xRandom];
	xDiv.innerHTML=xImageHTML;
	xRandom=xRandom+1;
}//end function
/*======================================================================================================*/
function setOpacity(xDiv, xOpac, xDirection) {
	xDiv=document.getElementById(xDiv)
    xDiv.style.opacity=(xOpac/100);
    xDiv.style.MozOpacity=(xOpac/100);
    xDiv.style.KhtmlOpacity=(xOpac/100);
    xDiv.style.filter='alpha(opacity='+xOpac+')';
	document.getElementById("xopacdiv").value=xOpac;
	if (xDirection=="down") {
		if (xOpac==0) {
			xDiv.innerHTML='';
		}//end if (xOpac=="0")
	}//end if (xDirection=="down")
}//end function
/*======================================================================================================*/
function SwapImages() {
	ximgdiv1=document.getElementById("imgdiv1")
	ximgdiv2=document.getElementById("imgdiv2")
	if (document.getElementById("xopacdiv").value==100) {
		setTimeout("setRandomImage(\"imgdiv2\")", 5000);
		for (o=0;o<=100;o++) {
			ot=o*10;
			op=100-(o);
			setTimeout("setOpacity(\"imgdiv2\", "+op+", \"down\")", ot);
		}//next
	} else {
		setTimeout("setRandomImage(\"imgdiv1\")", 1001);
		for (o=0;o<=100;o++) {
			ot=o*10;
			op=o;
			setTimeout("setOpacity(\"imgdiv2\", "+op+", \"up\")", ot);
		}//next
	}//end if (document.getElementById("xopacdiv").value)
}//end function
/*======================================================================================================*/
setRandomImage("imgdiv2");
setRandomImage("imgdiv1");
setOpacity("imgdiv2", 100);
setOpacity("imgdiv1", 100);
/*======================================================================================================*/
setInterval("SwapImages()", 5000);
/*======================================================================================================*/
-->

