properties = { "isShare":"True", "isToc":"False", "isCopy":"False", "isThumbnail":"True", "isDownload":"True" } properties.isShare = (properties.isShare == "True"); properties.isToc = (properties.isToc == "True"); properties.isCopy = (properties.isCopy == "True"); properties.isThumbnail = (properties.isThumbnail == "True"); properties.isDownload = (properties.isDownload == "True"); properties.isECommerce = true; LANG = 'ru'; LOCALS_FOLDER = 'locals'; ASSETS_FOLDER = '../'; DOWNLOD_FOLDER = ''; PAGES_CONTENT_FOLDER='../common/pages-content'; TITLE = "Тест 3"; COVER_SRC = "../flash/pages/page0001_s.jpg"; SPREAD_SRC = "../flash/spread.html"; FULL_SRC = "../../../index.html"; LINK = "_blank"; RTL = ("False" == "True"); CID = []; PublicationTypeName = 'digital catalog'; PublicationTypeUrl = ''; shopProperties = { id: '', name: '', usePublicationCart: ('false' == "true"), currency: { code: 'USD', name: 'US Dollar', symbol: '$', thousandsDelimiter: ' ', decimalSeparator: ',', placeSymbolBeforePrice: '', accuracy: '2' }, providers: { 'mail':{ 'mailTo': '' , 'subject': '' } } }; cartProperties = { publicationID :'33b44b842c19f15d631e9ece1d506cdf', scale:'0.37125', hasPriceTag :'True', onClickAction:'Window', circleColor:'#259C2B', circleRadius: 16, circleOrientation:'bottomright', basketColor: "#fff", basketEmptyImg:"./style/cart.png", basketEmptyFull:"./style/cart_down.png", priceTagColorAlpha:'0.8', priceTagColor:'255, 255, 255', priceTagFontColor:'#337F37' }; if(properties.isECommerce){ var head = document.getElementsByTagName("head")[0]; script = document.createElement('script'); script.type = 'text/javascript'; script.src = ASSETS_FOLDER + "common/ecommerce/cart.js"; head.appendChild(script); var script = document.createElement('script'); script.type = 'text/javascript'; script.src = ASSETS_FOLDER + "common/ecommerce/products.js"; head.appendChild(script); script = document.createElement('script'); script.type = 'text/javascript'; script.src = "./javascript/ecommerce.js"; head.appendChild(script); var link = document.createElement('link'); link.type = "text/css"; link.rel = "stylesheet"; link.href = "style/cart.css"; head.appendChild(link); }