var allReveals=new Array("rev_home", "rev_nu", "rev_premium", "rev_shield", "rev_tech", "rev_vision", "rev_glass");
var allTxt=new Array("premium_txt1","premium_txt2", "nu_txt1", "nu_txt2", "shield_txt1", "shield_txt2", "tech_txt", "vision_txt", "glass_txt");
var allRevealsComm=new Array("rev_home", "rev_hd", "rev_premium", "rev_neo", "rev_nu", "rev_tx", "rev_six", "rev_flat", "rev_wash", "rev_shield", "rev_cat");
var allTxtComm=new Array("hd_txt","premium_txt1", "premium_txt2", "neo_txt", "nu_txt1", "nu_txt2", "tx_txt", "six_txt", "flat_txt", "wash_txt1", "wash_txt2", "shield_txt1", "shield_txt2", "cat_txt");

var current; 


function show(boxid){
	current = boxid.split("_")[1]
	document.getElementById(boxid).style.display="block";
	document.getElementById('home_reveal').flashGoto(current);
}
function showFlash(boxid){
	document.getElementById(boxid).style.display="block";
}

function hide(boxid){
   document.getElementById(boxid).style.display="none";
}

function hideAll(){
	for (var i = 0; i < allReveals.length; i++)
	document.getElementById(allReveals[i]).style.display="none";	
}
function hideAllFlash(){
	for (var i = 0; i < allTxt.length; i++)
	document.getElementById(allTxt[i]).style.display="none";	
}
function showFromFlash(boxid) {
	if (!current == boxid.split("_")[0])
	return;
hideAllFlash();
showFlash(boxid);
}

//FOR COMMERCIAL PAGE

function hideAllComm(){
	for (var i = 0; i < allRevealsComm.length; i++)
	document.getElementById(allRevealsComm[i]).style.display="none";
}
function hideAllFlashComm(){
	for (var i = 0; i < allTxtComm.length; i++)
	document.getElementById(allTxtComm[i]).style.display="none";	
}
function showFromFlashComm(boxid) {
hideAllFlashComm();
show(boxid);
}


