//********************************************** Small Leather Color ******************************************


var regionsArray2 = new Array(4);
regionsArray2[0] = new Array("Select Leather Type");
regionsArray2[1] = new Array("Admiral Blue","Antique Ivory","Black","Burgundy","Forest Green","Luggage","Slate","White");
regionsArray2[2] = new Array("White","Teal","Slate","Sand","Oyster","Navy","Maroon","Pink","Green","Charcoal","Candy","Rose","Brown","Black","Gray","Pewter","Ivory","Red");
regionsArray2[3] = new Array("Beige Crush","Blue Kid","Dark Brown Crush","Ivory","Ivory Rosebud","Maroon Kid","Pink Brocade","Red Kid","Slate","White Rosebud","White Satin","White Smooth");

function updateleatherColorShort(n) {
    var arr = regionsArray2[n];
    var current = document.forms[0].LeatherColor.options.length;
    for (var j=current;j>0;j--) document.forms[0].LeatherColor.options[j] = null;
    for (var i=0;i<arr.length;i++) document.forms[0].LeatherColor.options[document.forms[0].LeatherColor.options.length] = new Option(arr[i],arr[i]);
}



//********************************************** Small Leather Color ******************************************



//********************************************** Large Leather Color ******************************************


var regionsArray = new Array(6);
regionsArray[0] = new Array("Select Leather Type");
regionsArray[1] = new Array("Admiral Blue","Antique Ivory","Black","Burgundy","Forest Green","Luggage","Slate","White","Ivory");
regionsArray[2] = new Array("White","Teal","Slate","Sand","Oyster","Navy","Maroon","Pink","Green","Charcoal","Candy","Rose","Brown","Black","Gray","Pewter","Ivory","Red");
regionsArray[3] = new Array("Austin","Berry","Black","Bone","Butterscotch","Cream","Golden","Honey","Midnight Blue","Mint","Mustard","Navy","Patroit Blue","Plum","Red","Sable","Smoke Gray","Snow","Steel Gray","Stone","Whitecap","Wine");
regionsArray[4] = new Array("Bark","Cherokee","Navajo","Palomino","Saddle","Sagebrush","Santa Fe");
regionsArray[5] = new Array("Beige Crush","Blue Kid","Dark Brown Crush","Ivory","Ivory Rosebud","Maroon Kid","Pink Brocade","Red Kid","Slate","White Rosebud","White Satin","White Smooth");

function updateleatherColor(n,index) {
    var arr = regionsArray[n];
    var current = document.forms[0].LeatherColor.options.length;
    for (var j=current;j>0;j--) document.forms[0].LeatherColor.options[j] = null;
    for (var i=0;i<arr.length;i++) document.forms[0].LeatherColor.options[document.forms[0].LeatherColor.options.length] = new Option(arr[i],arr[i]);

     if (index =="Standard")
     {
   	 	  document.mForm["InsetCoverYN"].disabled = false;
		  document.mForm["InsetCoverSize"].disabled = true;
		  document.mForm["InsetCoverColor"].disabled = true;
		  document.mForm["InsetCoverPhoto"].disabled = true;
		  document.mForm["InsetCoverFile"].disabled = true;
		  
		  document.mForm["CameoYN"].disabled = false;
		  document.mForm["Cameo"].disabled = true;
     }
     else if (index =="Leatherette")
     {
     	  document.mForm["InsetCoverYN"].disabled = false;
		  document.mForm["InsetCoverSize"].disabled = true;
		  document.mForm["InsetCoverColor"].disabled = true;
		  document.mForm["InsetCoverPhoto"].disabled = true;
		  document.mForm["InsetCoverFile"].disabled = true;
		  
		  document.mForm["CameoYN"].disabled = false;
		  document.mForm["Cameo"].disabled = true;
          
     }
	 else if (index =="TopGrain")
     {
     	  document.mForm["InsetCoverYN"].disabled = false;
		  document.mForm["InsetCoverSize"].disabled = true;
		  document.mForm["InsetCoverColor"].disabled = true;
		  document.mForm["InsetCoverPhoto"].disabled = true;
		  document.mForm["InsetCoverFile"].disabled = true;
		  
		  document.mForm["CameoYN"].disabled = false;
		  document.mForm["Cameo"].disabled = true;
          
     }
	  else if (index =="Napa")
     {
     	  document.mForm["InsetCoverYN"].disabled = false;
		  document.mForm["InsetCoverSize"].disabled = true;
		  document.mForm["InsetCoverColor"].disabled = true;
		  document.mForm["InsetCoverPhoto"].disabled = true;
		  document.mForm["InsetCoverFile"].disabled = true;
		  
		  document.mForm["CameoYN"].disabled = false;
		  document.mForm["Cameo"].disabled = true;
          
     }
	  else if (index =="Distressed")
     {
     	  document.mForm["InsetCoverYN"].disabled = false;
		  document.mForm["InsetCoverSize"].disabled = true;
		  document.mForm["InsetCoverColor"].disabled = true;
		  document.mForm["InsetCoverPhoto"].disabled = true;
		  document.mForm["InsetCoverFile"].disabled = true;
		  
		  document.mForm["CameoYN"].disabled = false;
		  document.mForm["Cameo"].disabled = true;
          
     }
	  else if (index =="0")
     {
     	  document.mForm["InsetCoverYN"].disabled = true;
		  document.mForm["InsetCoverSize"].disabled = true;
		  document.mForm["InsetCoverColor"].disabled = true;
		  document.mForm["InsetCoverPhoto"].disabled = true;
		  document.mForm["InsetCoverFile"].disabled = true;
		  
		  document.mForm["CameoYN"].disabled = true;
		  document.mForm["Cameo"].disabled = true;
          
     }
}


//********************************************** Large Leather Color ******************************************


//********************************************** Popup Window ******************************************


function newWin(url){
         
		 window.open(url,"",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=467,height=400');

     }
	 
function swatches(url,height,width){
                   
	    window.open(url,"",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+width+',height='+height);
            
    }
	
	
	
//********************************************** Popup Window ******************************************


//********************************************** Dring Album Size  ******************************************

var dringArray = new Array(4);
dringArray[0] = new Array("Choose...");
dringArray[1] = new Array("2 up - 4 per page","3 up - 6 per page");
dringArray[2] = new Array("2 up - 4 per page","4 up - 8 per page");
dringArray[3] = new Array("2 up - 4 per page","3 up - 6 per page");

function updateDringPage(n) {
    var arr = dringArray[n];
    var current = document.forms[0].AlbumSubType.options.length;
    for (var j=current;j>0;j--) document.forms[0].AlbumSubType.options[j] = null;
    for (var i=0;i<arr.length;i++) document.forms[0].AlbumSubType.options[document.forms[0].AlbumSubType.options.length] = new Option(arr[i],arr[i]);
}



//********************************************** Dring Album Size  ******************************************
