/*
■ AP OV Interest Match Search XML Request（PC JavaScript）
*/
ovture = new function(){
	var th_bgcolor = "#eceded";
	var th_fontcolor = "#454b51";
	var block_width = "300px";
	var block_margin = "auto";
	var block_padding = "5px";
	this.ShowListings = function( obj ){
		if( obj ){
			if( obj["th_bgcolor"] ) th_bgcolor = obj["th_bgcolor"];
			if( obj["th_fontcolor"] ) th_fontcolor = obj["th_fontcolor"];
			if( obj["width"] ) block_width = obj["width"];
			if( obj["margin"] ) block_margin = obj["margin"];
			if( obj["padding"] ) block_padding = obj["padding"];
		}
		var i = 6;
		if( i < zSr.length ){
			var html = "<div style='width:" + block_width + "; margin:" + block_margin + "; font-size:9pt; text-align:left; line-height:1.4;'>";
			html+= "<div style='padding:2px; text-align:center; background-color:" + th_bgcolor + "; color:" + th_fontcolor + ";'>";
			html+= "<a href='http://ov.yahoo.co.jp/service/int/index.html' style='color:" + th_fontcolor + ";'>インタレストマッチ - <u>広告の掲載について</u></a>";
			html+= "</div>";
			var descr, unused1, clickURL, title, sitehost, unused2;
			while( i < zSr.length ){
				title = zSr[ i++ ];	// listing title
				unused1 = zSr[ i++ ];	// (ignore)
				clickURL = zSr[ i++ ];	// listing link
				descr = zSr[ i++ ];	// listing description
				sitehost = zSr[ i++ ];	// advertiserfs domain name
				unused2 = zSr[ i++ ];	// (ignore)
				html+= "<div style='border-bottom:1px dotted #addead;' class='ovture-ovad'>";
				html+= "<a href='" + clickURL + "' style='width:" + block_width + ";'>";
				html+= "<span style='padding:" + block_padding + ";'>";
				html+= "<span style='color: #0000ff; text-decoration: underline;'><b>" + title + "</b></span>";
				html+= "<span style='color: #003200;'>" + descr + "</span>";
				html+= "<span style='color: #469e9d;'>" + sitehost + "</span>";
				html+= "</span>";
				html+= "</a>";
				html+= "</div>";
			}
			html+= "</div>\n";
			document.write( html );
		}
	};
}
