// JavaScript Document

    <!--

    if (document.images)
    {
      preload_image_object = new Image();
      // set image url
      image_url = new Array();
      image_url[0] = "images/insurer.gif";
      image_url[1] = "images/kontainr.gif";
      image_url[2] = "images/multir.gif";
      image_url[3] = "images/sborr.gif";
	  image_url[4] = "images/sear.gif";
	  image_url[5] = "images/sertifr.gif";
	  image_url[6] = "images/taxr.gif";
	  image_url[7] = "images/avtor.gif";
	  image_url[8] = "images/aviar.gif";
	  image_url[9] = "images/about.gif";
	  image_url[10] = "images/contact.gif";
	  image_url[11] = "images/faq.gif";
	  image_url[12] = "images/form.gif";

       var i = 0;
       for(i=0; i<=12; i++) 
         preload_image_object.src = image_url[i];
    }
function menu()
{
var rows=document.getElementById("menutable").getElementsByTagName("TR");
for (i=0;i<9;i++)
{
setFunction(rows[i],'onclick','document.location=this.getElementsByTagName("a")[0].href');
}
}
function setFunction(theObj,theEventHandler,theFunction)
{
if (typeof(theObj) == "string")
{
theObj = document.getElementById(theObj);
}
theObj[theEventHandler]=new Function(theFunction);
}
window.onload = function(){menu();}
function menubot()
{
var columns=document.getElementById("menubot").getElementsByTagName("TD");
for (i=0;i<columns.length;i++)
{
setFunction1(columns[i],'onclick','document.location=this.getElementsByTagName("a")[0].href');
}
}
function setFunction1(theObj1,theEventHandler1,theFunction1)
{
if (typeof(theObj1) == "string")
{
theObj1 = document.getElementById(theObj1);
}
theObj1[theEventHandler1]=new Function(theFunction1);
}
var prev_onload = window.onload;
window.onload = function(){prev_onload();menubot(); }

function getCalendarDate()
{
   var months = new Array(13);
   months[0]  = "ßíâàðü";
   months[1]  = "Ôåâðàëü";
   months[2]  = "Ìàðò";
   months[3]  = "Àïðåëü";
   months[4]  = "Ìàé";
   months[5]  = "Èþíü";
   months[6]  = "Èþëü";
   months[7]  = "Àâãóñò";
   months[8]  = "Ñåíòÿáðü";
   months[9]  = "Îêòÿáðü";
   months[10] = "Íîÿáðü";
   months[11] = "Äåêàáðü";
   var now         = new Date();
   var monthnumber = now.getMonth();
   var monthname   = months[monthnumber];
   var monthday    = now.getDate();
   var year        = now.getYear();
   if(year < 2000) { year = year + 1900; }
   var dateString = monthname +
                    ' ' +
                    monthday +
                    ', ' +
                    year;
   return dateString;
} // function getCalendarDate()

function getClockTime()
{
   var now    = new Date();
   var hour   = now.getHours();
   var minute = now.getMinutes();
   var second = now.getSeconds();
   var ap = "AM";
   if (hour   > 11) { ap = "PM";             }
   if (hour   > 12) { hour = hour - 12;      }
   if (hour   == 0) { hour = 12;             }
   if (hour   < 10) { hour   = "0" + hour;   }
   if (minute < 10) { minute = "0" + minute; }
   if (second < 10) { second = "0" + second; }
   var timeString = hour +
                    ':' +
                    minute +
                    ':' +
                    second +
                    " " +
                    ap;
   return timeString;
} // function getClockTime()

//-->
/*grphcs=new Array(2)
Image0=new Image();
Image0.src=grphcs[0]="snow.gif";
Image1=new Image();
Image1.src=grphcs[1]="snow.gif";
  Amount=25; 
Ypos=new Array();
Xpos=new Array();
Speed=new Array();
Step=new Array();
Cstep=new Array();
ns=(document.layers)?1:0;
ns6=(document.getElementById&&!document.all)?1:0;
 if (ns){
for (i = 0; i < Amount; i++){
var P=Math.floor(Math.random()*grphcs.length);
rndPic=grphcs[P];
document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+rndPic+"></LAYER>");
}
}
else{
document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i = 0; i < Amount; i++){
var P=Math.floor(Math.random()*grphcs.length);
rndPic=grphcs[P];//osw
document.write('<img id="si'+i+'" src="'+rndPic+'" style="position:absolute;top:0px;left:0px">');
}
document.write('</div></div>');
}
WinHeight=(ns||ns6)?window.innerHeight-70:window.document.body.clientHeight;
WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;//fantasyflash.ru
for (i=0; i < Amount; i++){                                                                
 Ypos[i] = Math.floor(Math.random()*WinHeight);
 Xpos[i] = Math.round(Math.random()*WinWidth);
 Speed[i]= Math.random()*5+3;
 Cstep[i]=0;
 Step[i]=Math.random()*0.1+0.05;
}
function fall(){
var WinHeight=(ns||ns6)?window.innerHeight-70:window.document.body.clientHeight;
var WinWidth=(ns||ns6)?window.innerWidth-70:window.document.body.clientWidth;
var hscrll=(ns||ns6)?window.pageYOffset:document.body.scrollTop;
var wscrll=(ns||ns6)?window.pageXOffset:document.body.scrollLeft;
for (i=0; i < Amount; i++){
sy = Speed[i]*Math.sin(90*Math.PI/180);
sx = Speed[i]*Math.cos(Cstep[i]);
Ypos[i]+=sy;
Xpos[i]+=sx; 
if (Ypos[i] > WinHeight){
Ypos[i]=-60;
Xpos[i]=Math.round(Math.random()*WinWidth);
Speed[i]=Math.random()*5+3;
}
if (ns){
document.layers['sn'+i].left=Xpos[i];
document.layers['sn'+i].top=Ypos[i]+hscrll;
}
else if (ns6){
document.getElementById("si"+i).style.left=Math.min(WinWidth,Xpos[i]);
document.getElementById("si"+i).style.top=Ypos[i]+hscrll;
}
else{
eval("document.all.si"+i).style.left=Xpos[i];
eval("document.all.si"+i).style.top=Ypos[i]+hscrll;
} 
Cstep[i]+=Step[i];
}
setTimeout('fall()',20);
} 
window.onload=fall();
//-->
*/