
// {literal}
function fn_aff_banner_js_content(banner_id, banner_data_type, cs_banner, banner_url)
{
	if (typeof(cscart_banner_code) == "undefined") {
		var cscart_banner_code = new Array();
	}
	cscart_banner_code[banner_id] = html_content;
	if (typeof(div_tag) != "undefined") {
		div_tag.innerHTML += cscart_banner_code[banner_id];
	} else {
		document.write(cscart_banner_code[banner_id]);
	}
	if (banner_data_type == 'T') {
		if (typeof(cs_banner[banner_id]) == "undefined") {
			cs_banner[banner_id] = new Array();
		}
		eval("function cs_fn_tban_" + banner_id + "_click(evt) { if (banner_new_window == 'Y') { window.open(banner_url); } else { fn_redirect(banner_url); } return true; }");
		var cs_ban_table = document.getElementById("id_cs_" + banner_id + "_table");
		if (cs_ban_table) {
			if (typeof(cs_banner[banner_id].BoxWidth) != "undefined") {
				cs_ban_table.style.width = cs_banner[banner_id].BoxWidth;
			}
			if (typeof(cs_banner[banner_id].BoxHeight) != "undefined") {
				cs_ban_table.style.height = cs_banner[banner_id].BoxHeight;
			}
			if (typeof(cs_banner[banner_id].OutlineColor) != "undefined" && cs_banner[banner_id].OutlineColor != "") {
				cs_ban_table.style.border = cs_banner[banner_id].OutlineColor + " 1px solid";
			}
			if (typeof(cs_banner[banner_id].ShowURL) != "undefined" && cs_banner[banner_id].ShowURL == "Y") {
				var cs_ban_link = document.getElementById("id_cs_" + banner_id + "_link");
				if (cs_ban_link) {
					cs_ban_link.innerHTML = '<a href="' + banner_url + '">' + banner_url + '</a>';
				}
				cs_ban_table.onclick = "";
			} else {
				cs_ban_table.style.cursor = "pointer";
				cs_ban_table.onclick = eval("cs_fn_tban_" + banner_id + "_click");
			}
		}
		var cs_ban_title = document.getElementById("id_cs_" + banner_id + "_title");
		if (cs_ban_title) {
			if (typeof(cs_banner[banner_id].OutlineColor) != "undefined" && cs_banner[banner_id].OutlineColor != "") {
				cs_ban_title.style.backgroundColor = cs_banner[banner_id].OutlineColor;
			}
			if (typeof(cs_banner[banner_id].TitleTextColor) != "undefined" && cs_banner[banner_id].TitleTextColor != "") {
				cs_ban_title.style.color = cs_banner[banner_id].TitleTextColor;
			}
		}
		var cs_ban_body = document.getElementById("id_cs_" + banner_id + "_body");
		if (cs_ban_body) {
			if (typeof(cs_banner[banner_id].TextBackgroundColor) != "undefined" && cs_banner[banner_id].TextBackgroundColor != "") {
				cs_ban_body.style.backgroundColor = cs_banner[banner_id].TextBackgroundColor;
			}
			if (typeof(cs_banner[banner_id].TextColor) != "undefined" && cs_banner[banner_id].TextColor != "") {
				cs_ban_body.style.color = cs_banner[banner_id].TextColor;
			}
		}
	}
}
function fn_aff_banner_js_demo()
{
	var script_tag_id = 'id_script_cscart_banner';
	var script_tag = document.getElementById(script_tag_id);
	if (div_tag && script_tag) {
	    div_tag.removeChild(script_tag);
	}
	if (div_tag) {
	    div_tag.innerHTML = ''; 
	    script_tag = document.createElement('SCRIPT');
	    script_tag.type = 'text/javascript';
	    script_tag.language = 'javascript';
	    script_tag.id = script_tag_id;
	    script_tag.src = html_content;
	    div_tag.appendChild(script_tag);
	} else {
	    document.write('<script id="'+script_tag_id+'" type="text/javascript" language="javascript" src="'+html_content+'"></' + 'script>');
	}
}
// {/literal}
var html_content = "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:150px;height:150px;\">\r\n		<tr>\r\n			<td  align=\"center\" valign=\"top\">\r\n				<table cellpadding=\"1\" cellspacing=\"3\" border=\"0\" ><tr><td align=\"center\"><a href=\"http://www.painters-toys.com/index.php?target=banners&bid=79&sl=EN&aff_id=12&product_id=1804\" target=\"_blank\"><img   src=\"http://www.painters-toys.com/images/product_images/1804_1803_1802_watco-danish-oil-cherry-pint-sml.jpg\" width=\"85\" height=\"106\" alt=\"Watco Danish Oil - Cherry\" border=\"0\"  />\n\n<\/a><\/td><\/tr><tr><td align=\"center\" style=\"color: #000000; font-size: 12px; font-weight: bold;\"><a href=\"http://www.painters-toys.com/index.php?target=banners&bid=79&sl=EN&aff_id=12&product_id=1804\" target=_blank>Watco Danish Oil - Cherry<\/a><\/td><\/tr><tr><td><p><p>WATCO Danish Oil is a unique blend of penetrating oil &amp; varnish hardens in the wood, not on the wood. Watco Danish Oil penetrates deep into wood pores to protect from within and to enhance the natural look and feel of the wood. Color - Cherry.&nbsp; Available Sizes - Pint, Quart and Gallon.<\/p><br />\r\n<p><img hspace=\"5\" height=\"65\" border=\"0\" align=\"middle\" width=\"65\" vspace=\"5\" alt=\"Watco Danish Oil-Cherry\" src=\"http://www.painters-toys.com/images/common_images/Watco%20Danish%20Oil/watco-danish-oil-color-cherry.jpg\" />Color - Cherry<\/p><\/p><\/td><\/tr><\/table>\r\n			<\/td>\r\n		<\/tr>\r\n		<\/table>";
	var banner_id = '79';
	var banner_data_type = 'P';
	var banner_url = 'http://www.painters-toys.com/index.php?target=banners&bid=79&sl=EN&aff_id=12&product_id=1804';
	var banner_new_window = 'Y';
	
	if (typeof(cs_banner) == "undefined") var cs_banner = new Array();
	
	fn_aff_banner_js_content(banner_id, banner_data_type, cs_banner, banner_url);