// This file should be keeped as it is
// Use it freely as long as this notice remains here
// Author: Lahoucine Lhamous
// Email : Lhamous@hotmail.com
// URL   : http://www9.ewebcity.com/llgroup/

function ieRightClick() {
 // Fonction de détection pour Internet Explorer
 if (event.button==2) {
    document.status = "";
 }
}

function nsRightClick(e){
 // Fonction pour Netscape
 if (e.which==3){
   ;
   return false;
 }
}
if (document.all) { document.onmousedown=ieRightClick;}
if (document.layers) {document.captureEvents(Event.MOUSEDOWN); document.onmousedown = nsRightClick;}

var timerONE;
var Msg;

function ScrollMsg(seed, Text)
{

        var m1  = "Assalamou Alaikoum, j'espere que vous vous portez bien.... Bonne lecture et surtout ne m'oubliez pas dans vos pieuses invocations";
        var m2  =  "";//document.location;
        var m3  = "";
        var tx ="";

        tx +=eval(Text);
        if ( tx.lemgth)
        		var msg=tx;
        else
           var msg=m1+m2+m3;
        var out = " ";
        var c   = 1;
        if (seed > 100) {
                seed--;
                var cmd="ScrollMsg(" + seed + ")";
                timerTwo=window.setTimeout(cmd,100);
        }
        else if (seed <= 100 && seed > 0) {
                for (c=0 ; c < seed ; c++) {
                        out+=" ";
                }
                out+=msg;
                seed--;
                var cmd="ScrollMsg(" + seed + ")";
                    window.status=out;
                timerTwo=window.setTimeout(cmd,100);
        }
        else if (seed <= 0) {
                if (-seed < msg.length) {
                        out+=msg.substring(-seed,msg.length);
                        seed--;
                        var cmd="ScrollMsg(" + seed + ")";
                        window.status=out;
                        timerTwo=window.setTimeout(cmd,100);
                }
                else {
                        window.status=" ";
                        timerTwo=window.setTimeout("ScrollMsg(100)",75);
                }
        }
}

timerONE = window.setTimeout('ScrollMsg(100,"")',500);

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}


