var Scrolling_Content;
var Actual_Scroll = 1;
var panel_Scroll;
var panel_Meet;
var Defil_Middle = 1;
var Defil_Max = 5;
var panel_Awards;
var panel_Products;
var allImgs = new Array();

var OV1; var OV2; var OV3;
var PR_1; var PR_2; var PR_3; var PR_4;

var Index_Anim_Rond = 1;
var Timer_Show_Anim_Rond;
var Timer_Wait;
var _tLoade = null;
var Application_Sel = "";

if (ie5) document.write ('<link rel="stylesheet" type="text/css" href="/styles/IE.css"	rel="stylesheet" title="UserStyle">')
else document.write ('<link rel="stylesheet" type="text/css" href="/styles/FF.css"	rel="stylesheet" title="UserStyle">')

Save_Referrer(document.referrer);
var bgImage = new Image(); 
var mainImg = null;

function Init() {

affdate();
if (document.getElementById("placeforaffdate")) document.getElementById("placeforaffdate").parentNode.parentNode.parentNode.style.width="460px";
if (document.getElementById("Place_Count_News")) LoadNews();
if (document.getElementById("Zone_Partenaire")) LoadEvents();
InitMenus();
Init_Scroll(); 
loaded=true;

document.getElementById('Mask_All').style.filter = "alpha(opacity=65)";
document.getElementById('Mask_All').style.opacity = "0.6";
document.getElementById('Mask_All').style.KhtmlOpacity = "0.6";
document.getElementById('Mask_All').style.MozOpacity = "0.6";


var frmeteo = document.createElement('iframe')
frmeteo.style.display = 'none';
frmeteo.src = "/meteo.htm";
frmeteo.id = 'Frame_Meteo';
var div = document.getElementById("meteo_div");
if (div) div.appendChild(frmeteo);
else document.body.appendChild(frmeteo);

document.getElementById('Mask_All').style.display = 'none';

var lks = document.getElementById("ScrollLinks");
if (lks) {
var scrollLinks = new ScrollDiv("auto", "auto");
scrollLinks.style.position = "relative";
scrollLinks.style.width = "218px"; scrollLinks.style.height = "227px";
scrollLinks.appendChild(document.getElementById("Call_Center_List_Table"));
scrollLinks.style.zIndex = 1000;
lks.appendChild(scrollLinks);
scrollLinks.RefreshSize();
}

var log = document.getElementById("Move_Logo");
if (log) {
log.innerHTML = "<object  style=\"margin-top:13px;margin-left:24px\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" height=56 width=\"223\" VIEWASTEXT ID=\"Object1\"><param name=\"quality\" value=\"high\"><param name=\"menu\" value=\"false\"><param name=\"wmode\" value=\"transparent\"><param name=\"SRC\" value=\"/img/logo.swf\"><embed style=\"margin-top:7px;border-top:1px solid gray;\" src=\"/img/logo.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" height=\"57\" width=\"223\"></embed><noembed></noembed></object>"
}

var dC = document.getElementById("DivContact");
if (dC) {
//dC.innerHTML = '<img onclick="Show_Moveable_Popup(true, \'PopContact\', After_Open_Contact, \'main\', \'POPUP_CONTACT\', 723, 83, 625, 111, 108, 26, 331, 363, 12, \'/img/acd-software.png\', \'Content_Table_Contact\');" 	src="/img/contact_red1.png" style="position:relative;left:-125px;top:0px" height=28 width=100>';

 if (typeof(flName) == "undefined") flName = '/img/NousContacter.swf';
 dC.innerHTML = '<div style="position:absolute;top:3;left:-125;z-index:2;width:91;height:20;background-color:red;filter:alpha(opacity=0);-moz-opacity:0;opacity:0;" onclick="Show_Moveable_Popup(true, \'PopContact\', After_Open_Contact, \'main\', \'POPUP_CONTACT\', 720, 90, 535, 111, 108, 26, 331, 363, 12, \'/img/acd-software.png\', \'Content_Table_Contact\');"></div><object style="position:relative;top:3;left:-125;z-index:0;width:91;height:20" align=absmiddle classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" height="20" width="91" VIEWASTEXT><param name="quality" value="high"><param name="menu" value="false"><param name="SRC" value="' + flName + '"><param name="wmode" value="transparent"><embed src="' + flName + '" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" height="20" width="91"></embed><noembed></noembed></object>';

}

bgImage.src = "/img/auto-dialers-software.png";
var img = new Image(); img.src = "/img/asp-call-center.png"; allImgs.push(img);

if ((Application_Sel == "CallCenterTools") || (Application_Sel == "VoipGateway")){
var img = new Image(); img.src = "/img/tromb.png"; allImgs.push(img);
var img = new Image(); img.src = "/img/tromb_on.png"; allImgs.push(img);
var img = new Image(); img.src = "/img/tromb_r.png"; allImgs.push(img);
}
if (Application_Sel == "CallCenterTools"){
var img = new Image(); img.src = "/img/automatic-dialing.jpg"; allImgs.push(img);
}
if (Application_Sel == "VoipGateway"){
var img = new Image(); img.src = "/img/gateway-Voip.jpg"; allImgs.push(img);
}

_tLoade = setInterval("TestLoading()", 1);
}

function TestLoading()
{
	if (bgImage.complete && (mainImg == null || mainImg.complete) && ((typeof(eventsLoaded )== "undefined") || eventsLoaded))
	{
		for (var i = 0; i < allImgs.length; i++)
		{
			if (!allImgs[i].complete) return false;
		}
		clearInterval(_tLoade);
		var loading = document.getElementById("DIV_LOADING");
		if (loading) {loading.style.display = "none"; loading.innerHTML = ""; }
		document.body.style.overflow = "auto";
		return true;
	}
	return false;
}

var old_top_xmedia ; var old_obj_xmedia = null; var Old_Company_Part;
var Number_Of_Page_Product = 0;
var Current_Page = 0;
var scrollDiv;

var Over_Scroll = false;

function Change_Screen_Appli(n) {
document.getElementById(Application_Sel).style.background = "url('../img/" + Application_Sel + n + ".png')  no-repeat left";
}
var Panel_Stopped=false;
function Init_Scroll() {
try{
panel_Awards = new Panel("panel_1", abspath);
panel_Awards.SetWidth(211);
panel_Awards.SetHeight(25);
panel_Awards.SetAutoScroll(true);
panel_Awards.SetSize(2);
panel_Awards.SetStyle('c');
panel_Awards.Display(' ' + VoIP_Call_Center_Software('Partners'));
panel_Awards.SetColor("#baff00");
panel_Awards.AddTo(document.getElementById("Awards"));
}
catch (e) {}

try {
panel_Meet = new Panel("panel_3", abspath);
panel_Meet.SetWidth(211);
panel_Meet.SetHeight(25);
panel_Meet.SetAutoScroll(true);
panel_Meet.SetSize(2);
panel_Meet.SetStyle('c');
if (document.getElementById("Meet_US")) {
panel_Meet.Display(' ' + VoIP_Call_Center_Software('Upcoming Events'));
panel_Meet.AddTo(document.getElementById("Meet_US"));
panel_Meet.SetColor("#baff00");
panel_Meet.content.style.zIndex = 1000;
panel_Meet.SetSpeed(4);
}
}
catch (e) {}
}

function CheckTabOver(N) {
if (!loaded) return;
var Title; var Page;
if (N==1) {
OV1.className = 'OVER_1'; OV2.className = 'OVER_2_OFF'; OV3.className = 'OVER_3_OFF'; 
}
else if(N==2) {
OV1.className = 'OVER_1_OFF'; OV2.className = 'OVER_2'; OV3.className = 'OVER_3_OFF';  
}
else if (N==3) {
OV1.className = 'OVER_1_OFF'; OV2.className = 'OVER_2_OFF'; OV3.className = 'OVER_3';  
}
}

var open_P_X; var Timer_Mappe; var Type_Mappe = true;

function Show_Anim_Rond(fct,evt) {
if (!browserPngSupport)  {
if (fct) eval(fct);
return;
}

if (Index_Anim_Rond!=1) return;
Index_Anim_Rond = 1;
var obj = document.getElementById("Anim_Rond"); obj.style.display='';

if (evt) {
obj.style.left = evt.clientX-21;
obj.style.top = evt.clientY-21;
}
else {
obj.style.left = window.event.clientX-21;
obj.style.top = window.event.clientY-21;
}

Tick_Show_Anim_Rond(obj,fct);
}

function Tick_Show_Anim_Rond(obj,fct) {
obj.className = "Anim_Rond_" + Index_Anim_Rond;
Index_Anim_Rond += 1;
if (Index_Anim_Rond<7) {
Timer_Show_Anim_Rond = setTimeout(function() {Tick_Show_Anim_Rond(obj,fct);},(Index_Anim_Rond*2));
}
else {
if (fct) eval(fct);
Index_Anim_Rond = 1;
obj.style.display='none';
}
}

function Display_Meteo() {


var FrameMeteo = document.getElementById("Frame_Meteo").contentWindow;
for (var i=1; i<10 ; i++) {
if (FrameMeteo.document.getElementById("meteo"+i)) {
t = FrameMeteo.document.getElementById("meteo"+i).innerHTML.toUpperCase();
tN = FrameMeteo.document.getElementById("meteo"+i).innerHTML;

if (t.indexOf('NEW YORK')>0) 
{d = t.indexOf("<A");f = t.indexOf(">",d);f1 = t.indexOf("</A>",f);}
else
{d = t.indexOf("<A");f = t.indexOf(">",d);f1 = t.indexOf(" ",f);}

var V = tN.substr(f+1,f1-f-1);
if (V.indexOf('Montr')>=0) V = 'Montréal';

// V = V.replace('?'&eacute;');

document.getElementById("Meteo_City_"+i).innerHTML = V;
d = t.indexOf("<A",f1);f = t.indexOf(">",d);f1 = t.indexOf("</A>",f);
d = t.indexOf("<A",f1);f = t.indexOf(">",d);f1 = t.indexOf("</A>",f);
var m = tN.substr(f+1,f1-f-1);

/*
m = m.replace('http://www.meteofrance.com/img/picto/atm/mf/','/img/meteo/');
m = m.replace('.gif', '.png');
m = m.replace('height=20' , 'height=36');
m = m.replace('width=25' , 'width=40');
m = m.replace('height="20"' , 'height=36');
m = m.replace('width="25"' , 'width=40');
*/

document.getElementById("Meteo_Sky_"+i).innerHTML = m;
d = t.indexOf("<A",f1);f = t.indexOf(">",d);f1 = t.indexOf("</A>",f);
document.getElementById("Meteo_Temp_"+i).innerHTML =  tN.substr(f+1,f1-f-1);
}
else { break; }
}
}

function affdate() {

aujourdhui = new Date();
var aujourdhuiDay =  aujourdhui.getDate()  ; if (aujourdhuiDay<10) aujourdhuiDay='0' + aujourdhuiDay;
var aujourdhuiMonth =  aujourdhui.getMonth() + 1 ; if (aujourdhuiMonth<10) aujourdhuiMonth='0' + aujourdhuiMonth;
var aujourdhuiYear =  aujourdhui.getYear()  ;
if (!ie5) aujourdhuiYear += 1900;
var aujourdhuiHours = aujourdhui.getHours()  ; if (aujourdhuiHours<10) aujourdhuiHours='0' + aujourdhuiHours;
var aujourdhuiMinute = aujourdhui.getMinutes() ; if (aujourdhuiMinute<10) aujourdhuiMinute='0' + aujourdhuiMinute;
var aujourdhuiSecond = aujourdhui.getSeconds() ; if (aujourdhuiSecond<10) aujourdhuiSecond='0' + aujourdhuiSecond;

if (Culture=='EN') {
document.getElementById("placeforaffdate").innerHTML = aujourdhuiMonth + '-' + aujourdhuiDay + '-' + aujourdhuiYear + "<br>" + aujourdhuiHours + ':' + aujourdhuiMinute + ':' + aujourdhuiSecond ;
}
else {
document.getElementById("placeforaffdate").innerHTML = aujourdhuiDay + '/' + aujourdhuiMonth + '/' + aujourdhuiYear + "<br>" + aujourdhuiHours + ':' + aujourdhuiMinute + ':' + aujourdhuiSecond ;
}
setTimeout(function () {affdate();},1000);
}

var B_Client_Area = false;
function Show_Client_Area() {
var obj = document.getElementById("Client_Area");
if(B_Client_Area)  {
obj.style.display='none';
document.getElementById("Open_Client").src = "../img/open.gif";
}
else {
obj.style.display='';
document.getElementById("Open_Client").src = "../img/close.gif";
}
B_Client_Area = !B_Client_Area;
}

function getAlphaImgStr(path, width, height, handlerFor, cursor, id, onclick, swapImg) {
var arrayResult = new Array();
if ((swapImg) && (swapImg != "")){
arrayResult.push("<div style=\"cursor:pointer;width:" + width + ";height:" + height + ";\" onmouseover=\"changeAlphaImg(this.firstChild, '" + swapImg + "');\" onmouseout=\"changeAlphaImg(this.firstChild, '" + path + "');\"");
if ((onclick) && (onclick != "")) {
arrayResult.push(" onclick=\""); arrayResult.push(onclick); arrayResult.push("\"");
}
if ((id) && (id != "")){
arrayResult.push(" id=\""); arrayResult.push(id); arrayResult.push("\"");
}
arrayResult.push(">");
}

if (!browserPngSupport){
arrayResult.push("<div style=\"width:"); arrayResult.push(width);
arrayResult.push(";height:"); arrayResult.push(height);
arrayResult.push(";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale enabled=true src='"); arrayResult.push(path); arrayResult.push("');");
if ((cursor) && (cursor != "")){
arrayResult.push("cursor:"); arrayResult.push(cursor);
}
arrayResult.push("\"");
}
else{
arrayResult.push("<img src=\""); arrayResult.push(path); arrayResult.push("\"");
arrayResult.push(" style=\"width:"); arrayResult.push(width); arrayResult.push(";height:"); arrayResult.push(height);
if ((cursor) && (cursor != "")){
arrayResult.push(";cursor:"); arrayResult.push(cursor);
}
arrayResult.push(";\"");
}

if ((handlerFor) && (handlerFor != "")){
arrayResult.push(" handlefor=\""); arrayResult.push(handlerFor); arrayResult.push("\"");
}

if (!browserPngSupport){
arrayResult.push("></div>");
}
else{
arrayResult.push(">");
}

if ((swapImg) && (swapImg != "")){
arrayResult.push("</div>");
}
return arrayResult.join("");
}
___gbArrayMiddleDiv = new Array();
function AddMiddleDiv(div, position, topMinimum){
if (typeof(div) != "string") div = div.id;
var exist = false;
for (var i = 0; i < ___gbArrayMiddleDiv.length; i++){
if (___gbArrayMiddleDiv[i].id == div){
exist = true;
break;
}
}

if (!exist) {
var obj = new Object(); obj.id = div;
obj.position = position;
obj.miniTop = topMinimum;
___gbArrayMiddleDiv.push(obj);
}

if (typeof(window.onscroll) != "function"){
window.onscroll = OnBodyScroll;
}
OnBodyScroll();
}

function OnBodyScroll(){
for (var i = 0; i < ___gbArrayMiddleDiv.length; i++){
var div = document.getElementById(___gbArrayMiddleDiv[i].id);
var top = 0;
if (___gbArrayMiddleDiv[i].position == "top"){
top = document.body.scrollTop;
}
else if (___gbArrayMiddleDiv[i].position == "bottom"){
top = (document.body.clientHeight - div.clientHeight) + document.body.scrollTop;
}
else {
top = ((document.body.clientHeight - div.clientHeight) / 2) + document.body.scrollTop;
}

if (top < ___gbArrayMiddleDiv[i].miniTop) div.style.display = "none";
else { div.style.top = top; div.style.display = ""; }
}
}

function Alert(message){
var path_to_image = "";
var z_index_needed = 60010;	

if (!document.getElementById("DisplayAlertDiv")) {
var Div = document.createElement("div");
Div.style.position = 'absolute';
Div.id = 'DisplayAlertDiv';
Div.style.zIndex = z_index_needed;
Div.style.position = 'absolute';
Div.style.width = '380pt';
Div.style.height = '50pt';
Div.className= 'MovePopup';

var DomMainTable = document.createElement("table");
DomMainTable.style.width = '100%';
DomMainTable.style.height = '100%';
DomMainTable.cellPadding= 0;
DomMainTable.cellSpacing= 0;
DomMainTable.style.backgroundColor= "black";
var tr = DomMainTable.insertRow(0);
tr.style.height = '18px';
var td = tr.insertCell(0);
td.style.width = '1px';
td.innerHTML = '<IMG src="' + path_to_image + '../img/img_styles/deb_popup.gif">';
var td = tr.insertCell(1);
td.style.paddingLeft = '3px';
td.style.width= '100%';
td.style.height= '18px';
td.style.background = "url('" + path_to_image + "../img/img_styles/Fond_Haut_Popup.gif')  repeat";
td.noWrap= true;
td.align= 'left';
td.noBreak= true;
td.className= 'MovePopup';
td.handlefor= 'DisplayAlertDiv';
td.className='Menu_Pop';
td.innerHTML= '<b> </b>';
var td = tr.insertCell(2);
td.style.width= '18px';
td.style.height= '16px';
td.style.cursor= 'hand';
td.innerHTML= '<IMG src="' + path_to_image + '../img/img_styles/Close_Popup.gif">';
td.onclick= function (e){
document.body.removeChild(document.getElementById('DisplayIframeAlertDiv'));
document.body.removeChild(document.getElementById('DisplayAlertDiv'));
};

var tr = DomMainTable.insertRow(1);
var td = tr.insertCell(0);
td.style.width = '100%';
td.style.height = '100%';
td.className= 'Main_Popup';
td.style.borderRight= '#848C94 1px solid';
td.style.borderLeft= '#848C94 1px solid';
td.colSpan= 3;
td.align= 'center';
td.vAlign= 'middle';
td.noWrap= true;
var cont = '<TABLE border=0 width=100% cellpadding=4 border=0><TR><td width=36 valign=middle><Img src="' + path_to_image + '../img/img_styles/Alert.gif"></td><TD width=100% valign=middle style="color:#FF7F31;font-family:verdana,tahoma;font-size:9pt">' + message + '</TD>';
cont += '<td  valign=middle align=right><A href="#" onclick="document.body.removeChild(document.getElementById(\'DisplayIframeAlertDiv\'));document.body.removeChild(document.getElementById(\'DisplayAlertDiv\'));"	 class="link_OK2">OK</A>&nbsp;&nbsp;</td></tr></TABLE>';
td.innerHTML= cont; 

Div.appendChild(DomMainTable);
document.body.appendChild(Div);

var Iframe = document.createElement("iframe");
Iframe.style.position = 'absolute';
Iframe.id = 'DisplayIframeAlertDiv';
Iframe.style.zIndex = z_index_needed-1;
Iframe.frameBorder= 0;
Iframe.border= 0;
Iframe.src= 'blank_black.htm';
Iframe.width = "100%";
Iframe.height = "100%";
Iframe.style.top= '0px';
Iframe.style.left= '0px';
Iframe.style.filter = "alpha(opacity=50)";
Iframe.style.opacity = "0.5";
Iframe.style.KhtmlOpacity = "0.5";
Iframe.style.MozOpacity = "0.5";
document.body.appendChild(Iframe);
}
var l = (document.body.clientWidth - document.getElementById("DisplayAlertDiv").clientWidth) / 2;
var t = (document.body.clientHeight - document.getElementById("DisplayAlertDiv").clientHeight) / 2;
document.getElementById("DisplayAlertDiv").style.top = t;
document.getElementById("DisplayAlertDiv").style.left = l;	  
}

var Timer_Text_WorldWide;

function Defil_TextWorld(state){
Timer_Text_WorldWide = setTimeout(function () {TimerTextWorld(document.getElementById("Text_WorldWide"),state);},10);
}


function TimerTextWorld(obj,se){
var t = parseInt(obj.style.top);
if (t<-300) {obj.style.top='-300px';return}
if (t>0){obj.style.top='0px';return}
if (se) t -= 2; else t +=2;
obj.style.top = t +'px';
Timer_Text_WorldWide = setTimeout(function () {TimerTextWorld(obj,se);},1);
}

function Create_Small_Menu(tm,im,w,h){
var obj = document.createElement("div");
obj.id = 'Small_Menu';
obj.style.left = '730px'
obj.style.position = "absolute";
obj.style.verticalAlign = 'bottom';
obj.innerHTML	 = getAlphaImgStr(im, w, h, '', '', '', '', '') ;
var table = document.createElement("table");
table.cellPadding = 0;
table.cellSpacing = 0;
table.style.verticalAlign = "bottom";
table.style.marginTop = '123px'
table.style.marginLeft = '25px'
table.style.position = "absolute"; 
table.height = '68px';
table.style.top="1px"; table.style.left ="1px";
table.border=0;
var tr = table.insertRow(-1);
var td = tr.insertCell(-1);
td.style.height = "24px";
td.innerHTML = "<a class=Link_SmallMenuT href='#TOP'>" + VoIP_Call_Center_Software("Top page") + "</a>";
var tr = table.insertRow(-1);
var td = tr.insertCell(-1);
td.style.height = "24px";
td.innerHTML = "<a class=Link_SmallMenuP href='javascript:history.back()'>" + VoIP_Call_Center_Software("Back") +  "</a>";
var tr = table.insertRow(-1);
var td = tr.insertCell(-1);
td.style.height = "24px";
td.innerHTML = "<a class=Link_SmallMenuH href='/'>" + VoIP_Call_Center_Software("Home Page") +  "</a>";
obj.appendChild(table);
var div = document.createElement('div')
div.className = 'clearer';
div.innerHTML = '&nbsp;&nbsp;'
obj.appendChild(div);
document.getElementById("main").appendChild(obj);
AddMiddleDiv("Small_Menu", "middle", tm);
}

function Create_Small_Menu_Standard(tm,im,w,h){
var obj = document.createElement("div");
obj.id = 'Small_Menu';
obj.style.left = '730px'
obj.style.position = "absolute";
obj.style.verticalAlign = 'bottom';
obj.innerHTML	 = getAlphaImgStr(im, w, h, '', '', '', '', '') ;
var table = document.createElement("table");
table.cellPadding = 0;
table.cellSpacing = 0;
table.style.verticalAlign = "bottom";
table.style.marginTop = '10px'
table.style.marginLeft = '15px'
table.style.position = "absolute"; 
table.height = '68px';
table.style.top="1px"; table.style.left ="1px";
table.border=0;
var tr = table.insertRow(-1);
var td = tr.insertCell(-1);
td.style.height = "24px";
td.innerHTML = "<a class=Link_SmallMenuT href='#TOP'>" + VoIP_Call_Center_Software("Top page") + "</a>";
var tr = table.insertRow(-1);
var td = tr.insertCell(-1);
td.style.height = "24px";
td.innerHTML = "<a class=Link_SmallMenuP href='javascript:history.back()'>" + VoIP_Call_Center_Software("Back") +  "</a>";
var tr = table.insertRow(-1);
var td = tr.insertCell(-1);
td.style.height = "24px";
td.innerHTML = "<a class=Link_SmallMenuH href='/'>" + VoIP_Call_Center_Software("Home Page") +  "</a>";
obj.appendChild(table);
var div = document.createElement('div')
div.className = 'clearer';
div.innerHTML = '&nbsp;&nbsp;'
obj.appendChild(div);
document.getElementById("main").appendChild(obj);
AddMiddleDiv("Small_Menu", "middle", tm);
}

function disp_tr(obj,N){
var t = obj.parentNode;	
for (var i = 0; i < t.rows.length; i++){
if (t.rows[i].onclick=='undefined' || t.rows[i].onclick==null){
t.rows[i].style.display='none';
}
}

var t = obj.parentNode;	
for (var i = 0; i < t.rows.length; i++){
if (t.rows[i]==obj){
for (var z=0; z<N; z++){
if (t.rows[i+z+1]){
if (t.rows[i+z+1].style.display=='none') {t.rows[i+z+1].style.display='';} else {t.rows[i+z+1].style.display='none';}
}
}
return;
}
}
}

function Call_Center_List(dir){
var d  = document.getElementById("Call_Center_List_Table");
var t = d.style.top;
var nb = document.getElementById("Call_Center_List_Table").rows.length;
var max = (nb-2) * 20;

if (dir){
if ( -parseInt(t)<max ){
d.style.top	= parseInt(t) - 20 + "px";
}
else{
return;
}
}
else{
if ( parseInt(t)<=0){
d.style.top	= parseInt(t) + 20 + "px";
}
else{
return;
}
}
}
