//Return a random number within range
var pageNo=null;
var pageType =null;
function randomNo (range)
{
return Math.floor(Math.random()*range);
}
var useSignUp;
if (GetCookie("optin")==null)
	{
	useSignUp = true;
	}
else {
	useSignUp = true;
	//remove comment and useSignUp = true after March 6
	//useSignUp = false;
	}
//chose which section snipettes are to be display within the Sec boxes
function choose()
{
for (i=0; i<=ct4SecSlots; i++)
	{
	if (i==0)
		{
		currNum = randomNo (secs2Use.length)
		secNum[i] = currNum
		secNames[i] = secs2Use[currNum]
		}
else if (useSignUp == false)
		{
		
		for (j=0;j<secNum.length;j++)
			{
			while ((secNum[0] == currNum)||(secNum[1] == currNum)||(secNum[2] == currNum))
				{
				currNum = randomNo (secs2Use.length)
				}
			} 
			secNum[i] = currNum
			secNames[i] = secs2Use[currNum]
		}
		else if (useSignUp == true)
		{
		
		if (i==ct4SecSlots)
			{
			secNames[i] = "signUps"
			}
		else	
			{
			for (j=0;j<secNum.length;j++)
				{
				while ((secNum[0] == currNum)||(secNum[1] == currNum)||(secNum[2] == currNum))
				{
				currNum = randomNo (secs2Use.length)
				}
				} 
				secNum[i] = currNum
				secNames[i] = secs2Use[currNum]
			}
		}
	}
if (useSignUp == false){setSignup ()};
}

//subtract sign-up text
function setSignup ()
{

var optinspan = $old("optintext")
if (optinspan == null)
	{
	return
	}
else{
	optinspan.innerHTML ="";
	}
}
//End section snippets selection



//Start the build of snippettes 

//build seciton snipet arrays
var signUps = new Array ()
var featureSecs = new Array ()
var featureMake = new Array ()
var collectionsSecs = new Array ()
var showRmSecs = new Array ()
var tradeSecs = new Array ()
var salesSecs = new Array ()
var newsSecs = new Array ()
var companySecs = new Array ()
var curCompany =null;
var ct4Company = 0;
//Feed the arrays from buildSecSnipettes ()
function sec (href,title,body,bkg,label)
{
this.href =  href;
this.title = title;
this.body = body;
this.bkg =  bkg;
this.label = label;

return this;

}
function feaSec (href,title,body,bkg,smbkg,label,indx,manu,ct)
{



this.href = href;
this.title = title;
this.body = body;
this.bkg = bkg;
this.smBkg = smbkg;
this.label = label;
this.indexPage = indx;
this.manu = manu;
this.ct4Manu = ct;	


return this;
}

function buildSecSnipettes (which, where)
{
ct4sec = 0;
//sign-up
ct4su = 0;
if ((which == "signUps")||(which == null))
{
	
	
	
	/*where[ct4su] = new sec ("showrooms.html","<span style='color:red;'>Holiday Hours</span>",
		"<p class='secttext' style='font-weight:900;'>Our showrooms will close Saturday December 24, 2011, and reopen Tuesday January 3, 2012.</p><h1><br />Happy Holidays!<br />from Cantu</h1>",
		"images/bkg_sec_join.gif",
		"Special Notice");*/

	
	where[ct4su] = new sec ("contact.html?sign","Sign-up",
		"<p class='secttext'>Receive early notice on new products, special events and sales. We promise you'll like what we send you.</p>",
		"images/bkg_sec_sign.gif",
		"Sign Up");
	ct4su++
	
	where[ct4su] = new sec ("showrm_hotels.html","Visiting our Vancouver or Victoria Showrooms?",
		"<p class='secttext'>Take advantage of our special <b>Corporate Rates</b> and <b>Save!</b></p>",
		"images/bkg_sec_visiting.jpg",
		"Visiting our Vancouver or Victoria Showrooms?");
	ct4su++

	where[ct4su] = new sec ("contact.html?contact","Contact Us",
		"<p class='secttext'>Have questions, comments or would you like to receive early notice on new products, special events and sales?</p>",
		"images/bkg_sec_contact.gif",
		"Contact Us");
	ct4su++

	where[ct4su] = new sec ("contact.html?join","Keep in Touch",
		"<p class='secttext'>We'd love to hear from you and we think you'll like what we have to say.</p>",
		"images/bkg_sec_touch.gif",
		"Keep in Touch"); 
	
	
		
}


//feature
else if ((which == "featureSecs")||(which == null))
{	
// create a flag for multi product styles that will be ignorred by section build
//

where[ct4sec] = new feaSec ("feature_wet_cube_b.shtml","Wet Style Cube",
		"<p class='secttext'>Its essence: versatility.</p>",
		"images/bkg_sec_wet_cube.gif", "images/bkg_sec_wet_cube_sm.gif",
		"Cube","feature_wet_cube.html","WetStyle",1);
//0
	ct4sec++;



where[ct4sec] = new feaSec ("feature_wet_ove_b.shtml","Wet Style Ove",
		"<p class='secttext'style=''>Its essence: sensuality.</p>",
		"images/bkg_sec_wet_ove.gif", "images/bkg_sec_wet_ove_sm.gif",
		"Ove","feature_wet_ove.html","WetStyle",2);
//1
	ct4sec++;

	where[ct4sec] = new feaSec ("feature_wet_furniture_b.shtml","Wet Style Furniture",
		"<p class='secttext' style='' >WETSTYLE rounds off its collection of bathroom fixtures</p>",
		"images/bkg_sec_wet_furniture.gif", "images/bkg_sec_wet_furniture_sm.gif",
		"Furniture","feature_wet_furniture.html","WetStyle",3);
//2
	ct4sec++;

	where[ct4sec] = new feaSec ("feature_julien_b.shtml","Julien Bathroom Suite",
		"<p class='secttext'style='text-align: right; '>A beautiful Way to live,<br>Julien Bathroom Suite<br>by Troy Adams Design</p>",
		"images/bkg_sec_julien.gif", "images/bkg_sec_julien_sm.gif",
		"Troy Adams Bathroom Suite","feature_julien.html","Julien",1);
//3	
	ct4sec++;

	where[ct4sec] = new feaSec ("feature_julien_home_b.shtml","Julien Home Refinements",
		"<p class='secttext'>A beautiful Way to live</p>",
		"images/bkg_sec_julien_home.jpg", "images/bkg_sec_julien_home_sm.jpg",
		"Home Refinements","feature_julien_home.html","Julien",2);
	
//4	
		ct4sec++;

	//where[ct4sec] = new feaSec ("feature_mekal_steel_b.shtml","Mekal",
		//"<p class='secttext' style='color:#c0c0c0; margin-top:10px;' >&nbsp;steel and design</p>",
		//"images/bkg_sec_mekal_steel.jpg", "images/bkg_sec_mekal_steel_sm.gif",
		//"Mekal steel and design","feature_mekal_steel.html","",0);

		//ct4sec++;
	
	//where[ct4sec] = new feaSec ("feature_beyerle_slidingdoor_b.shtml","Beyerle",
		//"<p class='secttext' style='' >Sliding door systems made from stainless steel</p>",
		//"images/bkg_sec_beyerle.gif", "images/bkg_sec_beyerle_sm.gif",
		//"Beyerle","feature_beyerle_slidingdoor.html","",0);
//5
		//ct4sec++;

	where[ct4sec] = new feaSec ("feature_native_kitchen_b.shtml","Native Trails: Kitchens",
		"<p class='secttext' style='color:#c0c0c0; margin-top:10px;' ></p>",
		"images/bkg_sec_native_kitchen.jpg", "images/bkg_sec_native_kitchen_sm.gif",
		"Kitchens","feature_native_kitchen.html","Native Trails",1);
//5
		ct4sec++;
	
	where[ct4sec] = new feaSec ("feature_native_barprep_b.shtml","Native Trails: Bar and Prep",
		"<p class='secttext' style='' ></p>",
		"images/bkg_sec_native_bar.jpg", "images/bkg_sec_native_bar_sm.gif",
		"Bar and Prep","feature_native_barprep.html","Native Trails",2);
//6	
		ct4sec++;
	
	where[ct4sec] = new feaSec ("feature_gessi_b.shtml","Gessi",
		"<p class='secttext' style='' >Italian Design ~ Defined</p>",
		"images/bkg_sec_gessi.jpg", "images/bkg_sec_gessi_sm.gif",
		"Gessi","feature_gessi.html","Gessi",1);
//7		
		ct4sec++;
		
	where[ct4sec] = new feaSec ("feature_gessi_ovale_b.shtml","Gessi",
		"<p class='secttext' style='' >Ovale</p>",
		"images/bkg_sec_gessi_ovale.jpg", "images/bkg_sec_gessi_ovale_sm.gif",
		"Gessi Ovale","feature_gessi_ovale.html","Gessi",2);
//8		
		ct4sec++;	
		
	where[ct4sec] = new feaSec ("feature_gessi_mimi_b.shtml","Gessi",
		"<p class='secttext' style='' >Mimi</p>",
		"images/bkg_sec_gessi_mimi.jpg", "images/bkg_sec_gessi_mimi_sm.gif",
		"Gessi Mimi","feature_gessi_mimi.html","Gessi",3);
//9		
		ct4sec++	
		
		
		
	
	where[ct4sec] = new feaSec ("feature_art_glass_b.shtml","Artistic Tile Glass",
		"<p class='secttext' style='' ></p>",
		"images/bkg_sec_art_glass.jpg", "images/bkg_sec_art_glass_sm.jpg",
		"Glass Tiles","feature_art_glass.html","Artistic Tile",1);
//10		
		ct4sec++;
	
	where[ct4sec] = new feaSec ("feature_art_clay_b.shtml","Artistic Tile Porcelain &amp; Ceramic",
		"<p class='secttext' style='' ></p>",
		"images/bkg_sec_art_clay.jpg", "images/bkg_sec_art_clay_sm.jpg",
		"Porcelain &amp; Ceramic Tiles","feature_art_clay.html","Artistic Tile",2);
//11		
		ct4sec++;
	
	where[ct4sec] = new feaSec ("feature_art_stone_b.shtml","Artistic Tile Stone",
		"<p class='secttext' style='' ></p>",
		"images/bkg_sec_art_stone.jpg", "images/bkg_sec_art_stone_sm.jpg",
		"Stone Tiles","feature_art_stone.html","Artistic Tile",3);
//12
	ct4sec++;
	
	where[ct4sec] = new feaSec ("feature_duravit_starck1_b.shtml","Duravit Starck 1",
		"<p class='secttext' style='' >The Poetry of Reduction</p>",
		"images/bkg_sec_durastarck1.jpg", "images/bkg_sec_durastarck1_sm.jpg",
		"Starck 1","feature_duravit_starck1.html","Duravit",1);
//13
	ct4sec++;
	
	where[ct4sec] = new feaSec ("feature_duravit_starckx_b.shtml","Duravit Starck X",
		"<p class='secttext' style='' >It's not Starck. It's Starck X</p>",
		"images/bkg_sec_durastarckx.jpg", "images/bkg_sec_durastarckx_sm.jpg",
		"Starck X","feature_duravit_starckx.html","Duravit",2);
//14
	ct4sec++;

	
	where[ct4sec] = new feaSec ("feature_duravit_2nd_b.shtml","Duravit 2nd floor",
		"<p class='secttext' style='' >A bathroom on a new level</p>",
		"images/bkg_sec_dura_2nd.jpg", "images/bkg_sec_dura_2nd_sm.jpg",
		"2nd floor","feature_duravit_2nd.html","Duravit",3);
//15
	ct4sec++;
	
	
	where[ct4sec] = new feaSec ("feature_duravit_ciottolo_b.shtml","Duravit Ciottolo",
		"<p class='secttext' style='' >Sculptures for the bathroom</p>",
		"images/bkg_sec_ciottolo.jpg", "images/bkg_sec_ciottolo_sm.jpg",
		"Ciottolo","feature_duravit_ciottolo.html","Duravit",4);
//16	
	ct4sec++;
	
		where[ct4sec] = new feaSec ("feature_flaminia_io_b.shtml","Flaminia IO",
		"<p class='secttext' style='' ></p>",
		"images/bkg_sec_flaminia_io.jpg", "images/bkg_sec_flaminia_io_sm.jpg",
		"IO","feature_flaminia_io.html","Flaminia",1);
//17		
		ct4sec++;
		
	
	where[ct4sec] = new feaSec ("feature_flaminia_aqua_b.shtml","Flaminia Acquagrande",
		"<p class='secttext' style='' ></p>",
		"images/bkg_sec_flaminia_aqua.jpg", "images/bkg_sec_flaminia_aqua_sm.jpg",
		"Acquagrande","feature_flaminia_aqua.html","Flaminia",2);
//18		
		ct4sec++;
	
	where[ct4sec] = new feaSec ("feature_flaminia_mono_b.shtml","Flaminia Monowash &amp; Miniwash",
		"<p class='secttext' style='' ></p>",
		"images/bkg_sec_flaminia_mono.jpg", "images/bkg_sec_flaminia_mono_sm.jpg",
		"Monowash &amp; Miniwash","feature_flaminia_mono.html","Flaminia",3);
//19		
		ct4sec++;
	

	
	where[ct4sec] = new feaSec ("feature_flaminia_twin_b.shtml","Flaminia Twin",
		"<p class='secttext' style='' ></p>",
		"images/bkg_sec_flaminia_twin.jpg", "images/bkg_sec_flaminia_twin_sm.jpg",
		"twin","feature_flaminia_twin.html","Flaminia",4);
//20		
		ct4sec++;
	
	where[ct4sec] = new feaSec ("feature_cosmic_block_b.shtml","Cosmic Block",
		"<p class='secttext'>Conventionality and Functionality</p>",
		"images/bkg_sec_cosmic_block.gif","images/bkg_sec_cosmic_block_sm.gif",
		"Block","feature_cosmic_block.html","Cosmic",1);
//21
	ct4sec++;

where[ct4sec] = new feaSec ("feature_cosmic_bathlife_b.shtml","Cosmic Bathlife",
		"<p class='secttext'>exclusive environments</p>",
		"images/bkg_sec_cosmic_bathlife.gif","images/bkg_sec_cosmic_bathlife_sm.gif",
		"Bath Life","feature_cosmic_bathlife.html","Cosmic",2);
//22
	ct4sec++;

where[ct4sec] = new feaSec ("feature_cosmic_upgrade_b.shtml","Cosmic Up Grade",
		"<p class='secttext'>a bet to free spaces</p>",
		"images/bkg_sec_cosmic_upgrade.gif",
		"images/bkg_sec_cosmic_upgrade_sm.gif","Up Grade","feature_cosmic_upgrade.html","Cosmic",3);
//23
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_zuc_pan_b.shtml","Zucchetti PAN",
		"<p class='secttext'>extensive propeled freedom</p>",
		"images/bkg_sec_zucchetti_pan.gif","images/bkg_sec_zucchetti_pan_sm.gif",
		"PAN","feature_zuc_pan.html","Zucchetti",1);
//24
	ct4sec++;
	
	where[ct4sec] = new feaSec ("feature_zuc_soft_b.shtml","Zucchetti Soft",
		"<p class='secttext'>light is synonymous with space</p>",
		"images/bkg_sec_zucchetti_soft.gif","images/bkg_sec_zucchetti_soft_sm.gif",
		"Soft","feature_zuc_soft.html","Zucchetti",2);
//25
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_zuc_augablu_b.shtml","Zucchetti Aguablu",
		"<p class='secttext'>freely, evoking a cascade</p>",
		"images/bkg_sec_zucchetti_augablu.gif","images/bkg_sec_zucchetti_augablu_sm.gif",
		"Augablu","feature_zuc_augablu.html","Zucchetti",3);
//26
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_zuc_bellagio_b.shtml","Zucchetti Bellagio",
		"<p class='secttext'>dolce vita</p>",
		"images/bkg_sec_zucchetti_bellagio.gif","images/bkg_sec_zucchetti_bellagio_sm.gif",
		"Bellagio","feature_zuc_bellagio.html","Zucchetti",3);
//27	
	
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_sf_bath_b.shtml","Stone Forest Bathtubs",
		"<p class='secttext'>Marble, Onyx and Granite Bathtubs</p>",
		"images/bkg_sec_sf_bath.gif","images/bkg_sec_sf_bath_sm.gif",
		"bathtubs","feature_sf_bath.html","Stone Forest",1);
//28
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_sf_ped_b.shtml","Stone Forest Pedestals",
		"<p class='secttext'>Pedestals Sinks &amp; Vanities</p>",
		"images/bkg_sec_sf_ped.gif","images/bkg_sec_sf_ped_sm.gif",
		"Pedestal Sinks &amp; Vanities","feature_sf_ped.html","Stone Forest",2);
//29	
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_sf_ss_b.shtml","Stone Forest: Stone Sinks &amp Vessels",
		"<p class='secttext'>Stone Sinks and Vessels</p>",
		"images/bkg_sec_sf_ss.gif","images/bkg_sec_sf_ss_sm.gif",
		"Stone Sinks and Vessels","feature_sf_ss.html","Stone Forest",3);
//30
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_sf_met_b.shtml","Stone Forest: Copper, Brass &amp Stainless Steel",
		"<p class='secttext'>Copper, Brass and Stainless Steel</p>",
		"images/bkg_sec_sf_met.gif","images/bkg_sec_sf_met_sm.gif",
		"Copper, Brass &amp Stainless Steel","feature_sf_met.html","Stone Forest",4);
//31	
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_dec_contemporary_b.shtml","Decotec Paris: Contemporary",
		"<p class='secttext'>The Contemporary bathroom</p>",
		"images/bkg_sec_dec_contemporary.gif","images/bkg_sec_dec_contemporary_sm.gif",
		"The Contemporary bathroom","feature_dec_contemporary.html","Decotec Paris",1);
//32
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_dec_bath2live_b.shtml","Decotec Paris: 2 Live",
		"<p class='secttext'>The Bathroom to Live</p>",
		"images/bkg_sec_dec_bath2live.gif","images/bkg_sec_dec_bath2live_sm.gif",
		"The Bathroom to Live","feature_dec_bath2live.html","Decotec Paris",2);
//33	
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_dec_elegant_b.shtml","Decotec Paris: Elegant",
		"<p class='secttext'>The Elegant Bathroom</p>",
		"images/bkg_sec_dec_elegant.gif","images/bkg_sec_dec_elegant_sm.gif",
		"The Elegant Bathroom","feature_dec_elegant.html","Decotec Paris",3);
//34
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_dec_vasque_b.shtml","Decotec: Vasque",
		"<p class='secttext'>Vasque</p>",
		"images/bkg_dec_vasque.gif","images/bkg_dec_vasque_sm.gif",
		"Vasque","feature_dec_vasque.html","Decotec Paris",4);
//35	
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_brussart_b.shtml","Brussart",
		"<p class='secttext'>Brussart</p>",
		"images/sec_brussart.jpg","images/sec_brussart_sm.gif",
		"Brussart","feature_brussart.html","",0);
//36
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_laufen_mylife_b.shtml","myLife",
		"<p class='secttext'>Laufen MyLife</p>",
		"images/sec_laufen_mylife.jpg","images/sec_laufen_mylife_sm.gif",
		"myLife","feature_laufen_mylife.html","Laufen",1);
	
//37
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_laufen_palomba_b.shtml","Palomba Collection",
		"<p class='secttext'>Laufen Palomba Collection</p>",
		"images/sec_laufen_palomba.jpg","images/sec_laufen_palomba_sm.gif",
		"Palomba","feature_laufen_palomba.html","Laufen",2);
		
//38	
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_laufen_dot_b.shtml","Alessi DOt",
		"<p class='secttext'>Laufen Alessi DOt</p>",
		"images/sec_laufen_dot.jpg","images/sec_laufen_dot_sm.gif",
		"DOt","feature_laufen_dot.html","Laufen",3);
	
//39
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_laufen_one_b.shtml","Alessi One",
		"<p class='secttext'>Laufen Alessi One</p>",
		"images/sec_laufen_one.jpg","images/sec_laufen_one_sm.gif",
		"One","feature_laufen_one.html","Laufen",4);
	
//40
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_wetstyle_m_b.shtml","Wet Style M",
		"<p class='secttext'>Wet Style M</p>",
		"images/sec_wetstyle_m.jpg","images/sec_wetstyle_m_sm.gif",
		"M Collection","feature_wetstyle_m.html","WetStyle<br />New Product",1);
	
//41
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_wetstyle_be_b.shtml","Wet Style Be",
		"<p class='secttext'>Wet Style Be</p>",
		"images/sec_wetstyle_be.jpg","images/sec_wetstyle_be_sm.gif",
		"Be Collection","feature_wetstyle_be.html","WetStyle<br />New Product",2);
	
//42
ct4sec++;
	where[ct4sec] = new feaSec ("feature_wetstyle_acc_b.shtml","Wet Style Accessories",
		"<p class='secttext'>Wet Style Accessories</p>",
		"images/sec_wetstyle_acc.jpg","images/sec_wetstyle_acc_sm.gif",
		"Wet Style Accessories","feature_wetstyle_acc.html","WetStyle<br />New Product",3);
//43
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_frost_barcelona_b.shtml","Frost Barcelona Handles",
		"<p class='secttext'>Frost Barcelona Handles</p>",
		"images/sec_frost_barcelona.jpg","images/sec_frost_barcelona_sm.gif",
		"Barcelona","feature_frost_barcelona.html","Frost",1);
	
//44
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_frost_wish_b.shtml","Frost Wishbone",
		"<p class='secttext'>Frost Wishbone</p>",
		"images/sec_frost_wish.jpg","images/sec_frost_wish_sm.gif",
		"Wishbone","feature_frost_wish.html","Frost",2);
	
//45
ct4sec++;
	where[ct4sec] = new feaSec ("feature_frost_camo_b.shtml","Frost Camouflage &amp; Mini Camoflage",
		"<p class='secttext'>Frost Camouflage &amp; Mini Camoflage</p>",
		"images/sec_frost_camo.jpg","images/sec_frost_camo_sm.gif",
		"Camouflage","feature_frost_camo.html","Frost",3);
//46
ct4sec++;
	where[ct4sec] = new feaSec ("feature_frost_handles_b.shtml","Frost Handles",
		"<p class='secttext'>Frost Camouflage &amp; Mini Camoflage</p>",
		"images/sec_frost_handles.jpg","images/sec_frost_handles_sm.gif",
		"Frost Handles","feature_frost_handles.html","Frost",4);
//47	
ct4sec++;
	where[ct4sec] = new feaSec ("feature_burgbad_pli_b.shtml","Burgbad Pli",
		"<p class='secttext'>Burgbad Pli</p>",
		"images/sec_burgbad_pli.jpg","images/sec_burgbad_pli_sm.gif",
		"Pli","feature_burgbad_pli.html","Burgbad",1);
//48
	
	
	ct4sec++;
	
	where[ct4sec] = new feaSec ("feature_burgbad_lavo_b.shtml","Burgbad Lavo",
		"<p class='secttext'>Burgbad Lavo</p>",
		"images/sec_burgbad_lavoa.jpg","images/sec_burgbad_lavo_sm.gif",
		"Lavo","feature_burgbad_lavo.html","Burgbad",2);
	
//49
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_burgbad_crono_b.shtml","Burgbad Crono",
		"<p class='secttext'>Burgbad Crono</p>",
		"images/sec_burgbad_crono.jpg","images/sec_burgbad_crono_sm.gif",
		"Crono","feature_burgbad_crono.html","Burgbad",3);
	
//50
ct4sec++;
	where[ct4sec] = new feaSec ("feature_burgbad_diva_b.shtml","Burgbad Diva",
		"<p class='secttext'>Burgbad Diva</p>",
		"images/sec_burgbad_diva.jpg","images/sec_burgbad_diva_sm.gif",
		"Diva","feature_burgbad_diva.html","Burgbad",4);
//51
ct4sec++;
	where[ct4sec] = new feaSec ("feature_mr_steam_b.shtml","SteamTherapy",
		"<p class='secttext'>Mr.Steam SteamTherapy</p>",
		"images/sec_mr_steam.jpg","images/sec_mr_steam_sm.gif",
		"SteamTherapy","feature_mr_steam.html","",0);
//52

ct4sec++;
	where[ct4sec] = new feaSec ("feature_thg_mossi_b.shtml","THG: Lalique {Mossi Collection}",
		"<p class='secttext'>Mossi Collection</p>",
		"images/sec_thg_mossi.jpg","images/sec_thg_mossi_sm.gif",
		"Mossi","feature_thg_mossi.html","THG",1);
//53
	
	
	ct4sec++;
	
	where[ct4sec] = new feaSec ("feature_thg_masque_b.shtml","THG: Lalique {Masque de Femme}",
		"<p class='secttext'>Masque de Femme</p>",
		"images/sec_thg_masque.jpg","images/sec_thg_masque_sm.gif",
		"Masque","feature_thg_masque.html","THG",2);
	
//54
	ct4sec++;
	where[ct4sec] = new feaSec ("feature_thg_thomass_b.shtml"," THG: Poemes {Chantal Thomass}",
		"<p class='secttext'>Poemes {Chantal Thomass}</p>",
		"images/sec_thg_thomass.jpg","images/sec_thg_thomass_sm.gif",
		"Thomass","feature_thg_thomass.html","THG",3);

//55
ct4sec++;
	where[ct4sec] = new feaSec ("feature_svb_b.shtml","Sun Valley Bronze",
		"<p class='secttext'>Sun Valley Bronze</p>",
		"images/bkg_sec_svb.jpg","images/bkg_sec_svb_sm.gif",
		"SVB","feature_svb.html","SVB",1);
//56
ct4sec++;
	where[ct4sec] = new feaSec ("feature_svb_video_b.shtml","Sun Valley Bronze Video",
		"<p class='secttext'>Sun Valley Bronze Video</p>",
		"images/bkg_sec_svb_video.jpg","images/bkg_sec_svb_video_sm.gif",
		"SVB Video","feature_svb_video.html","SVB",2);
//57
ct4sec++;
	where[ct4sec] = new feaSec ("feature_zucchetti_video_b.shtml","Zucchetti.KOS",
		"<p class='secttext'>Zucchetti.KOS Faraway</p>",
		"images/bkg_sec_zucchetti_video.jpg","images/bkg_sec_zucchetti_video_sm.gif",
		"Faraway Video","feature_zucchetti_video.html","",0);
//58
ct4sec++;
	where[ct4sec] = new feaSec ("feature_sidler_b.shtml","Sidler: Diamando",
		"<p class='secttext'>Diamando</p>",
		"images/bkg_sec_diamondo.jpg","images/bkg_sec_diamondo_sm.gif",
		"Sidler: Diamando","feature_sidler.html","Sidler",1);
//59
ct4sec++;
	where[ct4sec] = new feaSec ("feature_priolo_b.shtml","Sidler: Priolo",
		"<p class='secttext'>Priolo</p>",
		"images/bkg_sec_priolo.jpg","images/bkg_sec_priolo_sm.gif",
		"Sidler: Priolo","feature_priolo.html","Sidler",2);
//60
ct4sec++;
	where[ct4sec] = new feaSec ("feature_axara_b.shtml","Sidler: Axara",
		"<p class='secttext'>Axara</p>",
		"images/bkg_sec_axara.jpg","images/bkg_sec_axara_sm.gif",
		"Sidler: Axara","feature_axara.html","Sidler",3);
//61		
	ct4sec = 0;
}

//Collections

else if ((which == "collectionsSecs")||(which == null))
{
	where[ct4sec] = new sec ("bathrooms.html","Bathrooms",
		"<p class='secttext'>A sublime collection of the world's finest...</p>",
		"images/bkg_sec_bathroom.jpg",
		"bathrooms");

	ct4sec++;

	where[ct4sec] = new sec ("haedware.html","Hardware",
		"<p class='secttext'>From the small and subtle to the ornate and outrageous in countless textures, finishes, and forms</p>",
		"images/bkg_sec_fixture.jpg",
		"fixtures");

	ct4sec++;

	where[ct4sec] = new sec ("kitchens.html","The Kitchen",
		"<p class='secttext'>Luxury Kitchen sinks, and fixtures from around the world </p>",
		"images/bkg_sec_kitchen.jpg",
		"kitchens");

	ct4sec=0;

}

else if ((which == "showRmSecs")||(which == null))
{
//Showrooms



where[ct4sec] = new sec ("showrooms.html","Visit us",
		"<p class='secttext'>Come see our showrooms in Vancouver and Victoria. </p>",
		"images/bkg_sec_showrm.jpg",
		"details");

	ct4sec++;

	where[ct4sec] = new sec ("showrm_map.html","Find Us",
		"<p class='secttext'>Need a map for either of our Vancouver or Victoria showrooms? </p>",
		"images/bkg_sec_map.gif",
		"map");

	ct4sec++;

	where[ct4su] = new sec ("showrm_hotels.html","Visiting our Vancouver or Victoria Showrooms?",
		"<p class='secttext'>Take advantage of our special <b>Corporate Rates</b> and <b>Save!</b></p>",
		"images/bkg_sec_visiting.jpg",
		"Visiting our Vancouver or Victoria Showrooms?");
	ct4su++

	//where[ct4sec] = new sec ("showrm_vt.html","Virtual Tour",
		//"<p class='secttext'>Tour our Vancouver Showroom online -- it's really cool. </p>",
		//"images/bkg_sec_vtour.gif",
		//"virtual tour");

	ct4sec=0;
}
else if ((which == "tradeSecs")||(which == null))
{
//trade Professionals
	where[ct4sec] = new sec ("trade.html","Trade Professionals",
		"<p class='secttext'>See why builders, plumbers, architects, designers and other Trade Professionals prefer Cantu.</p>",
		"images/bkg_sec_trade.jpg",
		"trade pros");

	ct4sec=0;

}
else if ((which == "salesSecs")||(which == null))
{
//distribution Sales
	where[ct4sec] = new sec ("dealer.html","Dealers and Distributors",
		"<p class='secttext'>Access to Cantu's exclusive and eclectic line of products is not limited to our showrooms.</p>",
		"images/bkg_sec_sales.gif",
		"sales");

	ct4sec=0;

}
else if ((which == "newsSecs")||(which == null))
{
//news
	where[ct4sec] = new sec ("cm/","Frost of Denmark...",
		"<p class='secttext'>a passion for architectural hardware forms</p>",
		"images/sec_frost_camo.jpg",
		"news");
	
	
	ct4sec++;
	where[ct4sec] = new sec ("cm/index.php?page=brussart","Brussart Featured...",
		"<p class='secttext'></p>",
		"images/sec_doorhardware.jpg",
		"news");
	ct4sec++;
	
	where[ct4sec] = new sec ("cm/","News",
		"<p class='secttext'>Get the latest Cantu News and Information</p>",
		"images/bkg_sec_news0.gif",
		"news");

	ct4sec=0;
}
else if ((which == "companySecs")||(which == null))
{
//cantu
	where[ct4sec] = new sec ("cantu.html","About Us",
		"<p class='secttext'>Providing the highest quality products from leading design manufacturers world wide. </p>",
		"images/bkg_sec_cantu.gif",
		"cantu");

	ct4sec=0;
}

if ((pageNo==null)&&(pageType == "featureSecs"))
{
	findPgNo()
}
else if ((pageNo != null)&&(pageType == "featureSecs"))
	{
	
	if (featureSecs[pageNo].manu != "")
		{
		for (i=featureSecs.length-1; i>0; i--)
			{
			if (featureSecs[i].manu == featureSecs[pageNo].manu)
				{
				featureMake[ct4sec] = new feaSec (featureSecs[i].href, featureSecs[i].title,featureSecs[i].body,featureSecs[i].bkg,featureSecs[i].smBkg,featureSecs[i].label,featureSecs[i].indexPage,featureSecs[i].manu,featureSecs[i].ct)
				ct4sec++;
				}
			}
		}
	
	}
	

}



//End Building Snipettes

//Build Gen. Sections
function updateSec (secname, sec)
{
var sec2ChangeId = ("sel_0"+sec);
var sec2Change = (document.getElementById (sec2ChangeId));
var bkg = (secname.bkg )
var content = ("<a href='http://cantubathrooms.com/"+secname.href+"' class='sectionhead'>"+secname.title+"</a>"+secname.body )
sec2Change.style.background = "transparent url(http://cantubathrooms.com/"+ bkg+") no-repeat";
sec2Change.style.opacity = .33;
sec2Change.style.MozOpacity = .33;
sec2Change.style.filter = "alpha(opacity=33)"
sec2Change.innerHTML = content;

}

//feature Sections
function updateFeaSec ()
{
var secNavDiv = (document.getElementById ("subnav"))
var secNavDivContent = ("<p class='subsection'>Featured Products</p>");
var secNo = 0;

for (i=0; i<=2; i++)
	{
	secNo = (secNum[i]);
	var sec2ChangeId = ("sel_0"+i);
	var sec2Change = (document.getElementById (sec2ChangeId));
	var bkg = ("url("+featureSecs[secNo].bkg+")" )
	
	var content = ("<a href='"+featureSecs[secNo].href+"' class='sectionhead'>"+featureSecs[secNo].title+"</a>"+featureSecs[secNo].body)
	sec2Change.style.background = "transparent "+ bkg+" no-repeat";
	sec2Change.style.opacity = .33;
	sec2Change.style.MozOpacity = .33;
	sec2Change.style.filter = "alpha(opacity=33)"
	sec2Change.innerHTML = content;
	if (featureMake.length == 0)
		{
		secNavDivContent += ("<p><a href='"+featureSecs[secNo].indexPage+"' class='subnavtext'>"+featureSecs[secNo].label+"</a></p>");
		}
	else if (i==0)
		{
		for (j = 0; j < featureMake.length; j++)
			{
			if (featureMake[j].indexPage != featureSecs[pageNo].indexPage)
				{
				secNavDivContent += ("<p><a href='"+featureMake[j].indexPage+"' class='subnavtext'>"+featureMake[j].label+"</a></p>");
				}
			}
		}
	}
secNavDivContent += ("<p><a href='featurelist.html' class='subnavtext'>Complete List...</a></p>");
secNavDiv.innerHTML = secNavDivContent;
if (useSignUp == false){setSignup ()};
}

function chooseFea()
{
for (i=0; i<ct4SecSlots; i++)
	{
	if (i==0)
		{
		//st the first feature randomly
		currNum = randomNo (featureSecs.length)
		secNum[i] = currNum
		}
	else 
		{
		for (j=0;j<secNum.length;j++)
			{
			//check the number of sec selections and make sure it is:
			//1) not already chossen
			//2) not the last feature section thay saw
			while ((secNum[0] == currNum)||(secNum[1] == currNum)||(secNum[2] == currNum))
				{
				
				currNum = randomNo (featureSecs.length)
					
				}
			}
		}
			//build the indax into feature secs to be used 
			secNum[i] = currNum
	}
	updateFeaSec ()
}

function setOpy (id,n)
{
var seethis = $old(id)

seethis.style.opacity = n*.01;
seethis.style.MozOpacity = n*.01;
seethis.style.filter = "alpha(opacity="+n+")"

}
