properties = { "isShare":"True", "isToc":"False", "isCopy":"False", "isThumbnail":"True", "isDownload":"False" } 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 = "EComTestAntonY"; COVER_SRC = "../flash/pages/page0001_s.jpg"; SPREAD_SRC = "../flash/spread.html"; FULL_SRC = "../../../index.html"; LINK = "_blank"; RTL = ("False" == "True"); CID = []; PublicationTypeName = 'photo gallery'; PublicationTypeUrl = ''; shopProperties = { id: '21678da63c9e481118f41b713668f816', name: '', usePublicationCart: ('true' == "true"), currency: { code: 'USD', name: 'US Dollar', symbol: '$', thousandsDelimiter: ' ', decimalSeparator: ',', placeSymbolBeforePrice: '', accuracy: '2' }, providers: { 'mail':{ 'mailTo': 'chaoticdrink@mail.ru' , 'subject': 'Faberlic Purchase Test' } } }; cartProperties = { publicationID :'eb9fcd6a07295a397360247fc93f248c', scale:'0.85125', 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); }