var vanityTable = 
 {
portraitparty:  "http://www.tawnyamariephotography.com/Portfolio/Pricing/11329863_UjKKD#795511748_seSuR",
leslie:   "http://www.tawnyamariephotography.com/Portraits/Maternity/Leslie/11059672_F8qah#774156258_9bhEp",
caleb:  "http://www.tawnyamariephotography.com/Portraits/Infants/Caleb/10723115_NVtkP#746991476_LbN3K",
stearmanchristmas: "http://www.tawnyamariephotography.com/gallery/3969196_J9wHx#745053746_x49Mw",
btk:  "http://www.tawnyamariephotography.com/Portfolio/Livermore-Parade-2009/10574050_sa8mC#734612890_QAQME",
moore:  "http://www.tawnyamariephotography.com/Portraits/Families/Moore/10459014_XNaN2#725501912_43uyA",
harrison:  "http://www.tawnyamariephotography.com/Portraits/Toddlers/Harrison/6712372_M6ePq#715763668_D9itL",
trinity: "http://www.tawnyamariephotography.com/Portfolio/Trinity/9753888_UcxKV#660717205_NZrXt",
iandi:  "http://www.tawnyamariephotography.com/Portfolio/II/9704488_vVgG9#655960931_SboBo",
childhood:  "http://tawnyamariephotography.smugmug.com/gallery/9685102_Ld9Qa/#654258868_yG5KV",
sarah: "http://www.tawnyamariephotography.com/Portfolio/Sarah/9650206_uzJu4#651049210_kQWgq",
mainstreet:  "http://www.tawnyamariephotography.com/Business/Main-Street-Bowtique/8729493_Nd9gM#P-1-15",
isabella: "http://www.tawnyamariephotography.com/Portraits/Infants/Isabella-1/9428023_JMCcL#632035540_2sbbj",
sawyer: "http://www.tawnyamariephotography.com/gallery/9311358_pQMEv#622432805_jJJoN",
grad: "http://tawnyamariephotography.smugmug.com/gallery/8341449_R4hmF",
policies: "http://tawnyamariephotography.smugmug.com/gallery/7987624_DUsq5",
isabellag: "http://tawnyamariephotography.smugmug.com/gallery/7572879_YD6j2",
relay: "http://tawnyamariephotography.smugmug.com/gallery/7599887_49Haj",
beck: "http://tawnyamariephotography.smugmug.com/gallery/2964223",
alexs: "http://tawnyamariephotography.smugmug.com/gallery/2961235",
rodeos: "http://tawnyamariephotography.smugmug.com/gallery/2971931",
renfaire: "http://tawnyamariephotography.smugmug.com/gallery/3533036",  
whatley:"http://tawnyamariephotography.smugmug.com/gallery/3928321",
carpenter:"http://tawnyamariephotography.smugmug.com/gallery/3928576",
stearman:"http://www.photographybytawnya.smugmug.com/gallery/3969196",
christmaslightride: "http://tawnyamariephotography.smugmug.com/gallery/4010444",
     isabella1   :"http://www.photographybytawnya.smugmug.com/gallery/4232616",
     maternity  :"http://tawnyamariephotography.smugmug.com/gallery/2757981",
     elite  :"http://tawnyamariephotography.smugmug.com/gallery/4258461",
     jace       :"http://www.photographybytawnya.smugmug.com/gallery/4288539",   
     josh  :"http://tawnyamariephotography.smugmug.com/gallery/4802258_ozDd7",
    piazzaforhair    :"http://tawnyamariephotography.smugmug.com/gallery/4818787_MFEkt",
     twins:"http://tawnyamariephotography.smugmug.com/gallery/4721168_ERUiJ",
     adriana    :"http://tawnyamariephotography.smugmug.com/gallery/4826582_X5hKz",
     jaceisone  :"http://tawnyamariephotography.smugmug.com/gallery/4878463_wJnHn",
     elaria        :"http://tawnyamariephotography.smugmug.com/gallery/5072565_UCM7X",
     babyp      :"http://tawnyamariephotography.smugmug.com/gallery/5111525_JUjVf",
     thegirls    :"http://tawnyamariephotography.smugmug.com/gallery/5355870_xyrRk",
     pricing      :"http://tawnyamariephotography.smugmug.com/gallery/2961220",
     thetwins  :"http://tawnyamariephotography.smugmug.com/gallery/5361520_XDsay",
     thegirlsorder  :"http://tawnyamariephotography.smugmug.com/gallery/5644557_D7cTA",
     sherrisorder   :"http://tawnyamariephotography.smugmug.com/gallery/5645528_ob7WN",
     danasbridal    :"http://tawnyamariephotography.smugmug.com/gallery/5652980_WathZ",
    danasbridalday2  :"http://tawnyamariephotography.smugmug.com/gallery/5653854_iFmuX",
     aloha          :"http://tawnyamariephotography.smugmug.com/gallery/5695177_GNvVL",
     elariajuly     :"http://tawnyamariephotography.smugmug.com/gallery/5736868_ecDuv",
     shaelyn        :"http://tawnyamariephotography.smugmug.com/gallery/6070904_nxUAM",
     workshop      :"http://tawnyamariephotography.smugmug.com/gallery/6192640_TxegY",
     brooke          :"http://tawnyamariephotography.smugmug.com/gallery/6406777_RE5G9",
maternity:"http://tawnyamariephotography.smugmug.com/gallery/6439859_zbszy",
     order           :"http://tawnyamariephotography.smugmug.com/gallery/6652460_sRQxR",
     tyandspenc  :"http://tawnyamariephotography.smugmug.com/gallery/6711517_Lby2g",
     christmas    :"http://tawnyamariephotography.smugmug.com/gallery/6795136_CAAbj",
     lisa         :"http://tawnyamariephotography.smugmug.com/gallery/7065077_jubvB",
     parade       :"http://tawnyamariephotography.smugmug.com/gallery/7095299_umJLf"

  };

function IsHomePage()
 {
    return(YD.hasClass(document.body, 'homepage'));
 }
 
 function CheckRedirects()
 {
     if (IsHomePage())    // only run this code on the home page
     {
         // get the path from the current URL, 
         // convert it to lowercase and remove the leading slash
         var path = window.location.pathname.toLowerCase().substr(1);
         
         var newURL = vanityTable[path];        // look it up in our table
         
         // if we found it in the table && newURL is different than where we are
         if (newURL && (newURL != window.location))
         {
             window.location.replace(newURL);        // go to the new URL
         }
     }
 }


/*****************/
/* Paypal Values */
/*****************/

var printsarraypbt = new Array();
var ppricearraypbt = new Array();
var typearraypbt = new Array();
var tpricearraypbt = new Array();
var tmatharraypbt = new Array();


/*****************************************************************************/
/* NOTE: ANY CHANGES TO THE VALUES BELOW, YOU MUST SAVE THEN CLOSE YOUR      */
/* BROWSER. RE-OPEN YOUR BROWSER AND ACCESS YOUR SITE - THE NEW VALUES WILL  */
/* APPEAR.                                                                   */
/*****************************************************************************/

/*****************************************************************************/
/* STEP: PACKAGE ITEM AND PRINT ITEM MODIFICATIONS                           */
/*                                                                           */
/* The items for prints as well as packages are stored in the arrays below   */
/* Each item has a description (first column) and a price (second column)    */
/* To add more items: 			                                     */
/* -Copy the last row witin the array                                        */
/* -Paste the row at the end of the array                                    */
/* "printsarray[10]="....."; ppricearray[10]=".....";"                       */
/* -Change the number to the next sequential number                          */
/* -Change the value within the ""                                           */
/*                                                                           */
/* To change an item name or price:                                          */
/* -Change the value within the ""                                           */
/*                                                                           */
/* To delete an item:                                         		     */
/* -Highlight the row you wish to delete                                     */
/* -Press the delete or backspace key                                        */
/* -Remove the empty row by pressing the delete or backspace key             */
/* -Important - renumber the array    in numerical order                     */
/* The Type array works the same way.  The type array is used to store the   */
/* the type of picture, such as Color, Black and White, Matte, Glossy, etc.  */
/* The tprice stores the cost of the of the type, if applicable.  If there   */
/* is no cost associated to the price, simply enter a "0.00" in the value.   */
/*                                                                           */
/* The tmatharray is related to the Type array in that it will either add or */
/* multiple the value stored in the tpricearray to the value stored in the   */
/* ppricearray.                                                              */
/* Examples:                                                                 */
/* typearraypbt[1]="Lustre ( add $.25)";                                     */
/* tpricearraypbt[1]="0.25";                                                 */
/* tmatharraypbt[1]="a";                                                     */
/* This means that if a customer selects a Lustre type, price will be        */
/* recalculated and $ .25 will be ADDED to the cost - no matter what item    */
/* is selected.                                                              */
/* Therefore, if your customer selects an 8x10 ($10.00) picture Lustre,      */
/* the cost would be $10.25.                                                 */
/*                                                                           */
/* typearraypbt[2]="B&W Print ( add 15%)";                                   */
/* tpricearraypbt[2]="1.15";                                                 */
/* tmatharraypbt[2]="m";                                                     */
/* This means that if a customer selects a B&W type, price will be           */
/* recalculated and 1.15 will be MULTIPLED to the cost - no matter what item */
/* is selected.                                                              */
/* Therefore, if your customer selects an 8x10 ($10.00) picture B&W,         */
/* the cost would be $11.50.                                                 */
/*****************************************************************************/

printsarraypbt[0]="Click the arrow for item list"; 		ppricearraypbt[0]="0.00";
printsarraypbt[1]="24 Wallets ($35.00)";      	  		ppricearraypbt[1]="35.00";
printsarraypbt[2]="2 5x7 - 24 Wallets    ($50.00)";				ppricearraypbt[2]="50.00";
printsarraypbt[3]="1 8x10 - 2 5x7s - 32 Wallets    ($60.00)";				ppricearraypbt[3]="60.00";
printsarraypbt[4]="Digital Package - ALL images on CD BEST BUY!($45.00)";                ppricearraypbt[4]="45.00",
printsarraypbt[5]="Digital Image (One digital high res file, email, no disc.) ($15.00)";                ppricearraypbt[5]="15.00",
printsarraypbt[6]="1 8x10 ($20.00)";                ppricearraypbt[6]="20.00",






typearraypbt[0]="Click the arrow for a list of picture types"; 	tpricearraypbt[0]="0.00";
typearraypbt[1]="Color";			               	tpricearraypbt[1]="0.00";
typearraypbt[2]="Black and White";   				tpricearraypbt[2]="0.00";


tmatharraypbt[1]="a";
tmatharraypbt[2]="a";


function LoadPhotoOrderFormpbt()
{

   for (i=0; i<printsarraypbt.length; i++)
   {
        document.PhotoOrderFormpbt.item_name.options[i]=new Option(printsarraypbt[i], printsarraypbt[i])
       
   }

   for (j=0; j<typearraypbt.length; j++)
   {
        document.PhotoOrderFormpbt.os1.options[j]=new Option(typearraypbt[j], typearraypbt[j])
       
   }
}
