var left_img = '', right_img = '';
function get_ads(spanid)
{
	if (eval("typeof(str_ads" + spanid + ")") != "undefined"){
		document.write("<div id=\"ads" + spanid + "\"></div>");
		eval("document.getElementById('ads" + spanid + "').innerHTML = str_ads" + spanid + ";");
	}
}
function flank_ads(ads_l,ads_r)
{
	var strl = ads_l.toString();
	var strr = ads_r.toString();
	var arrl = strl.split('|');
	var arrr = strr.split('|');
	var num=arrl.length;
	for (var i=0;i<num;i++){
		if (eval("typeof(str_ads" + arrl[i] + ")") != "undefined") left_img += eval("str_ads" + arrl[i]);
	}
	num=arrr.length;
	for (var i=0;i<num;i++){
		if (eval("typeof(str_ads" + arrr[i] + ")") != "undefined") right_img += eval("str_ads" + arrr[i]);
	}
	//if (eval("typeof(str_ads" + ads_l + ")") != "undefined") left_img = eval("str_ads" + ads_l);
	//if (eval("typeof(str_ads" + ads_r + ")") != "undefined") right_img = eval("str_ads" + ads_r);
}
