/**/
/**/
var c=2;			
var jg_all=4000;  
var jg=10;			
var opacity=0;
var change_value=5;	

var ds;
var ds_all;

function b1_view(){
	document.getElementById("flash1").style.display="block";
	document.getElementById("flash2").style.display="none";
	document.getElementById("flash3").style.display="none";
	document.getElementById("b1").style.background="#B38271";
	document.getElementById("b2").style.background="white";
	document.getElementById("b3").style.background="white";
	
}
function b2_view(){
	document.getElementById("flash1").style.display="none";
	document.getElementById("flash2").style.display="block";
	document.getElementById("flash3").style.display="none";
	document.getElementById("b1").style.background="white";
	document.getElementById("b2").style.background="#B38271";
	document.getElementById("b3").style.background="white";
}
function b3_view(){
	document.getElementById("flash1").style.display="none";
	document.getElementById("flash2").style.display="none";
	document.getElementById("flash3").style.display="block";
	document.getElementById("b1").style.background="white";
	document.getElementById("b2").style.background="white";
	document.getElementById("b3").style.background="#B38271";
}




function flash_change(){ds_all=setInterval('for1()',jg_all);}
function for1(){	
	if (c==1){b1_view();opacity=0;ds=setInterval("b1_change()",jg);}
	else if(c==2){b2_view();opacity=0;ds=setInterval("b2_change()",jg);}
	else if(c==3){b3_view();opacity=0;ds=setInterval("b3_change()",jg);}
	c=c+1;
	if (c==4){c=1;}
}


function b1_change(){
	if(navigator.userAgent.indexOf("MSIE")>0) { 
		document.getElementById("flash1").filters.alpha.opacity=opacity;
   	}
	else{
	   document.getElementById("flash1").style.opacity=(opacity/100);
   	}
	opacity=opacity+change_value;
	if(opacity>100){clearInterval(ds);}
}
function b2_change(){
	if(navigator.userAgent.indexOf("MSIE")>0) { 
		document.getElementById("flash2").filters.alpha.opacity=opacity;
   	}
	else{
	   document.getElementById("flash2").style.opacity=(opacity/100);
   	}
	opacity=opacity+change_value;
	if(opacity>100){clearInterval(ds);}
}
function b3_change(){
	if(navigator.userAgent.indexOf("MSIE")>0) { 
		document.getElementById("flash3").filters.alpha.opacity=opacity;
   	}
	else{
	   document.getElementById("flash3").style.opacity=(opacity/100);
   	}
	opacity=opacity+change_value;
	if(opacity>100){clearInterval(ds);}
}
 

function flash_b(){
	var b1= document.getElementById("b1");
	b1.onmouseover=function(){clearInterval(ds);clearInterval(ds_all);b1_view();}
	b1.onmouseout=function(){c=2;opacity=0;flash_change();}
		           
	var b2= document.getElementById("b2");
	b2.onmouseover=function(){clearInterval(ds);clearInterval(ds_all);b2_view();}
	b2.onmouseout=function(){c=3;opacity=0;flash_change();}
	
	var b3= document.getElementById("b3");
	b3.onmouseover=function(){clearInterval(ds);clearInterval(ds_all);b3_view();}
	b3.onmouseout=function(){c=1;opacity=0;flash_change();}
}