function setHomepageF() 
{ 
	 var url=self.location;
	if (document.all) 
	{ 
		//For IE 
		document.body.style.behavior='url(#default#homepage)'; 
		document.body.setHomePage(url); 

	} 
	else if (window.sidebar) 
	{ 
		if(window.netscape) 
		{ 
			try 
			{ 
				netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 
			} 
			catch(e) 
			{ 
				alert("this action was aviod by your browserif you want to enable please enter about:config in your address line,and change the value of signed.applets.codebase_principal_support to true"); 
			} 
		} 
		var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch); 
	prefs.setCharPref('browser.startup.homepage',url); 
	} 
} 

function aSetHome() {
    if (window.external)
    {
	  document.write(
       '<span style="cursor:hand; behavior:url(#default#homepage);"'+
       ' onclick="setHomepageF();" class="arabmenu">إجعل هذه الصفحة الرئيسية</span>'
       );
    }
  else
    alert("Sorry. Netscape users must drag the url manually to the home image...");	
}

//---------------------------------------------------
function eSetHome() {
    if (window.external)
    {
      document.write(
       '<span style="cursor:hand; behavior:url(#default#homepage);"'+
       ' onclick="setHomepageF();" class="outmenu">Make this page your Homepage</span>'
       );
    }
  else
    alert("Sorry. Netscape users must drag the url manually to the home image...");	
}
//---------------------------------------------------
function bookIt()
{
  var bookData = new Array();
  var mUrl=self.location;
  var argVal =mUrl+'|'+document.title;
  bookData = argVal.split("|");
  if (document.all)
    window.external.AddFavorite(bookData[0], bookData[1]);
  else
    alert("Sorry. Netscape users must bookmark the pages manually by hitting <Ctrl-D>");
}
//---------------------------------------------------

