


	//Variables

        if (typeof offsetx == 'undefined') { var offsetx = 10;}
        if (typeof offsety == 'undefined') { var offsety = 10;}
        var  ns4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4 && parseInt(navigator.appVersion) < 5);
        var  ie4 = (document.all)? true:false
        var  ns6 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 5);
        var  ie6 = (document.all && navigator.userAgent.indexOf('MSIE 6')>0)? true:false;
        var  ie5 = (document.all && navigator.userAgent.indexOf('MSIE 5')>0)? true:false;
        //alert("ie4"+ie4+"ie6"+ie6+"ns4"+ns4+"ns6"+ns6);
        
        var sw = 0;
        var center = 0;
        var lalala = 0;
        var direction = 1;
        var x = 0;
        var y = 0;
	var txt=""

/*
        if ( (ns4) || (ie4) ||(ns6) ) {
                if (ns4) overlayer = document.PopupDiv
                if (ie4) overlayer = PopupDiv.style
                if (ns6) overlayer = document.getElementById('PopupDiv').style
                
                if (ns4 ) {document.captureEvents(Event.MOUSEMOVE);}
                if (ns6 ) {document.addEventListener("mousemove",document.onmousemove,true);
                mouseMove;
                }
                	
                document.onmousemove = mouseMove
              
        }
*/


	document.onmousemove = mouseMove
	overlayer = document.getElementById("PopupDiv")



        //Javascript for Popups!//
        function nothing(){}
        function left(text, title) {
                grrr(0,text,title);
        }
        function right(text, title) {
                grrr(1,text,title);
        }
        function centerp(text, title) {
                grrr(2,text,title);
        }
         function up(text, title) {
                grrr(3,text,title);
        }
        function right_up(text, title) {
                grrr(4,text,title);
        }
          function left_up(text, title) {
                grrr(5,text,title);
        }
        function plaquette(text, title) {
                grrr(6,text,title);
        }
        
        function grrr(d,text, title) {
        	if(d != 6){
                txt = "<TABLE WIDTH="+width+" BORDER=0 CELLPADDING="+borderthickness+" CELLSPACING=0 BGCOLOR=\""+bordercolor+"\"><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD><SPAN ID=\"PTT\"><B><FONT FACE=\"Geneva, Arial, Helvetica\" COLOR=\""+titletextcolor+"\"SIZE="+titletextsize+">"+title_en_dur+"</FONT></B></SPAN></TD></TR></TABLE><TABLE WIDTH=100% BORDER=1 CELLPADDING=2 CELLSPACING=0 BGCOLOR=\""+fcolor+"\"><TR><TD><SPAN ID=\"PST\"><FONT face=\"Geneva,arial,helvetica\" COLOR=\""+textcolor1+"\" size="+textsize+">"+text+"</FONT><SPAN></TD></TR></TABLE></TD></TR></TABLE>"
        	}else{
		txt = text
		}

                MakeThePopup(txt);
                direction = d;
                display();
        }

        function display() {
                if ( (ns4) || (ie4) || (ns6) || (ie6)) {
                        if (lalala == 0)        {

                                if (direction == 0) {
                                        moveIt(overlayer,x-offsetx-width,y+offsety);
                                }
                                if (direction == 1) {
                                        moveIt(overlayer,x+10,y+720)
                                }
                                if (direction == 2) {
                                        moveIt(overlayer,x+offsetx-(width/2),y+offsety);
                                }
                                 if (direction == 3) {
                                        moveIt(overlayer,x+offsetx-(width/2),y+offsety-110);
                                }
                                if (direction == 4) {
                                        moveIt(overlayer,x+offsetx+width,y+offsety-100);
                                }
                                if (direction == 5) {
                                        moveIt(overlayer,x+offsetx-400,y+offsety-50);
                                }
                                if (direction == 6) {
                                        moveIt(overlayer,x,y+offsety+20);
                                }

                                showIt(overlayer);
                                lalala = 1;
                        }
                }
        }


         function mouseMove(m) {
                if (ns4||ns6) {x=m.pageX+20; y=m.pageY+20;}
                if (ie4 || ie5 || ie6) {x=event.x+document.body.scrollLeft+20; y=720;/*event.y+document.body.scrollTop;*/}

		//window.status="X="+x+";Y="+y


                if (lalala) {

                        if (direction == 2) {
                                moveIt(overlayer,x+offsetx-(width/2),y+offsety);
                        }
                        if (direction == 1) {
		        	moveIt(overlayer,x-10,y-10);
                        }
                        if (direction == 0) {
                                moveIt(overlayer,x-offsetx-width,y+offsety);
                        }
                        if (direction == 3) {
                                moveIt(overlayer,x-offsetx-width,y+offsety-110);
                        }
                        if (direction == 4) {
                                moveIt(overlayer,x-offsetx+100,y+offsety-100);
                        }
                         if (direction == 5) {
                                        moveIt(overlayer,x+offsetx-400,y+offsety-50);
                                }
                         if (direction == 6) {
                                        moveIt(overlayer,x,y+offsety+20);
                                }
                }
        }


        function MakeThePopup(txt) {
		overlayer.innerHTML=txt
        }

        function moveIt(obj,xL,yL) {
		obj.style.zIndex=10
                obj.style.left 	=xL+"px";
                obj.style.top  	=yL+"px";
                //alert(obj.left+" //"+obj.top)
        }

        function hideIt(obj) {
                if (ns4) obj.style.visibility = "hide";
                else obj.style.visibility = "hidden";
        }

        function showIt(obj) {
                if (ns4)	obj.style.visibility = "show";
                else 	 	obj.style.visibility = "visible";
        }

        function closepopup() {
                if ( center >= 1 ) sw=0;
              	if ( (ns4) || (ie4) || (ns6) || (ie6) ) {
                        if ( sw == 0 ) {
                                lalala = 0;
                                hideIt(overlayer);
                        } else {
                                center++;
                        }
                }
        }


