ï»¿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 bgImg = new Image();
var newsLoaded = false;
var imgContact = new Image();
var sc1 = new Image(); var sc2 = new Image(); var sc3 = new Image(); var sc4 = new Image();
var sc5 = new Image(); var sc6 = new Image(); var sc7 = new Image(); var sc8 = new Image();
var sc9 = new Image(); var sc10 = new Image(); var sc11 = new Image(); var sc12 = new Image();
var sc13 = new Image();
var allImgs = new Array();
var OV1; var OV2; var OV3;
var PR_1; var PR_2; var PR_3; var PR_4;
var allImgs = new Array();
var Index_Anim_Rond = 1;
var Timer_Show_Anim_Rond;
var Timer_Wait;

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);

function Init() {
bgImg.src = '/img/Predictive-Dialer-CTI-IVR2.jpg';
document.body.style.backgroundImage = "url('/img/Predictive-Dialer-CTI-IVR2.jpg')";
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";

document.getElementById('Mask_All').style.display = 'none';

/*
if (document.location.href.toUpperCase().indexOf("VOCALCOM.FR")>0) 
{
  var mainContent = document.getElementById("PLACE_MIDDLE_CONTENT_1");
  if (mainContent) 
  {
    mainContent.innerHTML = "<img alt='Inbound Outbound Multi-Channel Solutions for Call Center and Contacts Center.' src='/img/Inbound_Outbound_Call_Center_Solutions.jpg'>";
  }
}
else
{
*/

  var mainContent = document.getElementById("PLACE_MIDDLE_CONTENT_1");
  if (mainContent) 
  {
    if (document.location.href.toUpperCase().indexOf("VOCALCOM.FR")>0)
    {
       mainContent.innerHTML = "<object style=\"position:absolute; top:-1px;left:1px;border-top:1px solid #757575;border-right:1px solid #757575\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" height=291 width=671 VIEWASTEXT ID=\"Object2\"><param name=\"quality\" value=\"high\"><param name=\"menu\" value=\"false\"><param name=\"wmode\" value=\"transparent\"><param name=\"SRC\" value=\"/img/home_flash_fr.swf\"><embed id=\"Flash_Main_Anim\" style=\"position:absolute; top:1px;left:0px;\" src=\"/img/home_flash_fr.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" height=\"291\" width=\"671\"></embed><noembed></noembed></object>";
    }
    else
    {
       mainContent.innerHTML = "<object style=\"position:absolute; top:-1px;left:1px;border-top:1px solid #757575;border-right:1px solid #757575\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" height=291 width=671 VIEWASTEXT ID=\"Object2\"><param name=\"quality\" value=\"high\"><param name=\"menu\" value=\"false\"><param name=\"wmode\" value=\"transparent\"><param name=\"SRC\" value=\"/img/home_flash_us.swf\"><embed id=\"Flash_Main_Anim\" style=\"position:absolute; top:1px;left:0px;\" src=\"/img/home_flash_us.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" height=\"291\" width=\"671\"></embed><noembed></noembed></object>";
    }
  }
  
/*
}
*/


var infinity = document.getElementById("Infinity_Swf");
if (infinity) {
infinity.innerHTML += "<object  style=\"margin-top:9px;border-top:1px solid gray;\" 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/home_mini_flash.swf\"><embed style=\"margin-top:7px;border-top:1px solid gray;\" src=\"/img/home_mini_flash.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 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>';

}

function Open_Contact_From_Button()
{

/*
  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\');
*/

}

imgContact.src = "/img/acd-software.png";
sc1.src = "/img/scroll/up.gif"; sc2.src = "/img/scroll/down.gif"; sc3.src = "/img/scroll/cursor_t.gif";
sc4.src = "/img/scroll/cursor_bk.gif"; sc5.src = "/img/scroll/cursor_b.gif"; sc6.src = "/img/scroll/bar.gif";
sc7.src = "/img/scroll/left.gif"; sc8.src = "/img/scroll/right.gif"; sc9.src = "/img/scroll/cursor_hl.gif";
sc10.src = "/img/scroll/cursor_hr.gif"; sc11.src = "/img/scroll/cursor_hb.gif"; sc12.src = "/img/scroll/bar_h.gif";
sc13.src = "/img/scroll/bottom_right.gif";

var img = new Image(); img.src = "/img/asp-call-center.png"; allImgs.push(img);

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;
document.getElementById("ScrollLinks").appendChild(scrollLinks);
scrollLinks.RefreshSize();

var frmeteo = document.createElement('iframe')
frmeteo.style.display = 'none';
frmeteo.src = "/meteo.htm";
frmeteo.id = 'Frame_Meteo';
document.body.appendChild(frmeteo);


_tLoade = setInterval("LoadTimeout()", 500);
}

var count = 0;
function LoadTimeout()
{
	var now = new Date().getTime();
	if ((isNewVisit) && (now - loadTime < 10000)) return; //wait 10sec
	
	if (newsLoaded && bgImg.complete && imgContact.complete && sc1.complete
		&& sc2.complete && sc3.complete && sc4.complete && sc5.complete && sc6.complete && sc7.complete
		&& sc8.complete && sc9.complete && sc10.complete && sc11.complete && sc12.complete && sc13.complete
		&& sc14.complete && ((typeof(eventsLoaded )== "undefined") || eventsLoaded))
	{
		var allNewsOk = true;
		for (var i = 0; i < tabNews.length; i++)
		{
			if (!tabNews[i].complete) { allNewsOk = false; break; }
		}
		for (var i = 0; i < allImgs.length; i++)
		{
			if (!allImgs[i].complete) return false;
		}
		if (allNewsOk)
		{
			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;

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) {}
}

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 getAlphaImgStr(path, width, height) {
var arrayResult = new Array();
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("');");
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);
arrayResult.push(";\"");
}

if (!browserPngSupport){
arrayResult.push("></div>");
}
else{
arrayResult.push(">");
}
return arrayResult.join("");
}

___gbArrayMiddleDiv = new Array();

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.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(-1); 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('/img/img_styles/Fond_Haut_Popup.gif')  repeat"; td.noWrap= true;
td.align= 'left'; td.noBreak= true;
td.handlefor= 'DisplayAlertDiv'; td.className='Menu_Pop';
td.innerHTML= '<b> </b>';
var td = tr.insertCell(-1);
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(-1);
td.style.width = '100%'; td.style.height = '100%';
td.className= 'Main_Popup'; td.colSpan= 3;
td.style.borderRight= '#848C94 1px solid';
td.style.borderLeft= '#848C94 1px solid';
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="/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 aDiv = document.getElementById("DisplayAlertDiv");
var l = (document.body.clientWidth - aDiv.clientWidth) / 2;
var t = (document.body.clientHeight - aDiv.clientHeight) / 2;
aDiv.style.top = t; aDiv.style.left = l;
}