// ---------------------------------------------
//     This file is for initialization only!
// - - - - - - - - - - - - - - - - - - - - - - -
//         DO NOT CHANGE ANYTHING!!
// ---------------------------------------------
// reading a variable in the parsed string
function getParm(string,parm) {
	string = string.replace(/%26/g,"&")
	var startPos= string.indexOf(parm+"=")
	if (startPos> -1) {
		startPos= startPos+parm.length+1
		var endPos= string.indexOf("&",startPos)
		if (endPos== -1) endPos= string.length
		//alert(string+ ": string.substring("+startPos+","+endPos+") = "+string.substring(startPos,endPos))
		return unescape(string.substring(startPos,endPos))
	}
	return ''
}
// cookie functions
function Get_Cookie(name) {
	var start = document.cookie.indexOf(name+"=");
	var len = start+name.length+1;
	if ((!start) && (name != document.cookie.substring(0,name.length))) return "";
	if (start == -1) return "";
	var end = document.cookie.indexOf(";",len);
	if (end == -1) end = document.cookie.length;
	return unescape(document.cookie.substring(len,end));
}
function Set_Cookie(name, value, expires, path, domain, secure) {
	document.cookie = name + "=" +escape(value) +
			( (expires) ? ";expires=" + expires.toGMTString() : "") +
			( (path) ? ";path=" + path : "") + 
			( (domain) ? ";domain=" + domain : "") +
			( (secure) ? ";secure" : "");
}
function Delete_Cookie(name, path, domain) {
	if (Get_Cookie(name))
		document.cookie = name + "=" +
		( (path) ? ";path=" + path : "") +
		( (domain) ? ";domain=" + domain : "") +
		";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}

// check if special code is stored locally
prefCode = Get_Cookie("code")

// get the file extension (needed for iView)
myAddr = location.href
s1 = myAddr.lastIndexOf(".")
s2 = myAddr.indexOf("?")
if(s2 < 0|| s2 < s1) s2 = myAddr.length
myExtension = myAddr.substring(s1, s2)



// initialize all variables from settings.js
// (variable list in alphabetical order)
//
// DO NOT EDIT VALUES IN THIS FILE!!
// -> they will get overwritten from settings.js
var CheckboxInfo1		= ""
var CheckboxInfo2		= ""
var CheckboxInfo3		= ""
var StartIndexPage		= ""
var acceptCC			= ""
var addr_format			= "csz"
var allow_largeImages		= 0
var allow_sendImageLink		= 0
var checkoutOption		= new Array()
var checkoutTextfile		= ""
var clickFullsize		= 0
var commentBoxCols		= 35
var commentBoxRows		= 5
var copyrightMsg		= ""
var currency			= new String("$")
var customer_addr1		= 0
var customer_addr2		= 0
var customer_city		= 0
var customer_country		= 0
var customer_email		= 2
var customer_email2		= 0
var customer_fax		= 0
var customer_phone		= 0
var customer_phone2		= 0
var customer_state		= 0
var customer_text1		= 0
var customer_user1		= 0
var customer_user2		= 0
var customer_user3		= 0
var customer_zip		= 0
var decimal			= new String(".")
var defaultDelay		= 3
var demo_2checkout		= 1
var descriptionPlace		= 1
var discountByCopies		= new Array()
var discountByTotal		= new Array()
var email_address		= ""
var email_subject		= ""
var eosmail_script		= ""
var errorPage 			= "about:blank"
var filePrefix			= ""
var galleryIndex		= ""
var gif_next			= "rarr.gif"
var gif_prev			= "larr.gif"
var hide_ItemOrderTable		= 0
var ignore_specialItems 	= 0
var imageComments		= 0
var imagePath			= ""
var includeImageLinks		= 0
var introTextfile		= ""
var introTextfile_section	= 0
var item			= new Array()
var language			= "en"
var licenseKey			= ""
var logoLink			= ""
var mals_domain			= ""
var mals_id			= ""
var mouseOverColor		= "#dddddd"
var myCity			= ""
var myCountry			= ""
var myEmail			= ""
var myFax			= ""
var myLogo			= ""
var myName			= ""
var myPhone1			= ""
var myPhone2			= ""
var myState			= ""
var myStreet			= ""
var myStyleFile			= "style.css"
var myWWW			= ""
var myZip			= ""
var navigationBar_width 	= 620
var noFileExtension		= 0
var noImageRightClick		= 0
var noOrderFunction		= 0
var noTopTitle			= 0
var noWindowRightClick		= 0
var numColumns			= 4
var numRows			= 3
var numberSections		= 0
var pagesSelect			= 0
var paymateUser			= "demonstration"
var paypalAccount		= ""
var pmCurrency			= "USD"
var ppCurrency			= "USD"
var proof_ls 			= ""
var proof_pt 			= ""
var pwFile			= ""
var repeatNavigation		= 0
var repeatSectionList		= 0
var rev_specialItems		= 0
var saveSpace			= 0
var sectionsSelect		= 1
var selfPickup			= 0
var shadow			= 0
var shipOption			= new Array()
var shippingFixAmount		= 0
var shippingPerItem		= 0
var shippingPercentage		= 0
var showCalcDetails		= 0
var showCartButtons_2x		= 0
var showCount			= 0
var showSlideshow		= 1
var showUpdateAlert		= 0
var showUpdateCartButton	= 0
var show_CreditField		= 0
var show_DebtsField		= 0
var sid_2checkout		= "1"
var slideshowAllSections	= 1
var specialItem			= new Array()
var storename			= "1"
var suppressIndexThumbs		= 0
var suppressSectionThumbs	= 0
var tax2Always 			= 0
var tax2Country 		= ""
var tax2Percentage		= 0
var taxAlways 			= 0
var taxCountry 			= ""
var taxPercentage		= 0
var tax_inclShipping		= 0
var topLogo			= ""
var topStyleFile		= ""
var useDiscountByCopies		= 0
var useDiscountByTotal		= 0
var useSections			= 0
var use_proofOverlay		= 0
