﻿Contact = new Object;




Contact.Init = function()
{
    Contact.Button = document.getElementById('contact');    
    Event.observe(Contact.Button, 'click', Contact.CreateWindow);
}


Contact.CreateWindow = function()
{
    var height = 0;
    var screenHeight = screen.height;
    var screenWidth = screen.width;
    var PosY = (screenHeight/2)-(height/2);
    
    link_mes = '';
    
    if(navigator.appName=='Netscape'){height = 600; } else {height = 600;}
    
    var PosX = (screenWidth/2)-175;
    
    if($('contact').lang=='ru')
    {
    link_mes = '/messanger.html';
    }
    else
    {
    if($('contact').lang=='en')
    {
    link_mes = '/messanger_en.html';
    }
    }
        
    Contact.Options = 'width=350, height='+height+', top='+PosY+', left='+PosX+', status=no, resizable=no, toolbar=no, menubar=no, scrollbars=no, location=no';
    Contact.Window = open(link_mes, 'displayWindow', Contact.Options );
    
}



Event.observe(window, 'load', Contact.Init);
