/*printorderScript.js*/
/*Copyright 2000-2005 by EarthOdyssey, LLC. All rights reserved. The content of this file may not be copied, used, sold or distributed in whole or in part without the express written consent of EarthOdyssey, LLC.*/
<!-- Hide Script

function CreateArray(n)  {
		this.length = n
		return this
		}



	function arrow1(str,str1) {
		window.status=str
		if (str1=='1') {
		document.jump1.src='images/v_arrow.gif'
		}else{
		if (str1=='2') {
		document.jump2.src='images/v_arrow.gif'
		return true
		}}}

	function arrow2(str,str1) {
		window.status=str
		if (str1=='1') {
		document.jump1.src='images/blank2.gif'
		}else{
		if (str1=='2') {
		document.jump2.src='images/blank2.gif'
		}}}


function setCookie(name,value,expires,path,domain,secure) {

			document.cookie = name + "=" + escape (value) +
			((expires ==null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + (( secure == true) ? "; secure" : "");
			}


		function getCookie(name) {
		var nameLen = name.length
		var clen = document.cookie.length
		var i = 0
		var cEnd
		while (i <clen) {
		var j = i + nameLen;
		if (document.cookie.substring(i,j) == name) {
			cEnd = document.cookie.indexOf(";", j)
			if (cEnd == -1) {
				cEnd = document.cookie.length
			}
			return unescape(document.cookie.substring(j+1,cEnd))
				}
				i++
			}
			return ""
		}

	

	

var expireHours=1;


function advisoryPrint () {
var ran = getCookie('printCookie')
if (ran != "yes") {
var expireDate = new Date ();
expireDate.setTime(expireDate.getTime() + (expireHours * 60 * 60 * 1000));
setCookie('printCookie','yes',expireDate,"/",null,false);
}else{}

}


		
		function priceWindow () {
		
		configure();
		
zPopUp=window.open('http://www.earthodyssey.com/priceTable.html','Note','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=550,height=300,top=80,left=50')
	if (zPopUp != null) {
		if (zPopUp.opener == null) {
			zPopUp.opener = self;
			}
		}	
		
	}
		
		
		var table;
		
	function configure() {

var priceEach=new CreateArray(15)
priceEach[0]=8.25
priceEach[1]=8.15
priceEach[2]=8.05
priceEach[3]=7.95
priceEach[4]=7.85
priceEach[5]=7.80
priceEach[6]=7.75
priceEach[7]=7.70
priceEach[8]=7.65
priceEach[9]=7.60
priceEach[10]=7.55
priceEach[11]=7.50
priceEach[12]=7.45
priceEach[13]=7.40
priceEach[14]=7.35

var shipping= new CreateArray(15)
shipping[0]=6.00
shipping[1]=6.50
shipping[2]=7.00
shipping[3]=7.50
shipping[4]=8.00
shipping[5]=8.50
shipping[6]=9.00
shipping[7]=9.50
shipping[8]=10.00
shipping[9]=10.50
shipping[10]=11.00
shipping[11]=11.50
shipping[12]=12.00
shipping[13]=12.50
shipping[14]=13.00
			
			var line;
			var yourPurchase;

	for (i=0;i<priceEach.length;i++) {


		var quantity=i+6;
		var totalPrice=Math.round(priceEach[i]*quantity*100)/100;
		var totalCost=Math.round((totalPrice+shipping[i])*100)/100;
			

	//..if no decimals add two zeroes	
	
		if (Math.round(priceEach[i]) == priceEach[i]) {

		priceEach[i] = priceEach[i].toString()
		priceEach[i] = priceEach[i] + ".00"
			}
		if (Math.round(totalPrice) == totalPrice) {

		totalPrice = totalPrice.toString()
		totalPrice = totalPrice + ".00"
			}
		if (Math.round(shipping[i]) == shipping[i]) {

		shipping[i] = shipping[i].toString()
		shipping[i] = shipping[i] + ".00"
			}
		if (Math.round(totalCost) == totalCost) {

		totalCost = totalCost.toString()
		totalCost = totalCost + ".00"
			}

			

	//..if one decimal, add one zero

		if (((priceEach[i] * 10) != (Math.round(priceEach[i]) * 10)) && ((priceEach[i] * 10) == (Math.round(priceEach[i] * 10)))) {

		priceEach[i] = priceEach[i].toString()
		priceEach[i] = priceEach[i] + "0"
			}

		if (((totalPrice * 10) != (Math.round(totalPrice) * 10)) && ((totalPrice * 10) == (Math.round(totalPrice * 10)))) {

		totalPrice = totalPrice.toString()
		totalPrice = totalPrice + "0"
			}

		if (((shipping[i] * 10) != (Math.round(shipping[i]) * 10)) && ((shipping[i] * 10) == (Math.round(shipping[i] * 10)))) {

		shipping[i] = shipping[i].toString()
		shipping[i] = shipping[i] + "0"
			}

		if (((totalCost * 10) != (Math.round(totalCost) * 10)) && ((totalCost * 10) == (Math.round(totalCost * 10)))) {

		totalCost = totalCost.toString()
		totalCost = totalCost + "0"
			}


		yourPurchase=totalCost;

line=quantity+'\t$'+priceEach[i]+'\t$'+totalPrice+'\t$'+shipping[i]+'\t$'+totalCost+'\t$'+yourPurchase;
		if (i == 0) {
			table=line+'\n';
		}
		if (i > 0) {
		table+=line+'\n';
		}
			}
				
		
		}

	
	
	

// Stop Hiding Script --->

