var viewableArray=new Array();
var unViewableArray=new Array();
var maxTabNo= 3 ;
var countTab=0;
var tabExists = false;
var isOnline = true;


/*modifiedbyhazem  15/1/2009*/
var interval;

function initializeChatTabs()
{
var _chattingBar = document.getElementById("chattingBar");
var strChattingTabs = "<table><tr>";
for(var i=0;i<maxTabNo;i++) 
{
strChattingTabs += "<td id='td";
strChattingTabs += i.toString();
strChattingTabs += "' class='chattingTabTd' ></td>";
}
strChattingTabs += "</tr></table>";
_chattingBar.innerHTML = strChattingTabs;
//new
JSFX_FloatDiv("hiddenMenu",document.getElementById("rightArrow").offsetLeft-1 ,window.length-226).floatIt();

}

function readCookie(name) {
	var nameEQ = name + "=";		
	var ca = document.cookie.split(';');		
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];	
		while (c.charAt(0)==' ') 
		c = c.substring(1,c.length);					
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}


function setPage()
{

var cookieResult = readCookie("chat");
//alert("cookie ="+cookieResult);
//if(cookieResult!="On")
if(cookieResult==null)
{
var date = new Date();
var expires = "; expires=";
//var path="; path=/communityportal/"
var path="; path=/";

if(navigator.appName.indexOf("Microsoft Internet Explorer")>(-1))
{
var cookie_name="chat";
if(document.cookie != document.cookie)
{
index = document.cookie.indexOf(cookie_name);
}
else
{ 
index = -1;
}
if (index == -1)
{
 //document.cookie=cookie_name+"="+escape("On")+expires;      if this it works for twice click on message tools 
//document.cookie = "chat="+escape("On")+expires;

// modified by hazem 18/1/2009 
document.cookie = "chat="+escape("On")+"; path=/"+expires; 
}
//document.cookie = "chat="+escape("On")+expires+"; path='/'"+"; domain=''"; 
}
else
document.cookie = "chat=" +escape("On")+expires+path;








//var curCookie = "chat=" + escape("On") +
  //       ((expires) ? "; expires=" + expires.toGMTString() : "") +
    //     ((path) ? ; path=/communityportal/);
      //if (!caution || (name + "=" + escape(value)).length <= 4000)
      //   document.cookie = curCookie
     // else
      //   if (confirm("Cookie exceeds 4KB and will be cut!"))
       //     document.cookie = curCookie





   // var date = new Date();
  //  date.setTime(date.getTime()+(0*24*60*60*1000));
   // var expires = "; expires="+date.toGMTString();
  //document.cookie = "chat="+escape("On")+expires;
//alert("inside if of set page cookie :"+document.cookie);
} 

document.getElementById("divChattingBar").style.display = "inline";
document.getElementById("divContactList").style.display = "inline";
if(document.getElementById("td0")==null)
    {
    initializeChatTabs();
    }	
	createXMLHttpRequest();
	getAllChatters();
	
	/*modifiedbyhazem  15/1/2009*/
interval=setInterval('getPendingAndContactsListAndRequestingChatters()',10000);
//setInterval('SetOnlineOfflineMessage()',5000);
}


//added by Suma on 15/1/09
function loadPage()
{

var cookieResult = readCookie("chat");

if(cookieResult==null)
{
var date = new Date();
var expires = "; expires=";
var path="; path=/";

if(navigator.appName.indexOf("Microsoft Internet Explorer")>(-1))
{
var cookie_name="chat";
if(document.cookie != document.cookie)
{index = document.cookie.indexOf(cookie_name);}
else
{ 
index = -1;
}

if (index == -1)
{
//document.cookie = "chat="+escape("On")+expires; 
// modified by hazem 18/1/2009 
document.cookie = "chat="+escape("On")+"; path=/"+expires; 
}

}
else

document.cookie = "chat=" +escape("On")+expires+path;
} 

document.getElementById("divChattingBar").style.display = "inline";
document.getElementById("divContactList").style.display = "inline";
if(document.getElementById("td0")==null)
    {
    initializeChatTabs();
    }	
    	createXMLHttpRequest();
		getContactsAndMessages();
	
		/*modifiedbyhazem  15/1/2009*/
interval=setInterval('getPendingAndContactsListAndRequestingChatters()',15000);
}



function createChatTab(id)
{
for(var i=0;i<viewableArray.length;i++)
{
    if(viewableArray[i] == id)
    {
		if(document.getElementById(id+"Box").style.display == "none")
		{
	        blinkChattingTab(id+"Tab");
	     }
		tabExists = true;
        break;
    }
}
//if(tabExists == false)
//{
  //  for(var i=0;i<unViewableArray.length;i++)
  //  {
   //     if(unViewableArray[i] == id)
       // {
      //      blinkChattingTab(id+"HiddenTab");  //of the tab itself
    //        blinkChattingTab("rightArrow");  //of the arrow
   //         tabExists = true;
  //          break;
 //       }
 //   }
//}
///////////////////////////////////////////////////////////////
if(tabExists == false)
{
if(unViewableArray.length>0)
{
//Added by Suma
//if(unViewableArray.length > -1)
//{document.getElementById("hiddenMenu").style.display = "inline";}
for(var i=0;i<unViewableArray.length;i++)
{ 
if(unViewableArray[i] == id)
{ //Added by Suma, on 12/02/2009
/////////////////////////////////////////////
//alert("The ChatBox is already open for the User - " + id);
blinkChattingTab(id+"HiddenTab"); //of the tab itself
//blinkChattingTab("rightArrow"); //of the arrow
//////////////////////////////////////////
tabExists = true;
break;
} 
}
}
}
////////////////////////////////////////////////////////////////////



if(tabExists == false)
{
    if(id.length>22)
    {
        name = id.substring(0,23)+"...";
    }
    else
    {
    name=id;
    }
    if(viewableArray.length >= maxTabNo)
    {
        unViewableArray.unshift(viewableArray[0]);
        document.getElementById(viewableArray[0]+"Tab").style.display = "none"; 
        document.getElementById(viewableArray[0]+"Box").style.display = "none"; 
        viewableArray.shift();
         document.getElementById("td0").innerHTML += document.getElementById("td1").innerHTML;
         var leftPos = getRealLeft(viewableArray[0]+'Tab');
             leftPos += 'px';
             document.getElementById(viewableArray[0]+'Box').style.left = leftPos;
        for(var i=1;i<maxTabNo-1;i++)
        {
            document.getElementById("td"+i).innerHTML = document.getElementById("td"+(i+1)).innerHTML;
            var leftPos = getRealLeft(viewableArray[i]+'Tab');
             leftPos += 'px';
             document.getElementById(viewableArray[i]+'Box').style.left = leftPos;
        }
        document.getElementById("td"+(viewableArray.length)).innerHTML = '<div id="'+id+'Tab" onmouseout="outTab('+"'"+id+"'"+');" onmouseover="overTab('+"'"+id+"'"+
        ');" onclick="toggleChat('+"'"+id+"'"+');" class="chattingTabOnline" title="'+id+'">'+name+'</div>';
        
        viewableArray[viewableArray.length]=id;
        //reconstruct the unviewable list  
        document.getElementById("hiddenMenu").innerHTML="";

         for(var i=0;i<unViewableArray.length;i++)
         {
         id=unViewableArray[i];
           if(id.length>22)
            {
                name = id.substring(0,23)+"...";
            }
            else
            {
                name=id;
            }
                document.getElementById("hiddenMenu").innerHTML += '<div id="'+id+'HiddenTab" onclick="viewHiddenTab('+"'"+id+"'"+');" class="hiddenChattingTabOnline" title="'+id+'">'+
                name+'</div>';
                           
                 // Added by Suma
                document.getElementById("hiddenMenu").style.display = "inline"
                
         }
    }
     else if(viewableArray.length == 0)
    {
     if(document.getElementById("td0")==null)
    {
    alert("Inside if");
        setPage();
    }
//new
if(navigator.appName == "Netscape")
    {
        document.getElementById("td0").style.display = "table-cell";
    }
     if(navigator.appName == "Microsoft Internet Explorer")
    {
	document.getElementById("td0").style.display = "inline";
	document.getElementById("divChattingBar").style.width = "1100px";
    }

document.getElementById("td0").innerHTML = '<div id="'+id+'Tab" onmouseout="outTab('+"'"+id+"'"+');" onmouseover="overTab('+"'"+id+"'"+
        ');" onclick="toggleChat('+"'"+id+"'"+');" class="chattingTabOnline" title="'+id+'">'+name+'</div>';

        viewableArray.unshift(id);
    }
    else
    { 
//new
if(navigator.appName == "Netscape")
        {
            document.getElementById("td"+(viewableArray.length)).style.display = "table-cell";
        }
         if(navigator.appName == "Microsoft Internet Explorer")
        {
            document.getElementById("td"+(viewableArray.length)).style.display = "inline";
	}

document.getElementById("td"+(viewableArray.length)).innerHTML = '<div id="'+id+'Tab" onmouseout="outTab('+"'"+id+"'"+');" onmouseover="overTab('+"'"+id+"'"+
        ');" onclick="toggleChat('+"'"+id+"'"+');" class="chattingTabOnline" title="'+id+'">'+name+'</div>';

        viewableArray[viewableArray.length]=id;
    } 
}
tabExists = false;
// added by hazem 12/1/2009
if(unViewableArray.length > 0)
{
 blinkChattingTab("rightArrow");
}

//new
JSFX_FloatDiv("hiddenMenu",document.getElementById("rightArrow").offsetLeft-1 ,window.length-226).floatIt();
}

function viewHiddenTab(id)
{

//get the unviewable tab no
var tdNo;
    for(var i=0;i<unViewableArray.length;i++)
    {
        if(unViewableArray[i]==id)
        {
            tdNo = i;
        }
    }
//put the first viewable tab in the unviewable menu
        unViewableArray.unshift(viewableArray[0]);
        document.getElementById(viewableArray[0]+"Tab").style.display = "none"; 
        document.getElementById(viewableArray[0]+"Box").style.display = "none"; 
        viewableArray.shift();
        tdNo++;
//shift the cell from the unviewable array
        for(var i=tdNo;i<(unViewableArray.length-1);i++)
        {       
            unViewableArray[i] = unViewableArray[i+1]; 
        }
        unViewableArray.pop();
//shift the tabs to the left to introduce the clicked one
         document.getElementById("td0").innerHTML += document.getElementById("td1").innerHTML;
         var leftPos = getRealLeft(viewableArray[0]+'Tab');
             leftPos += 'px';
             document.getElementById(viewableArray[0]+'Box').style.left = leftPos;
        for(var i=1;i<maxTabNo-1;i++)
        {        
            document.getElementById("td"+i).innerHTML = document.getElementById("td"+(i+1)).innerHTML;
             var leftPos = getRealLeft(viewableArray[i]+'Tab');
             leftPos += 'px';
             document.getElementById(viewableArray[i]+'Box').style.left = leftPos;
        }

         document.getElementById("td"+(maxTabNo-1)).innerHTML="";
//place the tab in the last td and make it visible

        document.getElementById("td"+(maxTabNo-1)).appendChild(document.getElementById(id+"Tab"));
        document.getElementById(id+"Tab").removeAttribute("style");
        viewableArray[viewableArray.length]=id;

//place the chat box for the tab

        var leftPos = getRealLeft(id+'Tab');
             leftPos += 'px';
             document.getElementById(id+'Box').style.left = leftPos;
        document.getElementById(id+'Box').style.display = "inline";
//reconstruct the unviewable list  
        document.getElementById("hiddenMenu").innerHTML="";

 for(var i=0;i<unViewableArray.length;i++)
 {
 id=unViewableArray[i];
   if(id.length>22)
    {
        name = id.substring(0,23)+"...";
    }
    else
    {
        name=id;
    }
        document.getElementById("hiddenMenu").innerHTML += '<div id="'+id+'HiddenTab" onclick="viewHiddenTab('+"'"+id+"'"+');" class="hiddenChattingTabOnline" title="'+id+'">'+
        name+'</div>';
        
 }
 
   /*for right arraow*/
document.getElementById("rightArrow").className = "tdRightArrow";
}

function getRealLeft(el){
xPos = document.getElementById(el).offsetLeft;
tempEl = document.getElementById(el).offsetParent;
while (tempEl != null) {
xPos += tempEl.offsetLeft;
tempEl = tempEl.offsetParent;
}
return xPos;
}

function getRealTop(el){
yPos = document.getElementById(el).offsetTop;
tempEl = document.getElementById(el).offsetParent;
while (tempEl != null) {
yPos += tempEl.offsetTop;
tempEl = tempEl.offsetParent;
}
return yPos;
}
//added by hazem 1/2/2009
function RmoveHighLight(id)
{
document.getElementById(id+"Tab").className = "overTab";

}
//end added by hazem
function createChatBox(id)
{
if(document.getElementById(id+"Box")==null)
{
// modified 1/2/2009
var _chattingBoxes = document.getElementById("chattingBoxes");
_chattingBoxes.innerHTML += '<div class="chattingBox" id="'+id+'Box" ><table><tr><td width="400"></td><td><div id="'+id+
'Min" class="minimizeChat" onclick="minChat('+"'"+id+"'"+');"/></td><td><div id="'+id+
'Close" class="closeChat" onclick="closeTab('+"'"+id+"'"+');" title="Close Chat" /></td></tr><tr><td colspan="3" >'+
'<div  id="'+id+'SendReceiveText" readonly="readOnly" style="text-align:center;overflow:auto;width:181px;height:190px ;#margin-right:6px;_margin-right:6px;margin-left:10px;_margin-left:3px;"></div>&nbsp;</td></tr>'+
'<tr><td colspan="3" ><input id="'+id+'SendText" style="padding: 7px; width: 125px; height: 15px;" type="text" onKeyPress="Check('+"'"+id+"'"+',event);" /><input id="'+id+
'SendButton" type="button" onmouseup="buttonUp('+"'"+id+"'"+');"   onclick="sendMSG('+"'"+id+"'"+');" onmousedown="buttonClick('+"'"+id+"'"+');" class="chatSendButton"/>&nbsp;</td></tr></table></div>';
 
 
 
 var leftPos = getRealLeft(id+'Tab');
 leftPos += 'px';
 document.getElementById(id+'Box').style.left = leftPos;
 }
 }

function minChat(id){
document.getElementById(id+'Box').style.display = "none";
}


function appearList()
{//1

    //document.getElementById("rightArrow").className = "tdRightArrow";
    if(document.getElementById("hiddenMenu").style.display == "none")
    { //2 
           document.getElementById("hiddenMenu").innerHTML="";  
           
         //Added by Suma, on 11/01/2009   
         if(unViewableArray.length == 0)  
         { //8    
           document.getElementById("hiddenMenu").style.display = "none";
         } //8
         else
         { //9
         
             for(var i=0;i<unViewableArray.length;i++)
             { //3
                   
                    id=unViewableArray[i];
                   if(id.length>22)
                    {//4
                        name = id.substring(0,23)+"...";
                    }//4
                    else
                    {//5
                        name=id;
                    }//5
                    document.getElementById("hiddenMenu").innerHTML += '<div id="'+id+'HiddenTab" onclick="viewHiddenTab('+"'"+id+"'"+');" class="hiddenChattingTabOnline" title="'+id+'">'+
                        name+'</div>';            
             } //3
         
        document.getElementById("hiddenMenu").style.display = "inline";    
        /*this is for your modification  this code added for that issue 1/2/2009*/
        document.getElementById("rightArrow").className = "tdRightArrow";

        } //9
        
    } //2
    
    else
    {//6
    
        document.getElementById("hiddenMenu").style.display = "none";
        // added by hazem 1/2/2009
        document.getElementById("rightArrow").className = "tdRightArrowBlink";
    }//6
    
}//1




function buttonClick(id)
{
document.getElementById(id+"SendButton").className = "chatSendButtonClicked";

}

function buttonUp(id)
{
document.getElementById(id+"SendButton").className = "chatSendButton";
}

// modified by hazem 18/1/2009
function closeApp(){

             
           
            cookieDelete();                            
            document.getElementById("divChattingBar").style.display = "none";
            document.getElementById("divContactList").style.display = "none";
            document.getElementById("hiddenMenu").style.display = "none";
            
            try
            {     
            //alert(interval);       
            clearInterval(interval);
           // clearInterval(no);            
            
            }
            catch(ex)
            {
            }
          //  });          
            
           
            

        }


        function cookieDelete() {
        var path="; path=/";
        if (document.cookie != document.cookie) {
        index = document.cookie.indexOf("Chat");

        } else {
        index = -1;
        }
        if (index == -1) {
        document.cookie="chat="+"; expires=Monday, 19-Aug-1996 05:00:00 GMT"+path;

        }

        } 

// end modified by hazem 

function closeTab(id)
{       
    CloseChat(id);    
    var tdNo;
    for(var i=0;i<viewableArray.length;i++)
    {
    
        if(viewableArray[i]==id)
        {
            tdNo = i;
            
        }
        
    }
    
    if(tdNo!=null)
        {
            
            if(tdNo==(viewableArray.length-1))
            {
                document.getElementById("td"+(viewableArray.length-1)).innerHTML = "";
                document.getElementById("chattingBoxes").removeChild(document.getElementById(id+"Box"));
        //new
                document.getElementById("td"+(viewableArray.length-1)).style.display = "none";
                viewableArray.pop();
            }
            
            else
            {
            
                document.getElementById("chattingBoxes").removeChild(document.getElementById(id+"Box"));
               
                if(tdNo==0)
                    {
                         document.getElementById("td0").removeChild(document.getElementById(id+"Tab"));
                            document.getElementById("td0").innerHTML += document.getElementById("td1").innerHTML;
                            viewableArray[0] = viewableArray[1];
                             var leftPos = getRealLeft(viewableArray[1]+'Tab');
                                 leftPos += 'px';
                                 document.getElementById(viewableArray[1]+'Box').style.left = leftPos;
                            //new
	                        if(viewableArray.length==1)
                             {      
                                 document.getElementById("td0").style.display = "none";
                             }                
	                    tdNo++;
                    }
                for(var i=tdNo;i<(viewableArray.length-1);i++)
                {      
                    document.getElementById("td"+i).innerHTML = document.getElementById("td"+(i+1)).innerHTML;
                    viewableArray[i] = viewableArray[i+1];
                     var leftPos = getRealLeft(viewableArray[i]+'Tab');
                     leftPos += 'px';
                     document.getElementById(viewableArray[i]+'Box').style.left = leftPos;
                }
                document.getElementById("td"+(viewableArray.length-1)).innerHTML = "";
                //new
	            document.getElementById("td"+(viewableArray.length-1)).style.display = "none";
	            viewableArray.pop();
        	    
        	    
        	    
            }
               //////////////////////////////////////////////////////////////////////////
               if(unViewableArray.length>0)
               {
               
                var newid=unViewableArray[0];           
             //place the tab in the last td and make it visible
	         //new
                    // // added by hazem 12/1/2009
	         
        	        //   document.getElementById("td"+(maxTabNo-1)).style.display = "inline";
        	        if(navigator.appName == "Netscape")
                        {
                             document.getElementById("td"+(maxTabNo-1)).style.display = "table-cell";
                        }
                         if(navigator.appName == "Microsoft Internet Explorer")
                        {
	                   document.getElementById("td"+(maxTabNo-1)).style.display = "inline";	                    
                        }
        	        
	           
                document.getElementById("td"+(maxTabNo-1)).appendChild(document.getElementById(newid+"Tab"));
               // alert(document.getElementById(newid+'Box'));
                 document.getElementById(newid+"Tab").removeAttribute("style");
                viewableArray[viewableArray.length]=newid; 
                
        //shift the cell from the unviewable array
                unViewableArray.shift();
        //place the chat box for the tab
                var leftPos = getRealLeft(newid+'Tab');              
                     leftPos += 'px';
                     document.getElementById(newid+'Box').style.left = leftPos;
                
                  document.getElementById(newid+'Box').style.display = "inline";
                  
        //if(isOnline == false)
        //    document.getElementById(id+"Tab").className = "chattingTabOffline";
        //else
        //    document.getElementById(id+"Tab").className = "chattingTabOnline";


         }
         
    }
 else  //exist in unvwiable array
    {
        //alert("else");
    
        for(var i=0;i<unViewableArray.length;i++)
            {
    
            if(unViewableArray[i]==id)
                {
                    tdNo = i;                
                }
        
            }
            document.getElementById("chattingBoxes").removeChild(document.getElementById(id+"Box"));
            document.getElementById("td0").removeChild(document.getElementById(id+"Tab"));
          //  alert(tdNo);
           //shift the cell from the unviewable array
            for(var i=tdNo;i<(unViewableArray.length-1);i++)
            {       
                unViewableArray[i] = unViewableArray[i+1]; 
            }
            unViewableArray.pop(); 
            
 
    }
 
 //reconstruct the unviewable list  
        document.getElementById("hiddenMenu").innerHTML="";

 for(var i=0;i<unViewableArray.length;i++)
 {
 id=unViewableArray[i];
   if(id.length>22)
    {
        name = id.substring(0,23)+"...";
    }
    else
    {
        name=id;
    }
        document.getElementById("hiddenMenu").innerHTML += '<div id="'+id+'HiddenTab" onclick="viewHiddenTab('+"'"+id+"'"+');" class="hiddenChattingTabOnline" title="'+id+'">'+
        name+'</div>';
        
 }
 
 // added by hazem 12/1/2009
 if(unViewableArray.length<=0)
 {
 document.getElementById("rightArrow").className = "tdRightArrow";
 }
 
    //Added by Suma, on 11/01/2009
if(unViewableArray.length == 0)
 {
     document.getElementById("hiddenMenu").style.display = "none";
 }
 
 //clearInterval(messages);
 //new
 JSFX_FloatDiv("hiddenMenu",document.getElementById("rightArrow").offsetLeft-1 ,window.length-226).floatIt();
    //////////////////////////////////////////////////////////////////////////
}

function blinkChattingTab(element)
{
if(element=="rightArrow")
{
document.getElementById(element).className = "tdRightArrowBlink";
}
else
{
document.getElementById(element).className = "blinkChattingTab";
}
}

function toggleChat(id)
{
if(document.getElementById(id+'Box').style.display == "none")
{
document.getElementById(id+'Box').style.display = "inline";
}
else
document.getElementById(id+'Box').style.display = "none";
}

function toggleContactList()
{
if(document.getElementById('divContactList').style.display == "none")
{
document.getElementById('divContactList').style.display = "inline";
document.getElementById('tdContactList').className = "tdContactListClicked";
}
else
{
document.getElementById('divContactList').style.display = "none";
document.getElementById('tdContactList').className = "tdContactList";
}
}

function overTab(id)
{
if(document.getElementById(id+"Tab").className == "chattingTabOnline")
    isOnline = true;
else if(document.getElementById(id+"Tab").className == "chattingTabOffline")
    isOnline = false;
document.getElementById(id+"Tab").className = "overTab";
}

function outTab(id)
{
if(isOnline == false)
    document.getElementById(id+"Tab").className = "chattingTabOffline";
else
    document.getElementById(id+"Tab").className = "chattingTabOnline";
}

// ]]>

var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function alertme()
{	
JSFX_FloatDiv("divContactList", 0,window.length-355).floatIt();
JSFX_FloatDiv("divChattingBar", 0,window.length-300).floatIt();
//new
JSFX_FloatDiv("hiddenMenu",document.getElementById("rightArrow").offsetLeft-1 ,window.length-226).floatIt();
}
window.onresize = alertme;

function JSFX_FloatDiv(id, sx, sy)
{
	var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
	var px = document.layers ? "" : "px";
	window[id + "_obj"] = el;
	if(d.layers)el.style=el;
	el.cx = el.sx = sx;el.cy = el.sy = sy;
	el.sP=function(x,y){this.style.left=x+px;this.style.top=y+px;};

	el.floatIt=function()
	{
		var pX, pY;

		pX = (this.sx >= 0) ? 0 : ns ? innerWidth : 
		document.documentElement && document.documentElement.clientWidth ? 
		document.documentElement.clientWidth : document.body.clientWidth;

		pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? 
		document.documentElement.scrollTop : document.body.scrollTop;
		if(this.sy<0) 
		pY += ns ? innerHeight : document.documentElement && document.documentElement.clientHeight ? 
		document.documentElement.clientHeight : document.body.clientHeight;
		this.cx += (pX + this.sx - this.cx)/8;this.cy += (pY + this.sy - this.cy)/8;
		this.sP(this.cx, this.cy);
		setTimeout(this.id + "_obj.floatIt()", 30);
	
	}
	return el;
}
if(document.getElementById("divContactList")){
JSFX_FloatDiv("divContactList", 0,window.length-355).floatIt();
}
if(document.getElementById("divChattingBar")){
JSFX_FloatDiv("divChattingBar", 0,window.length-300).floatIt();
}
