function do_get_advertisement( url ){
	$.getJSON( url , function(json){
		if( json['id'])
		{
			_html = "<div class='rbroundbox_s'>";
			_html+= "<div class='rbtop_bg'><div class='rbtop'><div><p class='tips'>广告</p></div></div></div>";		  
			_html+= "<div class='rbcontent' style='margin-right:0;'>";
			
			if( json['href_src'] && json['src_type'] !=1 )
			{
				_html+= "<a href='"+ json['href_src'] +"' target='_blank'>";
			}
			
			if( json['href_src'] && json['src_type'] ==1 )
			{
				//_html+= "<div style='width:270px;height:500px;background:red;cursor:pointer;position:relative;z-index:9999;' onmousedown=javascript:window.open('" + json['href_src'] +"')>";
				_html+="<button onclick=window.open('" + json['href_src'] +"') style='border:0px;width:270px;height:auto;background:background-color;position:relative;z-index:9999;' >";
			}

			if( json['src_type'] == 1) { 
				_html+="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0' width='270'><param name='movie' value='"+ json['src'] +"' /><param name='quality' value='high' /><param name='wmode' value='transparent' /><embed src='"+ json['src'] +"' quality='high' pluginspage='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' wmode='transparent' width='270'></embed></object>";
			}else if( json['src_type'] == 2 ) { 
				_html+= json['src'];
			}else{
				_html+= "<img src='"+ json['src'] +"' alt='' />";
			}

			if( json['href_src'] && json['src_type'] !=1 )
			{
				_html+= "</a>";
			}

			if( json['href_src'] && json['src_type'] ==1 )
			{
				//_html+= "</div>";
				_html+="</button>"
			}

			_html+= "</div>";
			_html+= "<div class='rbbot_bg'><div class='rbbot'><div></div></div></div>";		
			_html+= "</div>";
			
			if( json['src_valign'] == 1){
				$("#sidebar").append( _html );
			}else if( json['src_valign'] == 2){
				$(".rbroundbox_s:first").after( _html );
			}else{	
				$("#sidebar").prepend( _html );
			}
		}
	});
}