﻿var Timer_Menu;

function InitMenus()
{
var _t = VoIP_Call_Center_Software;

document.getElementById("c" + Culture).className = "link_language_selector_active";

var _m = new Array();

var o = new Object();o.alt  = _t("Dept Collection");                         o.text =  _t("Dept Collection");                          o.link = "/Voip-Predictive-Dialer.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = _t("Telemarketing");                            o.text =  _t("Telemarketing");                            o.link = "/Telemarketing-Software.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = _t("Appointement management");      o.text =  _t("Appointement management");                  o.link = "/Appointement-Management.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = _t("Web Customer Management");                   o.text =  _t("Web Customer Management");                  o.link = "/Web-Customer-Management.html";o.target = "";_m.push(o);

var o = new Object();o.alt  = "Web Based Call Center Solutions";                      o.text =  _t("Web Based Call Center");                    o.link = "/Call-Center-Software.html";o.target = "";  _m.push(o);
var o = new Object();o.alt  = "Predictive Dialer Software";                           o.text =  _t("Predictive Dialers");               o.link = "/Predictive-dialer-software.html";o.target = "";  _m.push(o);
var o = new Object();o.alt  = "Avaya CTI & Predictive dialing";                       o.text =  _t("Avaya CTI & Dialer");           o.link = "/Software-Call-Center-Avaya.html";o.target = "";  _m.push(o);
var o = new Object();o.alt  = "Home Based Call Center";                               o.text =  _t("Home Based Call Center");                   o.link = "/Advanced-Call-Center.html";o.target = "";  _m.push(o);
var o = new Object();o.alt  = "Service Relation Client & Centre d'appels internalisé";o.text =  _t("Customer Service");                         o.link = "/Contact-Center-Solutions.html";o.target = "";  _m.push(o);


var Menu_1 = getMenu(1, _m, 5, 5, "px", TestOver, TestOut);  Menu_1.id = "Menu_1";  document.getElementById("Div_Open_Menu_Tab").appendChild(Menu_1);
var _m = new Array();
var o = new Object();o.alt  = "Web Based Call Center Software";o.text =  _t("Hermes Net");o.link = "/Call-Center-Software.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "Predictive dialer software";o.text =  _t("Hermes Eagles");o.link = "/Predictive-dialer-software.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "Web Dynamique Contact Management";o.text =  _t("WebApproach");o.link = "/Sales-Web-Approach.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "ACD System ACD Software";o.text =  _t("OnXMedia");o.link = "/Cti-Acd-System.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "Video Call Center Solutions";o.text =  _t("Voice Vision");o.link = "/Video-Call-Center.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "Natural Speech Recognition";o.text =  _t("Natural Language");o.link = "/Voice-Recognition.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "Call Center Solutions";o.text =  _t("Hermes Pro");o.link = "/Advanced-Call-Center.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "Avaya Predictive dialer & Application";o.text =  _t("Hermes Fox");o.link = "/Software-Call-Center-Avaya.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "Computer telephony Integration";o.text =  _t("Centriphone Millenium");o.link = "/Voip-Contact-Center-Software.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "Call Recording Software";o.text =  _t("iRecorder");o.link = "/Call-Center-Recording.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "";o.text =  _t("Products Overview");o.link = "/Call-Center-Applications.html";o.target = "";_m.push(o);
var Menu_2 = getMenu(12, _m, 5, 5, "px",  TestOver, TestOut); Menu_2.id = "Menu_2"; document.getElementById("Div_Open_Menu_Tab").appendChild(Menu_2);
var _m = new Array();

var o = new Object();o.alt  = "Dialogic Software";o.text = _t("Dialogic");o.link = "/Dialogic.html";o.target = ""; _m.push(o);
var o = new Object();o.alt  = "Host Media Processing";o.text = _t("Host Media Processing - VoIP");o.link = "/Voip-Hmp-Software.html";o.target = "";   _m.push(o);
var o = new Object();o.alt  = "cti Avaya & Predictive dialer Avaya";o.text =  _t("Avaya");o.link = "/Avaya.html";o.target = ""; _m.push(o);
var o = new Object();o.alt  = "Asterisk VoIP";o.text =  _t("Asterisk");o.link = "/Asterisk.html";o.target = ""; _m.push(o);
var o = new Object();o.alt  = "Home Based Call Center";o.text = 'HomeShoring';o.link = "/Home-shoring.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "Call Center Headsets";o.text =  _t("Headsets");    o.link = "/Call-Center-Tools.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "Gateway VoIP";o.text = 'Gateway Voip & Video'; o.link = "/Voip-Gateway.html";o.target = "";_m.push(o);
var Menu_3 = getMenu(17, _m, 5, 5, "px", TestOver, TestOut); Menu_3.id = "Menu_3"; document.getElementById("Div_Open_Menu_Tab").appendChild(Menu_3);
var _m = new Array();
var o = new Object();o.alt  = "Vocalcom";o.text =  _t("Our Philosophy");o.link = "/Vocalcom.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "Vocal com";o.text =  _t("Partners");o.link = "/Contact-Center-Software.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "Vocal com";o.text =  _t("References");o.link = "/Hosted-Voip-Software.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "Vocalcom";o.text =  _t("Global Presence");o.link = "/Call-Center-Technologie.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "Centre d'appels Maroc";o.text =  _t("OffShore");o.link = "/Hosted-Voip-Solutions.html";o.target = "";_m.push(o);
var o = new Object();o.alt  = "vocalcom";o.text =  _t("Photos galery");o.link = "/Vocalcom-Applications.html";o.target = "";_m.push(o);
var Menu_4 = getMenu(24, _m, 5, 5, "px", TestOver, TestOut); Menu_4.id = "Menu_4"; Menu_4.style.display='none'; document.getElementById("Div_Open_Menu_Tab").appendChild(Menu_4);

}

function Open_Menu(N,Way)
{
if (!loaded) return;
if (document.getElementById("flash_place"))
{
if (Way) document.getElementById("flash_place").style.display='none'; else  document.getElementById("flash_place").style.display=''; 
}

if (document.getElementById("MediaplayerHN") && (N==1 || N==2) )
{
if (Way) document.getElementById("MediaplayerHN").style.display='none'; else  document.getElementById("MediaplayerHN").style.display=''; 
}

var nextMenuExist = true;
var menuIndex = 1;
while (nextMenuExist) { nextMenuExist = HiddeMenu("Menu_" + menuIndex++);}

if (!Way) { document.getElementById("Div_Open_Menu").style.display = 'none'; return; }
if (!document.getElementById("Menu_" + N)) return;
var LP = 0;
if (document.getElementById("Top_Menu"))
{
  LP = FindLeftEdge(document.getElementById("Top_Menu"));
}
else if (document.getElementById("Top_Menu2"))
{
  LP = FindLeftEdge(document.getElementById("Top_Menu2"));
}
document.getElementById("Div_Open_Menu").style.left = LP + 23 + (119 * (N-1)) + 'px' ; 
document.getElementById("Menu_" + N).style.display = '';
document.getElementById("Td_Div_Open_Menu").style.width = '220px'; 
document.getElementById("Div_Open_Menu").style.display = '';
}

function HiddeMenu(menu){ 
if (typeof(menu) == "string") menu = document.getElementById(menu);
if (!menu) return false;
var tb = menu.firstChild;
for (var i = 0; i < tb.rows.length; i++)
{
tb.rows[i].value = 0;
tb.rows[i].over = false;
tb.rows[i].cache.style.width = "0px";
tb.rows[i].cache.style.display = "none";
}

menu.style.display = "none";
return true;
}

var Default_deb_Moveable_Popup_H = 40;var Default_deb_Moveable_Popup_W = 40;
var deb_Moveable_Popup_H;var deb_Moveable_Popup_W;
var Default_fin_Moveable_Popup_H = 246;var Default_fin_Moveable_Popup_W = 301;
var fin_Moveable_Popup_H;var fin_Moveable_Popup_W;
var Default_deb_Moveable_Popup_T = 0;var Default_deb_Moveable_Popup_L = 0;
var deb_Moveable_Popup_T;var deb_Moveable_Popup_L;
var Default_fin_Moveable_Popup_T = 300;var Default_fin_Moveable_Popup_L = 300;
var fin_Moveable_Popup_T;var fin_Moveable_Popup_L;
var Default_Step_Moveable_Popup = 10;
var Step_Moveable_Popup; var Length_Moveable_Popup; var timer_Moveable_Popup;
var Moveable_Popup_Open = false;
var Moveable_Popup_Started = false;
var Moveable_Popup_Type_Open = '';

function Show_Moveable_Popup(SENS, ID, FCT_HANDLER, CONTAINER, NAME, L1, T1, L2, T2, W1, H1, W2, H2, STEP, BACKGROUND, ID_CONTENT)
{
if (!loaded) return;
if (SENS) {
if (document.getElementById(ID)) return;
if (ID == "PopContact")
{
	H2 = H2 + 55;
	L2 = 470;
	T2 = 150;
}

if (Moveable_Popup_Type_Open!='')  {
var TheDiv = document.getElementById(Moveable_Popup_Type_Open)
if (document.getElementById(TheDiv.getAttribute("ID_CONTENT"))) {
document.getElementById(TheDiv.getAttribute("ID_CONTENT")).style.display='none';
document.body.appendChild(document.getElementById(TheDiv.getAttribute("ID_CONTENT")));
}
document.getElementById(CONTAINER).removeChild(TheDiv);
}

if (L1) deb_Moveable_Popup_L = L1;else deb_Moveable_Popup_L = Default_deb_Moveable_Popup_L;
if (L2) fin_Moveable_Popup_L = L2;else fin_Moveable_Popup_L = Default_fin_Moveable_Popup_L;
if (T1) deb_Moveable_Popup_T = T1;else deb_Moveable_Popup_T = Default_deb_Moveable_Popup_T;
if (T2) fin_Moveable_Popup_T = T2;else fin_Moveable_Popup_T = Default_fin_Moveable_Popup_T;
if (W1) deb_Moveable_Popup_W = W1;else deb_Moveable_Popup_W = Default_deb_Moveable_Popup_W;
if (W2) fin_Moveable_Popup_W = W2;else fin_Moveable_Popup_W = Default_fin_Moveable_Popup_W;
if (H1) deb_Moveable_Popup_H = H1;else deb_Moveable_Popup_H = Default_deb_Moveable_Popup_H;
if (H2) fin_Moveable_Popup_H = H2;else fin_Moveable_Popup_H = Default_fin_Moveable_Popup_H;
if (STEP) Step_Moveable_Popup = STEP;else Step_Moveable_Popup  = Default_Step_Moveable_Popup;
Length_Moveable_Popup = Math.sqrt(Math.pow(deb_Moveable_Popup_L - fin_Moveable_Popup_L,2)+Math.pow( deb_Moveable_Popup_T - fin_Moveable_Popup_T,2))

Moveable_Popup_Started = true;

var div = document.createElement("div");
div.style.position= "absolute"; div.style.zIndex= 3000; div.id= ID;
div.style.border= "1px solid #8C8C8C";
div.style.top= deb_Moveable_Popup_T + 'px';
div.style.left= deb_Moveable_Popup_L + 'px';
div.style.width= deb_Moveable_Popup_W + 'px';
div.style.height= deb_Moveable_Popup_H + 'px';

div.setAttribute("L1",L1);div.setAttribute("T1",T1);div.setAttribute("L2",L2);div.setAttribute("T2",T2);
div.setAttribute("W1",W1);div.setAttribute("H1",H1);div.setAttribute("W2",W2);div.setAttribute("H2",H2);
div.setAttribute("STEP",STEP);div.setAttribute("ID_CONTENT",ID_CONTENT);div.setAttribute("CONTAINER",CONTAINER);

document.getElementById(CONTAINER).appendChild(div);
Moveable_Popup_Type_Open= ID;
}
else {
if (!Moveable_Popup_Open || Moveable_Popup_Started) return;
Moveable_Popup_Started = true;
var div = document.getElementById(ID);
deb_Moveable_Popup_L = div.getAttribute("L1");
deb_Moveable_Popup_T = div.getAttribute("T1");
fin_Moveable_Popup_L = div.getAttribute("L2");
fin_Moveable_Popup_T = div.getAttribute("T2");

deb_Moveable_Popup_W = div.getAttribute("W1");
fin_Moveable_Popup_W = div.getAttribute("W2");
deb_Moveable_Popup_H = div.getAttribute("H1");
fin_Moveable_Popup_H = div.getAttribute("H2");
Step_Moveable_Popup  = div.getAttribute("STEP");

var _idc = document.getElementById(div.getAttribute("ID_CONTENT"));
if (_idc) {
_idc.style.display='none';
document.body.appendChild(_idc);
}

Moveable_Popup_Type_Open = '';
if (div) {
div.innerHTML= '';
div.style.position= "absolute";
div.style.border= "1px solid #8C8C8C";
div.style.width= fin_Moveable_Popup_W + 'px';
div.style.height= fin_Moveable_Popup_H + 'px';
}
else return;
}

var timer_value_H; var timer_value_W; var timer_value_L; var timer_value_T;
var step_H = Number( ( fin_Moveable_Popup_H - deb_Moveable_Popup_H ) / Step_Moveable_Popup );
var step_W = Number( ( fin_Moveable_Popup_W - deb_Moveable_Popup_W ) / Step_Moveable_Popup );
var step_L = Number( ( fin_Moveable_Popup_L - deb_Moveable_Popup_L ) / Step_Moveable_Popup );
var step_T = Number( ( fin_Moveable_Popup_T - deb_Moveable_Popup_T ) / Step_Moveable_Popup );
if (!SENS)  {
step_H = -step_H;   step_W = -step_W;step_L = -step_L; step_T = -step_T;
timer_value_H = fin_Moveable_Popup_H;
timer_value_W = fin_Moveable_Popup_W;
timer_value_L = parseInt(div.style.left);
timer_value_T = parseInt(div.style.top);
}
else {
timer_value_H = Step_Moveable_Popup ;
timer_value_W = Step_Moveable_Popup ;
timer_value_L = deb_Moveable_Popup_L;
timer_value_T = deb_Moveable_Popup_T;
}

Show_Moveable_Popup_Timer(div,timer_value_W,timer_value_H,timer_value_L,timer_value_T,step_W,step_H,step_L,step_T,SENS,BACKGROUND, ID_CONTENT,div.getAttribute("CONTAINER"),FCT_HANDLER); 
}

function Show_Moveable_Popup_Timer(obj, W, H, L, T, sW, sH, sL, sT, SE, BACKGROUND, ID_CONTENT, CONTAINER, FCT_HANDLER) {
var New_W = parseInt(W + sW); var New_H = parseInt(H + sH); var New_L = parseInt(L + sL); var New_T = parseInt(T + sT);
if (SE) {
if (New_W>fin_Moveable_Popup_W) New_W=fin_Moveable_Popup_W;
if (New_H>fin_Moveable_Popup_H) New_H=fin_Moveable_Popup_H;
var delta = Math.sqrt(Math.pow(New_L - deb_Moveable_Popup_L,2)+Math.pow( New_T - deb_Moveable_Popup_T ,2))
if ( delta>=Length_Moveable_Popup ) {
obj.innerHTML = "<div style='position:absolute;top:0px;left:0px;z-index:1200;'>" + getAlphaImgStr(BACKGROUND, fin_Moveable_Popup_W, fin_Moveable_Popup_H) + "</div>";
obj.style.border = '';
obj.appendChild(document.getElementById(ID_CONTENT));
document.getElementById(ID_CONTENT).style.display= '';

obj.style.top= fin_Moveable_Popup_T;
obj.style.left= fin_Moveable_Popup_L;
Moveable_Popup_Open= true;
Moveable_Popup_Started= false;

if (FCT_HANDLER) {
if (typeof(FCT_HANDLER)=='function') {
FCT_HANDLER();
}
else{
eval(FCT_HANDLER);
}
}
return;
}
}
else{
var delta = Math.sqrt(Math.pow(New_L - deb_Moveable_Popup_L,2)+Math.pow( New_T - deb_Moveable_Popup_T ,2))
if (delta<20) {

try
{
document.getElementById(CONTAINER).removeChild(obj);
}
catch (e)
{
	obj.parentNode.removeChild(obj);
}
Moveable_Popup_Open = false;
Moveable_Popup_Started = false;

if (FCT_HANDLER) {
if (typeof(FCT_HANDLER)=='function') {

FCT_HANDLER();
}
else{
eval(FCT_HANDLER);
}
}
return;
}
}

obj.style.width= New_W + 'px';
obj.style.height= New_H + 'px';
obj.style.top= New_T + 'px';
obj.style.left= New_L + 'px';

timer_Moveable_Popup = setTimeout(function() { Show_Moveable_Popup_Timer(obj, New_W, New_H, New_L, New_T, sW, sH, sL, sT, SE, BACKGROUND, ID_CONTENT, CONTAINER,FCT_HANDLER); }, 2);
}


function After_Open_Contact() {
document.getElementById("Name").focus();
setTimeout("DisplayPageMask();",100);
}
function After_Close_Contact() {
var Mask = document.getElementById("Mask_All");
Mask.style.display='none';
}

function After_Open_ClientArea() {
setTimeout("DisplayPageMask();",100);
}
function After_Close_ClientArea() {
var Mask = document.getElementById("Mask_All");
Mask.style.display='none';
}

function DisplayPageMask()
{
var Mask = document.getElementById('Mask_All');
Mask.style.height = document.body.scrollHeight;
Mask.style.display='';
}

var old_field = 'Name';

function setNextFieldClick() {
var Check = Check_Phone(document.getElementById('Phone').value) + ( 10 * Check_Mail(document.getElementById('Email').value) ); 
var c = '#909090';
var p_c = document.getElementById('Phone_Error').style;
var e_c = document.getElementById('Email_Error').style;
var bt_d = document.getElementById('Send_Request_Contact');
switch (Check)
{
case 0:
p_c.color=c; e_c.color=c; bt_d.className='link_OK2_Disabled';
break;
case 1:
p_c.color=c; e_c.color=c; bt_d.className='link_OK2';
break;
case 2:
p_c.color='red'; e_c.color=c; bt_d.className='link_OK2_Disabled';
break;
case 10:
p_c.color=c; e_c.color=c; bt_d.className='link_OK2';
break;
case 20:
p_c.color=c; e_c.color='red'; bt_d.className='link_OK2_Disabled';
break;
case 11:
p_c.color=c; e_c.color=c; bt_d.className='link_OK2';
break;
case 12:
p_c.color='red'; e_c.color=c; bt_d.className='link_OK2';
break;
case 21:
p_c.color=c; e_c.color='red'; bt_d.className='link_OK2';
break;
case 22:
p_c.color='red'; e_c.color='red'; bt_d.className='link_OK2_Disabled';
break;
}
}

function setNextField(field,obj,key,sh) 
{
var Check = Check_Phone(document.getElementById('Phone').value) + ( 10 * Check_Mail(document.getElementById('Email').value) ); 

var c = '#909090';
var p_c = document.getElementById('Phone_Error').style;
var e_c = document.getElementById('Email_Error').style;
var bt_d = document.getElementById('Send_Request_Contact');
switch (Check)
{
case 0:
p_c.color=c; e_c.color=c; bt_d.className='link_OK2_Disabled';
break;
case 1:
p_c.color=c; e_c.color=c; bt_d.className='link_OK2';
break;
case 2:
p_c.color='red'; e_c.color=c; bt_d.className='link_OK2_Disabled';
break;
case 10:
p_c.color=c; e_c.color=c; bt_d.className='link_OK2';
break;
case 20:
p_c.color=c; e_c.color='red'; bt_d.className='link_OK2_Disabled';
break;
case 11:
p_c.color=c; e_c.color=c; bt_d.className='link_OK2';
break;
case 12:
p_c.color='red'; e_c.color=c; bt_d.className='link_OK2';
break;
case 21:
p_c.color=c; e_c.color='red'; bt_d.className='link_OK2';
break;
case 22:
p_c.color='red'; e_c.color='red'; bt_d.className='link_OK2_Disabled';
break;
}

if (key==9 || key==13 || key==40 || key==38) 
{
   if (field=='Message' && key==13) return;
   var Up_Down = true;
   if ((key==9 && sh) || key==38) Up_Down=true;
   if ((key==9 && !sh) || key==13 || key==40) Up_Down=false;
   
   obj.className="text_contact_off";
   var next_obj;
   if (field=='Name' && Up_Down) next_obj="Message";
   else if  (field=='Name' && !Up_Down) next_obj="Phone";
   else if (field=='Company' && Up_Down) next_obj="Email";
   else if  (field=='Company' && !Up_Down) next_obj="Country";
   else if (field=='Phone' && Up_Down) next_obj="Name";
   else if  (field=='Phone' && !Up_Down) next_obj="Email";
   else if (field=='Email' && Up_Down) next_obj="Phone";
   else if  (field=='Email' && !Up_Down) next_obj="Company";
   else if (field=='Country' && Up_Down) next_obj="Company";
   else if  (field=='Country' && !Up_Down) next_obj="Message";
   else if (field=='Message' && key==38) {next_obj="Country"; document.getElementById(next_obj).focus();}
   else if (field=='Message' && key==13) return;
   else if (field=='Message' && key==9) {next_obj="Name"; document.getElementById(next_obj).focus();}
   else next_obj="Name";
   
   document.getElementById(next_obj).className = "text_contact";
   if (key!=9) document.getElementById(next_obj).focus();
   if (key==9 && field=='Message') event.keyCode = 0;
   old_field=next_obj;
   return false;
}

}
function TestOver(index, alt) {}
function TestOut(index){}

function getMenu(startIndex, tab, incrUp, incrDesc, mode, fctHandlerOver, fctHandlerOut){
var div = document.createElement("div");
var table = document.createElement("table");
if (__isSafari) table.cellPadding = 1;
else table.cellPadding = 0;
table.cellSpacing = 0;

for (var i = 0; i < tab.length; i++) {
var itemNumber = startIndex + i;
var tr = table.insertRow(-1); 
tr.index = i; tr.style.cursor = "pointer";
tr.value = 0; tr.over = false;
tr.style.height='20px';
var td = tr.insertCell(-1);
td.style.paddingRight='3px';
td.style.width='1px'
var form = null;
if ((__isSafari) || (gecko)){
form = document.createElement("form");
form.action = tab[i].link;
}
else{
form = document.createElement("a");
form.href = tab[i].link;
}
form.target = tab[i].target;
form.style.display = "none";
tr.link = form;
td.appendChild(form);
var td = tr.insertCell(-1); td.noWrap = true;
if (__isSafari) td.style.paddingTop = "2px";
var txt = document.createElement("span"); txt.style.display = "inline"; txt.className = "MenuText";
var cache = document.createElement("div");
cache.style.position = "absolute"; cache.style.fontSize = "1px";
cache.style.width = "0%"; cache.style.height = "18px";
cache.style.zIndex = 0;
cache.style.background = "white";
txt.appendChild(cache);
tr.cache = cache;
var node = document.createElement("div");
node.innerHTML = '&nbsp;' + tab[i].text + '&nbsp;';
node.style.zIndex = 30;
node.style.position = "absolute";
if (tab[i].alt != "") {
node.alt = tab[i].alt; node.title = tab[i].alt;
}
txt.appendChild(node);
tr.node = node;
var node2 = document.createElement("div");
node2.innerHTML = '&nbsp;' + tab[i].text + '&nbsp;';
txt.appendChild(node2); node2.style.visibility = "hidden";
td.appendChild(txt);
var My_Timer_Alt;
tr.onmouseover = function(){
this.over = true;
if (fctHandlerOver != null) {
var My_self = this; 
My_Timer_Alt = setTimeout(function() { fctHandlerOver(startIndex + My_self.index,tab[My_self.index].alt); }, 1000);
}
if (this.value != 100){
var self = this;
if (this.timeout != null) clearTimeout(this.timeout);
this.timeout = setTimeout(function() { Animation(self, incrUp, incrDesc, mode); }, 10);
}
}

tr.onmouseout = function(){
this.over = false;
if (fctHandlerOut != null) {clearTimeout(My_Timer_Alt) ; fctHandlerOut(startIndex + this.index);}
if (this.value !=0){
var self = this;
if (this.timeout != null) clearTimeout(this.timeout);
this.timeout = setTimeout(function() { Animation(self, incrUp, incrDesc, mode); }, 10);
}
}

tr.onclick = function(){
if ((__isSafari) || (gecko)) this.link.submit();
else this.link.click();
}
}
div.appendChild(table);div.style.zIndex = 3000;return div;
}

function Animation(tr, incrUp, incrDesc, mode){
var totalWidth = tr.node.clientWidth;
if ((totalWidth == 0) && (tr.value != 0)){
tr.cache.style.width = "0px";
tr.value = 0;
}

if (mode == "%"){
if (tr.over){
if (tr.value < 100){
tr.value += incrUp;
var w = (totalWidth * tr.value) / 100;
tr.cache.style.width = w + "px";
if (tr.timeout != null) clearTimeout(tr.timeout);
tr.timeout = setTimeout(function() { Animation(tr, incrUp, incrDesc); }, 10);
}
}
else{
if (tr.value > 0){
tr.value -= incrDesc;
var w = (totalWidth * tr.value) / 100;
tr.cache.style.width = w + "px";
if (tr.timeout != null) clearTimeout(tr.timeout);
tr.timeout = setTimeout(function() { Animation(tr, incrUp, incrDesc); }, 10);
}
}
}
else{
if (tr.over){
if (tr.value < totalWidth){
tr.cache.style.display = "";
tr.value += incrUp;
tr.cache.style.width = tr.value + "px";
if (tr.timeout != null) clearTimeout(tr.timeout);
tr.timeout = setTimeout(function() { Animation(tr, incrUp, incrDesc); }, 10);
}
}
else{
if (tr.value > 0){
tr.value -= incrDesc;
tr.cache.style.width = tr.value + "px";
if (tr.timeout != null) clearTimeout(tr.timeout);
tr.timeout = setTimeout(function() { Animation(tr, incrUp, incrDesc); }, 10);
}}}}