var ie4=document.all
var ns4=document.layers
var ns6=document.getElementById&&!document.all
var dn = "";
var mn = "th";
var MonthsOfYear = new Array ("January","February","March","April","May","June","July","August","September","October","November","December");
var TmpDate  = new Date();
var TimeDiff = TmpDate.getTime() - cur_server_time - 
               TmpDate.getTimezoneOffset()*60000;
function show_clock() {
var Digital = new Date();
Digital.setTime(Digital.getTime() - TimeDiff);
var mday = Digital.getDate();
var month = Digital.getMonth();
var year = Digital.getYear();
var year_str = year.toString();
    year_str = year_str.substring(year_str.length-2,4);
var hours = Digital.getHours();
var minutes = Digital.getMinutes();
var seconds = Digital.getSeconds();
if      (mday==1 || mday==21 || mday==31) { mn="st"; }
else if (mday==2 || mday==22)             { mn="nd"; }
else if (mday==3 || mday==23)             { mn="rd"; }
dn = "AM";
if (hours >= 12) { dn = "PM"; hours = hours - 12; }
if (hours == 0) { hours = 12; }
if (minutes <= 9) { minutes = "0"+minutes; }
if (seconds <= 9) { seconds = "0"+seconds; }
myclock =  '<table width="100%" border=0 cellspacing=0 cellpadding=0><tr valign=top><td width=10% nowrap align=center>' +
'<font size=-1><font color="#21027f" style="font-family:Times;font-size:13px;">Cargo House time<br><b>'+hours+':'+minutes+
':'+seconds+ ' '+dn+'</b><br>'+mday+mn+' of '+MonthsOfYear[month]+'</font></font>'+ '</td></tr></table>';
if (ns4){
document.LiveClockNS.document.write(myclock);
document.LiveClockNS.document.close();}
else if (ie4) LiveClockIE.innerHTML = myclock;
else if (ns6) document.getElementById("LiveClockIE").innerHTML = myclock;
setTimeout("show_clock()",1000);}
setTimeout("show_clock()",1000);
tbl2menu = '<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=140 HEIGHT=245 border=0><TR><TD HEIGHT=11><IMG SRC="/pict/rmup.jpg" WIDTH=140 HEIGHT=11></TD></TR><TR><TD HEIGHT=9><IMG SRC="/pict/rm2px.gif" WIDTH=140 HEIGHT=9></TD></TR><TR><TD HEIGHT=3><IMG SRC="/pict/rmfb.gif" WIDTH=140 HEIGHT=3></TD></TR><TR><TD HEIGHT=17><IMG SRC="/pict/rm2px.gif" WIDTH=140 HEIGHT=17></TD></TR><TR><TD HEIGHT=3><IMG SRC="/pict/rmfb.gif" WIDTH=140 HEIGHT=3></TD></TR><TR><TD HEIGHT=17><IMG SRC="/pict/rm2px.gif" WIDTH=140 HEIGHT=17></TD></TR><TR><TD HEIGHT=3><IMG SRC="/pict/rmfb.gif" WIDTH=140 HEIGHT=3></TD></TR><TR><TD HEIGHT=17><IMG SRC="/pict/rm2px.gif" WIDTH=140 HEIGHT=17></TD></TR><TR><TD HEIGHT=3><IMG SRC="/pict/rmfb.gif" WIDTH=140 HEIGHT=3></TD></TR><TR><TD HEIGHT=17><IMG SRC="/pict/rm2px.gif" WIDTH=140 HEIGHT=17></TD></TR><TR><TD HEIGHT=3><IMG SRC="/pict/rmfb.gif" WIDTH=140 HEIGHT=3></TD></TR><TR><TD HEIGHT=17><IMG SRC="/pict/rm2px.gif" WIDTH=140 HEIGHT=17></TD></TR><TR><TD HEIGHT=3><IMG SRC="/pict/rmfb.gif" WIDTH=140 HEIGHT=3></TD></TR><TR><TD HEIGHT=17><IMG SRC="/pict/rm2px.gif" WIDTH=140 HEIGHT=17></TD></TR><TR><TD HEIGHT=3><IMG SRC="/pict/rmfb.gif" WIDTH=140 HEIGHT=3></TD></TR><TR><TD HEIGHT=17><IMG SRC="/pict/rm2px.gif" WIDTH=140 HEIGHT=17></TD></TR><TR><TD HEIGHT=3><IMG SRC="/pict/rmfb.gif" WIDTH=140 HEIGHT=3></TD></TR><TR><TD HEIGHT=17><IMG SRC="/pict/rm2px.gif" WIDTH=140 HEIGHT=17></TD></TR><TR><TD HEIGHT=3><IMG SRC="/pict/rmfb.gif" WIDTH=140 HEIGHT=3></TD></TR><TR><TD HEIGHT=17><IMG SRC="/pict/rm2px.gif" WIDTH=140 HEIGHT=17></TD></TR><TR><TD HEIGHT=3><IMG SRC="/pict/rmfb.gif" WIDTH=140 HEIGHT=3></TD></TR><TR><TD HEIGHT=39 background="/pict/rm2px.gif" align=right><a href="/au/index.phtml"><b><font color=#ffffff><u>About Us</u>&nbsp;</font></b></a></TD></TR><TR><TD HEIGHT=3><IMG SRC="/pict/rmfw.gif" WIDTH=140 HEIGHT=3></TD></TR></TABLE>';
str1='<tr align=right><td width=138 height=20><a href="#2" onClick="';
str2='Click()"><font color="#ffffff" style="font-size:14px;text-decoration:none"><b>';
str4='</b></font></a><td></td></tr>';
function changeAries(text2map, text2menu)
{
    t2menu='';
    if(text2menu)
        if(text2menu!='n')
        {
            t2menu = '<table cellspacing=0 cellpadding=0 border=0 width=138>';
            for(i = 0; i < text2menu.length/2; i++)
                t2menu += str1+text2menu[2*i]+str2+text2menu[2*i+1]+str4;
            t2menu += '</table>';
        }

    if(text2map)
        text2map = '<table background="/pict/backgr.gif" border=1 cellspacing=0 width=411 height=243><tr><td '+text2map+'</td></tr></table>';
    if (ns4)
    {
        document.mapspanNS.document.write(text2map);
        document.mapspanNS.document.close();
        if (text2menu != 'n')
        {
            document.menuspanNS.document.write(tbl2menu);
            document.menuspanNS.document.close();
            document.menuspan2NS.document.write(t2menu);
            document.menuspan2NS.document.close()
        }
    }
    else if (ie4)
    {
        mapspan.innerHTML = text2map;
        if (text2menu != 'n')
        {
            menuspan.innerHTML = tbl2menu;
            menuspan2.innerHTML = t2menu
        }
    }
    else if (ns6)
    {
        document.getElementById("mapspan").innerHTML = text2map;
        if (text2menu != 'n')
        {
            document.getElementById("menuspan").innerHTML = tbl2menu;
            document.getElementById("menuspan2").innerHTML = t2menu
        }
    }
}
var str5 = ' valign=top><br><table><tr><td width=10></td><td><b><font size=+2 color=darkblue>';
var str6 = '</font></b></tr></table><table width=100%><tr><td width=20></td><td><div align=justify><font color=darkblue><b>';
var str7 = '</b></font></div></td><td width=20></td></tr></table>';
function nefeClick()
{
    text2map = str5+'News'+str6+'All news and announcements of chartering portal.<br>Here you will be always informed about any new features and enhacements made to this portal or just about important events in Cargo House.'+str7;
    changeAries(text2map, 'n');
}
function nestClick()
{
    text2map = str5+'News'+str6+'All news and announcements of stevedoring portal.<br>Here you will be always informed about any new features and enhacements made to this portal or just about important events in Cargo House.'+str7;
    changeAries(text2map, 'n');
}
function neagClick()
{
    text2map = str5+'News'+str6+'All news and announcements of agency portal.<br>Here you will be always informed about any new features and enhacements made to this portal or just about important events in Cargo House.'+str7;
    changeAries(text2map, 'n');
}
function refeClick()
{
    text2map = str5+'Report'+str6+"Use this page if you urgently need to inform us about any troubles or inconvenience in use of chartering portal. We'll receive your report in 3-5 seconds."+str7;
    changeAries(text2map, 'n');
}
function restClick()
{
    text2map = str5+'Report'+str6+"Use this page if you urgently need to inform us about any troubles or inconvenience in use of stevedoring portal. We'll receive your report in 3-5 seconds."+str7;
    changeAries(text2map, 'n');
}
function reagClick()
{
    text2map = str5+'Report'+str6+"Use this page if you urgently need to inform us about any troubles or inconvenience in use of agency portal. We'll receive your report in 3-5 seconds."+str7;
    changeAries(text2map, 'n');
}
function chClick()
{
    text2map = str5+'CHAT'+str6+'Page for your communicating with other user. Sitting at your PC you can conduct all negotiations using new non-traditional communication ways:<br>-on-line written corresponding<br>-on-line voice communication<br>-on-line combined written/voice communication'+str7;
    changeAries(text2map, 'n');
}
var str8='Your personal page, unaccessable for other Cargo House users.<br>Here you regulate all information that you enter in Cargo House (i.e. your registration data, contact details, information about your company, ';
var str9=' etc). To regulate means to do following operations: add, update, edit, view, show, hide, delete.';
function mpfeClick()                                 
{
    text2map = str5+'Main Page'+str6+str8+'ships positions, cargo offers'+str9+str7;
    changeAries(text2map, 'n');
}
function mpstClick()                                 
{
    text2map = str5+'Main Page'+str6+str8+'stevedoring enquires, stevedoring offers'+str9+str7;
    changeAries(text2map, 'n');
}
function mpagClick()                                 
{
    text2map = str5+'Main Page'+str6+str8+'agency enquiries, attended ships'+str9+str7;
    changeAries(text2map, 'n');
}
function osClick()
{
    text2map = str5+'Open Ships'+str6+"Table of valid vessels positions presented by other users.<br>It contains links to ship's details, port's information and contact details of user, who placed this position. All data in this table can be filtered, sorted and displayed by yourself at your discretion."+str7;
    changeAries(text2map, 'n');
}
function ocClick()
{
    text2map = str5+'Open Cargoes'+str6+'Table of valid cargo offers presented by other users.<br>It contains links to detailed description, information about loading/discharging port and contact details of user, who placed this offer. All data in this table can be filtered, sorted and displayed by yourself at your discretion.'+str7;
    changeAries(text2map, 'n');
}
var pstr="Guide to more than 9000 sea and river ports of the world.<br>It contains information about location of the port, ";
function psfeClick()
{
    text2map = str5+'Ports'+str6+pstr+"companies presented at the port, ships open at the port and cargoes destined to/from the port."+str7;
    changeAries(text2map, 'n');
}
function psstClick()
{
    text2map = str5+'Ports'+str6+pstr+"companies presented at the port, stevedoring enquiries/offers for loading, discharging and storage of export/import cargoes."+str7;
    changeAries(text2map, 'n');
}
function psagClick()
{
    text2map = str5+'Ports'+str6+pstr+"companies presented at the port and ships, which are expected or handled at the moment at berth/on roadstead of the port."+str7;
    changeAries(text2map, 'n');
}
function coClick()
{
    text2map = str5+'Companies'+str6+'Directory of companies, which are registered in Cargo House and have valid offers at the moment.<br>It contains information about staff of the company and their contact details.'+str7;
    changeAries(text2map, 'n');
}
function frClick()
{
    text2map = str5+'Freight Rates'+str6+'Quotes for freight on any direction and by any sort of cargo.'+str7;
    changeAries(text2map, 'n');
}
function asClick()
{
    text2map = str5+'All Ships'+str6+'Guide to ships and shipowners.<br>It contains description of more than 24.000 dry cargo conventional and specialized ships, contact details of shipowners/managers/operators/brokers.'+str7;
    changeAries(text2map, 'n');
}
function feClick()
{
    text2map = 'align=center><b><h2><a href="/demo/index_en.html"><u>Demonstration</u></a></h2>Sound-film about freight portal<br>in English, Russian and German.</b>';
    text2menu = new Array('nefe','News','refe','Report','ch','CHAT','mpfe','Main Page','os','Open Ships','oc','Open Cargoes','psfe','Ports','co','Companies','fr','Freight Rates','as','All Ships');
    changeAries(text2map, text2menu);
    rColors();
    document.all.fe.color="#9090e6";
}
function seClick()
{
    text2map = str5+'Stevedoring Enquiries'+str6+"Table of valid stevedoring enquiries for cargo handling and storage presented by other users.<br>It contains links to detailed description of the enquiry, port's information and contact details of user, who placed this enquiry.<br>All data in this table can be filtered, sorted and displayed by yourself at your discretion."+str7;
    changeAries(text2map, 'n');
}
function soClick()
{
    text2map = str5+'Stevedoring Offers'+str6+"Table of valid stevedoring offers for cargo handling and storage presented by other users.<br>It contains links to offer details (i.e. costs and conditions of cargo handling and/or storage), port's information and contact details of user, who placed this offer.<br>All data in this table can be filtered, sorted and displayed by yourself at your discretion."+str7;
    changeAries(text2map, 'n');
}
function hcClick()
{
    text2map = str5+'Cargo Handling Costs'+str6+"Costs of loading, discharging and storage of any sort of cargo in any region of the world."+str7;
    changeAries(text2map, 'n');
}
function stClick()
{
    text2map = 'align=center><h2>For stevedoring and warehousing companies<br>at sea and river ports.</h2>';
    text2menu = new Array('nest','News','rest','Report','ch','CHAT','mpst','Main Page','se','Stevedoring Enquiries','so','Stevedoring Offers','psst','Ports','co','Companies','hc','Cargo Handling Costs');
    changeAries(text2map, text2menu);
    rColors();
    document.all.st.color="#9090e6";
}
function aeClick()
{
    text2map = str5+'Agency Enquiries'+str6+"Table of valid enquiries for ship's attendance at ports.<br>It contains links to enquiry details, port's information and contact details of the user, who placed this enquiry.<br>All data in this table can be filtered, sorted and displayed by yourself at your discretion."+str7;
    changeAries(text2map, 'n');
}
function atClick()
{
    text2map = str5+'Attended Ships'+str6+"Table of valid agency reports on attended ships.<br>It contains links to report details, port's information and contact details of the user, who placed this report.<br>All data in this table can be filtered, sorted and displayed by yourself at your discretion."+str7;
    changeAries(text2map, 'n');
}
function pdClick()
{
    text2map = str5+'Port Dues'+str6+"Dues charged from ships calling at sea and river ports."+str7;
    changeAries(text2map, 'n');
}
function agClick()
{
    text2map = 'align=center><h2>For ship agents<br>at sea and river ports.</h2>';
    text2menu = new Array('neag','News','reag','Report','ch','CHAT','mpag','Main Page','ae','Agency Enquiries','at','Attended Ships','psag','Ports','co','Companies','pd','Port Dues');
    changeAries(text2map, text2menu);
    rColors();
    document.all.ag.color="#9090e6";
}
function icClick()
{
    text2map = 'align=center><h2><br>For railway and trucking companies.<br><br><br>Under construction.</h2>';
    text2menu= '';
    changeAries(text2map,text2menu);
    rColors();
    document.all.ic.color="#9090e6";
}
function fgClick()
{
    text2map = 'align=center><h2>Foreign Goods Classification.<br>Sale and purchase.</h2>';
    text2menu= '';
    changeAries(text2map,text2menu);
    rColors();
    document.all.fg.color="#9090e6";
}
function rColors()
{
    var a = document.all;
    var b = "#21027f";
    a.fe.color=b;
    a.st.color=b;
    a.ag.color=b;
    a.ic.color=b;
    a.fg.color=b;
}
function auClick()
{
    text2map = '';
    text2menu= '';
    changeAries(text2map,text2menu);
    rColors();
}
