document.write("<link type=\"text/css\" href=\"http://widgets.prismastar.com/static/css/pepper-grinder/jquery-ui-1.7.2.custom.css\" rel=\"Stylesheet\" />\n");
document.write("<link type=\"text/css\" href=\"http://widgets.prismastar.com/static/css/jqueryCSS.css\" rel=\"Stylesheet\" />\n");
document.write("\n");
document.write("\n");
document.write("<script language=\"javascript\" type=\"text/javascript\">\n");
document.write("<!--\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("\n");
document.write("var multi = true;\n");
document.write("function showComparison(sItem, sLink)\n");
document.write("{\n");
document.write("//PSTAR_HS_ID_RESULT_PRODUCT_3_VIEW_DETAILS\n");
document.write("//PSTAR_HS_ID_RESULT_PRODUCT_3_PRICE_DETAILS\n");
document.write("//\n");
document.write("var sI = 'PSTAR_HS_ID_RESULT_PRODUCT_' + sItem + '_VIEW_DETAILS';\n");
document.write("var li = document.getElementById(sI);\n");
document.write("sI = 'PSTAR_HS_ID_RESULT_PRODUCT_' + sItem + '_PRICE_DETAILS';\n");
document.write("var ti = document.getElementById(sI).style;\n");
document.write("if(multi){\n");
document.write("if(li.innerHTML == 'HIDE RETAILERS')\n");
document.write("{\n");
document.write("ti.display = 'none';\n");
document.write("li.innerHTML = 'VIEW RETAILERS';\n");
document.write("}else{\n");
document.write("ti.display = 'block';\n");
document.write("li.innerHTML = 'HIDE RETAILERS';\n");
document.write("}\n");
document.write("}\n");
document.write("else\n");
document.write("{\n");
document.write("window.open(sLink, 'PSTAR_WIN');\n");
document.write("}\n");
document.write("}\n");
document.write("function toggleSettings(sAttID)\n");
document.write("{\n");
document.write("var sI = 'PSTAR_HS_ID_ATTRIBUTE_VALUES_' + sAttID;\n");
document.write("var vi = document.getElementById(sI).style;\n");
document.write("sI = 'PSTAR_HS_ID_ATTRIBUTE_' + sAttID + '_ON_OFF';\n");
document.write("var ooi = document.getElementById(sI);\n");
document.write("if(vi.display=='block')\n");
document.write("{\n");
document.write("vi.display='none';\n");
document.write("ooi.className='PSTAR_OFF_IND';\n");
document.write("}else{\n");
document.write("vi.display='block';\n");
document.write("ooi.className='PSTAR_ON_IND';\n");
document.write("}\n");
document.write("}\n");
document.write("var PS_HS_AttributesArea = document.getElementById('PSTAR_HS_ID_MANAGE_ATTRIBUTES');\n");
document.write("\n");
document.write("function showManageAttributes(oOpenButton)\n");
document.write("{\n");
document.write("var PS_HS_AttributesArea = document.getElementById('PSTAR_HS_ID_MANAGE_ATTRIBUTES').style;\n");
document.write("PS_HS_AttributesArea.display='block';\n");
document.write("//       PS_HS_AttributesArea.style.marginTop=oOpenButton;\n");
document.write("\n");
document.write("}\n");
document.write("function applyAttributesAndHide()\n");
document.write("{\n");
document.write("var PS_HS_AttributesArea = document.getElementById('PSTAR_HS_ID_MANAGE_ATTRIBUTES').style;\n");
document.write("PS_HS_AttributesArea.display='none';\n");
document.write("\n");
document.write("}\n");
document.write("\n");
document.write("--> </script>\n");
document.write("\n");
document.write("\n");
document.write("<!--  templates -->\n");
document.write("<textarea id=\"cat_jst\" style=\"display: none\">\n");
document.write("</textarea>\n");
document.write("<!-- ATTRIBUTE ITEM TEMPLATE -->\n");
document.write("<textarea id=\"att_jst\" style=\"display: none\">\n");
document.write("\n");
document.write("{for attribute in attributes}\n");
document.write("<li class=\"PSTAR_HS_CLS_ATTRIBUTE\">\n");
document.write("<a class=\"PSTAR_HS_CLS_ATTRIBUTE_CONTENT\" id=\"PSTAR_HS_ID_ATTRIBUTE_${attribute.input_prefix}\" href=\"javascript:void(1);\" title=\"\" onclick=\"AnswerWheel.toggle_attribute(this,${attribute.attribute.id});javascript:toggleSettings('${attribute.input_prefix}');removechoices('${attribute.input_prefix}');\">${attribute.attribute.name}</a>\n");
document.write("<span class=\"PSTAR_OFF_IND\" id=\"PSTAR_HS_ID_ATTRIBUTE_${attribute.input_prefix}_ON_OFF\" onclick=\"AnswerWheel.toggle_attribute(this,${attribute.attribute.id});javascript:toggleSettings('${attribute.input_prefix}');removechoices('${attribute.input_prefix}');\"></span>\n");
document.write("<div class=\"PSTAR_HS_CLS_ATTRIBUTE_VALUES\"  id=\"PSTAR_HS_ID_ATTRIBUTE_VALUES_${attribute.input_prefix}\">\n");
document.write("{if attribute.attribute.type=='choice'}\n");
document.write("<ul>\n");
document.write("{for possible_value in attribute.attribute.possible_values}\n");
document.write("<li>\n");
document.write("<label for=\"PSTAR_HS_ID_ATTRIBUTE_VALUE_${attribute.input_prefix}_${possible_value.code}\" class=\"PSTAR_HS_CLS_ATTRIBUTE_VALUE_TEXT\">${possible_value.value}</label><input type=\"checkbox\" id=\"PSTAR_HS_ID_ATTRIBUTE_VALUE_${attribute.input_prefix}_${possible_value.code}\" name=\"${attribute.input_prefix}\" value=\"${possible_value.code}\" onclick=\"javascript:choiceclick(this,${attribute.attribute.id})\"/>\n");
document.write("</li>\n");
document.write("{/for}\n");
document.write("</ul>\n");
document.write("{/if}\n");
document.write("{if attribute.attribute.type=='int'}\n");
document.write("<div id=\"PSTAR_SLIDER_${attribute.input_prefix}\" class=\"PSTAR_SLIDER\" >\n");
document.write("</div>\n");
document.write("<div id=\"PSTAR_SLIDER_${attribute.input_prefix}_LABEL\" class=\"PSTAR_SLIDER_LABEL\">${attribute.attribute.range[0]} - ${attribute.attribute.range[1]} (${attribute.attribute.clean_unit})</div>\n");
document.write("{/if}\n");
document.write("</div>\n");
document.write("</li>\n");
document.write("{/for}\n");
document.write("</textarea>\n");
document.write("\n");
document.write("<!--  ATTRIBUTE FULL LIST TEMPLATE -->\n");
document.write("<textarea id=\"att_full_jst\" style=\"display:none\">\n");
document.write("{for attribute in attributes}\n");
document.write("<span class=\"PSTAR_HS_ID_MANAGE_ATTRIBUTES_LIST_ITEM\">\n");
document.write("<input type=\"checkbox\" id=\"PSTAR_HS_ID_MANAGE_ATTRIBUTES_${attribute.input_prefix}\" onclick=\"javascript:AnswerWheel.activate_attribute(${attribute.attribute.id}, ${!attribute.attribute.selected});\"\n");
document.write("{if attribute.attribute.selected}checked{/if}\n");
document.write("/>${attribute.attribute.name}\n");
document.write("</span>\n");
document.write("{/for}\n");
document.write("</textarea>\n");
document.write("<!-- PAGE ITEM TEMPLATE -->\n");
document.write("<textarea id=\"prod_pg_jst\" style=\"display: none\">\n");
document.write("<span id=\"PSTAR_HS_ID_PAGER_STATUS\" class=\"PSTAR_HS_PAGER_STATUS\">\n");
document.write("Page ${active_page} of ${total_pages}\n");
document.write("</span>\n");
document.write("<!--  PREVIOUS LINK -->\n");
document.write("<span id=\"PSTAR_HS_ID_PAGER_AREA${id}_NAVIGATION_PREVIOUS\" class=\"PRSTAR_HS_PAGER_NAVIGATION\">\n");
document.write("{if active_page>1}\n");
document.write("<a href=\"javascript:void(0);\" onclick=\"javascript:AnswerWheel.set_active_page(${active_page-1});\">\n");
document.write("&lt;&lt; Previous\n");
document.write("</a>\n");
document.write("{/if}\n");
document.write("</span>\n");
document.write("<span class=\"PRSTAR_HS_ID_PAGER_WRAPPER\">\n");
document.write("<!-- FIRST ELLIPSIS -->\n");
document.write("<span id=\"PSTAR_HS_ID_PAGER_AREA${id}_ELLIPSIS\" class=\"PRSTAR_HS_PAGER_ELLIPSIS\">\n");
document.write("{if from_page>1}\n");
document.write("...\n");
document.write("{/if}\n");
document.write("</span>\n");
document.write("<!-- PAGES SECTION -->\n");
document.write("\n");
document.write("{for page in pages}\n");
document.write("<span id=\"PSTAR_HS_ID_PAGER_AREA${id}_PAGES_${page}\" class=\"PRSTAR_HS_PAGER_PAGES\">\n");
document.write("{if page==active_page}{else}<a href=\"javascript:void(0);\" onclick=\"javascript:AnswerWheel.set_active_page(${page});\">{/if}\n");
document.write("${page}\n");
document.write("{if page==active_page}{else}</a>{/if}\n");
document.write("</span>\n");
document.write("{/for}\n");
document.write("\n");
document.write("<!-- SECOND ELLIPSIS  -->\n");
document.write("<span id=\"PSTAR_HS_ID_PAGER_AREA${id}_ELLIPSIS\" class=\"PRSTAR_HS_PAGER_ELLIPSIS\">\n");
document.write("{if to_page<total_pages}\n");
document.write("...\n");
document.write("{/if}\n");
document.write("</span>\n");
document.write("</span><!-- PSTAR_HS_ID_PAGER_WRAPPER -->\n");
document.write("<!-- NEXT LINK -->\n");
document.write("<span id=\"PSTAR_HS_ID_PAGER_AREA${id}_NAVIGATION_NEXT\" class=\"PRSTAR_HS_PAGER_NAVIGATION\">\n");
document.write("{if active_page<total_pages}\n");
document.write("<a href=\"javascript:void(0);\" onclick=\"javascript:AnswerWheel.set_active_page(${active_page+1});\">\n");
document.write("Next &gt;&gt;\n");
document.write("</a>\n");
document.write("{/if}\n");
document.write("</span>\n");
document.write("\n");
document.write("<span id=\"PSTAR_HS_ID_PAGER_AREA${id}_TOTAL\" class=\"PRSTAR_HS_PAGER_TOTAL\">\n");
document.write("Total products found: ${total_items}\n");
document.write("</span>\n");
document.write("</textarea>\n");
document.write("\n");
document.write("<!-- PRODUCT ITEM TEMPLATE -->\n");
document.write("<textarea id=\"prod_jst\" style=\"display: none\">\n");
document.write("<div id=\"PSTAR_HS_ID_RESULTS_PRODUCT_${product.id}\" class=\"PSTAR_HS_CLS_RESULT\">\n");
document.write("<span class=\"PSTAR_HS_CLS_RESULT_MATCH\">${Math.round(product.match_ratio)}% match</span>\n");
document.write("<a href=\"http://widgets.prismastar.com${product.current_variant.buy_link}\" target=\"_blank\" id=\"PSTAR_HS_ID_PRODUCT_${product.id}_IMAGE_LINK\" class=\"PSTAR_HS_CLS_RESULT_IMAGE_LINK\"><img src=\"${product.current_variant.image_link}\" title=\"${product.brand} ${product.current_variant.name}\" onerror=\"javascript:this.src='http://widgets.prismastar.com/static/images/noimg.jpg'\" /></a>\n");
document.write("<h3>${product.brand} ${product.current_variant.name}</h3>\n");
document.write("<div id=\"PSTAR_HS_ID_RESULT_PRODUCT_${product.id}_BEST_PRICE\" class=\"PSTAR_HS_CLS_RESULT_BEST_PRICE\">FROM &pound;${product.current_variant.price}</div>\n");
document.write("<div id=\"PSTAR_HS_ID_RESULT_PRODUCT_${product.id}_STOCK_STATUS\" class=\"PSTAR_HS_CLS_STOCK_STATUS INSTOCK\">IN STOCK</div>\n");
document.write("\n");
document.write("<a href=\"javascript:void(1);\" onclick=\"javascript:showComparison('${product.id}','http://www.google.com/');aw.reload_variant_order('${product.id}');\" id=\"PSTAR_HS_ID_RESULT_PRODUCT_${product.id}_VIEW_DETAILS\" class=\"PSTAR_HS_CLS_RESULT_VIEW_DETAILS\" title=\"view product details\">VIEW RETAILERS</a>\n");
document.write("\n");
document.write("<p id=\"PSTAR_HS_ID_RESULT_PRODUCT_${product.id}_TEXT\" class=\"PSTAR_HS_CLS_RESULT_TEXT\"></p>\n");
document.write("<div class=\"PSTAR_HS_CLS_RESULT_TECH_SPEC\">\n");
document.write("<h4>Technical Specifications</h4>\n");
document.write("<ul id=\"PSTAR_HS_ID_RESULTS_PRODUCT_${product.id}_TECH_SPECS\" class=\"\">\n");
document.write("{for display_value in product.display_values }\n");
document.write("<li>${display_value.attribute.name}: ${display_value.value}</li>\n");
document.write("{/for}\n");
document.write("</ul>\n");
document.write("</div>\n");
document.write("\n");
document.write("<div id=\"PSTAR_HS_ID_RESULT_PRODUCT_${product.id}_PRICE_DETAILS\" class=\"PSTAR_HS_CLS_RESULT_PRICE_DETAILS\">\n");
document.write("</div>\n");
document.write("\n");
document.write("<div class=\"PSTAR_HS_CLS_CLEAR_BOTH\">.</div>\n");
document.write("</div>\n");
document.write("</textarea>\n");
document.write("<!-- ================OFFER TEMPLATE====================================== -->\n");
document.write("<textarea id=\"offer_jst\" style=\"display: none\">\n");
document.write("<h4>Retailer Prices</h4>\n");
document.write("<table id=\"PSTAR_HS_ID_RESULT_PRODUCT_${product_offers.product_id}_PRICE_COMPARE\" class=\"PSTAR_HS_CLS_RESULT_PRICE_COMPARE\">\n");
document.write("<tr>\n");
document.write("<th>Retailer</th>\n");
document.write("<!-- <th>Availability</th> -->\n");
document.write("<th>Price</th>\n");
document.write("<th>Buy</th>\n");
document.write("</tr>\n");
document.write("{for offer in product_offers.offers }\n");
document.write("<tr>\n");
document.write("<td class=\"PSTAR_HS_CLS_RESULT_PRICE_COMPARE_RETAILER\">${offer.merchant}</td>\n");
document.write("<!--<td>${offer.availability}Check site</td> -->\n");
document.write("<td>&pound;${offer.price}</td>\n");
document.write("<td><a href=\"http://widgets.prismastar.com${offer.buy_link}\" target=\"_blank\" title=\"buy from ${offer.merchant}\" class=\"PSTAR_HS_CLS_RESULT_PRICE_COMPARE_BUY\" id=\"PSTAR_HS_ID_RESULTS_PRODUCT_1_BUY_14422\">BUY NOW</a></td><!-- assuming amazon has ID of 14422 -->\n");
document.write("</tr>\n");
document.write("{/for}\n");
document.write("</table>\n");
document.write("</textarea>\n");
document.write("<!-- =========END TEMPLATES ZONE========= -->\n");
document.write("\n");
document.write("<h1>PrismaStar Widgets | HTML Product Selector</h1>\n");
document.write("\n");
document.write("\n");
document.write("<div id=\"PSTAR_HS_ID_WIDGET_WRAPPER\">\n");
document.write("<!-- AddThis Button BEGIN -->\n");
document.write("<div id=\"PSTAR_HS_ID_ADDTHIS\">\n");
document.write("<a id=\"PSTAR_HS_ID_ADDTHIS_BUTTON\" class=\"addthis_button\" href=\"http://www.addthis.com/bookmark.php?v=250&amp;username=xa-4bb4c34663096a32\"><img src=\"http://s7.addthis.com/static/btn/v2/lg-share-en.gif\" width=\"125\" height=\"16\" alt=\"Bookmark and Share\" style=\"border:0\"/></a>\n");
document.write("</div>\n");
document.write("\n");
document.write("<script type=\"text/javascript\" src=\"http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4bb4c34663096a32\"></script>\n");
document.write("<!-- AddThis Button END -->\n");
document.write("<div class=\"PSTAR_HS_CLS_CONTAINER\">\n");
document.write("<div id=\"PSTAR_HS_ID_SETTINGS_AREA\">\n");
document.write("<h2>Search parameters</h2>\n");
document.write("<ul id=\"PSTAR_HS_ID_ATTRIBUTES\">\n");
document.write("</ul>\n");
document.write("<input type=\"button\" id=\"PSTAR_HS_ID_ADD_ATTRIBUTES\" value=\"Add Features\" onclick=\"javascript:showManageAttributes(this);\" />\n");
document.write("\n");
document.write("<div class=\"PSTAR_HS_CLS_CLEAR_BOTH\">.</div>\n");
document.write("</div>\n");
document.write("\n");
document.write("\n");
document.write("</div>\n");
document.write("<div class=\"PSTAR_HS_CLS_CONTAINER\">\n");
document.write("\n");
document.write("<div id=\"PSTAR_HS_ID_PAGER_AREA1\"></div>\n");
document.write("\n");
document.write("<div class=\"PSTAR_HS_CLS_CONTAINER\">\n");
document.write("<div id=\"PSTAR_HS_ID_RESULTS_AREA\">\n");
document.write("<h2>Results</h2>\n");
document.write("<div id=\"sortbar\" class=\"resultoptions\"></div>\n");
document.write("<div id=\"PSTAR_HS_RESULTS\">\n");
document.write("</div>\n");
document.write("</div>\n");
document.write("</div>\n");
document.write("\n");
document.write("<div class=\"PSTAR_HS_CLS_CLEAR_BOTH\">.</div>\n");
document.write("<div id=\"PSTAR_HS_ID_PAGER_AREA2\"></div>\n");
document.write("<span id=\"PRSTAR_HS_ID_BOTTOM_LOGO\"></span>\n");
document.write("<div class=\"PSTAR_HS_CLS_CLEAR_BOTH\">.</div>\n");
document.write("\n");
document.write("<div id=\"PSTAR_HS_ID_MANAGE_ATTRIBUTES\">\n");
document.write("<h3 id=\"PSTAR_HS_ID_MANAGE_ATTRIBUTES_TITLE\">Attributes</h3>\n");
document.write("<div id=\"PSTAR_HS_ID_MANAGE_ATTRIBUTES_LIST\">\n");
document.write("</div>\n");
document.write("<input type=\"button\" id=\"PSTAR_HS_ID_MANAGE_ATTRIBUTES_SAVE\" value=\"Close\" onclick=\"javascript:applyAttributesAndHide();\" />\n");
document.write("</div>\n");
document.write("<div id=\"PSTAR_HS_PRELOADER\">\n");
document.write("\n");
document.write("<div id=\"PSTAR_HS_PRELOADER_IMAGE\" ></div>\n");
document.write("</div>\n");
document.write("\n");
document.write("\n");
document.write("</div>\n");
document.write("\n");
document.write("<!-- Added div to the end  -->\n");
document.write("</div>\n");
document.write("\n");
document.write("<script src=\"http://widgets.prismastar.com/static/js/prototype.js\" type=\"text/javascript\"></script>\n");
document.write("<script src=\"http://widgets.prismastar.com/static/js/scriptaculous.js\" type=\"text/javascript\"></script>\n");
document.write("<script src=\"http://widgets.prismastar.com/static/js/slider.js\" type=\"text/javascript\"></script>\n");
document.write("\n");
document.write("<script src=\"http://widgets.prismastar.com/static/js/jquery-1.3.2.min.js\" type=\"text/javascript\"></script>\n");
document.write("<script src=\"http://widgets.prismastar.com/static/js/jquery-ui-1.7.2.custom.min.js\"\n");
document.write("type=\"text/javascript\"></script>\n");
document.write("<script src=\"http://widgets.prismastar.com/static/js/lib.js\" type=\"text/javascript\"></script>\n");
document.write("<script src=\"http://widgets.prismastar.com/static/js/trimpath-template.js\" type=\"text/javascript\"></script>\n");
document.write("\n");
document.write("<script src=\"http://widgets.prismastar.com/static/js/mall.js\" type=\"text/javascript\"></script>\n");
document.write("\n");
document.write("\n");
document.write("<script type=\"text/javascript\">\n");
document.write("\n");
document.write("function addLoadEvent(func) {\n");
document.write("var oldonload = window.onload;\n");
document.write("if (typeof window.onload != 'function') {\n");
document.write("window.onload = func;\n");
document.write("} else {\n");
document.write("window.onload = function() {\n");
document.write("if (oldonload) {\n");
document.write("oldonload();\n");
document.write("}\n");
document.write("func();\n");
document.write("}\n");
document.write("}\n");
document.write("}\n");
document.write("var aw ;\n");
document.write("function initaw(){\n");
document.write("aw = AnswerWheel;\n");
document.write("//var category_list = new MallCategoryListWidget('category_list');\n");
document.write("//category_list.limit_codes = [ 'CAM', ];\n");
document.write("var attribute_list = new MallAttributeListWidget('PSTAR_HS_ID_ATTRIBUTES');\n");
document.write("var attribute_list_full= new MallFullAttributeListWidget('PSTAR_HS_ID_MANAGE_ATTRIBUTES_LIST');\n");
document.write("\n");
document.write("/*\n");
document.write("* attribute_list.limit_codes = [ #'COLOR', 'ATT_PRICE', 'NOISINESS',\n");
document.write("* 'HEIGHT_CM', 'WIDTH_CM', 'DEPTH_CM', 'ATT_BRAND', 'FRIDGE_VOLUME',\n");
document.write("* 'HEIGHT_MM', 'WIDTH_MM', 'DEPTH_MM', 'GSM_ZONES', 'MEMORY_MB',\n");
document.write("* 'STAND_BY_TIME_MIN', 'COLOR_OF_THE_BACKLIGHT', 'PERFORMANCE_OF_AMPIFIER',\n");
document.write("* 'BLUETOOTH', 'SHUTTER_TIMES_MAX', 'OPTICAL_ZOOM' ];\n");
document.write("*/\n");
document.write("var items_per_page=10;\n");
document.write("\n");
document.write("var pager_list_top = new MallProductPagerWidget('PSTAR_HS_ID_PAGER_AREA1', items_per_page,'1');\n");
document.write("var pager_list_bottom = new MallProductPagerWidget('PSTAR_HS_ID_PAGER_AREA2', items_per_page,'2');\n");
document.write("\n");
document.write("var product_list = new MallProductListWidget('PSTAR_HS_RESULTS', items_per_page);\n");
document.write("\n");
document.write("var preloader =  new MallPreloaderWidget('PSTAR_HS_PRELOADER');\n");
document.write("//aw.register_widget(category_list);\n");
document.write("aw.register_widget(attribute_list);\n");
document.write("aw.register_widget(attribute_list_full);\n");
document.write("\n");
document.write("aw.register_widget(pager_list_top);\n");
document.write("aw.register_widget(pager_list_bottom);\n");
document.write("\n");
document.write("aw.register_widget(product_list);\n");
document.write("aw.preloader=preloader;\n");
document.write("// aw.init('http://localhost:8000/');\n");
document.write("\n");
document.write("\n");
document.write("aw.init('http://widgets.prismastar.com/','AFFWINAFF','80338', '288357916b79379fd77fcdc73a8793c8','');\n");
document.write("aw.activate_category('CAM');\n");
document.write("}\n");
document.write("\n");
document.write("addLoadEvent(initaw);\n");
document.write("\n");
document.write("\n");
document.write("</script>\n");
document.write("\n");