
// {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:460px;height:100px;\">\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=83&sl=EN&aff_id=12&product_id=415\" target=\"_blank\"><img   src=\"http://www.painters-toys.com/images/product_images/homax-5103-3inch-wall-guard-sml12557252574ad8d8c96a4e2.jpg\" width=\"85\" height=\"136\" alt=\"3-1/4 inch Homax Wall Guard\" 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=83&sl=EN&aff_id=12&product_id=415\" target=_blank>Homax Wall Guard<\/a><\/td><\/tr><tr><td><p><p>The Homax Wall Guard is a peel-n-stick wall patch that protects walls from doorknob damage. Use to cover existing holes and absorb the impact of opening doors. Wall Guards can be painted or papered to match existing walls.&nbsp; Available in two sizes: 3-&frac14;&quot; or 5&quot;<\/p><\/p><\/td><\/tr><\/table>\r\n			<\/td>\r\n		<\/tr>\r\n		<\/table>";
	var banner_id = '83';
	var banner_data_type = 'P';
	var banner_url = 'http://www.painters-toys.com/index.php?target=banners&bid=83&sl=EN&aff_id=12&product_id=415';
	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);