

// Make the picture galleries

var blackGallery = new Array(10)
	blackGallery[0] = "file_store/black600/1blk600.jpg";
	blackGallery[1] = "file_store/black600/2blk600.jpg";
	blackGallery[2] = "file_store/black600/3blk600.jpg";
	blackGallery[3] = "file_store/black600/4blk600.jpg";
	blackGallery[4] = "file_store/black600/5blk600.jpg";
	blackGallery[5] = "file_store/black600/6blk600.jpg";
	blackGallery[6] = "file_store/black600/7blk600.jpg";
	blackGallery[7] = "file_store/black600/8blk600.jpg";
	blackGallery[8] = "file_store/black600/9blk600.jpg";
	blackGallery[9] = "file_store/black600/10blk600.jpg";
	
	
var bwGallery = new Array(10)
	bwGallery[0] = "file_store/bw600/1bw600.jpg";
	bwGallery[1] = "file_store/bw600/2bw600.jpg";
	bwGallery[2] = "file_store/bw600/3bw600.jpg";
	bwGallery[3] = "file_store/bw600/4bw600.jpg";
	bwGallery[4] = "file_store/bw600/5bw600.jpg";
	bwGallery[5] = "file_store/bw600/6bw600.jpg";
	bwGallery[6] = "file_store/bw600/7bw600.jpg";
	bwGallery[7] = "file_store/bw600/8bw600.jpg";
	bwGallery[8] =  "file_store/bw600/9bw600.jpg";
	bwGallery[9] = "file_store/bw600/10bw600.jpg";
	
var whiteGallery = new Array(10)

	whiteGallery[0] = "file_store/white600/1white600.jpg";
	whiteGallery[1]= "file_store/white600/2white600.jpg";
	whiteGallery[2]= "file_store/white600/3white600.jpg";
	whiteGallery[3] = "file_store/white600/4white600.jpg";
	whiteGallery[4] = "file_store/white600/5white600.jpg";
	whiteGallery[5] = "file_store/white600/6white600.jpg";
	whiteGallery[6] = "file_store/white600/7white600.jpg";
	whiteGallery[7] = "file_store/white600/8white600.jpg";
	whiteGallery[8] = "file_store/white600/9white600.jpg";
	whiteGallery[9] = "file_store/white600/10white600.jpg";
	
// variables for the browsing pictures
	var nextPic = 0
	var nextBack = -1

// Browse Gallery Function

 function dressesSlideShow(next, Gallery, page) {
	Gallery = Gallery 
	if (document.images) {
	nextPic++ 
	if (nextPic >= next) {
	nextPic = 0 
        }
        

// Objects that put pictures in separate divs to browse gallery
        var page = page
		document.slideShow.src=Gallery[nextPic];
		var thaturl = "javascript:location='?page_id="+  page +"'; window.open(' " + Gallery[nextPic] + " ', 'Big Pic', 'height=600, width=620')"
		document.getElementById('urls').setAttribute('href',thaturl);
		
		
// End of object
		}
    }

function dressesSlideShowBack(next, Gallery, page) {
	Gallery = Gallery
	if (document.images) {
	nextPic = nextPic - 1 
	if (nextPic == nextBack) {
	nextPic = next 
        }

// Objects that put pictures in separate divs to browse gallery
         var page = page
		document.slideShow.src=Gallery[nextPic];
       var thaturl = "javascript:location='?page_id=" + page + "'; window.open('" + Gallery[nextPic] + "', 'Big Pic', 'width=620')"
		document.getElementById('urls').setAttribute('href',thaturl);
// End of object
}
}

// end of this function

// Button arrays

var buttcodes = new Array(29)

buttcodes[0] = "873246";
buttcodes[1] = "1116746";
buttcodes[2] = "1116755";
buttcodes[3] = "1116766";
buttcodes[4] = "1116786";
buttcodes[5] = "1116801";
buttcodes[6] = "1116809";
buttcodes[7] = "1116821";
buttcodes[8] = "1116830";
buttcodes[9] = "1116840";
buttcodes[10] = "1119144";
buttcodes[11] = "1119154";
buttcodes[12] = "1119159";
buttcodes[13] = "1119169";
buttcodes[14] = "1119179";
buttcodes[15] = "1119187";
buttcodes[16] = "1119192";
buttcodes[17] = "1119194";
buttcodes[18] = "1119207";
buttcodes[19] = "1119209";
buttcodes[20] = "1119368";
buttcodes[21] = "1119375";
buttcodes[22] = "1119382";
buttcodes[23] = "1119664";
buttcodes[24] = "1119667";
buttcodes[25] = "1119671";
buttcodes[26] = "1119677";
buttcodes[27] = "1119682";
buttcodes[28] = "1119685";


var buttimgs = new Array(29)

buttimgs[0] = "file_store/black600/1blk600.jpg";
buttimgs[1] = "file_store/black600/2blk600.jpg";
buttimgs[2] = "file_store/black600/3blk600.jpg";
buttimgs[3] = "file_store/black600/4blk600.jpg";
buttimgs[4] = "file_store/black600/5blk600.jpg";
buttimgs[5] = "file_store/black600/6blk600.jpg";
buttimgs[6] = "file_store/black600/7blk600.jpg";
buttimgs[7] = "file_store/black600/8blk600.jpg";
buttimgs[8] = "file_store/black600/9blk600.jpg";
buttimgs[9] =  "file_store/black600/10blk600.jpg";
buttimgs[10] = "file_store/bw600/1bw600.jpg";
buttimgs[11] = "file_store/bw600/2bw600.jpg";
buttimgs[12] = "file_store/bw600/3bw600.jpg";
buttimgs[13] = "file_store/bw600/4bw600.jpg";
buttimgs[14] = "file_store/bw600/5bw600.jpg";
buttimgs[15] = "file_store/bw600/6bw600.jpg";
buttimgs[16] = "file_store/bw600/7bw600.jpg";
buttimgs[17] = "file_store/bw600/8bw600.jpg";
buttimgs[18] =  "file_store/bw600/9bw600.jpg";
buttimgs[19] =  "file_store/bw600/10bw600.jpg";
buttimgs[20] = "file_store/white600/1white600.jpg";
buttimgs[21]= "file_store/white600/2white600.jpg";
buttimgs[22]= "file_store/white600/3white600.jpg";
buttimgs[23] = "file_store/white600/4white600.jpg";
buttimgs[24] = "file_store/white600/5white600.jpg";
buttimgs[25] = "file_store/white600/6white600.jpg";
buttimgs[26] = "file_store/white600/7white600.jpg";
buttimgs[27] = "file_store/white600/8white600.jpg";
buttimgs[28] = "file_store/white600/9white600.jpg";




function buttoneer() {
	
for (i = 0; i < buttcodes.length; i++)



{
document.write('<div class=\"buttoneer\"><img src=\"' + buttimgs[i]+ '\" height=\"300\">\
<div style=\"padding:1em 0 0 0; text=align:center\">\
<form target=\"paypal\" action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\">\
<input type=\"hidden\" name=\"cmd\" value=\"_s-xclick\">\
<input type=\"hidden\" name=\"hosted_button_id\" value=\"' + buttcodes[i] + '\">\
<input type=\"hidden\" name=\"on0\" value=\"Select Size\"><span style=\"padding: 0 .5em 0 0;\">Select Size</span><select name=\"os0\">\
     <option value=\"5 X 7\">5 X 7 $48.00\
	<option value=\"8 X 10\">8 X 10 $120.00\
	<option value=\"11 X 14\">11 X 14 $230.00\
	<option value=\"12 X 18\">12 X 18 $300.00\
	<option value=\"20 X 24\">20 X 24 $670.00\
	<option value=\"24 X 30\">24 X 30 $1,000.00\
	<option value=\"30 X 40\">30 X 40 $1,670.00\
	<option value=\"40 X 60\">40 X 60 $3,400.00</select></div>\
<div style=\"clear:left; text-align:center\"><input type=\"hidden\" name=\"currency_code\" value=\"USD\">\
<br/><input type=\"image\" src=\"https://www.paypal.com/en_US/i/btn/btn_cart_LG.gif\" border=\"0\" name=\"submit\" alt=\"\">\
<img alt=\"\" border=\"0\" src=\"https://www.paypal.com/en_US/i/scr/pixel.gif\" width=\"1\" height=\"1\"></form></div></div>')
}


	
}
