var vanityTable = 
 {
  
   };



function handleEnter (field, event) {
		var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
		if (keyCode == 13) {
			var i;
			for (i = 0; i < field.form.elements.length; i++)
				if (field == field.form.elements[i])
					break;
			i = (i + 1) % field.form.elements.length;
			opensmugLinkWindow(document.customerproofs.customerid.value);
			return false;
		} 
		else
		return true;
	}   






function opensmugLinkWindow(smugid)
  {


if (document.customerproofs.customerid.value == "")
	{
		alert("Client Login ID required");
		document.customerproofs.customerid.focus();
		

	}
else
{

var smugmugbase = "http://www.louisianamoments.com/Proofs/";
var smugidname = smugid;
var URL = smugmugbase  + smugidname;
window.location=URL;

}
  
  }



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
         }
     }
 }





function openLinkWindow(URL)
  {
   linkWindow=window.open(URL,"linkInfo","width=875,height=595,dependent=yes,resizable=no,scrollbars=yes,toolbar=no,menubar=no,addressbar=no");
    linkWindow.focus();
   
  }






var packitemarray = new Array();
var printsitemarray = new Array();
var printspricearray = new Array();
var compositesitemarray = new Array();
var compositespricearray = new Array();
var cardsitemarray = new Array();
var cardspricearray = 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]="....."; printspricearr[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   */
/* printspricearray.                                                         */
/* Examples:                                                                 */
/* typearray[1]="Lustre ( add $.25)";                                        */
/* tpricearray[1]="0.25";                                                    */
/* tmatharray[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.                                                 */
/*                                                                           */
/* typearray[2]="B&W Print ( add 15%)";                                      */
/* tpricearray[2]="1.15";                                                    */
/* tmatharray[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.                                                 */
/*                                                                           */
/* The paypaldarray stores the amounts for Deposits and Pay in Full.         */
/* The paypald (Deposit array) can be edited the same way.  You simply add,  */
/* change, delete rows within the array. The item price is multipled by the  */
/* value in the paypaydaarray depending on what the customer selects.        */
/*                                                                           */
/*                                                                           */
/*                                                                           */
/*****************************************************************************/


packitemarray[0]="Click the arrow for a list of pre-paid packages"; 	
packitemarray[1]="Package A: 1 8x10 (or 4 3.5x5), 2 5x7s, 8 wallets";      	  	
packitemarray[2]="Package B - First Pose: 1 8x10 (or 4 3.5x5s), 2 5x7s, 4 wallets"; packitemarray[3]="Package B - Second Pose: 1 8x10 (or 4 3.5x5s), 2 5x7s, 4 wallets"; 		  	   

printsitemarray[0]="Click the arrow for a list of prints";
printsitemarray[1]="Die-cut wallets, 8: $11.00";      	  	
printsitemarray[2]="Print sizes smaller than 5x7: $6.25"; 		  	   
printsitemarray[3]="5x7: $9.25"; 		  	   
printsitemarray[4]="8x10 (mounted on art board and sealed with lustre coating):  $18.50";
printsitemarray[5]="11x14 (mounted on art board and sealed with lustre coating):  $45.00";


printspricearray[0]="0.00";
printspricearray[1]="11.00";      	  	
printspricearray[2]="6.25"; 		  	   
printspricearray[3]="9.25"; 		  	   
printspricearray[4]="18.50"; 
printspricearray[5]="45.00"; 


compositesitemarray[0]="Click the arrow for a list of composites"; 	
compositesitemarray[1]="4x10, mounted and sealed: $6";      	  	
compositesitemarray[2]="10x20, mounted and sealed: $145"; 		  	   
compositesitemarray[3]="5x30, mounted and sealed: $185"; 		  	   
compositesitemarray[4]="12x12, mounted and sealed:$185";
compositesitemarray[5]="20x20, mounted and sealed:$275";


compositespricearray[0]="0.00"; 	
compositespricearray[1]="68.00";      	  	
compositespricearray[2]="145.00"; 		  	   
compositespricearray[3]="185.00"; 		  	   
compositespricearray[4]="185.00"; 
compositespricearray[5]="275.00"; 



cardsitemarray[0]="Click the arrow for a list of cards"; 	
cardsitemarray[1]="5x5 and 5x7 flat cards, photo paper: $50.00 for 25 cards";      	  	


cardspricearray[0]="0.00"; 	
cardspricearray[1]="50.00";      	  	



var pplink3 = "javascript:openLinkWindow('http://momentsphoto.smugmug.com/gallery/6567039_FS3CD";
var pplinkhelppass = pplink3 +  "')";



var pplinkhelp = "<font class=\"ContentTextRed\"><sup><a href=\"" + pplinkhelppass + "\" >help</a></sup></font>";


var packagemessage = "Note: For Package B, please submit a seperate order for both poses.";
var printsmessage = "Call for prices on roll, streched, or gallery wrap canvases, as well as stand out mounts.";
var compositesmessage = "<br> ";
var cardsmessage = "All cards & announcements include the envelopes.<br>For cards printed on photo paper: A minimum order of 25 is required with additional cards sold in groups of 5<br>For press-printed items: A minimum order of 24, additional orders in groups of 24<br>";
var ppbottomimage = "<img src=\"/photos/417078513_KMbVy-O.gif\" border=\"0\">" + "<br><p class=\"ContentTextRed\">Note: You do not need a paypal account to process your order."  ;










