<!--
	ZeroClipboard.setMoviePath( '/themed/default/flash/ZeroClipboard.swf' );
	function clipInit() {
		var clip = new ZeroClipboard.Client();
		clip.setHandCursor(true);
		clip.addEventListener('mouseOver', function(client){
			clip.setText("Free Website Directory:http://www.ninoo.com");
		});
		clip.addEventListener('complete', function(client,text){
			alert("Successfully copy the code to the clipboard！");
		});  
		clip.glue('copysite');
	}
	function SetHome(obj,vrl){
		try{
			obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
		}
		catch(e){
			if(window.netscape){
				try{
					netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
					}
					catch (e){
						alert("This operation is your browser to refuse! \ n in the browser address bar type \"about: config\" and press ENTER \ n then [signed.applets.codebase_principal_support] value is set to 'true', by double clicking.");
					}
					var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
					prefs.setCharPref('browser.startup.homepage',vrl);
			}
		}
   }
   
   function gosearch()
   {
	   var url=$.trim($("#searchdomain").val());
	   if(url=="Please enter the URL,format: www.ninoo.com")
	   {
		   
	   }
	   else
	   {
		   window.location.href="http://www.ninoo.com/site/"+url;
	   }
   }
   
   function clearval()
   {
	   var def=$.trim($("#searchdomain").val());
	   if(def=="Please enter the URL,format: www.ninoo.com")
	   {
	   	  $("#searchdomain").val("");  
	   }
	   
   }
   function setval()
   {
	    var def=$.trim($("#searchdomain").val());
	   if(def=="")
	   {
	   	  $("#searchdomain").val("Please enter the URL,format: www.ninoo.com");  
	   }
	  
   }
//-->

