// JavaScript Document
document.write("<table width=\"947\" height=\"188\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"> <tbody><tr><td align=\"middle\"><div id=\"fc\" style=\"FILTER: progid:DXImagetransform.Microsoft.GradientWipe(duration=3,gradientSize=0.5,motion=forward );WIDTH: 947px\"><div style=\"DISPLAY: block\"><img height=\"188\" src=\"images/pic1.jpg\" width=\"947\" border=\"0\" /></div> <div style=\"DISPLAY: none\"><img height=\"188\" src=\"images/pic2.jpg\" width=\"947\" border=\"0\" /></div></div></td></tr><tr><td valign=\"top\"><table id=\"num\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" border=\"0\" height=\"0\"><tbody><tr><td height=\"0\" class=\"woon\"></td><td height=\"0\" class=\"wooff\"></td><td height=\"0\" class=\"wooff\"></td></tr></tbody></table></td></tr></tbody></table>")
var n=0;
var showNum = document.getElementById("num");
function Mea(value){
	n=value;
	setBg(value);
	plays(value);
	}
function setBg(value){
	for(var i=0;i<3;i++)
   if(value==i){
		showNum.getElementsByTagName("td")[i].className='woon';
		} 
	else{	
		showNum.getElementsByTagName("td")[i].className='wooff';
		}  
	} 
function plays(value){
	with (fc){
		filters[0].Apply();
		for(i=0;i<2;i++)i==value?children[i].style.display="block":children[i].style.display="none"; 
		filters[0].play(); 		
		}	
}
function clearAuto(){clearInterval(autoStart)}
function setAuto(){autoStart=setInterval("auto(n)", 5000)}
function auto(){
	n++;
	if(n>1)n=0;
	Mea(n);
} 
function sub(){
	n--;
	if(n<0)n=1;
	Mea(n);
} 
setAuto(); 