
// {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:200px;\">\r\n		<tr>\r\n			<td style=\"border: #999999 1px solid;\" align=\"center\" valign=\"top\">\r\n				<table cellpadding=\"1\" cellspacing=\"3\" border=\"0\" ><tr><td align=\"center\"><a href=\"http://www.bookplanet.com.my/index.php?target=banners&bid=24&sl=EN&aff_id=1061&product_id=7\" target=\"_blank\"><img   src=\"http://www.bookplanet.com.my/images/product_images/thumbnail_ec_houseLoan_ver2.jpg\" width=\"120\" height=\"139\" alt=\"\" border=\"0\"  />\r\n\r\n<\/a><\/td><\/tr><tr><td align=\"center\" style=\"color: #000000; font-size: 12px; font-weight: bold;\"><a href=\"http://www.bookplanet.com.my/index.php?target=banners&bid=24&sl=EN&aff_id=1061&product_id=7\" target=_blank>How To Pay Off Your House Loan in 5 Years or Less - Second Edition<\/a><\/td><\/tr><tr><td><p><p align=\"justify\">This Handbook gives all the practical help you need to own your property outright sooner than you ever thought possible. It features real life strategies on how you can pay off your house loan in five years or less.<\/p><\/p><\/td><\/tr><\/table>\r\n			<\/td>\r\n		<\/tr>\r\n		<\/table>";
	var banner_id = '24';
	var banner_data_type = 'P';
	var banner_url = 'http://www.bookplanet.com.my/index.php?target=banners&bid=24&sl=EN&aff_id=1061&product_id=7';
	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);