function addOpenSearch(name,ext,cat,pid,meth)
{
  if ((typeof window.external == "object") && ((typeof window.external.AddSearchProvider == "unknown") || (typeof window.external.AddSearchProvider == "function"))) {
    // See bugs 430058/430067/430070 for Camino
    if (((typeof window.external.AddSearchProvider == "unknown") || (window.navigator.vendor == 'Camino'))&& meth == "p") {
      alert("This plugin uses POST which is not currently supported by your browser's implementation of OpenSearch.");
    } else {
      window.external.AddSearchProvider(
        "http://pdf.rapid4me.com/pdf_rapid4me.xml");
    }
  } else {
    alert("You will need a browser which supports OpenSearch to install this plugin.");
  }
}



function print_search_ads(Query)
	{
		
		//if (readCookie("ads"))
		//{
			// create an empty element node
			 // without an ID, any attributes, or any content
			 /*** var speed_block = document.createElement("li");  ***/
			
			 // give it an id attribute called 'newSpan'
			 /*** speed_block.setAttribute("id", "speeds_ads");		***/
			
			 //var div2 = document.getElementById("result_list");
			 //var parentDiv = div2.parentNode;
			
			 // insert the new element into the DOM before sp2
			 //parentDiv.insertBefore(speed_block, div2);
			 
			/***var downblock = document.getElementById('result_list');
			
			downblock.appendChild(speed_block);		***/	 
			 
			
				document.getElementById('speeds_ads').innerHTML ='<p class="ads_header"><a target="_blank" href="/out.php?q='+Query+'" rel="nofollow">'+Query+' [Full Download] </a>   <span class="speed_value">2509 KB/s</span></p>  <p class="link_txt">Good alternative to RapidShare</p>';
		/*}
		else
		{
			createCookie("ads",1,1);
		}*/

	
	}
	