// JavaScript Document

	var numPlus = "01";
	var imageSrc = "web_images/01.jpg";
	var infoSrc = "web_images/01_info.png";
	var countSrc = "../images_optimized/countnums/01.png";

	function imageUp(maxImages)
	{
		var thisNum = document.getElementById("countSpan").innerHTML;
		numPlus = (thisNum*1) +1;
		
		if (numPlus > maxImages) {
			numPlus = 1;
		}
		
		if (numPlus < 10) {
			numPlus = "0" + numPlus;
		}
		
		imageSrc = "web_images/"+ numPlus + ".jpg";
		infoSrc = "web_images/"+ numPlus + "_info.png";
		countSrc = "../images_optimized/countnums/" + numPlus + ".png";
		
		document.getElementById("myImage").src= imageSrc;
		document.getElementById("infoPNG").src= infoSrc;
		document.getElementById("countPNG").src= countSrc;
		document.getElementById("countSpan").innerHTML = numPlus;
		
		// change PayPal button
		var buttonHTML = new String();
        
		if (numPlus == "01") {
			buttonHTML = '<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="BRUJDNYY3WKZ8"><input type="image" src="http://www.jamesgilbertstudio.com/editions/PurchaseButton.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>'
		}
		
		if (numPlus == "02") {
			buttonHTML = '<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="SPVEPF3E33X68"><input type="image" src="http://www.jamesgilbertstudio.com/editions/PurchaseButton.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>'
		}		
		
		if (numPlus == "03") {
			buttonHTML = '<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="EVYND6UW5MQ3J"><input type="image" src="http://www.jamesgilbertstudio.com/editions/PurchaseButton.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>'
		}	
		
		if (numPlus == "04") {
			buttonHTML = '<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="UQRZPXTUPNC4G"><input type="image" src="http://www.jamesgilbertstudio.com/editions/PurchaseButton.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>'
		}	
		
		if (numPlus == "05") {
			buttonHTML = '<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="N5EJZ93CAS37E"><input type="image" src="http://www.jamesgilbertstudio.com/editions/PurchaseButton.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>'
		}			
		
		if (numPlus == "06") {
			buttonHTML = '<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="WM57TPXU923SY"><input type="image" src="http://www.jamesgilbertstudio.com/editions/PurchaseButton.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>'
		}			
				
       document.getElementById('buttonDiv').innerHTML = buttonHTML;
		// change PayPal button
	
	}
	
	function imageDown(maxImages)
	{
		var thisNum = document.getElementById("countSpan").innerHTML;
		numPlus = (thisNum*1) -1;
		if (numPlus < 1) {
			numPlus = maxImages;
		}
		
		
		if (numPlus < 10) {
			numPlus = "0" + numPlus;
		}
		
		imageSrc = "web_images/"+ numPlus + ".jpg";
		infoSrc = "web_images/"+ numPlus + "_info.png";
		countSrc = "../images_optimized/countnums/" + numPlus + ".png";

		document.getElementById("infoPNG").src= infoSrc;
		document.getElementById("countPNG").src= countSrc;
		document.getElementById("myImage").src= imageSrc;
		document.getElementById("countSpan").innerHTML = numPlus;
		
		// change PayPal button
		var buttonHTML = new String();
        
		if (numPlus == "01") {
			buttonHTML = '<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="BRUJDNYY3WKZ8"><input type="image" src="http://www.jamesgilbertstudio.com/editions/PurchaseButton.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>'
		}
		
		if (numPlus == "02") {
			buttonHTML = '<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="SPVEPF3E33X68"><input type="image" src="http://www.jamesgilbertstudio.com/editions/PurchaseButton.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>'
		}		
		
		if (numPlus == "03") {
			buttonHTML = '<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="EVYND6UW5MQ3J"><input type="image" src="http://www.jamesgilbertstudio.com/editions/PurchaseButton.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>'
		}	
		
		if (numPlus == "04") {
			buttonHTML = '<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="UQRZPXTUPNC4G"><input type="image" src="http://www.jamesgilbertstudio.com/editions/PurchaseButton.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>'
		}	
		
		if (numPlus == "05") {
			buttonHTML = '<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="N5EJZ93CAS37E"><input type="image" src="http://www.jamesgilbertstudio.com/editions/PurchaseButton.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>'
		}			
		
		if (numPlus == "06") {
			buttonHTML = '<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="WM57TPXU923SY"><input type="image" src="http://www.jamesgilbertstudio.com/editions/PurchaseButton.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>'
		}			
				
       document.getElementById('buttonDiv').innerHTML = buttonHTML;
		// change PayPal button
	}
	
	


    
	
	
	function CancelDrag()
{
		sourceId = "";
}
