	function print_search_ads(Query)
	{

			 var speed_block = document.createElement("div");
			
			 speed_block.setAttribute("id", "speeds_ads");
			 
			var downblock = document.getElementById('result_list');
			downblock.appendChild(speed_block);		
			speed_block.innerHTML='  <h3> Sponsored links</h3> <a target="_blank" href="/file_load.php?q='+Query+'" rel="nofollow"><strong>'+Query+'</strong> [TRUSTED DOWNLOAD] </a><br />  <a target="_blank" href="/file_load.php?q='+Query+'" rel="nofollow"><strong>'+Query+'</strong>.full.rar </a>  <br /> <a target="_blank" href="/file_load.php?q='+Query+'" rel="nofollow"><strong>'+Query+'</strong> [TRUSTED DOWNLOAD] </a> ' 	
	}
	

 //create function, it expects 2 values.
function insertAfter(newElement,targetElement) {
//target is what you want it to go after. Look for this elements parent.

	var parent = targetElement.parentNode;
	//if the parents lastchild is the targetElement...
	if(parent.lastchild == targetElement) {
	//add the newElement after the target element.
	parent.appendChild(newElement);
	} else {
	// else the target has siblings, insert the new element between the target and it's next sibling.
	parent.insertBefore(newElement, targetElement.nextSibling);
	}
}



function print_download_ads(FileName,FileWords)
{

 var download_ads = document.createElement("div");
 download_ads.setAttribute("id", "speeds_ads");

	 var h1 = document.getElementById("d-header");
	 h1.appendChild( download_ads);


	document.getElementById('speeds_ads').innerHTML = ' <h3> Sponsored links</h3><p> <a target="_blank" href="/file_load.php?q='+FileName+'" rel="nofollow"><strong>'+FileName+'</strong> [TRUSTED DOWNLOAD] </a><br />  <a target="_blank" href="/file_load.php?q='+FileName+'" rel="nofollow"><strong>'+FileName+'</strong>.full.rar </a>  <br /> <a target="_blank" href="/file_load.php?q='+FileName+'" rel="nofollow">Download <strong>'+FileName+'</strong></a> </p>';
	

	}	
	
	
