
// {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:250px;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=80&sl=EN&aff_id=12&product_id=1761\" target=\"_blank\"><img   src=\"http://www.painters-toys.com/images/product_images/mccloskey-man-o-war-varnish-semi-gloss-sml.jpg\" width=\"85\" height=\"85\" alt=\"McCloskey Man O War Marine Spar Varnish - Semi-Gloss\" 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=80&sl=EN&aff_id=12&product_id=1761\" target=_blank>McCloskey Man O\' War Marine Spar Varnish 80-7507 - Semi-Gloss<\/a><\/td><\/tr><tr><td><p><p>The strongest name in clear protection is McCloskey Man O\'War Spar Marine Varnish. Use on interior and exterior wood surfaces to protect and beautify for years to come! Don\'t trust anything other than the best - Man O\'War!&nbsp; Semi-Gloss sheen.&nbsp; Available Sizes - 1/2 Pint, Quart and Gallon.<\/p><\/p><\/td><\/tr><\/table>\r\n			<\/td>\r\n		<\/tr>\r\n		<\/table>";
	var banner_id = '80';
	var banner_data_type = 'P';
	var banner_url = 'http://www.painters-toys.com/index.php?target=banners&bid=80&sl=EN&aff_id=12&product_id=1761';
	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);