// JavaScript Document
function mmLoadMenus() {
  if (window.mm_menu_0819094119_0) return;
            window.mm_menu_0819094119_0 = new Menu("root",132,20,"Verdana, Arial, Helvetica, sans-serif",11,"#FFFFFF","#000000","#7F95C4","#EEEEEE","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
  mm_menu_0819094119_0.addMenuItem("JoyFax&nbsp;Server","location='../joyfax_server.html'");
  mm_menu_0819094119_0.addMenuItem("JoyFax&nbsp;Broadcast","location='../faxbroadcast.html'");
   mm_menu_0819094119_0.hideOnMouseOut=true;
   mm_menu_0819094119_0.bgColor='#555555';
   mm_menu_0819094119_0.menuBorder=1;
   mm_menu_0819094119_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0819094119_0.menuBorderBgColor='#777777';

mm_menu_0819094119_0.writeMenus();
} // mmLoadMenus()
var domainroot="www.joyfax.com"
function Gsitesearch(curobj){
curobj.q.value="site:"+domainroot+" "+curobj.qfront.value
}
function checkout (theForma){
	if (theForma.langpair.value == 'en' ) {
		location="http://www.joyfax.com";
		return false;
	} 
	else
	{
		theForma.submit();
		return true;
	}
}
function ShowWelcome()
{
  var t_strRef = document.referrer;
  var t_strHttp = t_strRef.substring(0, 7);
  if ( "http://" == t_strHttp )
  {
    t_strRef = t_strRef.substring(7);
    var t_iPos = t_strRef.indexOf("/");
    if ( t_iPos > 0 )
    {
      var t_strURL = t_strRef.substring(0,t_iPos);
      t_iPos = t_strURL.indexOf("joyfax.com");
      if ( t_iPos > -1 )
        return;
      var t_strKey = "";
      var t_strWelcome ="";
      if ( t_strURL.indexOf(".google.") > 0 )
        t_strKey = GetVar(t_strRef, "q");
      if ( t_strURL.indexOf(".yahoo.") > 0 )
        t_strKey = GetVar(t_strRef, "p");
      if ( t_strURL.indexOf(".live.") > 0 )
        t_strKey = GetVar(t_strRef, "q");
      if ( "" != t_strKey )
        t_strWelcome = "<div id=js_welcome>Welcome! You searched for <font color=#ff000><b>"+ t_strKey + "</b></font> on "+t_strURL+"</div>\r\n";
      document.write(t_strWelcome);
    }
  }
}
function GetVar(pi_strURL, pi_strName)
{
  var t_strFind = "&"+pi_strName+"=";
  var t_iPos = pi_strURL.indexOf(t_strFind);
  
  if ( -1 == t_iPos )
  {
    t_strFind = "?"+pi_strName+"=";
    t_iPos = pi_strURL.indexOf(t_strFind);
  }
  if ( -1 == t_iPos )
    return "";
  t_strKey = pi_strURL.substring(t_iPos+t_strFind.length);
  t_iPos = t_strKey.indexOf("&");
  if ( t_iPos > 0 )
    t_strKey = t_strKey.substring(0,t_iPos);
  t_strKey = decodeURIComponent(t_strKey);
  return t_strKey.replace(/\+/g, " ");
}

