<!--

function submithidden (formref) {
	formref.action = 'https:\/\/www.paypal.com\/cgi-bin\/webscr';
        formref.cmd.value = '_cart';
	formref.business.value = 'paypalstore@bcwf.bc.ca';
}

function shortListingBuilder(description,memberPrice,nonMemberPrice,type1name,type2memberPrice,type2nonMemberPrice,type2name,specialNotice) {

document.write ('<table cellpadding=0 border=0 width=100%><tr><td valign="top" class="productDescriptionShort">' + description + '</td>');

document.write ('<td valign=top align=right>');

if (specialNotice != "" ) {
	if (specialNotice == "TOS") {
		document.write ('<div class="outofstock">TEMPORARILY OUT OF STOCK<br>Please check back for availability</div><br>');
	} else if (specialNotice == "NEW") {
		document.write ('<img src="/store/new.gif" border="0"><br><br>');
	} else if (specialNotice == "LIMITED") {
		document.write ('<div class="limitedstock">LIMITED AVAILABILITY<br>Call 1-888-881-2293 to check stock and order</div>');
	} else if (specialNotice == "PSO") {
		document.write ('<div class="soldout">PRINT SOLD OUT</div>');
	} else if (specialNotice == "ASO") {
		document.write ('<div class="soldout">ART CARD SOLD OUT</div>');
	} else if (specialNotice == "PASO") {
		document.write ('<div class="soldout">PRINT & ART CARD SOLD OUT</div>');
	} else if (specialNotice == "CLEARANCE") {
		document.write ('<div class="limitedstock">BLOW OUT PRICE<br>Save 20% on this item</div>');
	} else {
	document.write ('<div class="specialNotice">' + specialNotice + '</div>');
	}
}

if (specialNotice == "CLEARANCE") {

	var discountAmount = .20;
	oldMemberPrice = memberPrice;
	memberPrice = memberPrice - (memberPrice * discountAmount);
	memberPrice = memberPrice.toFixed(2);
	oldNonMemberPrice = nonMemberPrice;
	nonMemberPrice = nonMemberPrice - (nonMemberPrice * discountAmount);
	nonMemberPrice = nonMemberPrice.toFixed(2);
	oldType2MemberPrice = type2memberPrice;
	type2memberPrice = type2memberPrice - (type2memberPrice * discountAmount);
	type2memberPrice = type2memberPrice.toFixed(2);
	oldType2NonMemberPrice = type2nonMemberPrice;
	type2nonMemberPrice = type2nonMemberPrice - (type2nonMemberPrice * discountAmount);
	type2nonMemberPrice = type2nonMemberPrice.toFixed(2);

    if (type1name != "") {
    	document.write ('<div class="productType">' + type1name + '</div>');
    	if (nonMemberPrice == "") {
    		document.write ('<div class="priceMembersOnly">Members Only: <span class="originalprice">$' + oldMemberPrice + '</span></div> <span class="newprice">$' + memberPrice + '</span>');
    		document.write ('<br><br><div class="productType">' + type2name + '</div>');
    		document.write ('<div class="priceMembersOnly">Members Only: <span class="originalprice">$' + oldType2MemberPrice + '</span></div> <span class="newprice">$' + type2memberPrice + '</span>');
    	} else {
    		document.write ('<div class="pricemember">Member Price: <span class="originalprice">$' + oldMemberPrice + '</span></div> <span class="newprice">$' + memberPrice + '</span>');
    		document.write ('<div class="pricenonmember">Non-Members: <span class="originalprice">$' + oldNonMemberPrice + '</span></div> <span class="newnonmemberprice">$' + nonMemberPrice + '</span>');
    		document.write ('<br><br><div class="productType">' + type2name + '</div>');
    		document.write ('<div class="pricemember">Member Price: <span class="originalprice">$' + oldType2MemberPrice + '</span></div> <span class="newprice">$' + type2memberPrice + '</span>');
    		document.write ('<div class="pricenonmember">Non-Members: <span class="originalprice">$' + oldType2NonMemberPrice + '</span></div> <span class="newnonmemberprice">$' + type2nonMemberPrice + '</span>');
    	}
    } else {
    	if (nonMemberPrice == "" && memberPrice == "") {
    		document.write ('');
    	} else if (nonMemberPrice == "") {
    		document.write ('<div class="priceMembersOnly">Members Only: <span class="originalprice">$' + oldMemberPrice + '</span></div> <span class="newprice">$' + memberPrice + '</span>');
    	} else {
    		document.write ('<div class="pricemember">Member Price: <span class="originalprice">$' + oldMemberPrice + '</span></div> <span class="newprice">$' + memberPrice + '</span>');
    		document.write ('<div class="pricenonmember">Non-Members: <span class="originalprice">$' + oldNonMemberPrice + '</span></div> <span class="newnonmemberprice">$' + nonMemberPrice + '</span>');
    	}
    }


} else {

    if (type1name != "") {
    	document.write ('<div class="productType">' + type1name + '</div>');
    	if (nonMemberPrice == "") {
    		document.write ('<div class="priceMembersOnly">Members Only: $' + memberPrice + '</div>');
    		document.write ('<br><br><div class="productType">' + type2name + '</div>');
    		document.write ('<div class="priceMembersOnly">Members Only: $' + type2memberPrice + '</div>');
    	} else {
    		document.write ('<div class="pricemember">Member Price: $' + memberPrice + '</div>');
    		document.write ('<div class="pricenonmember">Non-Members: $' + nonMemberPrice + '</div>');
    		document.write ('<br><br><div class="productType">' + type2name + '</div>');
    		document.write ('<div class="pricemember">Member Price: $' + type2memberPrice + '</div>');
    		document.write ('<div class="pricenonmember">Non-Members: $' + type2nonMemberPrice + '</div>');
    	}
    } else {
    	if (nonMemberPrice == "" && memberPrice == "") {
    		document.write ('');
    	} else if (nonMemberPrice == "") {
    		document.write ('<div class="priceMembersOnly">Members Only: $' + memberPrice + '</div>');
    	} else {
    		document.write ('<div class="pricemember">Member Price: $' + memberPrice + '</div>');
    		document.write ('<div class="pricenonmember">Non-Members: $' + nonMemberPrice + '</div>');
    	}
    }

}

document.write ('</td></tr></table>');

}



function fullDescriptionBuilder(description,extraPhoto) {

document.write ('<table cellpadding=0 border=0><tr><td class="productDescription">' + description);
if (extraPhoto != "" ) {
	document.write ('<br><br><img src="productextra.jpg" border="0">');
}
document.write ('</td></tr></table>');
// This next line finishes the entire description table
document.write ('</td></tr></table>');

}



function buttonBuilder(product,memberPrice,nonMemberPrice,option1name,option1list,option2name,option2list,productOptionName,specialNotice) {


// Sets the PayPal handling fee
var handlingFee = 5;


// Overall Structure for Add to Cart Buttons

document.write ('<table width=100% cellpadding=0 border=0>');
document.write ('<tr><td valign=top>');


if (specialNotice == "CLEARANCE") {

	var discountAmount = .20;
	if (memberPrice != "") {
		oldMemberPrice = memberPrice;
		memberPrice = memberPrice - (memberPrice * discountAmount);
		memberPrice = memberPrice.toFixed(2);
	}
	if (nonMemberPrice != "") {
		oldNonMemberPrice = nonMemberPrice;
		nonMemberPrice = nonMemberPrice - (nonMemberPrice * discountAmount);
		nonMemberPrice = nonMemberPrice.toFixed(2);
	}

}



// BEGIN SECTION FOR MEMBER BUTTON 

if (memberPrice == "") {
	document.write ('');
} else {

if (nonMemberPrice != "") {
	document.write ('<div class="buttonmember">Members Buy Here:</div>');
} else {
	document.write ('<div class="buttonMembersOnly">Members Only - Buy Here:</div>');
}


if (productOptionName != "") {
	if (specialNotice == "CLEARANCE") {
		document.write ('<div class="productOptionName">' + productOptionName + '<br><span class="originalprice">$' + oldMemberPrice + '</span> <span class="newprice">$' + memberPrice + '</span></div>');
	} else {
		document.write ('<div class="productOptionName">' + productOptionName + '<br>$' + memberPrice + '</div>');
	}
} else {
	if (specialNotice == "CLEARANCE") {
		document.write ('<div class="productOptionName"><span class="originalprice">$' + oldMemberPrice + '</span> <span class="newprice">$' + memberPrice + '</span></div>');
	} else {
		document.write ('<div class="productOptionName">$' + memberPrice + '</div>');
	}
}
document.write ('<form style=\'padding: 0; border: 0; margin: 0;\' target="paypal"  method=\'post\' onSubmit="submithidden (this)"> ');
document.write ('<input type="hidden" name="cmd" value="">');
document.write ('<input type="hidden" name="business" value="">');
document.write ('<input type="hidden" name="handling_cart" value="' + handlingFee + '.00">');
if (productOptionName != "") {
	document.write ('<input type=\'hidden\' name=\'item_name\' value=\'MEMBER - ' + product + ' - ' + productOptionName + '\'>');
} else {
	document.write ('<input type=\'hidden\' name=\'item_name\' value=\'MEMBER - ' + product + '\'>');
}
document.write ('<input type=\'hidden\' name=\'amount\' value=\'' + memberPrice + '\'>');
document.write ('<input type=\'hidden\' name=\'return\' value=\'http://www.bcwf.bc.ca/store/thanks.html\'>');
document.write ('<input type=\'hidden\' name=\'cancel_return\' value=\'http://www.bcwf.bc.ca/store/cancel.html\'>');
document.write ('<input type=\'hidden\' name=\'cn\' value=\'Enter BCWF Member No.\'>');
document.write ('<input type=\'hidden\' name=\'currency_code\' value=\'CAD\'>');
if (specialNotice == parseInt(specialNotice)) {
		if (specialNotice <= handlingFee) {
			document.write ('<input type="hidden" name="shipping" value="0.00">');
		} else {
			document.write ('<input type="hidden" name="shipping" value="' + specialNotice + '.00">');
		}
	document.write ('<input type="hidden" name="shipping2" value="' + specialNotice + '.00">');
}
if (option1name != "") {
	document.write ('<table cellpadding=0><tr><td>');
	document.write ('<input type=\'hidden\' name=\'on0\' value=\'' + option1name + '\'>' + option1name);
	document.write ('</td><td>');
	document.write ('<select name=\'os0\'>');
	var option1Array = option1list.split('/');
	for ( var i=option1Array.length-1; i>=0; --i ){
		document.write ('<option value=\'' + option1Array[i] + '\'>' + option1Array[i]);
	}
	document.write ('</select>');
	document.write ('</td></tr></table>');
}
if (option2name != "") {
	document.write ('<table cellpadding=0><tr><td>');
	document.write ('<input type=\'hidden\' name=\'on1\' value=\'' + option2name + '\'>' + option2name);
	document.write ('</td><td>');
	document.write ('<select name=\'os1\'>');
	var option2Array = option2list.split('/');
	for ( var i=option2Array.length-1; i>=0; --i ){
		document.write ('<option value=\'' + option2Array[i] + '\'>' + option2Array[i]);
	}
	document.write ('</select>');
	document.write ('</td></tr></table>');
}
document.write ('<input type=\'image\' src=\'https://www.paypal.com/en_US/i/btn/x-click-but22.gif\' border=\'0\' vspace=\'3\' hspace=\'3\' name=\'submit\' alt=\'Make payments with PayPal - it\'s fast, free and secure!\'>');
document.write ('<input type=\'hidden\' name=\'add\' value=\'1\'>');

document.write ('</form>');

}


// Structure of Add to Cart Section Continued

document.write ('</td>');


if (nonMemberPrice != "") {

document.write ('<td valign=top align=right>');


// BEGIN SECTION FOR NON-MEMBER BUTTON 

document.write ('<div class="buttonnonmember">Non-Members Buy Here:</div>');

if (productOptionName != "") {
	if (specialNotice == "CLEARANCE") {
		document.write ('<div class="productOptionName">' + productOptionName + '<br><span class="originalprice">$' + oldNonMemberPrice + '</span> <span class="newprice">$' + nonMemberPrice + '</span></div>');
	} else {
		document.write ('<div class="productOptionName">' + productOptionName + '<br>$' + nonMemberPrice + '</div>');
	}
} else {
	if (specialNotice == "CLEARANCE") {
		document.write ('<div class="productOptionName"><span class="originalprice">$' + oldNonMemberPrice + '</span> <span class="newprice">$' + nonMemberPrice + '</span></div>');
	} else {
		document.write ('<div class="productOptionName">$' + nonMemberPrice + '</div>');
	}
}
document.write ('<form style=\'padding: 0; border: 0; margin: 0;\' method=\'post\' onSubmit="submithidden (this)"> ');
document.write ('<input type="hidden" name="cmd" value="">');
document.write ('<input type="hidden" name="business" value="">');
document.write ('<input type="hidden" name="handling_cart" value="' + handlingFee + '.00">');
if (productOptionName != "") {
	document.write ('<input type=\'hidden\' name=\'item_name\' value=\'' + product + ' - ' + productOptionName + '\'>');
} else {
	document.write ('<input type=\'hidden\' name=\'item_name\' value=\'' + product + '\'>');
}
document.write ('<input type=\'hidden\' name=\'amount\' value=\'' + nonMemberPrice + '\'>');
document.write ('<input type=\'hidden\' name=\'return\' value=\'http://www.bcwf.bc.ca/store/thanks.html\'>');
document.write ('<input type=\'hidden\' name=\'cancel_return\' value=\'http://www.bcwf.bc.ca/store/cancel.html\'>');
document.write ('<input type=\'hidden\' name=\'currency_code\' value=\'CAD\'>');
if (specialNotice == parseInt(specialNotice)) {
		if (specialNotice <= handlingFee) {
			document.write ('<input type="hidden" name="shipping" value="0.00">');
		} else {
			document.write ('<input type="hidden" name="shipping" value="' + specialNotice + '.00">');
		}
	document.write ('<input type="hidden" name="shipping2" value="' + specialNotice + '.00">');
}
if (option1name != "") {
	document.write ('<table cellpadding=0><tr><td>');
	document.write ('<input type=\'hidden\' name=\'on0\' value=\'' + option1name + '\'>' + option1name);
	document.write ('</td><td>');
	document.write ('<select name=\'os0\'>');
	var option1Array = option1list.split('/');
	for ( var i=option1Array.length-1; i>=0; --i ){
		document.write ('<option value=\'' + option1Array[i] + '\'>' + option1Array[i]);
	}
	document.write ('</select>');
	document.write ('</td></tr></table>');
}
if (option2name != "") {
	document.write ('<table cellpadding=0><tr><td>');
	document.write ('<input type=\'hidden\' name=\'on1\' value=\'' + option2name + '\'>' + option2name);
	document.write ('</td><td>');
	document.write ('<select name=\'os1\'>');
	var option2Array = option2list.split('/');
	for ( var i=option2Array.length-1; i>=0; --i ){
		document.write ('<option value=\'' + option2Array[i] + '\'>' + option2Array[i]);
	}
	document.write ('</select>');
	document.write ('</td></tr></table>');
}
document.write ('<input type=\'image\' src=\'https://www.paypal.com/en_US/i/btn/x-click-but22.gif\' border=\'0\' vspace=\'3\' hspace=\'3\' name=\'submit\' alt=\'Make payments with PayPal - it\'s fast, free and secure!\'>');
document.write ('<input type=\'hidden\' name=\'add\' value=\'1\'>');
document.write ('</form>');



// Conclude Structure of Add to Cart Section - if there's a non-member section, we close it's table cell

document.write ('</td>');

}

// And then close the entire table itself

document.write ('</tr></table>');



}

-->