function MusicAutoComplete(domain_name)
	{ 
		clearInterval(timer);
		if(document.getElementById('value')&&document.getElementById('auto_complete'))
			{
				YAHOO.example.ACScriptNode = new function(){
				    // Instantiate an Script Node DataSource and define schema as an array:
				    //     ["Multi-depth.object.notation.to.find.a.single.result.item",
				    //     "Query Key",
				    //     "Additional Param Name 1",
				    //     ...
				    //     "Additional Param Name n"]
				    this.oACDS = new YAHOO.widget.DS_XHR("http://"+domain_name+"/scripts/web_services/auto_complete.php", ["ResultSet.Result","value"]);
				     
				  this.oACDS.queryDelay = 1;
				  this.oACDS.queryMatchContains = true;
				  this.oACDS.scriptQueryAppend = "output=json&type=music&option="+document.getElementById('type').value;
				  this.oACDS.scriptQueryParam = "value";
				    // Instantiate AutoComplete
				  this.oAutoComp = new YAHOO.widget.AutoComplete("value","auto_complete", this.oACDS);
				  this.oAutoComp.useShadow = false;
				  this.oAutoComp.typeAhead = false;
				  this.oAutoComp.minQueryLength = 2;
				  this.oAutoComp.formatResult = function(oResultItem, sQuery) {
						        return "<div class=\"result\"><span class=\"name\">" + oResultItem[0] + "</span></div>";
						    };
				
						    // Stub for form validation
						    this.validateForm = function() {
						        // Validation code goes here
						        return true;
						    };
						};	 
			}
	}
	
function ImageAutoComplete(domain_name)
	{
		clearInterval(timer);
		if(document.getElementById('value')&&document.getElementById('auto_complete'))
			{
				YAHOO.example.ACScriptNode = new function(){
				    // Instantiate an Script Node DataSource and define schema as an array:
				    //     ["Multi-depth.object.notation.to.find.a.single.result.item",
				    //     "Query Key",
				    //     "Additional Param Name 1",
				    //     ...
				    //     "Additional Param Name n"]
				    this.oACDS = new YAHOO.widget.DS_XHR("http://"+domain_name+"/scripts/web_services/auto_complete.php", ["ResultSet.Result","value"]);				    
				this.oACDS.queryDelay = 1;
			    this.oACDS.queryMatchContains = true;
			    this.oACDS.scriptQueryAppend = "output=json&type=image";
			    this.oACDS.scriptQueryParam = "value";
					    // Instantiate AutoComplete
			    this.oAutoComp = new YAHOO.widget.AutoComplete("value","auto_complete", this.oACDS);
			    this.oAutoComp.useShadow = false;
			    this.oAutoComp.typeAhead = false;
			    this.oAutoComp.minQueryLength = 2;
			   	this.oAutoComp.formatResult = function(oResultItem, sQuery) {
					        return "<div class=\"result\"><span class=\"name\">" + oResultItem[0] + "</span></div>";
					    };
			
					    // Stub for form validation
					    this.validateForm = function() {
					        // Validation code goes here
					        return true;
					    };
					};	
			} 
	}
	
function VideoAutoComplete(domain_name)
	{
		clearInterval(timer);
		if(document.getElementById('value')&&document.getElementById('auto_complete'))
			{
				YAHOO.example.ACScriptNode = new function(){
				    // Instantiate an Script Node DataSource and define schema as an array:
				    //     ["Multi-depth.object.notation.to.find.a.single.result.item",
				    //     "Query Key",
				    //     "Additional Param Name 1",
				    //     ...
				    //     "Additional Param Name n"]
				    this.oACDS = new YAHOO.widget.DS_XHR("http://"+domain_name+"/scripts/web_services/auto_complete.php", ["ResultSet.Result","value"]);				    
				this.oACDS.queryDelay = 1;
			    this.oACDS.queryMatchContains = true;
			    this.oACDS.scriptQueryAppend = "output=json&type=video";
			    this.oACDS.scriptQueryParam = "value";
					     // Instantiate AutoComplete
			    this.oAutoComp = new YAHOO.widget.AutoComplete("value","auto_complete", this.oACDS);
			    this.oAutoComp.useShadow = false;
			    this.oAutoComp.typeAhead = false;
			    this.oAutoComp.minQueryLength = 2;
			   	this.oAutoComp.formatResult = function(oResultItem, sQuery) {
					        return "<div class=\"result\"><span class=\"name\">" + oResultItem[0] + "</span></div>";
					    };
			
					    // Stub for form validation
					    this.validateForm = function() {
					        // Validation code goes here
					        return true;
					    };
					};	 
			}
	}
	
function GamesAutoComplete(domain_name)
	{
		clearInterval(timer);
		if(document.getElementById('value')&&document.getElementById('auto_complete'))
			{
				YAHOO.example.ACScriptNode = new function(){
				    // Instantiate an Script Node DataSource and define schema as an array:
				    //     ["Multi-depth.object.notation.to.find.a.single.result.item",
				    //     "Query Key",
				    //     "Additional Param Name 1",
				    //     ...
				    //     "Additional Param Name n"]
				    this.oACDS = new YAHOO.widget.DS_XHR("http://"+domain_name+"/scripts/web_services/auto_complete.php", ["ResultSet.Result","value"]);				    
				if(document.getElementById('search_form').action=='/games')option='l';
				else option='s';
				
				this.oACDS.queryDelay = 1;
			    this.oACDS.queryMatchContains = true;
			    this.oACDS.scriptQueryAppend = "output=json&type=games";
			    this.oACDS.scriptQueryParam = "value";
					    // Instantiate AutoComplete
			    this.oAutoComp = new YAHOO.widget.AutoComplete("value","auto_complete", this.oACDS);
			    this.oAutoComp.useShadow = false;
			    this.oAutoComp.typeAhead = false;
			    this.oAutoComp.minQueryLength = 2;
			   	this.oAutoComp.formatResult = function(oResultItem, sQuery) {
					        return "<div class=\"result\"><span class=\"name\">" + oResultItem[0] + "</span></div>";
					    };
			
					    // Stub for form validation
					    this.validateForm = function() {
					        // Validation code goes here
					        return true;
					    };
					};	 
			}
	}	
	
function MoviesAutoComplete(domain_name)
	{
		clearInterval(timer);
		if(document.getElementById('value')&&document.getElementById('auto_complete'))
			{
				YAHOO.example.ACScriptNode = new function(){
				    // Instantiate an Script Node DataSource and define schema as an array:
				    //     ["Multi-depth.object.notation.to.find.a.single.result.item",
				    //     "Query Key",
				    //     "Additional Param Name 1",
				    //     ...
				    //     "Additional Param Name n"]
				    this.oACDS = new YAHOO.widget.DS_XHR("http://"+domain_name+"/scripts/web_services/auto_complete.php", ["ResultSet.Result","value"]);				    
				this.oACDS.queryDelay = 1;
			    this.oACDS.queryMatchContains = true;
			    this.oACDS.scriptQueryAppend = "output=json&type=movies";
			    this.oACDS.scriptQueryParam = "value";
					    // Instantiate AutoComplete
			    this.oAutoComp = new YAHOO.widget.AutoComplete("value","auto_complete", this.oACDS);
			    this.oAutoComp.useShadow = false;
			    this.oAutoComp.typeAhead = false;
			    this.oAutoComp.minQueryLength = 2;
			   	this.oAutoComp.formatResult = function(oResultItem, sQuery) {
					        return "<div class=\"result\"><span class=\"name\">" + oResultItem[0] + "</span></div>";
					    };
			
					    // Stub for form validation
					    this.validateForm = function() {
					        // Validation code goes here
					        return true;
					    };
					};	
			} 
	}	
	
function NewsAutoComplete(domain_name)
	{
		clearInterval(timer);
		if(document.getElementById('value')&&document.getElementById('auto_complete'))
			{
				YAHOO.example.ACScriptNode = new function(){
				    // Instantiate an Script Node DataSource and define schema as an array:
				    //     ["Multi-depth.object.notation.to.find.a.single.result.item",
				    //     "Query Key",
				    //     "Additional Param Name 1",
				    //     ...
				    //     "Additional Param Name n"]
				    this.oACDS = new YAHOO.widget.DS_XHR("http://"+domain_name+"/scripts/web_services/auto_complete.php", ["ResultSet.Result","value"]);				    
				this.oACDS.queryDelay = 1;
			    this.oACDS.queryMatchContains = true;
			    this.oACDS.scriptQueryAppend = "output=json&type=news";
			    this.oACDS.scriptQueryParam = "value";
					    // Instantiate AutoComplete
			    this.oAutoComp = new YAHOO.widget.AutoComplete("value","auto_complete", this.oACDS);
			    this.oAutoComp.useShadow = false;
			    this.oAutoComp.typeAhead = false;
			    this.oAutoComp.minQueryLength = 2;
			   	this.oAutoComp.formatResult = function(oResultItem, sQuery) {
					        return "<div class=\"result\"><span class=\"name\">" + oResultItem[0] + "</span></div>";
					    };
			
					    // Stub for form validation
					    this.validateForm = function() {
					        // Validation code goes here
					        return true;
					    };
					};	 
			}
	}	
	
function FinanceAutoComplete(domain_name)
	{
		clearInterval(timer);
		if(document.getElementById('value')&&document.getElementById('auto_complete'))
			{
				YAHOO.example.ACScriptNode = new function(){
				    // Instantiate an Script Node DataSource and define schema as an array:
				    //     ["Multi-depth.object.notation.to.find.a.single.result.item",
				    //     "Query Key",
				    //     "Additional Param Name 1",
				    //     ...
				    //     "Additional Param Name n"]
				    this.oACDS = new YAHOO.widget.DS_XHR("http://"+domain_name+"/scripts/web_services/auto_complete.php", ["ResultSet.Result","value"]);				    
				this.oACDS.queryDelay = 1;
		    	this.oACDS.queryMatchContains = true;
			    this.oACDS.scriptQueryAppend = "output=json&type=finance";
			    this.oACDS.scriptQueryParam = "value";
					    // Instantiate AutoComplete
			    this.oAutoComp = new YAHOO.widget.AutoComplete("value","auto_complete", this.oACDS);
			    this.oAutoComp.useShadow = false;
			    this.oAutoComp.typeAhead = false;
			    this.oAutoComp.minQueryLength = 2;
			   	this.oAutoComp.formatResult = function(oResultItem, sQuery) {
					        return "<div class=\"result\"><span class=\"finance_name\">" + oResultItem[0] + "</span></div>";
					    };
			
					    // Stub for form validation
					    this.validateForm = function() {
					        // Validation code goes here
					        return true;
					    };
					};	
			} 
	}
	
function WebAutoComplete(domain_name)
	{
		clearInterval(timer);
		if(document.getElementById('value')&&document.getElementById('auto_complete'))
			{
				YAHOO.example.ACScriptNode = new function(){
				    // Instantiate an Script Node DataSource and define schema as an array:
				    //     ["Multi-depth.object.notation.to.find.a.single.result.item",
				    //     "Query Key",
				    //     "Additional Param Name 1",
				    //     ...
				    //     "Additional Param Name n"]
				    this.oACDS = new YAHOO.widget.DS_XHR("http://"+domain_name+"/scripts/web_services/auto_complete.php", ["ResultSet.Result","value"]);				    
				this.oACDS.queryDelay = 1;
			    this.oACDS.queryMatchContains = true;
			    this.oACDS.scriptQueryAppend = "output=json&type=web";
			    this.oACDS.scriptQueryParam = "value";
					    // Instantiate AutoComplete
			    this.oAutoComp = new YAHOO.widget.AutoComplete("value","auto_complete", this.oACDS);
			    this.oAutoComp.useShadow = false;
			    this.oAutoComp.typeAhead = false;
			    this.oAutoComp.minQueryLength = 2;
			   	this.oAutoComp.formatResult = function(oResultItem, sQuery) {
					        return "<div class=\"result\"><span class=\"name\">" + oResultItem[0] + "</span></div>";
					    };
			
					    // Stub for form validation
					    this.validateForm = function() {
					        // Validation code goes here
					        return true;
					    };
					};	 
			}
	}
	
function GroupsAutoComplete(domain_name)
	{
		clearInterval(timer);
		if(document.getElementById('value')&&document.getElementById('auto_complete'))
			{
				YAHOO.example.ACScriptNode = new function(){
				    // Instantiate an Script Node DataSource and define schema as an array:
				    //     ["Multi-depth.object.notation.to.find.a.single.result.item",
				    //     "Query Key",
				    //     "Additional Param Name 1",
				    //     ...
				    //     "Additional Param Name n"]
				    this.oACDS = new YAHOO.widget.DS_XHR("http://"+domain_name+"/scripts/web_services/auto_complete.php", ["ResultSet.Result","value"]);				    
				this.oACDS.queryDelay = 1;
		    	this.oACDS.queryMatchContains = true;
			    this.oACDS.scriptQueryAppend = "output=json&type=groups";
			    this.oACDS.scriptQueryParam = "value";
				// Instantiate AutoComplete
			    this.oAutoComp = new YAHOO.widget.AutoComplete("value","auto_complete", this.oACDS);
			    this.oAutoComp.useShadow = false;
			    this.oAutoComp.typeAhead = false;
			    this.oAutoComp.minQueryLength = 2;
			   	this.oAutoComp.formatResult = function(oResultItem, sQuery) {
					        return "<div class=\"result\"><span class=\"name\">" + oResultItem[0] + "</span></div>";
					    };
			
					    // Stub for form validation
					    this.validateForm = function() {
					        // Validation code goes here
					        return true;
					    };
					};	 
			}
	}
	
function IrcAutoComplete(domain_name)
	{
		clearInterval(timer);
		if(document.getElementById('value')&&document.getElementById('auto_complete'))
			{
				YAHOO.example.ACScriptNode = new function(){
				    // Instantiate an Script Node DataSource and define schema as an array:
				    //     ["Multi-depth.object.notation.to.find.a.single.result.item",
				    //     "Query Key",
				    //     "Additional Param Name 1",
				    //     ...
				    //     "Additional Param Name n"]
				    this.oACDS = new YAHOO.widget.DS_XHR("http://"+domain_name+"/scripts/web_services/auto_complete.php", ["ResultSet.Result","value"]);				    
				this.oACDS.queryDelay = 1;
			    this.oACDS.queryMatchContains = true;
			    this.oACDS.scriptQueryAppend = "output=json&type=irc";
			    this.oACDS.scriptQueryParam = "value";
					    // Instantiate AutoComplete
			    this.oAutoComp = new YAHOO.widget.AutoComplete("value","auto_complete", this.oACDS);
			    this.oAutoComp.useShadow = false;
			    this.oAutoComp.typeAhead = false;
			    this.oAutoComp.minQueryLength = 2;
			   	this.oAutoComp.formatResult = function(oResultItem, sQuery) {
				        return "<div class=\"result\"><span class=\"name\">" + oResultItem[0] + "</span></div>";
				    };
		
				    // Stub for form validation
				    this.validateForm = function() {
				        // Validation code goes here
				        return true;
				    };
				};	 
			}
	}
	
function TorrentsAutoComplete(domain_name)
	{
		clearInterval(timer);
		if(document.getElementById('value')&&document.getElementById('auto_complete'))
			{
				YAHOO.example.ACScriptNode = new function(){
				    // Instantiate an Script Node DataSource and define schema as an array:
				    //     ["Multi-depth.object.notation.to.find.a.single.result.item",
				    //     "Query Key",
				    //     "Additional Param Name 1",
				    //     ...
				    //     "Additional Param Name n"]
				    this.oACDS = new YAHOO.widget.DS_XHR("http://"+domain_name+"/scripts/web_services/auto_complete.php", ["ResultSet.Result","value"]);				    
				this.oACDS.queryDelay = 1;
		    this.oACDS.queryMatchContains = true;
		    this.oACDS.scriptQueryAppend = "output=json&type=torrents";
		    this.oACDS.scriptQueryParam = "value";
				    // Instantiate AutoComplete
		    this.oAutoComp = new YAHOO.widget.AutoComplete("value","auto_complete", this.oACDS);
		    this.oAutoComp.useShadow = false;
		    this.oAutoComp.typeAhead = false;
		     this.oAutoComp.minQueryLength = 2;
		   this.oAutoComp.formatResult = function(oResultItem, sQuery) {
				        return "<div class=\"result\"><span class=\"name\">" + oResultItem[0] + "</span></div>";
				    };
		
				    // Stub for form validation
				    this.validateForm = function() {
				        // Validation code goes here
				        return true;
				    };
				};	 
			}
	}
	
function WidgetsAutoComplete(domain_name)
	{
		clearInterval(timer);
		if(document.getElementById('value')&&document.getElementById('auto_complete'))
			{
				YAHOO.example.ACScriptNode = new function(){
				    // Instantiate an Script Node DataSource and define schema as an array:
				    //     ["Multi-depth.object.notation.to.find.a.single.result.item",
				    //     "Query Key",
				    //     "Additional Param Name 1",
				    //     ...
				    //     "Additional Param Name n"]
				    this.oACDS = new YAHOO.widget.DS_XHR("http://"+domain_name+"/scripts/web_services/auto_complete.php", ["ResultSet.Result","value"]);				    
				this.oACDS.queryDelay = 1;
		    this.oACDS.queryMatchContains = true;
		    this.oACDS.scriptQueryAppend = "output=json&type=widgets";
		    this.oACDS.scriptQueryParam = "value";
				    // Instantiate AutoComplete
		    this.oAutoComp = new YAHOO.widget.AutoComplete("value","auto_complete", this.oACDS);
		    this.oAutoComp.useShadow = false;
		    this.oAutoComp.typeAhead = false;
		     this.oAutoComp.minQueryLength = 2;
		   this.oAutoComp.formatResult = function(oResultItem, sQuery) {
				        return "<div class=\"result\"><span class=\"name\">" + oResultItem[0] + "</span></div>";
				    };
		
				    // Stub for form validation
				    this.validateForm = function() {
				        // Validation code goes here
				        return true;
				    };
				};	 
		}
	}
	
function BlogsAutoComplete(domain_name)
	{
		clearInterval(timer);
		if(document.getElementById('value')&&document.getElementById('auto_complete'))
			{
				YAHOO.example.ACScriptNode = new function(){
				    // Instantiate an Script Node DataSource and define schema as an array:
				    //     ["Multi-depth.object.notation.to.find.a.single.result.item",
				    //     "Query Key",
				    //     "Additional Param Name 1",
				    //     ...
				    //     "Additional Param Name n"]
				    this.oACDS = new YAHOO.widget.DS_XHR("http://"+domain_name+"/scripts/web_services/auto_complete.php", ["ResultSet.Result","value"]);				    
				this.oACDS.queryDelay = 1;
		    this.oACDS.queryMatchContains = true;
		    this.oACDS.scriptQueryAppend = "output=json&type=blogs";
		    this.oACDS.scriptQueryParam = "value";
				    // Instantiate AutoComplete
		    this.oAutoComp = new YAHOO.widget.AutoComplete("value","auto_complete", this.oACDS);
		    this.oAutoComp.useShadow = false;
		    this.oAutoComp.typeAhead = false;
		     this.oAutoComp.minQueryLength = 2;
		   this.oAutoComp.formatResult = function(oResultItem, sQuery) {
				        return "<div class=\"result\"><span class=\"name\">" + oResultItem[0] + "</span></div>";
				    };
		
				    // Stub for form validation
				    this.validateForm = function() {
				        // Validation code goes here
				        return true;
				    };
				};	 
			}
	}