document.location.href = document.URL.replace('www.3dcom.com/tbfs','www.thebreastformstore.com');
//document.location.href = 'http://www.thebreastformstore.com';

var CurrentPageNdx;
var arrPages = new Array();
var PageCurrency;
var itemNdx=-1;
			//  new Array (<-MENU NAME->,       		,<-PAGE->            	,<USD>    	,  <CDN>  	,<UNIT> , <SHOPPING CART DESCRIPTION>				, <GROUP>"      
//BREASTFORMS
arrPages[++itemNdx]  = new Array(	"Breastforms"		        ,"FormProducts.html" 	, ""  		,""			, ""    ,"Breastforms"                    			,"Breastforms"						,"no","no");

arrPages[++itemNdx]  = new Array(	"Super Girls"				,"itemsupergirl.html"	,"$399.00"	,"$490.00"	,"/pair","Super Girls (pair)"		                ,"Breastforms"						,"no","no");
arrPages[++itemNdx]  = new Array(	"Supremes"					,"itemsupreme.html"		,"$324.95"	,"$424.00"	,"/pair","Supremes Breast Form (pair)"				,"Breastforms"						,"no","no");
arrPages[++itemNdx]  = new Array(	"Big Girls"					,"itembiggirl.html"		,"$299.95"	,"$399.95"	,"/pair","Big Girls Breast Form (pair)"				,"Breastforms"						,"no","no");

arrPages[++itemNdx]  = 	new Array(	"Transform Classic I"		,"item15.html"			,"$159.00"	,"$224.95"	,"/pair","Transform Classic I - Super Soft (pair)"	,"Breastforms"						,"no","no");
arrPages[++itemNdx]  = new Array(	"Super Perks"				,"itemsuperperk.html"	,"$159.00"	,"$224.95"	,"/pair","Transform Super Perk (pair)"				,"Breastforms"						,"no","no"); 
arrPages[++itemNdx]  = 	new Array(	"Transform Triangle"		,"itemNMTriangle.html"	,"$139.00"	,"$199.95"	,"/pair","Transform Triangle - Super Soft (pair)"	,"Breastforms"						,"no","no");
arrPages[++itemNdx]  = 	new Array(	"Transform Classic II"		,"item16.html"			,"$159.00"	,"$224.95"	,"/pair","Transform Classic II - Super Soft (pair)"	,"Breastforms"						,"no","no");
arrPages[++itemNdx]  = 	new Array(	"Transform Sable"			,"itemSable.html"		,"$159.00"	,"$224.95"	,"/pair","Transform Sable - Super Soft (pair)"		,"Breastforms"						,"no","no");
arrPages[++itemNdx]  = 	new Array(	"Transform Full Oval"		,"itemNMTeardrop.html"	,"$139.00"	,"$199.95"	,"/pair","Transform Full Oval - Super Soft (pair)"	,"Breastforms"						,"no","no");

arrPages[++itemNdx]  = 	new Array(	"Elite Triangle"			,"itemEliteTri.html"	,"$129.95"	,"$189.00"	,"/pair","Elite Triangle (pair)"				    ,"Breastforms"						,"no","no");
arrPages[++itemNdx]  =	new Array( 	"Elite Teardrop"			,"itemEliteTear.html"	,"$129.95"	,"$189.00"	,"/pair","Elite Teardrop (pair)"					,"Breastforms"						,"no","no");

arrPages[++itemNdx]  =  new Array( 	"Classic Contact 351"		,"item351.html"		    ,"$459.00"	,"$629.00"	,"/pair","Classic Contact 351 (pair)"		        ,"Breastforms"						,"no","no");
arrPages[++itemNdx]  = 	new Array(	"Tria Plus 265"				,"item265.html"			,"$459.00"	,"$629.00"	,"/pair","Tria Plus 265 (pair)"				        ,"Breastforms"						,"no","no");

arrPages[++itemNdx]  = new Array(	"Freestyle Swimform"		,"item20.html"			,"$149.00"	,"$239.00"	,"/pair","Freestyle Spa Swimform (pair)"			,"Breastforms"						,"no","no");
arrPages[++itemNdx]  = 	new Array(	"Deluxe Sleep/Travel"		,"item210.html"			,"$79.00"	,"$99.00"	,"/pair","Deluxe Sleep/Travel (pair)"				,"Breastforms"						,"no","no");
arrPages[++itemNdx]  = 	new Array(	"Sleep/Travel"				,"itemfoam036.html"		,"$49.00"	,"$69.00"	,"/pair","Sleep/Travel (pair)"				        ,"Breastforms"						,"no","no");

//BRAS
arrPages[++itemNdx]  = new Array(	"Bras"						,"grpBras.html" 		, "" 		,""			, ""    , "Bras" 									,"Bras"								,"no","no");
arrPages[++itemNdx]  = new Array(	"Camp Naturalwear"			,"item33.html" 			, "$35.00"  ,"$45.00"	, ""    , "Lace Camisole Underwire 164"             ,"Bras"								,"no","no");
//ADHESIVE TAPES
arrPages[++itemNdx]  = new Array(	"Adhesives/Tapes"			     ,"grpAdhesives.html" 	    , "" 		,""			, ""    , "Adhesives/Tapes" 						,"Adhesives/Tapes"					,"no","yes");
arrPages[++itemNdx]  = new Array(	"Double-sided Tape Kits"	     ,"itemdoubletapekits.html" 	, ""  ,""	, ""    , "Double-sided Tape Kits"          	,"Adhesives/Tapes"					,"no","yes");
arrPages[++itemNdx]  = new Array(	"Double-sided Tape"	 		    ,"itemdoubletape.html" 	, "$25.00"  ,"$29.00"	, ""    , "Double-sided Tapes"                      	,"Adhesives/Tapes"					,"no","yes");
arrPages[++itemNdx]  = new Array(	"Skin Tac Adhesive"			     ,"itemSkinWipe.html" 	    , "$19.95"  ,"$19.95"	, ""    , "Skin Tac Adhesive Wipes (50/pkg)"        ,"Adhesives/Tapes"					,"no","yes");
arrPages[++itemNdx]  = new Array(	"It Stays adhesive"			     ,"itemItStays.html" 	    , "$9.95"  	,"$9.95"	, ""    , "It Stays Adhesive"                    	,"Adhesives/Tapes"					,"no","yes");
arrPages[++itemNdx]  = new Array(	"NipStick"					     ,"itemnipstick.html" 	    , "$3.00"  	,"$3.00"	, ""    , "NipStick (6/pkg)"                    	,"Adhesives/Tapes"					,"no","yes");
arrPages[++itemNdx]  = new Array(	"Active Skin Supports for 265"	 ,"item265tape.html"        , "$35.00" 	,"$45.00"	, ""    , "Active Skin Support - Tria Plus 265"     ,"Adhesives/Tapes"		            ,"no","yes");
arrPages[++itemNdx]  = new Array(	"Sensitive Skin Supports for 265","item265tapeSens.html"    , "$35.00"  ,"$45.00"   , ""    , "Sensitive Skin Support - Tria Plus 265"  ,"Adhesives/Tapes"		            ,"no","yes");
arrPages[++itemNdx]  = new Array(	"Security Patches"			     ,"item21.html" 			, "$25.00" 	,"$35.00"	, ""    , "Security Patches (2 sets)"               ,"Adhesives/Tapes"				    ,"no","yes");
//ACCESSORIES
arrPages[++itemNdx]  = new Array(	"Accessories"				,"grpAccessories.html" 	, "" 		,""			, ""    , "Accessories" 							,"Accessories"						,"no","yes"); 
arrPages[++itemNdx]  = new Array(	"Gaffs"						,"itemgaff.html" 		, "$20.00" 	,"$25.00"	, ""    , "Gaffs"                					,"Accessories"						,"no","yes"); 
arrPages[++itemNdx]  = new Array(	"Naughty Nipples"			,"itemnipple.html" 		, "$15.00"  ,"$20.00"	, ""    , "Naughty Nipples"                			,"Accessories"						,"no","yes");
arrPages[++itemNdx]  = new Array(	"Padded Panty"				,"itempanty.html" 		, "$39.95"  ,"$49.95"	, ""    , "Padded Panty"                			,"Accessories"						,"no","yes"); 
arrPages[++itemNdx]  = new Array(	"Chest Tape"				,"itemchesttape.html" 	, "$15.95"  ,"$21.95"	, ""    , "Chest Tape (3/pkg)"                    	,"Accessories"						,"no","yes");
arrPages[++itemNdx]  = new Array(	"Comfy Straps"				,"itemComfyStraps.html" , "$11.95"	,"$15.95"	, ""    , "Comfy Straps"                    		,"Accessories"						,"no","yes");
//BEAUTY
arrPages[++itemNdx]  = new Array(	"Beauty"					,"grpBeauty.html" 		, "" 		,""			, ""    , "Beauty" 									,"Beauty"							,"no","yes"); 
arrPages[++itemNdx]  = new Array(	"Hair Removal System"		,"itemMoomStarter.html" , "$29.95" 	,"$29.95"	, ""    , "Hair Removal - Starter System"           ,"Beauty"							,"no","yes");
arrPages[++itemNdx]  = new Array(	"Face and Travel Kit "		,"itemMoomTravel.html" 	, "$7.95"  	,"$7.95"	, ""    , "Hair Removal - Face/Travel Kit"          ,"Beauty"							,"no","yes");
arrPages[++itemNdx]  = new Array(	"Hair Remover Refill "		,"itemMoomRemover.html" , "$24.95" 	,"$24.95"	, ""    , "Hair Removal - Refill"                   ,"Beauty"							,"no","yes"); 
arrPages[++itemNdx]  = new Array(	"Beauty Clay Masque "		,"itemMoomMasque.html" 	, "$29.95" 	,"$29.95"	, ""    , "Clay Beauty Masque with Green Tea"       ,"Beauty"							,"no","yes");
arrPages[++itemNdx]  = new Array(	"Female Pheromones"			,"itemPheromones.html" 	, "$39.95" 	,"$49.95"	, ""    , "Female Pheromones"                       ,"Beauty"							,"no","yes"); 
arrPages[++itemNdx]  = new Array(	"Foot Spa Kit"				,"itemMoomFoot.html" 	, "$19.95" 	,"$19.95"	, ""    , "Aromatherapy Foot Spa Kit "              ,"Beauty"							,"no","yes"); 
arrPages[++itemNdx]  = new Array(	"Exfoliating Glove"			,"itemMoomGlove.html" 	, "$9.95"  	,"$9.95"	, ""    , "Exfoliating Beauty Glove "               ,"Beauty"							,"no","yes"); 
arrPages[++itemNdx]  = new Array(	"Hair Removal Kit"			,"itemMoomAccessory.html","$14.95"  ,"$14.95"	, ""    , "Hair Removal - Accessory Kit"            ,"Beauty"							,"no","yes");


// Pulls the data value from the above array from the given column (ndxAttrib)
function gProductAttribute(ItemURL,ndxAttrib) {
	var ItemPageNdx;
	ItemPageNdx = gCurrentPageNdx(ItemURL); 
	
	return arrPages[ItemPageNdx][ndxAttrib];
}

//Used in Menuform to keep track of which product page you are on so that the next and highlighting features will work
function gCurrentPageNdx(docURL) {
	////var ext = document.URL.substr(document.URL.lastIndexOf("."),10)  //gets the extension
	for (i=0;i<arrPages.length;i++) {
		if (arrPages[i][1].toUpperCase()==docURL.substr(docURL.lastIndexOf("/")+1,arrPages[i][1].length).toUpperCase() || docURL.toUpperCase() == arrPages[i][1].toUpperCase()) {
			return i;
		}
	}
}

//No Currency - Product Price Only without (CAD USD) $xxx.xx
function gProductPriceNC(ItemURL) {
	var ItemPageNdx;
	ItemPageNdx = gCurrentPageNdx(ItemURL); 
	if (PageCurrency=='CAD') {
		return  arrPages[ItemPageNdx][3]; 
	} else {
		return  arrPages[ItemPageNdx][2] ;
	}
}

//Toggle between the USD anc CAD currencies used on "Deal" pages - Price Only $xxx.xx
function gShowPrice(USDPrice,CDNPrice) {
	if (PageCurrency=='CAD') {
		return  CDNPrice; 
	} else {
		return  USDPrice;
	}
}

//Product Price & Currency  $xxx.xx USD
function gShowPriceWithCurrency(USDPrice,CDNPrice) {
	if (PageCurrency=='CAD') {
		return  CDNPrice + ' ' + PageCurrency; 
	} else {
		return  USDPrice + ' ' + PageCurrency;
	}
}

//Product Name & Price (2 lines) used on product catalogue pages 
function gProductShortPriceDesc(ItemURL) {
	var ItemPageNdx;
	ItemPageNdx = gCurrentPageNdx(ItemURL); 
	
	if (PageCurrency=='CAD') {
		return '<A href="' + arrPages[ItemPageNdx][1] + '">' + arrPages[ItemPageNdx][0] + '</A> <BR><strong>' + arrPages[ItemPageNdx][3] + ' CAD' + arrPages[ItemPageNdx][4] + '</strong>';
	} else {
		return '<A href="' + arrPages[ItemPageNdx][1] + '">' + arrPages[ItemPageNdx][0] + '</A> <BR><strong>' + arrPages[ItemPageNdx][2] + ' USD' + arrPages[ItemPageNdx][4] + '</strong>';	
	}	
}

//Product Price - $xxx.xx USD
function gProductPrice(ItemURL,itCurrency) {
	var ItemPageNdx;
	ItemPageNdx = gCurrentPageNdx(ItemURL); 
	
	if (itCurrency=='CAD') {
		return  arrPages[gCurrentPageNdx(ItemURL)][3] + ' CAD' ;
	} else {
		return  arrPages[gCurrentPageNdx(ItemURL)][2] + ' USD' ;	
	}
}

//Product Price & Tax Message - $xxx.xx USD /pair - GST & PST 
function gProductPriceDesc() {
	var objCurImg;
	if (PageCurrency=='CAD') {
		objCurImg =  '<IMG height=24 alt="Canadian Shoppers" src="_graphics/_pagecontent/name48.gif" width=210><BR>';
		return objCurImg + arrPages[CurrentPageNdx][3] + " CAD" + arrPages[CurrentPageNdx][4] + gReturnTaxBlurb(arrPages[CurrentPageNdx][8]);
	} else {
		objCurImg =  '<IMG height=24 alt="American Shoppers" src="_graphics/_pagecontent/name47.gif" width=210><BR>';
		return objCurImg + arrPages[CurrentPageNdx][2] + " USD" + arrPages[CurrentPageNdx][4] + gReturnTaxBlurb(arrPages[CurrentPageNdx][7]);	
	}	
}

//Create a Tax Note (GST/PST) to appear within the Shopping Cart Box, written by function (gProductPriceDesc) above
function gReturnTaxBlurb(TaxId) {
	var TextBlurb;
	var returnText = "";
	if (PageCurrency=='CAD') {
		TextBlurb = "This product is GST/PST exempt!";
		returnText = (TaxId == 'no' && TextBlurb != ''? '<em><font size="2" color="CC3366"><br>(' + TextBlurb + ')</font></em>' : '<em><font size="2" color="CC3366"><br>(Please note this product is taxable)</font></em>' ); 
	} else {
		TextBlurb = "";
		returnText = (TaxId == 'no' && TextBlurb != ''? '<em><font size="1" color="CC3366"><br>(' + TextBlurb + ')</font></em>' : '' ); 
	}
	return  returnText; 
}

//Shopping Cart Product Name & Price - Sent within the "form" to the shopping cart code
function gProductPriceDescHidden() {
	if (PageCurrency=='CAD') {
		return '<INPUT type="hidden" value="' + arrPages[CurrentPageNdx][5] + " " + arrPages[CurrentPageNdx][3] + '" name="info2">';
	} else {
		return '<INPUT type="hidden" value="' + arrPages[CurrentPageNdx][5] + " " + arrPages[CurrentPageNdx][2] + '" name="info2">';	
	}
}

//Determine which web site footer to write on the bottom of each page
function gPageName() {
	
	if (PageCurrency=='CAD') {
		return ' 2000-2004 Copyright TheBreastFormStore.ca';
	} else {
		return ' 2004-2010 Copyright TheBreastFormStore.com';
	}

}

//Determine the currency for the page
//Create the image maps for the header of each page
function gCurrency() {
	if ((window.location.hostname.toUpperCase()).indexOf('.CA') >= 0 || (window.location.href.toUpperCase()).indexOf('TBFSCA')>= 0) { 
		 PageCurrency = 'CAD';
	} else  {
		 PageCurrency = 'USD';
	}
}
CurrentPageNdx = gCurrentPageNdx(document.URL); 


/*var htmlCode = '<tr><td width="500" valign="bottom"><img src="_graphics/MainTitleLogo.jpg"></td><td valign="top" colspan="2"><div align="right"><table><tr><td nowrap> <div align="center"><img src="_graphics/Banner/PinkRibbonResized.gif" border="0"  usemap="#Map2"></div></td></tr></table></div></div><div align="right"></div></td></tr><tr><td colspan="3"><table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FF99FF"><tr><td height="5" bordercolor="#FF99FF" bgcolor="#993399"><div align="center"><img src="_graphics/Dedication.gif"></div></td><td bordercolor="#FF99FF" bgcolor="#993399"><div align="right"><img src="_graphics/MenuConsole/TopMenu.gif" border="0" usemap="#Map"></div></td></tr></table></td></tr>';
htmlCode += '<map name="Map"><area shape="rect" coords="0,4,38,17" href="index.html"><area shape="rect" coords="53,3,110,17" href="http://mall.3dcom.com/d3cart/mall/tbfs/jsp/showcart.jsp"><area shape="rect" coords="131,3,210,17" href="comment.html"></map>';
htmlCode += '<map name="Map2"><area shape="rect" coords="27,20,172,79" href="http://www.breastformshopping.com/index.asp?cid=BFS_PinkRibbon"></map>';
document.write(htmlCode);*/

 

if (CurrentPageNdx >=0) {
	window.document.title = "The BreastFormStore.com - " + arrPages[CurrentPageNdx][5];
} else {
	window.document.title = "The BreastFormStore.com";
}
gCurrency();