function element(id)
{
return document.getElementById(id);
}
function get_available_space()
{
var width = -1, height = -1;
if (window.innerWidth > 0)
width = window.innerWidth;
if (width == -1 && document.documentElement)
if (document.documentElement.clientWidth > 0)
width = document.documentElement.clientWidth;
if (width == -1 && document.body)
if (document.body.clientWidth > 0)
width = document.body.clientWidth;
if (window.innerHeight > 0)
height = window.innerHeight;
if (height == -1 && document.documentElement)
if (document.documentElement.clientHeight > 0)
height = document.documentElement.clientHeight;
if (height == -1 && document.body)
if (document.body.clientHeight > 0)
height = document.body.clientHeight;
if (width == -1)
width = 770;
if (height == -1)
height = 500;
if (width < 640)
width = 640;
if (height < 480)
height = 480;
return new Array(width, height);
}
function get_pos(obj)
{
if (typeof obj == "string")
obj = document.getElementById(obj);
var cur_left = 0, cur_top = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
cur_left += obj.offsetLeft
cur_top += obj.offsetTop
obj = obj.offsetParent;
}
}
else if (obj.x && obj.y)
{
cur_left += obj.x;
cur_top += obj.y;
}
return new Array(cur_left, cur_top);
}
function get_pos_x(obj)
{
var pos_array = get_pos(obj);
return pos_array[0];
}
function get_pos_y(obj)
{
var pos_array = get_pos(obj);
return pos_array[1];
}
function is_email(str)
{
if (!str)
return false;
var reg1 = /(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/;
var reg2 = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
if (!(!reg1.test(str) && reg2.test(str)))
return false;
return true;
}
function n(n)
{
var dec = 2;
if (arguments.length > 1)
dec = arguments[1];
var let_nulls = false;
if (arguments.length > 2)
let_nulls = true;
var r = '';
base = '0123456789.-';
var x = n + ' ';
for (var i = 0; i < x.length - 1; i ++)
if (base.indexOf(x.substring(i, i + 1)) > -1)
r = r + x.substring(i, i + 1);
if (r.length > 0)
{
r ++; r --;
r += ' ';
r = r.substring(0, r.length - 1);
if (r.indexOf('.') == -1)
r += '.';
for (var i = -1; i < dec; i ++)
r += '0';
var xc = ((+r.indexOf('.')) + (+dec) + (+1));
if (r.substring(xc, xc + 1) < 5)
r = r.substring(0, r.indexOf('.') + (+dec) + (+1));
else
{
var ls = 1;
for (var i = 0; i < dec; i ++)
ls = ls / 10;
r = ((+r.substring(0, r.indexOf('.') + (+dec) + (+1))) + (+ls));
r += ' ';
if (r.indexOf('.') == -1)
r = r.substring(0, r.length - 1) + '.';
else
r = r.substring(0, r.length - 1);
for (var i = 0; i < dec; i ++)
r += '0';
r = r.substring(0, r.indexOf('.') + (+dec) + (+1));
}
if (r.substring(0, 1) == ".")
r = '0' + r;
}
var r_offnull = r;
r_offnull = str_replace('.', '', r_offnull);
r_offnull = str_replace('0', '', r_offnull);
if (!let_nulls && !r_offnull.length)
r = '';
return r;
}
function n_int(i)
{
i = n(i);
i = i + ' ';
i = i.substring(0, i.indexOf('.'));
return i;
}
function background()
{
var space = get_available_space();
this.width = space[0];
this.height = space[1];
element("background").style.width = this.width + "px";
element("background").style.height = this.height + "px";
}
var content = new Array();
var all_content_loaded = false;
function bone()
{
var space = get_available_space();
this.width = space[0];
this.height = space[1];
this.center = n_int(this.width / 2);
if (this.center < 460)
this.center = 460;
var page_id = Map.hierarchy[Map.page][0].toLowerCase();
if (Map.subpage > 0)
page_id += "_" + Map.hierarchy[Map.page][Map.subpage].toLowerCase();
page_id = str_replace(" ", "_", page_id);
var out = "";
out += '
';
out += '

';
out += '
';
out += '';
out += '' + content["uht__" + Dictionary.language + "__topleft_bubble"] + ' | ';
out += '
';
out += '
';
out += '
';
out += '';
out += '
';
out += '';
out += '';
out += '';
out += '';
out += ' | ';
out += '';
out += ' ' + content["uht__" + Dictionary.language + "__topcenter_bubble"] + ' ';
out += ' | ';
out += ' | ';
out += ' ';
out += ' ';
out += ' | ';
out += '
';
out += '
';
out += '
';
out += '';
out += '
' + content["uht__" + Dictionary.language + "__topright_bubble"] + '
';
out += '
';
out += '';
out += '
';
out += '
';
out += '
';
out += '';
out += ' | ';
out += ' | ';
out += ' | ';
out += '
';
out += '
';
out += '
';
out += '
';
out += '
';
out += '
';
out += '';
out += '' + content["uht__" + Dictionary.language + "__clientbox"] + ' | ';
out += '
';
out += '';
out += ' | ';
out += '
';
out += '
';
out += '
';
out += '
';
out += '
';
out += '
';
out += '
';
out += '
';
out += '
';
out += "
";
out += '
';
out += '';
out += ' | ';
out += ' | ';
out += ' | ';
out += '
';
out += '
';
out += "
";
out += '';
out += "
";
out += '

';
out += '

';
out += '

';
out += "
";
out += '
';
out += '
';
out += '
';
out += '
';
out += '
';
out += '
';
out += '';
out += '';
out += '';
out += '';
out += '
';
element("background").innerHTML = out;
opacity("tc_bubble_content", 100);
}
function dictionary(init_lang)
{
if (init_lang != "fr" && init_lang != "hu")
init_lang = "en";
this.language = init_lang;
this.languages = new Array();
this.languages["en"] = 0;
this.languages["fr"] = 1;
this.languages["hu"] = 2;
this.update = function(lang)
{
if (!all_content_loaded)
setTimeout("Dictionary.update('" + lang + "');", 150);
else
{
if (lang != this.language)
{
this.language = lang;
if (MainMenu)
MainMenu.switchLanguage();
var page_id = Map.hierarchy[Map.page][0].toLowerCase();
if (Map.subpage > 0)
page_id += "_" + Map.hierarchy[Map.page][Map.subpage].toLowerCase();
page_id = str_replace(" ", "_", page_id);
if (Map.page == 0)
document.title = "UHT";
else if (Map.subpage == 0)
document.title = this.get("title_" + Map.hierarchy[Map.page][0]) + " @ UHT";
else
document.title = this.get("title_" + Map.hierarchy[Map.page][0]) + " - " + this.get("title_" + Map.hierarchy[Map.page][Map.subpage]) + " @ UHT";
var out = "";
out += 'opacity("tl_bubble_content", {TiMe});';
out += 'opacity("tc_bubble_content", {TiMe});';
out += 'opacity("tr_bubble_content", {TiMe});';
out += 'opacity("content", {TiMe});';
out += 'opacity("subscribe_content", {TiMe});';
out += 'opacity("clientbox_content", {TiMe});';
var counter = 0;
for (var i = 100; i > 7; i -= 7)
{
setTimeout(str_replace("{TiMe}", i, out), counter * 25);
counter ++;
}
var out2 = "";
out2 += 'element("tl_bubble_content").innerHTML = content["uht__' + this.language + '__topleft_bubble"];';
out2 += 'element("tc_bubble_content").innerHTML = content["uht__' + this.language + '__topcenter_bubble"];';
out2 += 'element("tr_bubble_content").innerHTML = content["uht__' + this.language + '__topright_bubble"];';
out2 += 'element("content").innerHTML = content["uht__' + this.language + '__page_' + page_id + '"];';
out2 += 'element("subscribe_content").innerHTML = content["uht__' + this.language + '__subscribe"];';
out2 += 'element("clientbox_content").innerHTML = content["uht__' + this.language + '__clientbox"];';
out2 += 'element("knowmore_table").style.background = \'url(image/subscribe/broschure_' + this.language + '.gif)\';';
if (this.language == 'hu')
{
out2 += 'element("knowmore_content").innerHTML = \'' + this.get("download_brochure") + '\';';
}
else
{
out2 += 'element("knowmore_content").innerHTML = \'' + this.get("download_brochure") + '\';';
}
setTimeout(out2, counter * 25);
counter ++;
for (var i = 2; i <= 93; i += 7)
{
setTimeout(str_replace("{TiMe}", i, out), counter * 25);
counter ++;
}
for (var i = 1; i < Map.hierarchy.length - 1; i ++)
for (var ii = 1; ii < Map.hierarchy[i].length; ii ++)
element("submenu_title_image_" + i + "_" + ii).src = "image/text.php?text=" + escape(Dictionary.get(Map.hierarchy[i][ii])) + "&color=868686&size=10";
}
}
}
this.get = function(key, lang)
{
if (!lang || this.languages[lang] == undefined)
lang = this.language;
if (vocubulary[key] == undefined)
return key;
var result = vocubulary[key][this.languages[lang]];
if (result == undefined || result == "")
return vocubulary[key][0];
return result;
}
var vocubulary = new Array();
// en = (fr, hu)
vocubulary["HOME"] = new Array("HOME", "ACCUEIL", "KEZDŐLAP");
vocubulary["Home"] = new Array("Home", "Accueil", "Kezdőlap");
vocubulary["AGENCY"] = new Array("AGENCY", "AGENCE", "ÜGYNÖKSÉG");
vocubulary["Agency"] = new Array("Agency", "Agence", "Ügynökség");
vocubulary["Mission"] = new Array("Mission", "Mission", "Küldetés");
vocubulary["Team"] = new Array("Team", "Équipe", "Csapat");
vocubulary["News and Insights"] = new Array("News and Insights", "News and Insights", "News and Insights");
vocubulary["Jobs"] = new Array("Jobs", "Jobs", "Állások");
vocubulary["SERVICES"] = new Array("SERVICES", "METIERS", "SZOLGÁLTATÁSOK");
vocubulary["Services"] = new Array("Services", "Métiers", "Szolgáltatások");
vocubulary["Web strategy"] = new Array("Web strategy", "Web strategy", "Internet-stratégia");
vocubulary["Web design"] = new Array("Web design", "Web design", "Tervezés a webre");
vocubulary["Web development"] = new Array("Web development", "Web development", "Webfejlesztés");
vocubulary["Web marketing"] = new Array("Web marketing", "Web marketing", "Webmarketing");
vocubulary["SOLUTIONS"] = new Array("SOLUTIONS", "SOLUTIONS", "MEGOLDÁSOK");
vocubulary["Solutions"] = new Array("Solutions", "Solutions", "Megoldások");
vocubulary["The Green Gate"] = new Array("The Green Gate", "Green Gate", "A Green Gate");
vocubulary["REFERENCES"] = new Array("REFERENCES", "REFERENCES", "REFERENCIÁK");
vocubulary["References"] = new Array("References", "Références", "Referenciák");
vocubulary["List of clients"] = new Array("List of clients", "Liste de clients", "Ügyfeleink");
vocubulary["Showroom"] = new Array("Showroom", "Showroom", "Bemutatóterem");
vocubulary["CONTACTS"] = new Array("CONTACTS", "CONTACTS", "KAPCSOLAT");
vocubulary["Contacts"] = new Array("Contacts", "Contacts", "Kapcsolat");
vocubulary["title_Agency"] = new Array("Agency", "Agence", "Ügynökség");
vocubulary["title_Mission"] = new Array("Mission", "Mission", "Küldetés");
vocubulary["title_Team"] = new Array("Team", "Équipe", "Csapat");
vocubulary["title_News and Insights"] = new Array("News and Insights", "News and Insights", "News and Insights");
vocubulary["title_Jobs"] = new Array("Jobs", "Jobs", "Állások");
vocubulary["title_Services"] = new Array("Services", "Métiers", "Szolgáltatások");
vocubulary["title_Web strategy"] = new Array("Web strategy", "Web strategy", "Internet-stratégia");
vocubulary["title_Web design"] = new Array("Web design", "Web design", "Tervezés a webre");
vocubulary["title_Web development"] = new Array("Web development", "Web development", "Webfejlesztés");
vocubulary["title_Web marketing"] = new Array("Web marketing", "Web marketing", "Webmarketing");
vocubulary["title_Solutions"] = new Array("Solutions", "Solutions", "Megoldások");
vocubulary["title_The Green Gate"] = new Array("The Green Gate", "Green Gate", "A Green Gate");
vocubulary["title_References"] = new Array("References", "Références", "Referenciák");
vocubulary["title_List of clients"] = new Array("List of clients", "Liste de clients", "Ügyfeleink");
vocubulary["title_Showroom"] = new Array("Showroom", "Showroom", "Bemutatóterem");
vocubulary["title_Contacts"] = new Array("Contacts", "Contacts", "Kapcsolat");
vocubulary["invalid_email"] = new Array("Your e-mail address is invalid", "Votre adresse email est invalide", "Érvénytelen e-mail cím!");
vocubulary["invalid_email_desc"] = new Array("Please provide a valid E-mail address to receive UHT News and Insights.", "Merci d'indiquer une adresse email valide pour recevoir UHT News and Insights", "Kérem, adjon meg egy érvényes e-mail címet, hogy az UHT híreket és tudósításokat elküldhessük Önnek.");
vocubulary["mandatory_firstname"] = new Array("First name is mandatory", "Le prénom est obligatoire", "Kérem, adja meg keresztnevét!");
vocubulary["mandatory_firstname_desc"] = new Array("At least a first name is necessary to welcome you in our mails.", "Au moins le prénom est requis pour pouvoir vous saluer dans nos emails", "Legalább a keresztnév megadása szükséges, hogy leveleinkben köszönthessük Önt.");
vocubulary["download_brochure"] = new Array("Download brochure", "Télécharger la brochure", "Brosúra letöltése");
}
function lock_alert()
{
var tmp_space = get_available_space();
this.width = tmp_space[0];
this.height = tmp_space[1];
this.locked = false;
this.todo = "";
document.write("");
document.write("");
document.write( "
");
document.write("
");
this.align = function()
{
var tmp_space = get_available_space();
this.width = tmp_space[0];
this.height = tmp_space[1];
element("alert_lock").style.width = this.width + "px";
element("alert_lock").style.height = this.height + "px";
element("alert_panel").style.left = n_int(this.width / 2 - 170) + "px";
element("alert_panel").style.top = n_int(this.height / 2 - 80) + "px";
}
this.show = function(title, message, todo)
{
this.locked = true;
this.todo = todo;
if (!todo)
this.todo = "";
this.align();
if (!title)
title = "";
else
title = "" + title + "

";
if (!message)
message = "";
else
message += "
";
opacity("alert_lock", 50);
element("alert_lock").style.display = "block";
element("alert_panel").style.display = "block";
element("alert_message").innerHTML = title + message;
element("lock_alert_button").focus();
}
this.unlock = function()
{
element("alert_lock").style.display = "none";
element("alert_panel").style.display = "none";
this.locked = false;
element("lock_alert_button").blur();
setTimeout(this.todo, 100);
}
}
function main_menu()
{
var out = "";
var inid = new Array(0, 0, 0, 0, 0, 0);
inid[Map.page] = 1;
this.submenu_status = new Array(0, 0, 0, 0, 0);
this.submenu_order = new Array(0, new Array(0, 4, 3, 2, 1), new Array(0, 3, 4, 2, 1), new Array(0, 2, 3, 4, 1), new Array(0, 1, 2, 3, 4));
out += '';
out += '';
out += ' | ';
out += ' | ';
for (var i = 1; i < Map.hierarchy.length - 1; i ++)
{
out += ' | ';
out += ' | ';
}
out += ' | ';
out += '
';
out += '
';
element("menu_holder").innerHTML = out;
for (var i = 1; i < (Map.hierarchy.length - 1); i ++)
{
out = '';
out += '';
out += '';
out += '';
out += '';
out += ' | ';
out += ' | ';
out += ' | ';
out += ' ';
out += ' ';
out += '';
out += '';
out += ' | ';
out += '';
for (var ii = 1; ii < Map.hierarchy[i].length; ii ++)
{
if (ii > 1)
out += '';
out += '';
}
out += ' ';
out += ' | ';
out += ' | ';
out += ' ';
out += ' ';
out += ' | ';
out += '
';
out += '
';
element("drop_menu_" + i).innerHTML = out;
element("drop_menu_" + i).style.top = (159 - Map.hierarchy[i].length * 24) + "px";
}
this.submenuShow = function(id)
{
this.submenu_status[id] = 97;
opacity("drop_menu_" + id, 97);
element("drop_menu_" + id).style.display = "block";
for (var i = 1; i < (Map.hierarchy.length - 1); i ++)
element("drop_menu_" + i).style.zIndex = str_replace(" ", "", "11" + " " + this.submenu_order[id][i]);
}
this.submenuOff = function(id)
{
if (id == (Map.length - 1))
return;
this.submenu_status[id] = 87;
opacity("drop_menu_" + id, 87);
setTimeout("MainMenu.submenuOffTimer(" + id + ");", 23);
}
this.submenuOffTimer = function(id)
{
if (this.submenu_status[id] != 97)
{
this.submenu_status[id] -= 2;
if (this.submenu_status[id] < 85)
this.submenu_status[id] --;
if (this.submenu_status[id] < 70)
this.submenu_status[id] --;
if (this.submenu_status[id] < 50)
this.submenu_status[id] --;
if (this.submenu_status[id] < 30)
this.submenu_status[id] --;
if (this.submenu_status[id] <= 0)
{
this.submenu_status[id] = 0;
element("drop_menu_" + id).style.display = "none";
}
else
{
opacity("drop_menu_" + id, this.submenu_status[id]);
setTimeout("MainMenu.submenuOffTimer(" + id + ");", 23);
}
}
}
this.realign = function()
{
var width = get_pos_x("menu_aligner") - get_pos_x("menu_item_0") - 1;
element("menu_holder").style.left = (451 - 248 - width - 0) + "px";
for (var i = 2; i < (Map.hierarchy.length - 1); i ++)
element("drop_menu_" + i).style.left = (get_pos_x("menu_item_" + i) - get_pos_x("central") - 5) + "px";
}
this.switchLanguage = function()
{
var ind = new Array(0, 0, 0, 0, 0, 0);
ind[Map.page] = 1;
var subtitle = Dictionary.get(Map.hierarchy[Map.page][Map.subpage]);
if (Map.subpage == 0)
subtitle = "";
var out = "";
out += "element('map_title').src = 'image/text.php?text=' + escape(Dictionary.get(Map.hierarchy[Map.page][0].toUpperCase())) + '&color=6c9f0f';";
out += "element('map_subtitle').src = 'image/text.php?text=' + escape('" + subtitle + "') + '&color=888888';";
out += 'element("menu_item_0").src = "image/main_menu_item.php?text=' + escape(Dictionary.get(Map.hierarchy[0][0])) + '&edge=left&locked=' + ind[0] + '&off=1"; ';
for (var i = 1; i < (Map.hierarchy.length - 1); i ++)
out += 'element("menu_item_' + i + '").src = "image/main_menu_item.php?text=' + escape(Dictionary.get(Map.hierarchy[i][0])) + '&locked=' + ind[i] + '&off=1"; ';
out += 'element("menu_item_' + (Map.hierarchy.length - 1) + '").src = "image/main_menu_item.php?text=' + escape(Dictionary.get(Map.hierarchy[(Map.hierarchy.length - 1)][0])) + '&edge=right&locked=' + ind[(Map.hierarchy.length - 1)] + '&off=1"; ';
setTimeout(out, 30 * 7);
var counter = 0;
for (var i = 100; i > 0; i -= 3)
{
setTimeout('opacity("menu_holder", ' + i + '); opacity("map_title", ' + i + '); opacity("map_subtitle", ' + i + ');', counter * 7);
counter ++;
}
for (var i = 3; i <= 100; i += 3)
{
setTimeout('opacity("menu_holder", ' + i + '); opacity("map_title", ' + i + '); opacity("map_subtitle", ' + i + ');', counter * 7);
counter ++;
}
setTimeout('MainMenu.realign();', 36 * 37);
setTimeout('MainMenu.realign();', 42 * 37);
setTimeout('MainMenu.realign();', 50 * 37);
setTimeout('MainMenu.realign();', 60 * 37);
setTimeout('MainMenu.realign();', 80 * 37);
setTimeout('MainMenu.realign();', counter * 7);
setTimeout('MainMenu.realign();', 120 * 37);
setTimeout('MainMenu.realign();', 200 * 37);
setTimeout('MainMenu.realign();', 300 * 37);
}
this.lock = function(item, subitem)
{
if (!all_content_loaded)
setTimeout("MainMenu.lock(" + item + ", " + subitem + ");", 150);
else
{
if (Map.page != 0 && item == 0)
{
Map.page = item;
Map.subpage = subitem;
element('clientbox_bubble').style.display = 'block';
element('tl_bubble').style.display = 'block';
element('tc_bubble').style.display = 'block';
element('tr_bubble').style.display = 'block';
element('central').style.top = '92px';
element('content_bubble').style.width = '502px';
}
else if (Map.page == 0 && item != 0)
{
Map.page = item;
Map.subpage = subitem;
if (Map.page != Map.hierarchy.length - 1)
MainMenu.submenuOff(Map.page);
element('clientbox_bubble').style.display = 'none';
element('tl_bubble').style.display = 'none';
element('tc_bubble').style.display = 'none';
element('tr_bubble').style.display = 'none';
element('central').style.top = '2px';
element('content_bubble').style.width = '687px';
}
if (item == 0)
{
element('content').style.paddingLeft = '0px';
element('content').style.paddingRight = '12px';
}
else
{
element('content').style.paddingLeft = '12px';
element('content').style.paddingRight = '12px';
}
if (!subitem)
subitem = 0;
if (item == 1 && subitem == 0)
subitem = 1;
if (item == 3 && subitem == 0)
subitem = 1;
if (item == 4 && subitem == 0)
subitem = 1;
Map.page = item;
Map.subpage = subitem;
for (var i = 0; i < Map.hierarchy.length; i ++)
{
if (Map.page == i)
element("menu_item_" + i).src = str_replace("&locked=0&", "&locked=1&", element("menu_item_" + i).src);
else
element("menu_item_" + i).src = str_replace("&locked=1&", "&locked=0&", element("menu_item_" + i).src);
}
if (Map.page == 0)
{
document.title = "UHT";
urchinTracker('/JS/' + Dictionary.language);
}
else if (Map.subpage == 0)
{
document.title = Dictionary.get("title_" + Map.hierarchy[Map.page][0]) + " @ UHT";
urchinTracker('/JS/' + Dictionary.language + '/' + Map.hierarchy[Map.page][0]);
}
else
{
document.title = Dictionary.get("title_" + Map.hierarchy[Map.page][0]) + " - " + Dictionary.get("title_" + Map.hierarchy[Map.page][Map.subpage]) + " @ UHT";
urchinTracker('/JS/' + Dictionary.language + '/' + Map.hierarchy[Map.page][0] + '/' + Map.hierarchy[Map.page][Map.subpage]);
}
var subtitle = Dictionary.get(Map.hierarchy[Map.page][Map.subpage]);
if (Map.subpage == 0)
subtitle = "";
var page_id = Map.hierarchy[Map.page][0].toLowerCase();
if (Map.subpage > 0)
page_id += "_" + Map.hierarchy[Map.page][Map.subpage].toLowerCase();
page_id = str_replace(" ", "_", page_id);
var counter = 0;
for (var i = 100; i > 0; i -= 3)
{
setTimeout('opacity("map_title", ' + i + '); opacity("map_subtitle", ' + i + '); opacity("content", ' + i + ');', counter * 7);
counter ++;
}
var out = "";
out += "element('map_title').src = 'image/text.php?text=' + escape(Dictionary.get(Map.hierarchy[Map.page][0].toUpperCase())) + '&color=6c9f0f&size=10';";
out += "element('map_subtitle').src = 'image/text.php?text=' + escape('" + subtitle + "') + '&color=868686&size=10';";
out += 'element("content").innerHTML = content["uht__' + Dictionary.language + '__page_' + page_id + '"];';
setTimeout(out, 30 * 7);
for (var i = 3; i <= 100; i += 3)
{
setTimeout('opacity("map_title", ' + i + '); opacity("map_subtitle", ' + i + '); opacity("content", ' + i + ');', counter * 7);
counter ++;
}
}
}
opacity("menu_holder", 2);
for (var i = 2; i <= 100; i += 2)
setTimeout('opacity("menu_holder", ' + i + ');', i * 7);
}
function map(init_page, init_subpage)
{
this.hierarchy = new Array();
this.hierarchy[this.hierarchy.length] = new Array("Home");
// this.hierarchy[this.hierarchy.length] = new Array("Agency", "Mission", "Team", "News and Insights", "Jobs");
this.hierarchy[this.hierarchy.length] = new Array("Agency", "Mission", "News and Insights", "Jobs");
this.hierarchy[this.hierarchy.length] = new Array("Services", "Web strategy", "Web design", "Web development", "Web marketing");
this.hierarchy[this.hierarchy.length] = new Array("Solutions", "The Green Gate");
this.hierarchy[this.hierarchy.length] = new Array("References", "List of clients", "Showroom");
this.hierarchy[this.hierarchy.length] = new Array("Contacts");
if (!init_page)
init_page = 0;
if (!init_subpage)
init_subpage = 0;
this.page = init_page;
this.subpage = init_subpage;
}
function opacity(id, percent)
{
percent = n_int(percent);
element(id).style.filter = "alpha(opacity=" + percent + ")"; // IE
element(id).style.MozOpacity = (percent / 100); // Mozilla
element(id).style.opacity = (percent / 100); // Opera 9
}
var clientbox_images = new Array("airfrance", "bnpparibas", "ccifh", "francetelecom", "legrand", "match");
var last_shown_clientbox_image = 1;
function client_rotator()
{
if (Map.page == 0)
{
var image = rnd(0, (clientbox_images.length - 1));
while (image == last_shown_clientbox_image)
image = rnd(0, (clientbox_images.length - 1));
last_shown_clientbox_image = image;
for (var i = 97; i > 0; i --)
setTimeout("element('client_rotate_div').style.height = '" + i + "px';", (97 - i) * 7);
setTimeout("element('client_rotate_div').innerHTML = '
';", 686);
for (var i = 1; i < 99; i ++)
setTimeout("element('client_rotate_div').style.height = '" + i + "px';", (i * 7 + (+700)));
}
setTimeout("client_rotator();", 5000);
}
var Background, Dictionary, Bone, MainMenu, Map, showroom_choice = 0;
var central_bubble_open = false;
function start(init_redirect)
{
if (init_redirect)
{
location.href = init_redirect;
return;
}
Map = new map(index_init_page, index_init_subpage);
Background = new background;
Dictionary = new dictionary(index_init_lang);
image_cache();
}
function start_after_cache()
{
element("beg_loading").style.display = "none";
Bone = new bone();
MainMenu = new main_menu();
if (Map.page != 0)
{
element('clientbox_bubble').style.display = 'none';
element('tl_bubble').style.display = 'none';
element('tc_bubble').style.display = 'none';
element('tr_bubble').style.display = 'none';
element('central').style.top = '2px';
element('content_bubble').style.width = '687px';
}
if (Map.page == 4 && Map.subpage == 2)
{
element('content').style.paddingLeft = '0px';
element('content').style.paddingRight = '0px';
}
else if (Map.page != 0)
{
element('content').style.paddingLeft = '12px';
element('content').style.paddingRight = '12px';
}
client_rotator();
element("content_cache_form").submit();
}
function subscribe()
{
if (!element('subscribe_first').value || element('subscribe_first').value == "First Name")
{
LockAlert.show(Dictionary.get('mandatory_firstname'), Dictionary.get('mandatory_firstname_desc'), "element('subscribe_first').focus();");
return false;
}
else if (!is_email(element('subscribe_mail').value))
{
LockAlert.show(Dictionary.get('invalid_email'), Dictionary.get('invalid_email_desc'), "element('subscribe_mail').focus();");
return false;
}
element('subscribe_switch_0').style.display = 'none';
element('subscribe_switch_1').style.display = 'block';
var first_name = element('subscribe_first').value;
var last_name = element('subscribe_last').value;
if (first_name == "First Name")
first_name = "";
if (last_name == "Last Name")
last_name = "";
var addr = 'mail_list/subscribe.php?mail=' + escape(element('subscribe_mail').value);
addr += '&name_last=' + escape(last_name);
addr += '&name_first=' + escape(first_name);
element('subscriber_image').src = addr;
}
function rnd(a, b)
{
return (+a) + Math.floor(Math.random() * (b - a + (+1)));
}
function set_mail_address(obj, tx)
{
var addr = "";
for (var i = tx.length - 2; i > 0; i -= 2)
addr += tx.substring(i, ((+i) + (+1)));
obj.href = "mailto:" + addr + "@uht.net";
}
function str_replace(what, to, text)
{
var t = text;
var r = '';
while (t.indexOf(what) > -1 && t != '' && what != '')
{
r += t.substring(0, t.indexOf(what)) + to;
t = t.substring((+t.indexOf(what)) + (+what.length), t.length);
}
r += t;
return r;
}